brooks-review
它能做什么
这个工具可以帮你审查软件项目的代码。它会查找那些可能导致代码日后难以维护的问题,例如“腐化风险”和“设计坏味道”。它会解释问题本身、问题来源、影响,以及修复方法,内容参考了经典工程书籍。
适用场景
- ✓想审查新功能的代码时。
- ✓检查软件项目中的改动时。
- ✓把一段代码片段分享出来进行分析时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/brooks-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审查这段代码,找出可维护性和质量方面的问题。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会分析代码中是否存在常见软件工程问题的迹象。对于每个发现的问题,它都会详细说明症状、来源、后果和解决方法,并运用工程类书籍中的知识。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Brooks-Lint — PR Review
When to Use
Use this skill when you need pR code review that surfaces decay risks, design smells, and maintainability issues with concrete Symptom → Source → Consequence → Remedy findings, drawing on twelve classic engineering books. Triggers when: user asks to review code, check a PR, shares a diff or pastes code asking...
Setup
- Read
../_shared/common.mdfor the Iron Law, Project Config, Report Template, and Health Score rules - Read
../_shared/source-coverage.mdfor book-level coverage, exceptions, and tradeoffs - Read
../_shared/decay-risks.mdfor symptom definitions and source attributions - Read
pr-review-guide.mdin this directory for the analysis process
Process
If the user has not specified files or pasted code: apply Auto Scope Detection
from ../_shared/common.md to determine the review scope before proceeding.
- Understand the review scope, then scan for each decay risk in the order specified (Steps 1–6 of the guide)
- Run the Quick Test Check (Step 7 of the guide) — skip for docs-only or non-production changes
- Apply the Iron Law to every finding
- Output using the Report Template from common.md
Mode line in report: PR Review
Example
User request:
Use @brooks-review for this task: PR code review that surfaces decay risks, design smells, and maintainability issues with concrete Symptom → Source → Consequence → Remedy findings, drawing on twelve classic engineering books.
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
常见问题
什么是“腐化风险”和“设计坏味道”?
它们是一些迹象,表明代码将来可能难以理解、修改或修复,从而导致更多错误。
这些建议的依据是什么?
这些建议基于十二本关于软件工程与开发最佳实践的经典书籍。
“症状 → 来源 → 后果 → 解决方法”是什么意思?
这是一种结构化的问题描述方式:问题是什么(症状)、根本原因是什么(来源)、会造成什么负面影响(后果),以及如何解决(解决方法)。
详情
作者的原始描述
PR code review that surfaces decay risks, design smells, and maintainability issues with concrete Symptom → Source → Consequence → Remedy findings, drawing on twelve classic engineering books.
热度
- GitHub 星标
- 48k
- 排名
- #4062
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。