
brooks-lint
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Español

Six focused workflows for code review, architecture, technical debt, test quality, a health dashboard, and scoped repairs — grounded in twelve classic engineering books. The seventh skill checks explicit code contracts with Lean 4.
Published versions: npm · GitHub Releases
Migration from 1.9.1 to 2.0.0
brooks-lint is a collection of Agent Skills, shared guidance and small deterministic reporting tools. Your coding agent performs the diagnosis; the project supplies a repeatable workflow, risk vocabulary and reporting contract. It is not a static analyzer and it does not guarantee that a model finds every defect.
Quick start: Codex
# Source checkout: Git + Bash
git clone https://github.com/hyhmrright/brooks-lint.git
cd brooks-lint
bash scripts/install.sh codex
$brooks-review Review the current diff and identify supported maintainability risks.
$brooks-health Assess this repository; distinguish missing evidence from clean dimensions.
This installs the current source into the global Codex skills directory. Start a new session if skills are not discovered. To install into another project, run the installer by its absolute path from that project with codex --project. Keep _shared beside the skill folders. See the Codex guide for layout and capability checks.
Install the latest published package with Node.js 20+: npx brooks-lint@latest install codex. See getting started for other installation targets.
Install from npm 2.1.0 or from main for all seven skills, including brooks-verify. Verify needs Python 3, a trusted Lean 4 executable on PATH and a writable temporary directory.
Choose the smallest workflow that fits
| Skill | Use it for | Changes files? |
|---|
$brooks-review | A diff or specified code: governing contract, supported risks and a discriminating witness. | No |
$brooks-audit | Module dependencies, ownership and boundary integrity; onboarding also has a dedicated guide. | No |
$brooks-debt | Maintainability debt, priorities and a repayment plan. | No |
$brooks-test | An existing test suite: what failures its assertions do and do not detect. | No |
$brooks-health | An abbreviated four-dimension assessment and evidence-scoped dashboard. | No |
$brooks-sweep | Diagnose and apply authorized, verifiable repairs within a bounded scope. | Yes |
$brooks-verify | Check a supported source file against an independent contract with Lean 4. Get a replayable proof, a certified counterexample, or an explanation of what remains unverified. | No |
For multi-file updates, use Verify as an optional check on new projects. To gate a pinned tool and invocation in CI, require both a source-bound Lean proof and a real CLI replay that checks the exit status, target mutations in order and final bytes. Experimental results and replay commands.
Use $brooks-review in Codex; other hosts have their own invocation syntax. Natural-language discovery depends on the host and model. Health is a summary, not four exhaustive audits. Sweep requires editing and verification capabilities and respects existing authorization; it does not demand another approval merely because a change spans files.
What a report means
A retained finding follows Symptom → Source → Consequence → Remedy: observable evidence, the relevant engineering principle, its consequence, and a scoped response. Book references explain the framework; they do not prove a diagnosis or a chapter-level claim. Protected behavior and unresolved obligations should be reported without invented deductions. Predictions must be distinguished from checks actually executed.
The score is a configured summary of retained findings, not a probability of correctness. Health uses one ledger for Code Quality, Architecture, Tech Debt and Test Quality. When execution is available and permitted, bundled Node tools calculate and finalize the report. A required dimension with missing decisive evidence is unassessed, so no numeric composite is emitted. Only PR quality with no diff is skipped, with its weight redistributed. An assessed dimension with no supported findings is different from an unknown dimension.