Check npm and GitHub Releases for published versions. See installation choices.

Claude Code · Codex · Gemini plugin

AI code reviews grounded in twelve classic engineering books

Six Agent Skills guide evidence-based review, architecture, debt and test analysis. Health computes a dashboard from a finding ledger; sweep applies authorized changes within bounded repair rounds. Model conclusions still require review.

“The bearing of a child takes nine months, no matter how many women are assigned.” — Frederick Brooks, The Mythical Man-Month (1975)
#2 JavaScript Repository of the Day | Trendshift
Your code → 12 classics → 12 decay risks → cited findings

Historical demonstration / 历史演示:the score is illustrative, not current benchmark evidence.

Historical demo; scores and output are illustrative, not the current scoring specification
12classic books
12decay risks (R1–R6 · T1–T6)
6focused skills / 专项技能
6independent skills

Not a linter. A second opinion from the canon.

Linters catch syntax. brooks-lint catches architectural drift, knowledge silos, and domain distortion — the slow problems that cost teams months.

⚖️

The Iron Law

Required finding format: Symptom → Source → Consequence → Remedy. This is a reporting obligation, not a guarantee of model accuracy. 报告须遵循此格式,但格式不保证诊断正确。

📚

Cited to the books

Brooks, Fowler, Martin, Ousterhout, Evans, Feathers, Meszaros and more — each finding names the author and principle.

🎯

Code quality and contract verification

PR Review, Architecture Audit, Tech Debt, Test Quality, Health Dashboard, and Full Sweep. The separate Verify skill checks supported Python, Bash, Go, Java and JavaScript contracts with Lean 4.

🔌

Zero config, any language

Works in Claude Code, Codex CLI, and Gemini CLI. No plugins to wire up, no language limits.

The Six Production Decay Risks

Synthesized from the twelve books. Six more (T1–T6) cover test-suite decay.

R1

🧠 Cognitive Overload

How much mental effort does it take to understand this?

Code Complete · Refactoring · DDD · Philosophy of SD
R2

🔗 Change Propagation

How many unrelated things break on one change?

Refactoring · Clean Architecture · Pragmatic · SE@Google
R3

📋 Knowledge Duplication

Is the same decision expressed in multiple places?

Pragmatic · Refactoring · DDD
R4

🌀 Accidental Complexity

Is the code more complex than the problem itself?

Refactoring · Code Complete · Brooks · Philosophy of SD
R5

🏗️ Dependency Disorder

Do dependencies flow in a consistent direction?

Clean Architecture · Brooks · Pragmatic · SE@Google
R6

🗺️ Domain Model Distortion

Does the code faithfully represent the domain?

DDD · Refactoring

Reports follow evidence / 报告以证据为准

A finding states the symptom, source principle, concrete consequence and scoped remedy. A book citation supplies a diagnostic lens, not proof that a defect exists. Unknown obligations stay explicit; a healthy score is not a safety certificate.

每条发现说明症状、原则来源、具体后果和修复范围。书籍引用不等于缺陷证据;未知条件须明确保留,健康分不代表安全认证。

Health derives scores from one ledger. Delivery checks bind the supplied report bytes, not a model's diagnosis or later display. Sweep uses authorized edits and bounded repair rounds, reporting unresolved work at its stop boundary.

Historical examples · Current ledger contract

Evidence and limits / 评测与边界

Offline checks validate installation, report parsing and deterministic score arithmetic. They do not establish the truth of a model diagnosis.

离线检查验证安装、报告解析和确定性评分,不证明模型诊断正确。

Focused comparisonGeneric checklistSkill guidance
Review6/66/6
Audit6/66/6
Test5/66/6

These are primary behavioral passes from one gpt-6.1-terra / low response per case and arm, after offline adjudication. Six reused development-authored families, static supplied instructions and non-independent grading limit the conclusion: one paired advantage is not general superiority.

以上为离线复核后的主要行为指标;每案例每组一次回答。案例由开发过程复用,采用静态指导和非独立评分,不能据此宣称全面优于通用清单。

Archived answers, adjudication and limitations · Current evaluation guide

Standing on twelve giants

The decay risks are our synthesis of their ideas, applied to modern code quality.

The Mythical Man-Month · Brooks Code Complete · McConnell Refactoring · Fowler Clean Architecture · Martin The Pragmatic Programmer · Hunt & Thomas Domain-Driven Design · Evans A Philosophy of Software Design · Ousterhout Software Engineering at Google · Winters et al. The Art of Unit Testing · Osherove How Google Tests Software · Whittaker et al. Working Effectively with Legacy Code · Feathers xUnit Test Patterns · Meszaros

Maintainer verification currently covers Codex. Other integrations remain available with historical or community evidence; installer checks do not establish live compatibility in every host. npm installs the published release; source installs follow main.

Get started in seconds

Pick your tool. Then just ask it to review your code, audit your architecture, or assess tech debt.

Claude Code
# add the marketplace, then install /plugin marketplace add hyhmrright/brooks-lint /plugin install brooks-lint@brooks-lint-marketplace
Gemini CLI
/extensions install https://github.com/hyhmrright/brooks-lint
Codex CLI
# just say this in a Codex session Install the brooks-lint skill from hyhmrright/brooks-lint
Other coding agents — Agent Skills
curl -fsSL https://raw.githubusercontent.com/hyhmrright/brooks-lint/main/scripts/install.sh | bash -s -- agents

Install with Node.js 20+ and npm: 13 coding tools plus the generic agents target. Add --project for this repository, or use install --list to list targets. Tests verify skill installation, not runtime behavior in every host.

npx brooks-lint install agents
Codex: use $brooks-review. Other hosts use their own invocation syntax. Codex 使用 $;其他宿主按各自语法调用。
$brooks-review # $brooks-audit · $brooks-debt · $brooks-test · $brooks-health · $brooks-sweep
Star on GitHub ⭐