# Techdebt

> Scans recently changed code for tech debt: duplicated logic, dead code, magic numbers, deep nesting, and TODOs, then proposes fixes.

- Skill: `samyakjhaveri/techdebt` (Agent Skill)
- Install (CLI): `npx skillmds add samyakjhaveri/techdebt`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samyakjhaveri/techdebt/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools, Code Review, Refactoring
- Tags: Code Review, Dead Code, Git Diff, Magic Numbers, Refactoring, Tech Debt
- Author: SamyakJhaveri (https://skillmd.com/u/samyakjhaveri)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/samyakjhaveri/techdebt

---

 
Scan recently changed files (git diff --name-only HEAD~5) for:
1. Duplicated logic — consolidate into shared utility
2. Dead code — unused imports/exports/functions (grep to verify before removing)
3. Magic numbers/strings — extract to named constants
4. Nested conditionals >3 levels — refactor with early returns
5. 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.

