代码审查工具 是 AI Skill Hub 本期精选AI工具之一。综合评分 8.5 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
基于12本经典工程书籍的AI代码审查,诊断代码腐烂风险
代码审查工具 是一款基于 JavaScript 开发的开源工具,专注于 ai-code-review、architecture-review、auto-fix 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
基于12本经典工程书籍的AI代码审查,诊断代码腐烂风险
代码审查工具 是一款基于 JavaScript 开发的开源工具,专注于 ai-code-review、architecture-review、auto-fix 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g brooks-lint # 方式二:npx 直接运行(无需安装) npx brooks-lint --help # 方式三:项目依赖安装 npm install brooks-lint # 方式四:从源码运行 git clone https://github.com/hyhmrright/brooks-lint cd brooks-lint npm install npm start
# 命令行使用
brooks-lint --help
# 基本用法
brooks-lint [options] <input>
# Node.js 代码中使用
const brooks_lint = require('brooks-lint');
const result = await brooks_lint.run(options);
console.log(result);
# brooks-lint 配置说明 # 查看配置选项 brooks-lint --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export BROOKS_LINT_CONFIG="/path/to/config.yml"
<p align="center"> <img src="assets/logo.svg" alt="brooks-lint" width="200"> </p>
<p align="center"> <strong>AI code reviews grounded in twelve classic engineering books.<br> Consistent. Traceable. Actionable.</strong> </p>
<p align="center"> <strong>English</strong> · <a href="README.zh-CN.md">简体中文</a> </p>
<p align="center"> <a href="#the-six-decay-risks">The Six Decay Risks</a> • <a href="#what-it-looks-like">What It Looks Like</a> • <a href="#benchmark">Benchmark</a> • <a href="#installation">Installation</a> </p>
<p align="center"> <img src="https://img.shields.io/badge/version-1.3.0-blue.svg" alt="Version"> <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="MIT License"> <img src="https://img.shields.io/badge/Claude_Code-Plugin-blueviolet.svg" alt="Claude Code Plugin"> <img src="https://img.shields.io/badge/Codex_CLI-Skill-orange.svg" alt="Codex CLI Skill"> <img src="https://img.shields.io/github/stars/hyhmrright/brooks-lint?style=social" alt="GitHub Stars"> </p>
<p align="center"> <a href="https://hyhmrright.github.io/brooks-lint/"><img src="assets/demo.gif" alt="brooks-lint reviewing code: a /brooks-review command produces a 28/100 health score and cited Symptom → Source → Consequence → Remedy findings" width="820"></a> </p>
<p align="center"> <strong><a href="https://hyhmrright.github.io/brooks-lint/">→ Visit the website</a></strong> </p>
---
"The bearing of a child takes nine months, no matter how many women are assigned." — Frederick Brooks, The Mythical Man-Month (1975)
50 years later, Brooks was still right — and so were McConnell, Fowler, Martin, Hunt & Thomas, Evans, Ousterhout, Winters, Meszaros, Osherove, Feathers, and the Google Testing team.
Most code quality tools count lines and cyclomatic complexity. brooks-lint goes deeper — it diagnoses your code against six decay risk dimensions synthesized from twelve classic engineering books, producing structured findings with book citations, severity labels, and concrete remedies every time.
For the full source-to-skill mapping, including exceptions and false-positive guards, see skills/_shared/source-coverage.md.
In Mode 2 (Architecture Audit), brooks-lint generates a Mermaid dependency graph at the top of the report. Modules are color-coded by severity: red = Critical findings, yellow = Warning, green = clean.
The graph renders natively in GitHub, Notion, and other Markdown environments — no extra tools needed.
The Full Gallery has real brooks-lint output across Python, TypeScript, Go, and Java — including PR reviews, architecture audits with Mermaid dependency graphs, tech debt assessments, and test quality reviews.
New to the decay risks? The Decay Risk Field Guide explains all six — diagnostic question, signature symptoms, source books, and remedy for each.
---
Place a .brooks-lint.yaml in your project root to customize review behavior:
version: 1
disable:
- T5 # skip coverage metrics check — we don't enforce coverage
severity:
R1: suggestion # downgrade Cognitive Overload findings for this domain
ignore:
- "**/*.generated.*"
- "**/vendor/**"
Copy .brooks-lint.example.yaml as a starting point. All settings are optional — omit the file entirely for default behavior.
| Setting | Description |
|---|---|
disable | Risk codes to skip (R1–R6, T1–T6) |
severity | Override severity tier (critical / warning / suggestion) |
ignore | Glob patterns for files to exclude |
focus | Evaluate only these risk codes (cannot combine with disable) |
---
Automate brooks-lint on every PR using the GitHub Action:
```yaml
name: Brooks-Lint PR Review on: pull_request: types: [opened, synchronize, reopened]
jobs: brooks-lint: runs-on: ubuntu-latest permissions: pull-requests: write steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: hyhmrright/brooks-lint/.github/actions/brooks-lint@main with: mode: review anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} fail-below: 70 ```
See docs/github-action-example.yml for the full template.
The action posts the review as a PR comment and optionally fails the check if the Health Score drops below a threshold. If .brooks-lint-history.json is committed to your repo, the comment also includes a trend delta (e.g., "85 → 82 (−3) over last 3 runs").
Cost: ~$0.05–0.15 per PR run depending on diff size and model. Recommend running on pull_request events only.
| brooks-lint | ESLint / Pylint | GitHub Copilot Review | Plain Claude | |
|---|---|---|---|---|
| Detects syntax & style issues | — | ✅ | ✅ | ~ |
| Structured diagnosis chain | ✅ | ❌ | ❌ | ❌ |
| Traces findings to classic books | ✅ | ❌ | ❌ | ❌ |
| Consistent severity labels | ✅ | ✅ | ~ | ❌ |
| Architecture-level insights | ✅ | ❌ | ~ | ~ |
| Domain model analysis | ✅ | ❌ | ❌ | ~ |
| Zero config, no plugins to install | ✅ | ❌ | ✅ | ✅ |
| Works with any language | ✅ | ❌ | ✅ | ✅ |
~ = occasionally / inconsistently
brooks-lint doesn't replace your linter. It catches what linters can't: architectural drift, knowledge silos, and domain model distortion — the problems that slow teams down for months before anyone notices.
高质量的AI代码审查工具,基于经典工程书籍
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,代码审查工具 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | brooks-lint |
| Topics | ai-code-reviewarchitecture-reviewauto-fix |
| GitHub | https://github.com/hyhmrright/brooks-lint |
| License | MIT |
| 语言 | JavaScript |
收录时间:2026-06-01 · 更新时间:2026-06-01 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。