← ClaudeAtlas

qa-tech-debtlisted

Technical debt management and prioritization. Trigger when the user wants to identify, prioritize, or plan the repayment of technical debt.
christopherlouet/claude-base · ★ 4 · AI & Automation · score 80
Install: claude install-skill christopherlouet/claude-base
# Tech Debt Management ## Triggers - "technical debt" - "tech debt" - "refactoring priority" - "legacy code" - "code quality" ## Identification ### Code Smells to Detect ```bash # TODOs and FIXMEs grep -r "TODO\|FIXME\|HACK\|XXX" --include="*.ts" --include="*.tsx" src/ # Large files find src -name "*.ts" -o -name "*.tsx" | xargs wc -l | sort -n | tail -20 # Complexity (nesting) grep -r "if.*if.*if" --include="*.ts" src/ # any in TypeScript grep -r ": any" --include="*.ts" --include="*.tsx" src/ ``` ### Metrics | Metric | Threshold | Command | |----------|-------|----------| | LOC/file | < 500 | `wc -l` | | Functions/file | < 15 | grep | | Nesting depth | < 4 | analysis | | Test coverage | > 70% | `npm test -- --coverage` | ## Categorization ### Impact | Level | Description | Examples | |--------|-------------|----------| | Critical | Blocks development | Circular coupling | | High | Significantly slows down | Massive duplication | | Medium | Hinders maintenance | Confusing naming | | Low | Cosmetic | Inconsistent style | ### Effort | Level | Time | Examples | |--------|-------|----------| | Trivial | < 1h | Rename variable | | Low | < 1 day | Extract function | | Medium | 1-5 days | Restructure module | | High | > 1 week | Rewrite component | ## Prioritization ### Impact/Effort Matrix ``` Impact ^ | Quick Wins | Strategic | (P1) | (P2) +--------------+------------- | Fill-in | Avoid | (P3) | (P4) +---------------