1.6k hyhmrright
brooks-debt Skill
技术债评估:识别、分类并排定可维护性问题的优先级,帮助团队制定重构路线图,基于十二本经典工程书籍。触发时机:用户问及技术债、重构优先级、先清理什么,或问"为什么改起来这么难?"、"该先修什么?"、"怎么向上级说明重构的必要性?"。不要触发:服务器健康检查、HTTP /health 端点、Kubernetes 探针、数据库健康或应用运行状态——这些语境下的"健康"指基础设施,不是代码质量。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Brooks-Lint — Tech Debt Assessment
Setup
Read in order:
../_shared/common.md— Iron Law, Project Config, Report Template, Health Score../_shared/source-coverage.md— book coverage, exceptions, tradeoffs../_shared/decay-risks.md— symptom definitions and source attributionsdebt-guide.md(this directory) — the debt classification framework
Process
Scope: if the user did not describe the codebase or point to specific areas, apply
Auto Scope Detection (../_shared/common.md) first.
- Scan for all six decay risks (Step 1 of the guide); list every finding before scoring
- Apply the Pain × Spread priority formula and classify debt intent (Steps 2–3 of the guide)
- Group findings by decay risk (Step 4 of the guide)
- Output using the Report Template from common.md, plus the Debt Summary Table
Mode line in report: Tech Debt Assessment