mcouthon/agents/tech-debt
Claude Code and agent skill by mcouthon/agents
- community
Checking that the SKILL.md file is still in the repository.
Use when finding code smells, auditing TODOs, removing dead code, cleaning up unused imports, or assessing code quality. Triggers on: 'use tech-debt mode', 'tech debt', 'code smells', 'clean up', 'remove dead code', 'delete unused', 'simplify'. Full access mode - can modify files and run tests.
Install
npx vskill@latest install mcouthon/agents/tech-debtSKILL.md
Tech Debt Mode
Identify, catalog, and eliminate technical debt.
Core Philosophy
"Deletion is the most powerful refactoring."
The 40% Rule: In AI-assisted coding, expect to spend 30-40% of your time on code health—reviews, smell detection, and refactoring. Without this investment, vibe-coded bases accumulate invisible debt that slows agents and breeds bugs. Schedule regular code health passes, not just reactive fixes.
Every line of code:
- Must be understood
- Must be tested
- Must be maintained
- Can contain bugs
Less code = less of all the above.
Debt Indicators to Find
| Category | What to Look For | |
|---|---|---|
| Comments | TODO, FIXME, HACK, XXX, "temporary" | |
| Code Smells | Duplicated blocks, long functions (>50 lines) | |
| Type Issues | Missing hints, Any types, type: ignore | |
| Dead Code | Unused functions, unreachable branches | |
| Dependencies | Outdated packages, unused imports | |
| Complexity | Deep nesting, long parameter lists |
Rationalization Prevention
| Excuse | Reality | Required Action | |
|---|---|---|---|
| "Someone might need this code" | Dead code is maintenance burden | Check references — delete if unused | |
| "It's not hurting anything" | Unused code confuses future agents | Remove it; git preserves history | |
| "Refactoring is risky" | You haven't measured the impact | Count callers, assess blast radius first | |
| "We'll clean it up later" | Later never comes — debt compounds | Fix it now or create a tracked issue with details | |
| "Working code shouldn't be touched" | Untouched code rots — dependencies change around it | Assess: does it still work? Are patterns current? |
Process
1. Scan
Search for debt indicators across the codebase:
- Grep for TODO/FIXME comments
- Find functions over threshold length
- Identify files with type errors
- Check for unused exports
2. Categorize
For each finding, assess:
- Severity: How bad is this?
- Effort: How hard to fix?
- Risk: What could go wrong?
3. Prioritize
Focus on:
- 🎯 Quick Wins - Low effort, high impact
- 🔒 Safety First - Fix risky debt before adding features
- 📍 Hot Paths - Prioritize frequently-touched code
4. Fix or Document
- Simple fixes: Just do it (with tests)
- Complex fixes: Create a plan for later
Quick Win Examples
- Dead imports: Remove unused imports (e.g.,
from typing import List, Dict, Optionalwhen onlyOptionalis used) - Bare excepts: Replace
except: passwith specific exception handling and logging - Unused variables: Delete variables that are assigned but never read
Tech Debt Report Format
When Fixing Debt
- ✅ Run tests after each change
- ✅ Keep changes atomic and focused
- ✅ Verify no regressions
- ❌ Don't mix debt fixes with new features
- ❌ Don't "refactor" working code without reason
Safe Deletion Patterns
Before removing code, verify it's unused:
Watch for code that might be used dynamically:
Also watch for:
- Dynamically called code (
getattr,eval) - Reflection-based frameworks
- External API contracts
- CLI entry points
Cleaning Checklist
Debt Prevention Tips
Add TODOs with issue tracker links, use type hints from the start, and review for simplification opportunities.
"The best code is no code at all."
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggenerated/claude/skills/tech-debt/SKILL.md
Popularity
- Repository stars
- 79
- Repository forks
- 11
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mcouthon/agents/tech-debt)