跳到正文
Skillpedia
通用编程48k · #4059

brooks-debt

它能做什么

这个工具可以帮你找出代码中需要维护的问题,并将其整理归类。它借鉴工程类经典书籍中的理念,帮你排定修复的优先级,方便你规划改进工作。

适用场景

  • ✓想知道代码中哪些部分需要修复时。
  • ✓计划先改进哪些地方时。
  • ✓需要一份整理代码清理工作的指南时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/brooks-debt/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/brooks-debt/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“分析我的代码,告诉我应该先修复什么,以提高可维护性。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会扫描你的代码,查找常见的维护问题,对这些问题进行分类,并按重要程度排序。它采用基于工程类书籍的方法,帮你判断应该先修复哪些问题。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Brooks-Lint — Tech Debt Assessment

When to Use

Use this skill when you need tech debt assessment that identifies, classifies, and prioritizes maintainability problems — helping teams build a refactoring roadmap — drawing on twelve classic engineering books. Triggers when: user asks about tech debt, refactoring priorities, what to clean up first, or asks "why...

Setup

  1. Read ../_shared/common.md for the Iron Law, Project Config, Report Template, and Health Score rules
  2. Read ../_shared/source-coverage.md for book-level coverage, exceptions, and tradeoffs
  3. Read ../_shared/decay-risks.md for symptom definitions and source attributions
  4. Read debt-guide.md in this directory for the debt classification framework

Process

If the user has not described the codebase or pointed to specific areas: apply Auto Scope Detection from ../_shared/common.md to determine the assessment scope before proceeding.

  1. Scan for all six decay risks (Step 1 of the guide); list every finding before scoring
  2. Apply the Pain × Spread priority formula and classify debt intent (Steps 2–3 of the guide)
  3. Group findings by decay risk (Step 4 of the guide)
  4. Output using the Report Template from common.md, plus the Debt Summary Table

Mode line in report: Tech Debt Assessment

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.
常见问题

什么是“技术债务”(tech debt)?

“技术债务”(technical debt)就像编程中走的捷径。如果不及时处理,之后就可能引发问题。它是需要修复的内容,修复后代码才能运行得更好,也更容易维护。

什么是“重构路线图”(refactoring roadmap)?

“重构路线图”是一份计划,说明你要修复代码的哪些部分,以及按什么顺序修复。它能帮你有条理地推进代码改进工作。

排序问题的规则从哪里来?

这些规则来自十二本经典工程书籍,它们讲授了开发和维护高质量软件的最佳实践。

详情

作者的原始描述

Tech debt assessment that identifies, classifies, and prioritizes maintainability problems — helping teams build a refactoring roadmap — drawing on twelve classic engineering books.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4059
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能