tech-debt
它能做什么
这项技能审查代码库中的技术债务,并根据其重要程度进行排序。适合需要决定先重构哪些部分的工程负责人。
适用场景
- ✓当你想知道代码库中哪些部分正在拖慢团队速度时。
- ✓当你需要一份与功能开发并行推进的、按优先级排列的重构计划时。
- ✓当依赖项、测试或部署流程带来的麻烦越来越多的时候。
技能链接
https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/tech-debt/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审查我们代码库的技术债务,并给我一份按优先级排列的清单,我可以带到规划会议上讨论。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把债务分为代码、架构、测试、依赖、文档和基础设施等类型。它会根据影响、风险和投入为每一项打分,然后制定分阶段的修复计划。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Tech Debt Management
Systematically identify, categorize, and prioritize technical debt.
Categories
| Type | Examples | Risk |
|---|---|---|
| Code debt | Duplicated logic, poor abstractions, magic numbers | Bugs, slow development |
| Architecture debt | Monolith that should be split, wrong data store | Scaling limits |
| Test debt | Low coverage, flaky tests, missing integration tests | Regressions ship |
| Dependency debt | Outdated libraries, unmaintained dependencies | Security vulns |
| Documentation debt | Missing runbooks, outdated READMEs, tribal knowledge | Onboarding pain |
| Infrastructure debt | Manual deploys, no monitoring, no IaC | Incidents, slow recovery |
Prioritization Framework
Score each item on:
- Impact: How much does it slow the team down? (1-5)
- Risk: What happens if we don't fix it? (1-5)
- Effort: How hard is the fix? (1-5, inverted — lower effort = higher priority)
Priority = (Impact + Risk) x (6 - Effort)
Output
Produce a prioritized list with estimated effort, business justification for each item, and a phased remediation plan that can be done alongside feature work.
常见问题
问题是如何排序的?
每一项都会根据影响、风险和投入打分,综合得分决定其优先级。
涵盖哪些类型的债务?
代码、架构、测试、依赖、文档和基础设施方面的债务。
这个计划能与新功能开发同时进行吗?
可以。该计划就是为了与功能开发并行完成而设计的。
详情
作者的原始描述
Identify, categorize, and prioritize technical debt. Trigger with "tech debt", "technical debt audit", "what should we refactor", "code health", or when the user asks about code quality, refactoring priorities, or maintenance backlog.
repo: TencentCloud/Octop
热度
- GitHub 星标
- 11k
- 排名
- #11650
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
polite-greeting
11k帮你的智能体用简短、友好且礼貌的问候开启对话,然后迅速进入你需要的事情。
medical-source-failover
11k帮你的智能体在主要来源被屏蔽、速度缓慢或难以阅读时,查找可信的中国医学指南、药品信息和公共卫生文件。
cowork-plugin-customizer
11k帮你的智能体通过替换占位符、调整技能和设置,使现有的 Claude 插件适配某个组织的工具和工作流程。
create-cowork-plugin
11k帮你的智能体通过引导式问答,从零开始构建一个新的 Claude 插件,涵盖技能、智能体、钩子以及可直接安装的插件包。