How this command is triggered — by the user, by Claude, or both
Slash command
/cto:debt Optional: specific area to scan or manual debt itemsThe summary Claude sees in its command listing — used to decide when to auto-load this command
# CTO Technical Debt Tracker You are analyzing and prioritizing technical debt in the codebase. ## User Input $ARGUMENTS ## Context - Current date: !`date +%Y-%m-%d` ### Existing Technical Debt !`cat .notes/technical-debt.md 2>/dev/null || echo "No technical-debt.md yet"` ### TODO Comments in Codebase !`grep -rn "TODO" src/ --include="*.ts" --include="*.tsx" 2>/dev/null | head -50 || echo "No TODOs found or src/ doesn't exist"` ### FIXME Comments !`grep -rn "FIXME" src/ --include="*.ts" --include="*.tsx" 2>/dev/null | head -20 || echo "No FIXMEs found"` ## Your Task ### Step 1: Sc...
You are analyzing and prioritizing technical debt in the codebase.
$ARGUMENTS
date +%Y-%m-%d!cat .notes/technical-debt.md 2>/dev/null || echo "No technical-debt.md yet"
!grep -rn "TODO" src/ --include="*.ts" --include="*.tsx" 2>/dev/null | head -50 || echo "No TODOs found or src/ doesn't exist"
!grep -rn "FIXME" src/ --include="*.ts" --include="*.tsx" 2>/dev/null | head -20 || echo "No FIXMEs found"
Search the codebase for:
TODO commentsFIXME commentsHACK commentsXXX commentsFor each debt item, determine:
Impact Score:
| Level | Score | Criteria |
|---|---|---|
| Critical | 10 | Affects core revenue, user safety, data privacy |
| High | 7 | Affects performance, user experience |
| Medium | 4 | Technical quality, maintainability |
| Low | 2 | Nice to have, optimization |
Effort Score:
| Size | Score | Time |
|---|---|---|
| Small | 1 | 1-3 hours |
| Medium | 3 | 4-8 hours |
| Large | 7 | 1-3 days |
| XLarge | 10 | 1+ weeks |
ROI Calculation:
ROI = (Impact Score ÷ Effort Score) × 10
Higher ROI = prioritize first
Create/update .notes/technical-debt.md:
# Technical Debt Tracker
**Last Updated:** [date]
**Total Debt Items:** [X]
**Resolved This Quarter:** [X]
**New This Quarter:** [X]
## Summary
- **Critical Debt:** [X]
- **High Debt:** [X]
- **Medium Debt:** [X]
- **Low Debt:** [X]
---
## 🔴 Critical Debt (Immediate Action Required)
| ID | File | Description | Impact | Effort | ROI | Status | Owner | Due |
|----|------|-------------|--------|--------|-----|--------|-------|-----|
| TD-001 | file.ts:42 | Description | 10 | 3 | 33 | Open | TBD | TBD |
---
## 🟠 High Debt (This Quarter)
| ID | File | Description | Impact | Effort | ROI | Status | Owner | Due |
|----|------|-------------|--------|--------|-----|--------|-------|-----|
---
## 🟡 Medium Debt (Next Quarter)
---
## 🟢 Low Debt (Backlog)
---
## Debt Reduction Progress
**Target:** 10 items resolved this quarter
**Current:** 0/10
**Completion:** 0%
### Recent Completions
- [x] TD-XXX: [Title] - Resolved on YYYY-MM-DD
## ROI Formula
ROI = (Impact Score ÷ Effort Score) × 10
Show:
Ask user to confirm before writing the file.
| Situation | Response |
|---|---|
| No TODOs found | Ask user to manually list known debt items |
| src/ doesn't exist | Ask for correct source directory |
| Too many TODOs (>100) | Focus on top 50 by file, ask to narrow scope |
npx claudepluginhub durutheguru/Claude-Plugins --plugin cto/tech-debtAnalyzes project technical debt via code quality, dependencies, security, tests, architecture, and more, producing prioritized improvement plans, health dashboards, and ROI estimates.
/tech-debtAnalyzes project technical debt quantitatively, visualizes health scores by category, trends, dev efficiency time costs, and generates prioritized improvement plans.
/tech-debtQuantitatively analyzes project technical debt, visualizes health scores by category, trends, development efficiency impacts, time costs, and generates a prioritized improvement plan.
/tech-debtScans codebase for technical debt, calculates business impact, and produces a prioritized remediation plan with cost estimates.
/tech-debtQuantitatively analyzes technical debt, visualizes project health scores by category, trends, development efficiency impacts, time costs, and creates a prioritized improvement plan.
/tech-debtAnalyzes project's technical debt, generates health score dashboard with category breakdowns, trends, dev efficiency impacts, ROI estimates, and prioritized improvement plans.