Purpose
brooks-lint is an AI code review tool provided as a Claude Code plugin (Agent Skills). It is not satisfied with counting lines of code and cyclomatic complexity; instead, based on the corruption risk dimensions distilled from twelve classic software engineering books, it performs a deeper diagnosis of code and outputs structured findings, each with book citations, severity labels, and specific remediation suggestions.
Main Capabilities
- Twelve-book foundation: The tool's philosophy is derived from twelve classic engineering works, including Frederick Brooks' The Mythical Man-Month, McConnell's Code Complete, Fowler's Refactoring, Hunt & Thomas' The Pragmatic Programmer, Evans' Domain-Driven Design, Ousterhout's A Philosophy of Software Design, Winters et al.'s Software Engineering at Google, Meszaros' xUnit Test Patterns, Osherove's The Art of Unit Testing, Feathers' Working Effectively with Legacy Code, and related works from Google's testing team.
- Six production code corruption risks + six test suite corruption risks: The tool synthesizes six production code corruption risks and six test suite corruption risks from the above books to evaluate code across multiple dimensions.
- Structured findings: Each finding is presented in the form of "symptom → source → consequence → remedy", accompanied by book citations and a health score of 0–100.
- Six analysis modes: Provides
/brooks-review、/brooks-audit、/brooks-debt、/brooks-test、/brooks-health、/brooks-sweepsix commands, corresponding respectively to PR review, architecture audit, technical debt assessment, test quality review, health scoring, and full scan auto-fix. - Architecture audit and dependency graph: In architecture audit mode, a Mermaid dependency graph is generated at the top of the report, with modules colored by severity (red=critical, yellow=warning, green=clean), which can render natively in Markdown environments such as GitHub and Notion.
- CI/CD integration: Provides a GitHub Action that can run automatically on every PR, publish review results as PR comments, and optionally fail the check when the health score is below a threshold. Supports
fail-on-regression(reads.brooks-lint-history.jsonto implement "no new regressions"),sarif-file(makes findings display inline in the PR's Files changed tab, requiressecurity-events: writepermission), and other quality gates. - Custom API endpoint:
api-base-urlcan point the Action to any Anthropic-compatible/v1/messagesendpoint (self-hosted proxy, LLM gateway, regional mirror, etc.), rather thanapi.anthropic.com. - Reproducible benchmarks: Provides parser fidelity benchmarks (
npm run benchmark), scoring determinism verification, and a 57-scenario evaluation suite (npm run evalsandnpm run evals:live).
Usage
Claude Code (recommended): Short commands (such as /brooks-review) are installed automatically when the first session starts, and you can also manually run bash hooks/session-start. To skip marketplace installation:mkdir -p ~/.claude/skills/brooks-lint && cp -r skills/* ~/.claude/skills/brooks-lint/.
Gemini CLI / Codex CLI: Use the installer ./scripts/install.sh gemini or ./scripts/install.sh codex.
Other platforms (OpenCode, Cursor, Windsurf, Antigravity, pi, Copilot, Kiro, Factory Droid, DeepSeek Harness, IBM Bob): brooks-lint is released in the standard Agent Skills form, and any agent that loads Agent Skills can run all six modes without conversion, installable with a single command. The installer copies the skills flat into the correct folder, ensuring that the shared framework (../_shared/) can always be resolved. After installation, just ask (e.g. "review this PR", "audit the architecture"), and the matching skill will trigger automatically based on its description.
Configuration: Place in the project root .brooks-lint.yaml Review behavior is customizable and can be copied .brooks-lint.example.yaml As a starting point, all settings are optional.
CI/CD: Automate with a GitHub Action; see the full template at docs/github-action-example.yml. The cost is about $0.05–0.15 per PR run, depending on diff size and model; it is recommended to run only on pull_request events.
Use cases
- Code review for Pull Requests
- Architectural audit of a codebase, identifying architecture drift, knowledge silos, and domain model distortion
- Assessing technical debt
- Reviewing test quality
- Obtaining a codebase health score
- Full scan with automatic fixes
- Setting up quality gates and code scanning in the CI/CD process
Limitations
- The tool does not replace a linter; instead, it catches issues that linters cannot find: architecture drift, knowledge silos, and domain model distortion.
- The parser benchmark measures report parsing fidelity (whether the tool read every finding in the report), not whether a given finding is "correct."
- Strictness and evaluation suite data are single live measurements and will fluctuate slightly from run to run.
- Claude Code, Gemini CLI, and Codex CLI have been verified by the maintainers; the other ten platforms have only been verified at the file layout level according to each tool's official skill specification (the installer has been tested), and have not yet been run end-to-end by the maintainers on each platform.
- The current version is v1.4, including twelve book foundations, six production corruption risks (R1–R6) + six test corruption risks (T1–T6), six skills, a CI quality gate, SARIF output, strictness presets, and a reproducible parser fidelity benchmark.
- Licensed under the MIT License.