| name | techdebt |
| description | Scan codebase for tech debt: duplicated logic, dead code, magic numbers. Use at end of session before final commit for a broad codebase sweep. NOT for reviewing only recently changed code (use /simplify).
|
| auto-activate | false |
| model | opus |
| allowed-tools | ["Read","Grep","Glob","Edit","Bash(*)"] |
Scan recently changed files (git diff --name-only HEAD~5) for:
- Duplicated logic — consolidate into shared utility
- Dead code — unused imports/exports/functions (grep to verify before removing)
- Magic numbers/strings — extract to named constants
- Nested conditionals >3 levels — refactor with early returns
- TODO/FIXME — list but don't auto-fix without asking
For each finding: file:line, category, description, proposed fix
Ask before applying fixes that touch >3 files.
After fixes: run the project's type checker or linter to confirm no regressions.