/arckit:health <project ID or scope, e.g. '001', 'all', 'vendors only'>from ArcKit
Scans ArcKit projects for stale research, forgotten ADRs, unresolved review conditions, orphaned artifacts, missing traceability, and version drift. Writes docs/health.json for dashboard integration.
Ships in ArcKit. Installing the plugin adds it to Claude Code.
You are performing a diagnostic health check across all ArcKit projects, identifying governance artifacts that need attention — stale data, forgotten decisions, unresolved conditions, broken traceability, and version drift.
This is a diagnostic command. Output goes to the console and the hook writes only docs/health.json for dashboard integration. Do NOT create project governance artifacts. The health report is a point-in-time scan, not a governance artifact.
$ARGUMENTS
PROJECT (optional): Restrict scan to a single project directory
PROJECT=001-payment-gatewayprojects/SEVERITY (optional): Minimum severity to report (default: LOW)
HIGH, MEDIUM, LOWSEVERITY=HIGH shows only high-severity findingsSINCE (optional): Override staleness baseline date (default: today)
YYYY-MM-DDSTALE_DRAFT_DAYS (optional): Threshold (in days) for STALE-DRAFT findings (default: 30)
STALE_DRAFT_DAYS=14 matches the session-start monitor's legacy thresholdScans the projects/ directory for all ARC-* artifacts and applies ten detection rules to identify governance health issues. Each finding is assigned a severity (HIGH, MEDIUM, or LOW) with a suggested remediation action. The hook also writes docs/health.json on every run for dashboard integration (consumed by /arckit:pages).
At its default threshold, the STALE-DRAFT rule reports every draft the session-start stale-artifact-scan monitor reports as unchanged, and it also falls back to the Created Date when Last Modified is missing. Overdue reviews differ: the monitor reports a past Next Review Date whatever the artifact's status, while REVIEW-OVERDUE skips DRAFT, SUPERSEDED and ARCHIVED artifacts, so a draft or a retired artifact with a past review date appears in the monitor's notice but not here.
This command does NOT modify any project files. It is a diagnostic tool. The only file written is docs/health.json.
| ID | Rule | Severity | Threshold |
|---|---|---|---|
| STALE-RSCH | Stale Research | HIGH | RSCH documents with created/modified date >6 months old |
| FORGOTTEN-ADR | Forgotten ADR | HIGH | ADR with status "Proposed" for >30 days with no review activity |
| UNRESOLVED-COND | Unresolved Conditions | HIGH | HLD/DLD review with "APPROVED WITH CONDITIONS" where conditions lack resolution evidence |
| ORPHAN-REQ | Orphaned Requirements | MEDIUM | REQ documents not referenced by any ADR in the same project |
| MISSING-TRACE | Missing Traceability | MEDIUM | ADR documents that do not reference any requirement (REQ, FR-xxx, NFR-xxx, BR-xxx) |
| VERSION-DRIFT | Version Drift | LOW | Multiple versions of the same artifact type where the latest version is >3 months old |
| STALE-EXT | Unincorporated External Files | HIGH | External file in external/ newer than all ARC-* artifacts in the same project |
| REVIEW-OVERDUE | Overdue Review | HIGH | Document Control Next Review Date is in the past, on a non-DRAFT/SUPERSEDED/ARCHIVED artifact |
| STALE-DRAFT | Long-running Draft | MEDIUM | Artifact with Status: DRAFT whose Last Modified (or Created Date) is >30 days old (override via STALE_DRAFT_DAYS=N), unless only a command sets its type's Status |
| STALE-VIEW | Out-of-date Generated View | MEDIUM | An artifact with a ## Source Artefacts table (such as an arc42 description) cites a source, in its project or in 000-global, that now has a newer version, or omits a later instance of a type it cites |
Note: The Health Pre-processor Hook (
graph-inject.mjs, health recipe) has already completed Steps 1-3 automatically:
- Scan Scope — identified all projects and ARC-* artifacts
- Metadata Extraction — read every artifact and extracted dates, statuses, requirement IDs, review verdicts, and conditions
- Rule Application — applied all ten detection rules and generated findings with severities
The hook's
hook contextabove contains all findings — use them directly. Do NOT re-read any artifact files. Proceed to Step 4 to format the console output.If the hook data is not present (hook context missing), fall back to manual scanning: read each ARC-* artifact, extract Document Control fields, and apply the detection rules described below.
Scan: All ARC-*-RSCH-*.md files
Logic:
Rationale: Research documents contain pricing data, vendor comparisons, and market analysis that becomes unreliable after 6 months. Procurement decisions based on stale research risk cost overruns and missed alternatives.
Output per finding:
[HIGH] STALE-RSCH: {filepath}
Last modified: {date} ({N} days ago)
Action: Re-run /arckit:research to refresh pricing and vendor data
Scan: All ARC-*-ADR-*-*.md files
Logic:
Rationale: An ADR stuck in "Proposed" status for over 30 days indicates a decision that has been raised but never reviewed. This creates architectural ambiguity — teams may proceed without a formal decision or make conflicting assumptions.
Output per finding:
[HIGH] FORGOTTEN-ADR: {filepath}
Status: Proposed since {date} ({N} days without review)
Action: Schedule architecture review or accept/reject the decision
Scan: All ARC-*-HLDR-*.md and ARC-*-DLDR-*.md files, plus review files in reviews/ subdirectories
Logic:
Rationale: "Approved with conditions" means the design can proceed but specific changes are required. If conditions are never formally resolved, the design may ship with known gaps — creating technical debt or compliance risk.
Output per finding:
[HIGH] UNRESOLVED-COND: {filepath}
Verdict: APPROVED WITH CONDITIONS
Unresolved conditions: {count}
Conditions:
- {condition 1 text}
- {condition 2 text}
Action: Address conditions and update review document, or schedule follow-up review
Scan: All ARC-*-REQ-*.md files, cross-referenced with ARC-*-ADR-*-*.md files in the same project
Logic:
Note: Not all requirements need a dedicated ADR. This rule flags the gap for awareness — the architect decides whether an ADR is needed. Requirements covered by traceability matrices (TRAC) or design reviews (HLDR/DLDR) may be adequately governed without a specific ADR.
Output per finding:
[MEDIUM] ORPHAN-REQ: {project-dir}
Requirements document: {filepath}
Total requirements: {count}
Requirements not referenced by any ADR: {count}
Examples: {first 5 orphaned requirement IDs}
Action: Review whether these requirements need architectural decisions documented as ADRs
Scan: All ARC-*-ADR-*-*.md files
Logic:
BR-\d{3}, FR-\d{3}, NFR-\w+-\d{3}, INT-\d{3}, DR-\d{3})
b. Also check for references to REQ documents (ARC-*-REQ-*)
c. If the ADR does not reference ANY requirement: flag as MEDIUM severityRationale: ADRs should be traceable to the requirements they address. An ADR with no requirement references may indicate a decision made without clear justification, or simply missing cross-references that should be added.
Output per finding:
[MEDIUM] MISSING-TRACE: {filepath}
ADR title: {title from document}
Status: {status}
Action: Add requirement references to link this decision to specific requirements
Scan: All ARC-* files, grouped by project and document type
Logic:
Rationale: Multiple versions of an artifact suggest active iteration. If the latest version has not been updated in over 3 months, the artifact may have been abandoned mid-revision or the team may be working from an outdated version.
Output per finding:
[LOW] VERSION-DRIFT: {project-dir}/{type}
Versions found: {list of version numbers}
Latest version: {filepath} (last modified: {date}, {N} days ago)
Action: Confirm the latest version is current, or archive superseded versions
Scan: All files in projects/*/external/ directories (including 000-global/external/)
Logic:
external/ directory:
a. Find the newest ARC-* artifact modification time across the project directory and its subdirectories (decisions/, diagrams/, wardley-maps/, data-contracts/, reviews/)
b. For each file in external/ (excluding README.md):
| Pattern | Recommended Commands |
|---|---|
*api*, *swagger*, *openapi* | /arckit:requirements, /arckit:data-model, /arckit:diagram |
*schema*, *erd*, *.sql | /arckit:data-model, /arckit:data-mesh-contract |
*security*, *pentest*, *vuln* | /arckit:secure, /arckit:dpia |
*compliance*, *audit* | /arckit:tcop, /arckit:conformance |
*cost*, *pricing*, *budget* | /arckit:sobc, /arckit:finops |
*pipeline*, *ci*, *deploy* | /arckit:devops |
*rfp*, *itt*, *tender* | /arckit:sow, /arckit:evaluate |
*risk*, *threat* | /arckit:risk, /arckit:secure |
*policy*, *standard* | /arckit:principles, /arckit:tcop |
| (default) | /arckit:requirements, /arckit:analyze |
Rationale: External files (PoC results, API specs, compliance reports, vendor documents) are placed in external/ to inform architecture decisions. If these files are newer than all existing artifacts, the architecture may not yet reflect their content — creating a governance gap.
Output per finding:
[HIGH] STALE-EXT: {project-dir}
Unincorporated external files: {count}
Files:
- {filename} → Recommended: {matched commands}
- {filename} → Recommended: {matched commands}
Action: Re-run recommended commands to incorporate external file content into architecture artifacts
Scan: All ARC-* artifacts in scanned projects
Logic:
Next Review Date fieldYYYY-MM-DD and is before the baseline date: flag as HIGH severityStatus is DRAFT, SUPERSEDED, or ARCHIVED — a review schedule is not meaningful for not-yet-approved or retired artifactsRationale: The review cycle is a governance commitment captured in Document Control. An overdue review on an approved or published artifact means the team has missed a planned reassurance gate — the artifact may now be out of date with reality but is still being treated as authoritative.
Output per finding:
[HIGH] REVIEW-OVERDUE: {filepath}
Next Review Date: {date} ({N} days overdue, status: {status})
Action: Run the review, bump the version with refreshed Document Control dates, or archive the artifact
Scan: All ARC-* artifacts with Status: DRAFT
Logic:
Status fieldDRAFT:
a. Skip the artifact if its type's entry in ArcKit's document type registry, ${CLAUDE_PLUGIN_ROOT}/config/doc-types.mjs, has a statusSetBy field. That field names the one command that sets the type's Status, such as a sign-off command, so nobody promotes it by hand and the advice below would be wrong. The session-start monitor leaves these drafts out too.
b. Extract Last Modified (or Created Date if missing)
c. Calculate age = baseline date − that date
d. If age > STALE_DRAFT_DAYS (default 30): flag as MEDIUM severityRationale: A DRAFT artifact that hasn't been touched for over a month is usually one of three things — stalled work, abandoned scaffolding, or a decision that has been silently overtaken by events. Either way, it's a governance signal worth surfacing.
Output per finding:
[MEDIUM] STALE-DRAFT: {filepath}
Status: DRAFT, unchanged since {date} ({N} days ago, threshold {threshold})
Action: Promote to IN_REVIEW/APPROVED, bump the version, or archive the draft
Scan: The latest version of every ARC-* artifact that has a ## Source Artefacts table. Such an artifact is a generated view over other artifacts; today that means the arc42 description (ARC42) and the SDD handover pack (SDDH).
Logic:
projects/000-global/ for a global source such as ARC-000-PRIN. If it is newer than the version the view cites, the view is stale. Global artefacts are read only for this comparison; they raise no findings of their ownADR), find documents of that type in the project that the table does not list, such as an ADR written after the view. Those are not reflected in itRationale: A generated view summarises its sources and records which versions it read. Once a source moves on, the view describes an architecture that no longer matches its own evidence. The sources stay authoritative, so this is MEDIUM: the fix is to regenerate the view, not to repair it by hand.
Output per finding:
[MEDIUM] STALE-VIEW: {filepath}
Sources with a newer version: {N}
- {shortId}: cites v{X}, latest v{Y}
Later artefacts not reflected: {N}
- {document ID}
Action: Re-run {generating command} to write the next version from the current sources
Produce the health report as console output only (do NOT write a file). Structure the report as follows:
========================================
ArcKit Artifact Health Report
Scanned: {date}
Projects scanned: {count}
Artifacts scanned: {count}
========================================
SUMMARY
-------
HIGH: {count} findings
MEDIUM: {count} findings
LOW: {count} findings
TOTAL: {count} findings
FINDINGS BY TYPE
----------------
STALE-RSCH: {count}
FORGOTTEN-ADR: {count}
UNRESOLVED-COND: {count}
STALE-EXT: {count}
REVIEW-OVERDUE: {count}
ORPHAN-REQ: {count}
MISSING-TRACE: {count}
STALE-DRAFT: {count}
STALE-VIEW: {count}
VERSION-DRIFT: {count}
Group findings by project directory, then by finding type within each project.
For each project:
PROJECT: {project-dir}
Artifacts scanned: {count}
[HIGH] STALE-RSCH: research/ARC-001-RSCH-001-v1.0.md
Last modified: 2025-06-15 (250 days ago)
Action: Re-run /arckit:research to refresh pricing and vendor data
[HIGH] FORGOTTEN-ADR: decisions/ARC-001-ADR-003-v1.0.md
Status: Proposed since 2025-12-01 (81 days without review)
Action: Schedule architecture review or accept/reject the decision
[MEDIUM] ORPHAN-REQ: ARC-001-REQ-v2.0.md
Total requirements: 45
Requirements not referenced by any ADR: 12
Examples: FR-015, FR-016, NFR-P-003, NFR-SEC-008, INT-005
Action: Review whether these requirements need architectural decisions
... (continue for all findings in this project)
If a project has no findings:
PROJECT: {project-dir}
Artifacts scanned: {count}
No issues found.
At the end of the report, provide a prioritised action list:
RECOMMENDED ACTIONS (prioritised)
----------------------------------
1. [HIGH] Address {count} stale research documents
Run: /arckit:research for affected projects
Why: Pricing data older than 6 months is unreliable for procurement decisions
2. [HIGH] Review {count} forgotten ADRs
Schedule architecture review meetings for proposed decisions >30 days old
Why: Unresolved decisions create architectural ambiguity
3. [HIGH] Resolve {count} review conditions
Update review documents with resolution evidence
Why: Unresolved conditions may indicate unaddressed design gaps
4. [HIGH] Incorporate {count} new external files
Run the recommended commands listed per file to update architecture artifacts
Why: External files (API specs, compliance reports, PoC results) contain information not yet reflected in governance artifacts
5. [HIGH] Run {count} overdue reviews
For each flagged artifact, run the appropriate review command and bump the version
Why: A missed review on an approved artifact means the assurance gate has lapsed — the artifact is being trusted without current evidence
6. [MEDIUM] Check {count} orphaned requirements
Run: /arckit:adr for requirements needing architectural decisions
Why: Requirements without ADR coverage may lack governance
7. [MEDIUM] Add traceability to {count} ADRs
Update ADRs with requirement references
Run: /arckit:traceability to generate full traceability matrix
Why: Untraceable decisions reduce audit confidence
8. [MEDIUM] Resolve {count} long-running drafts
Promote DRAFT artifacts to IN_REVIEW/APPROVED, bump the version, or archive them
Why: Drafts unchanged for over a month usually indicate stalled or abandoned work
9. [MEDIUM] Regenerate {count} out-of-date views
Re-run the command named in each finding (for an arc42 description, /arckit:arc42)
Why: A generated view that predates its sources describes an architecture its evidence no longer supports
10. [LOW] Review {count} artifacts with version drift
Confirm latest versions are current or archive old versions
Why: Stale multi-version artifacts may indicate abandoned work
If no findings are detected across all projects:
========================================
ArcKit Artifact Health Report
Scanned: {date}
Projects scanned: {count}
Artifacts scanned: {count}
========================================
All clear. No stale artifacts, forgotten decisions, or traceability gaps detected.
The hook automatically writes docs/health.json on every run. No action is needed from the command for JSON output.
Dashboard integration: Run /arckit:pages after the health check to see health data on the governance dashboard.
JSON schema (written by hook to docs/health.json):
{
"generated": "2026-02-20T14:30:00Z",
"scanned": {
"projects": 3,
"artifacts": 42
},
"summary": {
"HIGH": 2,
"MEDIUM": 5,
"LOW": 1,
"total": 8
},
"byType": {
"STALE-RSCH": 1,
"FORGOTTEN-ADR": 1,
"UNRESOLVED-COND": 0,
"STALE-EXT": 0,
"ORPHAN-REQ": 3,
"MISSING-TRACE": 2,
"VERSION-DRIFT": 1,
"REVIEW-OVERDUE": 0,
"STALE-DRAFT": 0,
"STALE-VIEW": 0
},
"projects": [
{
"id": "001-project-name",
"artifacts": 15,
"findings": [
{
"severity": "HIGH",
"rule": "STALE-RSCH",
"file": "research/ARC-001-RSCH-001-v1.0.md",
"message": "Last modified: 2025-06-15 (250 days ago)",
"action": "Re-run /arckit:research to refresh pricing and vendor data"
}
]
}
]
}
Field definitions:
generated — ISO 8601 timestamp of when the scan was runscanned.projects — number of projects scannedscanned.artifacts — total number of artifacts scanned across all projectssummary — finding counts by severity level (HIGH, MEDIUM, LOW) plus totalbyType — finding counts per detection rule (always include all 9 rule IDs, using 0 for rules with no findings)projects[] — per-project breakdown; each entry includes the project directory ID, artifact count, and an array of findingsseverity, rule (detection rule ID), file (artifact filename), message (human-readable detail), and action (suggested remediation)No projects directory:
No projects/ directory found. Run /arckit:init to create your first project.
No artifacts found:
No ARC-* artifacts found in projects/. Generate artifacts using /arckit commands first.
Single project specified but not found:
Project directory not found: projects/{PROJECT}
Available projects:
- 001-payment-gateway
- 002-data-platform
/arckit:health
Scans every project under projects/ and reports all findings.
/arckit:health PROJECT=001-payment-gateway
Scans only the specified project.
/arckit:health SEVERITY=HIGH
Filters output to show only HIGH severity findings.
/arckit:health SINCE=2026-06-01
Useful for planning — "what will be stale by June?"
/loop/loop 30m /arckit:health SEVERITY=HIGH
Runs the health check every 30 minutes during your session, surfacing HIGH severity findings as they appear. Useful during long architecture sessions where multiple artifacts are being created or updated. Requires Claude Code v2.1.97+.
/arckit:analyze — health check complements the deeper governance analysis/arckit:research — refresh stale RSCH documents/arckit:adr — create ADRs for orphaned requirements/arckit:traceability — fix missing traceability links/arckit:hld-review or /arckit:dld-review — follow up on unresolved conditionsThe health check is a diagnostic tool, not a governance artifact. Unlike /arckit:analyze which produces a formal analysis report (saved as ARC-*-ANAL-*.md), the health check is:
Console output is the primary user-facing output. docs/health.json is always written as a side effect for dashboard integration (/arckit:pages).
| Threshold | Value | Rationale |
|---|---|---|
| Research staleness | 6 months | Vendor pricing and SaaS feature sets change significantly within 6 months; procurement decisions require current data |
| ADR forgotten | 30 days | Architecture decisions should be reviewed within a sprint cycle; 30 days is generous |
| Review conditions | Any age | Unresolved conditions are a blocker regardless of age; there is no safe window to ignore them |
| Requirements orphaned | Any age | Flagged for awareness, not urgency; architect decides if ADR coverage is needed |
| ADR traceability | Any age | Traceability is a governance best practice; missing references should be added when convenient |
| Version drift | 3 months | Multiple versions indicate active iteration; 3 months of inactivity suggests the iteration has stalled |
| External file staleness | Any age | External files newer than all artifacts indicate unincorporated content; no safe window to ignore since governance may be based on outdated information |
| Review overdue | Any past date | The review cycle is a governance commitment captured at creation; once the date passes, the assurance gate has lapsed regardless of how recently |
| Draft staleness | 30 days | Long enough that "actively iterating" is no longer plausible; matches the session-start monitor so both surfaces agree (override via STALE_DRAFT_DAYS) |
| Generated view staleness | Any newer source | A view records the versions it was built from, so any newer source is a precise, cheap-to-fix signal; there is no age threshold to tune |
.arckit/health-config.yaml to override default thresholds< or > (e.g., < 3 seconds, > 99.9% uptime) to prevent markdown renderers from interpreting them as HTML tags or emojiWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
76 commands in this plugin
/adrUser InputDocument architectural decisions with options analysis and traceability/ai-playbookUser InputAssess UK Government AI Playbook compliance for responsible AI deployment/analyzeUser InputPerform comprehensive governance quality analysis across architecture artifacts (requirements, principles, designs, assessments)npx claudepluginhub tractorjuice/arc-kit --plugin arckitOther plugins' commands for the same job