by hyhmrright
Portable AI code quality reviews for Codex, Cursor, Copilot and other coding agents: Agent Skills for architecture, technical debt, tests, remediation and optional Lean 4 proofs and counterexamples for supported contracts.
# Add to your Claude Code skills
git clone https://github.com/hyhmrright/brooks-lintbrooks-lint is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by hyhmrright. Portable AI code quality reviews for Codex, Cursor, Copilot and other coding agents: Agent Skills for architecture, technical debt, tests, remediation and optional Lean 4 proofs and counterexamples for supported contracts. It has 1,596 GitHub stars.
brooks-lint's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/hyhmrright/brooks-lint" and add it to your Claude Code skills directory (see the Installation section above).
brooks-lint is primarily written in HTML. It is open-source under hyhmrright on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh brooks-lint against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
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.
# 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.
| 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.
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.
The delivery helper checks that supplied output bytes equal the finalized report and match its receipt. It does not verify diagnostic truth, later UI rendering or transport. Without permitted tool execution, the guide requires explicit verification limits; it must not invent a tool receipt. Ledger and tool contract.
Sweep defaults to three total repair rounds, including the initial and Critical-only rounds. User time/tool budgets also apply. It reports a supported stop reason and unresolved work. A clean local scope can coexist with unknown broader dashboard dimensions. Sweep guide.
| Production code | Tests |
|---|---|
| R1 — Cognitive Overload | T1 — Test Obscurity |
| R2 — Change Propagation | T2 — Test Brittleness |
| R3 — Knowledge Duplication | T3 — Test Duplication |
| R4 — Accidental Complexity | T4 — Mock Abuse |
| R5 — Dependency Disorder | T5 — Coverage Illusion |
| R6 — Domain Model Distortion | T6 — Architecture Mismatch |
| Book | Author |
|---|---|
| The Mythical Man-Month | Frederick P. Brooks Jr. |
| Code Complete | Steve McConnell |
| Refactoring | Martin Fowler |
| Clean Architecture | Robert C. Martin |
| The Pragmatic Programmer | Andrew Hunt & David Thomas |
| Domain-Driven Design | Eric Evans |
| A Philosophy of Software Design | John Ousterhout |
| Software Engineering at Google | Titus Winters, Tom Manshreck & Hyrum Wright |
| The Art of Unit Testing | Roy Osherove |
| How Google Tests Software | James Whittaker, Jason Arbon & Jeff Carollo |
| Working Effectively with Legacy Code | Michael Feathers |
| xUnit Test Patterns | Gerard Meszaros |
The detailed source coverage matrix records concepts, tradeoffs and false-positive guards. These risks are this project’s synthesis, not an official taxonomy authored jointly by the books’ writers.
Try a skill on a task you already need to do: a review with a concrete witness, a dependency diagnosis, a debt plan, a test gap, a scoped dashboard or a verified repair. The table shows the six benchmarked skills, including ties and regressions. Workflow usefulness and measured improvement are separate claims.
| Experiment | Skill / evidence | Baseline → skill | Observed change |
|---|---|---|---|
| E1 | review | 6/6 → 6/6 | No additional passes |
| E1 | audit | 6/6 → 6/6 | No additional passes |
| E1 | test | 5/6 → 6/6 | +1 passing answer; BV5-23 |
| E2 | debt | 11/15 → 12/15 | +1 complete-supported answer; older baseline |
| E3 | health | 15/18 → 10/18 | −5 passing answers; excessive abstention |
| E3 | sweep | 15/18 → 18/18 | +3 passing answers; repeats in one family |
Read within each experiment, not across rows. E1: generic checklist versus focused guidance, six cases per skill, one response per arm. E2: older case-only baseline versus guidance, five debt cases × three repeats; counts complete-supported answers, not E1’s primary passes. E3: generic checklist versus full guidance, 18 responses per skill and arm in the 72-answer health/sweep campaign. Sweep’s gain is confined to one priority-routing family. Health’s later fixes have offline coverage but no completed post-fix efficacy result. Do not combine these counts into an overall accuracy or a six-skill ranking.
E1 — CLI-selected gpt-6.1-terra / low; 18 cases × two groups = 36 answers, one answer per case and group. The E1 rows count primary behavioral passes after offline adjudication: all five axes (diagnosis, contract scope, discriminating witness, remedy and verification honesty) must pass, with no missed expected issue or established false claim.
A concrete difference — BV5-23: the contract requires an integer for a numeric string. The skill answer identified a 309-digit input that becomes Infinity and a protection gap in the two supplied tests. The checklist answer failed the required mutant-comparison axis; it was not penalized retrospectively for missing this newly supported observation.
A correction — BV5-24: we initially rejected the checklist answer, then accepted its behaviorally equivalent assertion-failure witness. The original judgments and revisions remain available. One paired advantage in reused development cases is not general superiority.
These are starting prompts and intended deliverables, not additional benchmark wins. Supply a concrete scope and review the evidence before acting.
| Skill | A useful first task |
|---|---|
$brooks-review |
Review this diff against its contract; show a minimal input that distinguishes a defect from protected behavior. |
$brooks-audit |
Trace this |