Jorge Turbica / blog · Blog ← All articles ES · Leer en español
AI

Skill of the day: brooks-lint, code review from 12 classic books, failures included

Six review, debt and test skills grounded in 12 classic books. Version 2.0.0 changes contracts and shows where it loses to a plain checklist.

In its own results table, brooks-lint 2.0.0 admits that one of its six skills does worse than a generic checklist: brooks-health drops from 15 to 10 passing answers out of 18. A skill pack that publishes its regressions next to its wins is rare, and that alone makes it worth a look. The release landed on npm on 17 November 2026, under the MIT license, with 1,586 stars on GitHub.

What it does: six review workflows, one vocabulary

brooks-lint is not a static analyzer. It is a set of six Agent Skills that give your agent a review process and a report format; the model does the diagnosis. They all share a _shared folder defining twelve risks: six for production code (from R1, cognitive overload, to R6, domain model distortion) and six for tests (from T1, test obscurity, to T6, architecture mismatch). The framework draws on twelve classic books, from The Mythical Man-Month to xUnit Test Patterns, by way of Refactoring, A Philosophy of Software Design and Working Effectively with Legacy Code.

SkillUse it forEdits files?
brooks-reviewReviewing a diff or a specific fileNo
brooks-auditModule dependencies and boundariesNo
brooks-debtRanked tech debt and a repayment planNo
brooks-testWhich failures your tests catch (and miss)No
brooks-healthA four-dimension summary dashboardNo
brooks-sweepDiagnose and apply scoped fixesYes

brooks-review kicks in when you ask for a code or PR review, share a diff, or ask whether something is "ready to merge". It reads the shared files and its review guide, walks the six risks in order, runs a quick test check and applies its "Iron Law": no fix suggestions until the diagnosis is done, and every finding written as Symptom → Source → Consequence → Remedy. The report ends with a 0–100 score that the README itself calls a summary of findings, "not a probability of correctness".

What changes in 2.0.0

The major bump is about contracts, not features, and the migration guide spells it out:

  • An empty diff no longer scores 0: it returns an empty score and skipped=true. If your pipeline reads the score, check skipped first.
  • The GitHub Action only accepts review mode; the other five modes are for interactive agents.
  • In brooks-health, a dimension without enough evidence is marked unassessed and no composite score is emitted, instead of scoring 100.
  • In brooks-sweep, the round limit now counts every round, Critical-only ones included: three in total by default.

Installing it in Claude Code

The installer copies the six skills plus _shared into each agent's skills folder. With Node.js 20 or later:

bash
# Global, into ~/.claude/skills
npx brooks-lint@latest install claude
# Current project only
npx brooks-lint@latest install claude --project

The Claude Code plugin route is still there too: /plugin marketplace add hyhmrright/brooks-lint followed by /plugin install brooks-lint@brooks-lint-marketplace. Then just ask the agent to review the current diff or a file.

Risks and limits

The main caveat is compatibility: the maintainer currently verifies only the Codex integration. Claude Code, Cursor, Copilot and the ten other targets are still supported by the installer, but the README concedes that its layout tests are not end-to-end tests and that the Claude Code path "is not currently maintainer-tested".

The rest, in order of importance:

  • Execution and edits: the five diagnostic skills never change files. brooks-sweep does edit and runs whatever checks are available; it reuses the authorization you have already granted, so scope it tightly first.
  • Node: brooks-health uses bundled Node tools to compute and finalize the report when the agent can run commands. When it can't, the guide requires it to say so rather than fake the result.
  • Network and credentials: the skills ask for no keys. The GitHub Action does: it calls an Anthropic-compatible API with an ANTHROPIC_API_KEY secret, reviews the diff only, and is also outside the maintainer's current live verification.
  • The curl | bash installer clones the repo into a temp directory and copies files into your $HOME; npx or a hand-reviewed clone is easier to audit.

On the benchmark: in the run with gpt-6.1-terra, brooks-review ties the checklist (6 of 6 both ways) and brooks-test gains one answer (5 to 6). In a separate run, brooks-sweep goes from 15 to 18 out of 18 while brooks-health falls from 15 to 10. The authors themselves warn that these are development cases with non-independent grading and that the rows must not be added up into an overall accuracy. Read that way, the review skill doesn't find more bugs than a good checklist; what it adds is a fixed report structure and a shared vocabulary.

brooks-review vs Matt Pocock's code-review

The closest alternative on skills.sh is code-review, from Matt Pocock's skills repo. Both tackle the same job from different angles:

brooks-reviewcode-review (mattpocock/skills)
Looks atTwelve maintainability and test risksRepo standards and the issue's spec
HowOne guided pass, report and 0–100 scoreTwo parallel subagents, no score
Built-in baselineTwelve books, risks R1–R6 and T1–T6Twelve Fowler code smells
RequiresNode 20 to installIssue tracker setup
LicenseMITMIT

If your team writes solid issues and keeps a living CONTRIBUTING.md, code-review checks something brooks-lint doesn't: whether the code does what was asked. If you want to surface debt and complexity in a consistent format you can compare across PRs and export to SARIF from the Action, brooks-lint is the better fit. Both are read-only in review mode, so running them side by side on the same diff is cheap.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗