Tech Debt Scanner
Use this skill to identify areas of the codebase that need refactoring or attention.
Usage
"Run the techdebt skill on [directory]" or simply "Check for tech debt".
Steps
- •
Search for TODO/FIXME comments:
- •Use
grep_searchto find "TODO", "FIXME", "HACK", "XXX" tags. - •Summarize the count and location of these tags.
- •Use
- •
Identify Large Files:
- •Use
findorls(viarun_command) to identify files larger than 500 lines (or reasonable limit for the language). - •Example:
find . -type f -name "*.py" -exec wc -l {} + | sort -n | tail -10
- •Use
- •
Check for Duplication (Heuristic):
- •If available, use tools like
cpdor explicitgrepfor repeated block structures if suspected. - •Otherwise, rely on Agent observation during navigation: "Note any observed duplicate logic".
- •If available, use tools like
- •
Review
CLAUDE.md/GEMINI.mdviolations:- •Check if the code follows the patterns defined in
agent/STANDARDS.md.
- •Check if the code follows the patterns defined in
- •
Report:
- •Generate a markdown report listing the findings.
- •Propose a plan to address the most critical items.