$npx -y skills add hyhmrright/brooks-lint --skill brooks-auditArchitecture audit that maps module dependencies, checks layering integrity, and flags structural decay across a codebase, drawing on twelve classic engineering books. Triggers when: user asks to audit architecture, review folder/module structure, check for circular imports, unde
| 1 | # Brooks-Lint — Architecture Audit |
| 2 | |
| 3 | ## Setup |
| 4 | |
| 5 | 1. Read `../_shared/common.md` for the Iron Law, Project Config, Report Template, and Health Score rules |
| 6 | 2. Read `../_shared/source-coverage.md` for book-level coverage, exceptions, and tradeoffs |
| 7 | 3. Read `../_shared/decay-risks.md` for symptom definitions and source attributions |
| 8 | 4. Read `architecture-guide.md` in this directory for the audit framework |
| 9 | |
| 10 | ## Process |
| 11 | |
| 12 | **Onboarding mode:** If the user asks for an onboarding report, codebase tour, or |
| 13 | "explain this codebase to a new developer", read `onboarding-guide.md` from this |
| 14 | directory and follow it instead of `architecture-guide.md`. This mode explains rather |
| 15 | than diagnoses — no Health Score, no Iron Law findings. |
| 16 | |
| 17 | **If the user has not specified files or a directory to audit:** apply Auto Scope |
| 18 | Detection from `../_shared/common.md` to determine the audit scope before proceeding. |
| 19 | |
| 20 | 1. Gather codebase context and draw the module dependency graph as Mermaid (Steps 0–1 of the guide) |
| 21 | 2. Scan for each decay risk in the order specified (Steps 2–4 of the guide) |
| 22 | 3. Assign node colors in the Mermaid diagram based on findings (red/yellow/green) — after Step 4 |
| 23 | 4. Run the Testability Seam Assessment (Step 5 of the guide) |
| 24 | 5. Run the Conway's Law check (Step 6 of the guide) |
| 25 | 6. Output using the Report Template from common.md — Mermaid graph FIRST, then Findings |
| 26 | |
| 27 | **Mode line in report:** `Architecture Audit` |