Technical Debt Audit
- Find explicit debt markers:
grep -rn "TODO\|FIXME\|HACK\|XXX\|TEMP\|DEPRECATED" src/ --include="*.ts" --include="*.js" | grep -v node_modules
- Find implicit debt:
- Files with cyclomatic complexity > 15
- Files > 500 lines
- Functions > 60 lines
- Test coverage < 40%
- Dependencies significantly outdated (major version behind)
- Inconsistent patterns (multiple ways of doing the same thing)
- Check for known anti-patterns:
# God objects / huge files
find src/ -name "*.ts" | xargs wc -l | sort -rn | head -10
# Any files
grep -rn ": any" src/ --include="*.ts" | wc -l
- Score each debt item:
- Impact (1-5): How much does this slow down development?
- Effort (1-5): How hard to fix?
- Risk (1-5): How likely to cause bugs?
- Output a prioritized backlog (high impact × high risk, low effort first):
| # | Issue | File | Impact | Risk | Effort | Priority |
|---|-------|------|--------|------|--------|----------|
| 1 | ... | ... | 5 | 4 | 2 | URGENT |
Use this skill with your AI agent:
Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.