跳到正文
Skillpedia
通用编程11k · #11650

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能