omh-tech-debt-audit
它能做什么
该技能审查代码库中积累的技术债,并排列应优先修复的事项。适合规划清理工作的开发者和团队负责人。
适用场景
- ✓当你的时间有限,想知道应先修复哪些技术债时。
- ✓当你需要一份代码清理的见效快事项清单时。
- ✓当你想查看自上次审查以来,技术债条目是否已被修复时。
技能链接
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-tech-debt-audit/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审查我们的技术债,并告诉我应先修复什么,因为我们大约有两周的清理时间。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体查看代码,引用具体的文件和行,并按严重程度和修复成本对问题排序。再次运行时,它会把每个条目标记为已解决、新增或仍未解决。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Tech Debt Audit
This is an OMH tech-debt-audit workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
tech-debt-audit exists so accumulated debt becomes a ranked, reconcilable ledger instead of a one-off complaint: findings cite file:line, severity and effort make the trade-off explicit, quick wins are separated from big fixes, and reruns mark what was resolved instead of rediscovering it.
Do Not Use When
- The target is one diff, PR, or claim rather than the codebase's accumulated state; use
omh-code-review. - The user wants the debt removed now, behavior preserved; use
omh-ai-slop-cleanerfor deletion-first cleanup. - A boundary-changing fix from the ledger needs its execution shaped into phases; use
omh-refactor-plan. - The question is release risk for a specific deploy rather than source quality; use
omh-production-audit.
Examples
Good example:
- Prompt: Audit our tech debt and tell me what to fix first - we have maybe two weeks of cleanup budget.
- Expected behavior: Orientation from manifests and churn, dimension-by-dimension findings with file:line citations, the severity-by-effort ledger with top fixes and quick wins sized to the budget, and the looks-bad-but-fine list.
- Why: A budgeted what-to-fix-first question is exactly the ranked ledger this workflow produces.
Bad example:
- Prompt: This module is a mess, rewrite it properly.
- Expected behavior: Refuse the rewrite framing: audit the module into ledger findings with bounded fixes, or route a decided restructure to
refactor-plan. - Why: A rewrite recommendation is the failure mode the ledger exists to replace with bounded, ranked fixes.
Completion Checklist
- Orientation evidence is observed: manifests, churn ranking, and largest files are named, not assumed.
- Every finding has id, dimension, file:line, severity, effort, and a bounded recommendation.
- Quick wins and top fixes are ranked, and the looks-bad-but-is-actually-fine section is present.
- On rerun, every prior finding is reconciled RESOLVED, CARRIED, or superseded - none silently dropped.
Recovery Notes
- If the stack is unrecognized, orient from the manifests first and say which dimensions lack detection commands rather than guessing.
- If a finding cannot be cited to file:line, demote it to an open question and keep it out of the ranked table.
- If the previous ledger's ids no longer match the tree, map them by dimension plus path before declaring anything RESOLVED.
When to Use
Use when the codebase's accumulated debt should be measured and ranked as a ledger - findings with file:line, severity, and effort, quick wins separated from big fixes - rather than judged as a diff or cleaned up on the spot.
Strong routing signals: `tech-debt-audit`, `tech debt`, `tech debt audit`, `technical debt`, `technical debt audit`, `tech debt ledger`, `debt ledger`, `audit our tech debt`, `tech debt report`, `code debt audit`, `where is our tech debt`, `improve the codebase architecture`, `improve the architecture of this repo`, `deepening opportunities in this codebase`, `shallow modules in this codebase`, `기술부채`, `기술 부채`, `기술부채 감사`, `기술부채 감사해줘`, `기술부채 점검`, `기술부채 장부`, `부채 원장`, `코드베이스 아키텍처 개선해줘`, `코드 아키텍처 개선해줘`, `техдолг`, `технический долг`, `аудит техдолга`, `аудит технического долга`
Catalog Metadata
Category: maintenance
Phase: tech-debt-audit
Quality tier: finding-evidence-gated
Reasoning demand: heavy
Quality bar:
- Orient before auditing: read the manifests, rank churn from the git log, and name the largest and most-changed files - observed evidence, never memory of the tree.
- Audit dimension by dimension from the named list - architectural decay, consistency rot, type and contract gaps, test debt, dependency and configuration debt, performance and resource debt, error-handling and observability debt, security hygiene, documentation drift; the full contract is
omh-tech-debt-audit/references/debt-dimensions.md. - Every finding row carries a stable id, its dimension, a file:line citation, a severity, an effort class (S/M/L), and a bounded recommendation - never a rewrite.
- Close with the mandatory looks-bad-but-is-actually-fine section: deliberate patterns that pattern-match to debt stay off the ledger, with the reason recorded.
- For an architecture-improvement or deepening request, load
omh-tech-debt-audit/references/architecture-deepening.md: candidates are arch
常见问题
它会替我修复技术债吗?
不会。它只对工作进行排序并列出见效快的事项,任何改动都是单独的步骤。
它会审查单个拉取请求吗?
不会。对于单次改动,代码审查技能更合适。
它和重构计划是一回事吗?
不是。重构计划处理一次边界调整,而这个技能是对整个代码库进行排序。
详情
作者的原始描述
[omh] Accumulated tech debt or architecture deepening to rank: build the severity-by-effort debt ledger from observed repo evidence - orient, audit the named dimensions with file:line citations, rank fixes and quick wins - and reconcile RESOLVED/NEW/CARRIED on rerun. Use when the user says: tech-debt-audit, tech debt, tech debt audit, technical debt, technical debt audit, tech debt ledger, debt ledger, audit our tech debt.
repo: rlaope/oh-my-hermes
热度
- GitHub 星标
- 5.1k
- 排名
- #15171
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
omh-accessibility-audit
5.1k帮你的智能体检查某个界面或流程是否存在无障碍问题,例如键盘使用、屏幕阅读器标签、对比度和触控目标大小。
omh-adversarial-consensus
5.1k在你做出决定之前,帮你的智能体从几个独立角度质疑一个技术方案,然后总结哪些观点经得起推敲。
omh-agent-debug
5.1k帮你的智能体找出另一个 AI 智能体为何卡住、陷入循环或偏离任务,并提出最小且安全的恢复方法。
omh-agent-instructions
5.1k帮你的智能体编写或更新指令文件,例如 AGENTS.md 或 CLAUDE.md,告诉 AI 工具如何在项目中工作。