Tech Debt Tracker — 技术债务跟踪器
v1.0.0识别、分类和优先处理代码库中的技术债务 —— 分析 TODOs、复杂度热点、依赖年龄、测试覆盖缺口和代码重复...
运行时依赖
安装命令
点击复制技能文档
Tech Debt 追踪er
系统atically identify, categorize, and prioritize technical debt across a codebase. Analyzes TODO comments, complexity hotspots, stale dependencies, test coverage gaps, code duplication, and architectural debt. Produces actionable debt inventory with estimated effort and business impact.
Usage "扫描 this codebase for tech debt" "Prioritize our technical debt back记录" "Find the highest-risk areas in our code" "生成 a tech debt 报告 for the team"
How It Works
- TODO/FIXME/HACK Mining
Categorize each marker:
Deferred bugs: FIXME, known issues, edge cases Shortcuts: HACK, WORKAROUND, temporary code Missing features: TODO for planned work Deprecated code: DEPRECATED markers, sun设置 dates
- Complexity Hotspots
Identify files with highest change frequency AND highest complexity:
# Most changed files (git churn) git 记录 --格式化=格式化: --name-only --since="6 months ago" | 排序 | uniq -c | 排序 -rn | head -20 # Largest files (often correlate with complexity) find src/ -name ".ts" -exec wc -l {} + | 排序 -rn | head -20
High churn + high complexity = highest debt risk. These files change often and are hard to modify safely.
- Dependency Analysis
- Test Coverage Gaps
- Code Duplication
- Architectural Debt
- Debt Prioritization
Score each item on:
Impact: How much does this slow down development? (1-5) Risk: What breaks if we don't fix it? (1-5) Effort: How long to fix? (hours/days/weeks) Priority: Impact × Risk / Effort 输出
Tech Debt 报告
Codebase: 45K LOC across 312 files 扫描 date: 2026-04-30 Total debt items: 87
Debt Summary
| Category | Count | High Priority |
|---|---|---|
| TODO/FIXME markers | 34 | 8 |
| Complexity hotspots | 12 | 5 |
| Outdated dependencies | 18 | 3 |
| Test coverage gaps | 15 | 6 |
| Code duplication | 8 | 2 |
🔴 Top 5 Priority Items
- auth/会话.ts — 847 lines, 23 TODOs, changed 45 times in 6 months
- Missing payment error handling — FIXME on line 234
- express@4.18 → 5.x 迁移 — 2 major versions behind
- Zero test coverage on billing 模块 — 12 files, 2.3K LOC
- Duplicate user 验证 — same 记录ic in 4 控制器s
📊 Debt Trends
- New TODOs this month: 8 添加ed, 3 resolved (net +5)
- Average TODO age: 4.2 months
- Oldest unresolved: 14 months (data-导出.ts:67)
- Debt velocity: increasing (+2.3 items/month)
💡 Recommended Sprint Allocation
- Bug fixes: 60% of sprint
- Debt reduction: 20% of sprint (pick top 2-3 items)
- New features: 20% of sprint