用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mikailustuner/OmniRule --skill technical-debt命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | technical-debt |
| description | Technical Debt: Identification, prioritization, payoff strategy, prevention. |
| triggers | {"keywords":["refactor","technical debt","cleanup","legacy","TODO","FIXME","complexity","coupling"]} |
| auto_load_when | Addressing technical debt or refactoring |
| agent | architect |
| tools | ["Read","Write","Bash"] |
Focus: Managing, prioritizing, reducing debt over time
Debt types:
├── Code debt (poor code quality)
├── Architecture debt (bad structure)
├── Test debt (low coverage)
├── Documentation debt (missing docs)
├── Infrastructure debt (outdated ops)
Origin:
├── Shortcuts for speed
├── Missing knowledge
├── Time pressure
└── Abandoned experiments
Signs of debt:
├── Feature development slows
├── Bugs increase
├── Onboarding time grows
├── Tests are flaky
├── Fear to change code
└── CircleCI takes forever
Tools:
├── Code coverage
├── Complexity metrics
├── Code review patterns
└── Team retrospective
Factors to consider:
├── Impact on development speed
├── Risk level
├── Effort to fix
├── Dependencies
└── Business value
Prioritize:
├── High impact, low effort first
├── Critical paths over edge cases
└── Infrastructure before features
Strategies:
├── Dedicated "debt Friday"
├── Include in estimates
├── Boy scout rule (leave better)
├── Rewrite vs refactor
└── Feature work includes cleanup
Better: Prevent than fix
Metrics:
├── Cyclomatic complexity
├── Coupling (imports)
├── Test coverage %
├── Time to run tests
├── Build times
Track over time to see trends
To stakeholders:
├── Show impact on velocity
├── Estimate slowdown %
├── Link to bugs/delays
└── Propose investment
Not: "Code is bad, we should fix"
Yes: "Cleanup gives 20% velocity boost"
Prevent debt:
├── Code standards + linter
├── Pull request reviews
├── Test requirements (80%+)
├── Architecture review
├── Pair programming
└── Technical spikes before stories
(End of file - 77 lines)
❌ "We'll fix it later" with no ticket created
✅ Log all debt immediately with TODO + ticket reference
❌ Paying all debt in one big refactor sprint
✅ Boy Scout Rule — leave code cleaner than you found it
❌ Ignoring debt until it causes an outage
✅ Track debt metric (complexity, coverage) in CI
❌ Rewriting everything instead of targeted refactors
✅ Strangler Fig: replace incrementally, keep working at all times
❌ Debt that no one owns
✅ Each debt item has an assigned owner and deadline
| Debt type | Detection | Remedy |
|---|---|---|
| Design debt | Arch review, complexity score | Targeted refactor |
| Code debt | High cyclomatic complexity | Extract + simplify |
| Test debt | Low coverage, flaky tests | Add tests before feature |
| Dependency debt | Outdated/vulnerable packages | Dependency sentinel |
| Documentation debt | No README, stale docs | docs-agent |
| Performance debt | CWV regressions | Perf audit + fix |