Tech Debt Analyzer
Identify, analyze, document, and track technical debt in JavaScript/TypeScript codebases with automated detection and prioritized remediation plans.
Your codebase has accumulated years of TODO comments, deprecated patterns, and copy-pasted modules — but you can't justify a refactoring sprint without data. This playbook scans JavaScript/TypeScript codebases to identify, quantify, and prioritize technical debt with actionable remediation plans.
Who it's for: engineering managers building data-driven cases for tech debt remediation sprints, tech leads identifying the highest-impact refactoring targets in legacy codebases, frontend developers tracking code quality degradation across React and Node projects, CTOs presenting technical debt reports to stakeholders with business impact estimates, senior engineers creating systematic debt reduction roadmaps for their teams
Example
"Analyze tech debt in our React/Node codebase and prioritize fixes" → Tech debt pipeline: automated codebase scan for deprecated APIs, duplicated code, and complexity hotspots, debt categorization (architecture, code quality, dependency, testing), severity and effort scoring for each debt item, prioritized remediation plan ranked by impact-to-effort ratio, and tracking dashboard showing debt reduction progress over sprints
CLAUDE.md Template
New here? 3-minute setup guide → | Already set up? Copy the template below.
npx ccplaybooks add tech-debt-analyzer# Technical Debt Analyzer
## Your Role
You are my technical debt specialist. Help me identify, analyze, document, and track technical debt in JavaScript/TypeScript codebases.
## Analysis Workflow
### Step 1: Automated Code Analysis
Detect code smells and issues:
**Code Quality Indicators**
- Large files (>500 lines)Get new playbooks like this one
One email a week with new Claude Code workflows. Free, like everything here.
No spam. Unsubscribe anytime.
What This Does
Systematically identify and track technical debt in JavaScript/TypeScript projects. Automated analysis detects code smells, dependency issues, and quality problems. Get prioritized remediation plans and documentation templates.
Quick Start
Step 1: Navigate to Your Project
cd ~/your-js-project
Step 2: Download the Template
Click Download above, then:
mv ~/Downloads/CLAUDE.md ./
Step 3: Analyze Your Codebase
claude
Then ask: "Analyze this codebase for technical debt"
What Gets Detected
Automated Analysis
| Category | Indicators |
|---|---|
| Code Quality | Large files (>500 lines), complex functions |
| Debt Markers | TODO, FIXME, HACK comments |
| Bad Practices | Console statements, weak typing |
| Complexity | Deep nesting (>4 levels), long params |
Manual Review Areas
| Category | Focus |
|---|---|
| Architecture | Design patterns, coupling |
| Testing | Coverage gaps, flaky tests |
| Documentation | Outdated docs, missing examples |
| Dependencies | Outdated packages, vulnerabilities |
Severity Levels
| Level | Action | Examples |
|---|---|---|
| Critical | Fix immediately | Security issues, broken builds |
| High | Current/next sprint | Major blockers |
| Medium | Plan quarterly | Refactoring needs |
| Low | Opportunistic | Nice-to-haves |
Example Prompts
- "Scan for technical debt in this project"
- "Find all TODO and FIXME comments"
- "Analyze dependency health"
- "Create a tech debt remediation plan"
- "Generate a tech debt register"
Nine Debt Categories
- Code Quality: Complexity, readability
- Architectural: Design issues, coupling
- Test Debt: Coverage, reliability
- Documentation: Outdated, missing
- Dependency: Outdated, vulnerable
- Performance: Slow code paths
- Security: Vulnerabilities
- Infrastructure: CI/CD, deployment
- Design: API, interface issues
Recommended Capacity
20% of sprint capacity for tech debt maintenance.
Maintenance Schedule
| Frequency | Activity |
|---|---|
| Weekly | Review TODO/FIXME comments |
| Monthly | Dependency updates |
| Quarterly | Full codebase analysis |
Tips
- Track everything: Use a debt register
- Prioritize ruthlessly: Not all debt needs fixing
- Automate detection: Integrate into CI/CD
- Document decisions: Use ADRs for context