Audit ADR coverage across modules. Identifies modules with no architectural governance, orphaned ADRs referencing removed modules, and stale architecture docs. Classifies findings by severity.
How this skill is triggered — by the user, by Claude, or both
Slash command
/principled-architecture:arch-auditThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit architectural decision coverage across all modules. Identify governance gaps, orphaned ADRs, and stale architecture documents.
Audit architectural decision coverage across all modules. Identify governance gaps, orphaned ADRs, and stale architecture documents.
/arch-audit [--module <path>]
| Argument | Required | Description |
|---|---|---|
--module <path> | No | Scope the audit to a single module. Audits all modules if omitted. |
Build architecture map. Generate the architecture map (same logic as /arch-map) to establish the module-to-decision mapping and coverage classification for each module.
Identify ungoverned modules. List all modules with coverage classification None:
core module (foundational modules should have governance)Find orphaned ADRs. For each accepted ADR:
Detect stale architecture docs. For each architecture document:
/arch-sync updateCheck for deprecated governance. For each module governed by an ADR:
deprecated or superseded, check for a replacementRender audit report. Read the template from templates/audit-report.md and fill in:
{{DATE}} --- current date (YYYY-MM-DD){{MODULE_COUNT}} --- total modules audited{{FULL_COUNT}}, {{PARTIAL_COUNT}}, {{NONE_COUNT}} --- coverage counts{{FULL_PCT}}, {{PARTIAL_PCT}}, {{NONE_PCT}} --- coverage percentages{{UNGOVERNED_MODULES}} --- list of modules with no governance{{ORPHANED_ADRS}} --- list of ADRs referencing nonexistent modules{{STALE_ARCH_DOCS}} --- list of stale architecture documents{{FINDINGS}} --- all findings sorted by severity (critical, warning, info)Report results. Output the audit report and summarize:
Architecture governance audit:
Modules audited: 12
Full coverage: 5 (42%)
Partial coverage: 4 (33%)
No coverage: 3 (25%)
Findings:
Critical: 1 (core module without governance)
Warning: 2 (ungoverned modules)
Info: 3 (orphaned ADRs, stale docs)
templates/audit-report.md --- Audit report template with placeholder variables for coverage summary, ungoverned modules, orphaned ADRs, stale docs, and findingsnpx claudepluginhub alexnodeland/principled --plugin principled-architectureGenerates reports on architecture documentation health including ADR counts, reviews, recalibration status, team size, activity levels, and gaps. Use for status queries or health checks.
Sweeps codebase architecture periodically by reading ADRs, mapping module/dependency graphs, surfacing 5-10 smells with severity, and generating refactor proposals for /refactor. Triggered by '/architecture-review'.
Maps module dependencies, checks layering integrity, and flags structural decay across a codebase. Includes onboarding mode for codebase tours.