/epicsagas:tech-debt-scanfrom epicsagas
Scans codebase for technical debt markers (TODO, FIXME, HACK, XXX) and quantifies risk by severity, age, and blast radius. Generates a prioritized remediation plan. Triggers on: 'tech debt', 'TODO scan', 'debt audit', 'code hygiene', 'fixme', 'technical debt'.
Ships in epicsagas. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make hidden technical debt visible, quantified, and prioritized. Debt that isn't tracked doesn't get paid — it compounds.
Auto-trigger: Codebase has >10 TODO/FIXME/HACK comments, or user says "I'll fix it later" more than twice in a session.
Explicit (/tech-debt-scan): User wants to audit their codebase for accumulated debt, or feels the codebase is becoming fragile.
Run the debt scanner across the codebase:
# Count debt markers by type
echo "=== Debt Count by Type ==="
grep -rn 'TODO\|FIXME\|HACK\|XXX\|WORKAROUND\|TEMP\|KLUDGE' --include='*.{rs,ts,js,py,go,rb,java,swift,kt}' . 2>/dev/null | \
awk -F: '{print $1}' | sed "s/.*'\(TODO\|FIXME\|HACK\|XXX\|WORKAROUND\|TEMP\|KLUDGE\)'.*/\1/" | sort | uniq -c | sort -rn
# List all debt items with file, line, and content
echo "=== Full Debt Inventory ==="
grep -rn 'TODO\|FIXME\|HACK\|XXX\|WORKAROUND\|TEMP\|KLUDGE' --include='*.{rs,ts,js,py,go,rb,java,swift,kt}' . 2>/dev/null
For each debt item, determine:
| Dimension | Classification |
|---|---|
| Type | TODO (planned), FIXME (broken), HACK (working but wrong), XXX (dangerous), WORKAROUND (external dependency) |
| Severity | 🔴 High — causes data loss, security vulnerability, or production failure; 🟡 Medium — causes bugs under edge cases or slows development; 🟢 Low — cosmetic, non-critical optimization |
| Age | Recent (<30d), Stale (30-90d), Ancient (>90d) |
| Blast radius | Hot path (called on every request/event), Warm path (called regularly), Cold path (rarely executed) |
Priority formula:
priority = severity × (1 + age_multiplier) × blast_radius
Where:
severity: High=3, Medium=2, Low=1
age_multiplier: Recent=0, Stale=0.5, Ancient=1.0
blast_radius: Hot=3, Warm=2, Cold=1
Generate the debt report:
# Tech Debt Report: {project}
## Summary
- **Total items**: {N}
- **🔴 High severity**: {N} ({percentage}%)
- **🟡 Medium severity**: {N} ({percentage}%)
- **🟢 Low severity**: {N} ({percentage}%)
- **Ancient debt (>90 days)**: {N}
## Top 10 by Priority Score
| # | File:Line | Type | Severity | Age | Blast Radius | Score | Description |
|---|-----------|------|----------|-----|--------------|-------|-------------|
| 1 | {path}:{line} | {type} | {🔴/🟡/🟢} | {age} | {hot/warm/cold} | {score} | {debt text} |
...
## Debt Hotspots (files with most debt)
| File | Count | Highest Severity |
|------|-------|-----------------|
| {path} | {N} | {severity} |
## Recommended Remediation
{Top 3 items to fix this week, with estimated effort}
Generate a weekly remediation plan:
## This Week's Debt Payment
1. **{debt item}** — {effort estimate} — {why it's first}
2. **{debt item}** — {effort estimate} — {why it's second}
3. **{debt item}** — {effort estimate} — {why it's third}
## Debt Trend
{Compare to previous scan if available — increasing or decreasing?}
mkdir -p tech-debt-scan
Write to tech-debt-scan/SCAN-{timestamp}.md.
| Excuse | Rebuttal | Do instead |
|---|---|---|
| "I'll fix it when I refactor" | The refactor has been "next month" for 6 months. | Fix it now, or document why it can't be fixed now. |
| "It's not hurting anyone" | Until it does. Then it's an emergency fix at 2am. | Pay the debt on your schedule, not the bug's schedule. |
| "There are only a few TODOs" | Count them. You might be surprised. | Run the scan. The number is the number. |
| "The tests pass" | Tests test expected behavior. Debt is unexpected behavior waiting to happen. | Debt isn't about passing tests. It's about maintainability. |
| "I wrote that TODO for a reason" | Yes, to remind you to fix it later. It IS later. | Read what you wrote. Decide: fix it or delete the comment. |
What SKILL.md sets; muted values are Claude Code's defaults
epicsagas@epicsagas is listed by epicsagas/plugins — review the source before installing
npx claudepluginhub epicsagas/plugins --plugin epicsagas22 skills in this plugin
/asymmetric-learningRecommends and structures learning from a field completely outside the user's expertise. Generates a weekly reading plan with summary template for cross-pollination of ideas. Triggers on: 'learn something new', 'asymmetric learning', 'weekly learning', 'outside my field', 'cross-pollination'./biz-riskBusiness-first risk evaluation before writing code. Forces quantification of how a technical decision affects revenue, users, or market position within 30 days. Triggers on: 'biz risk', 'business value', 'is this worth it', 'prioritize', 'ROI'. No code without a business case./code-portFaithfully ports one source file in one language to a target language — a draft in Phase A (logic-correct, need not compile) then compile-by-module in Phase B. Preserves structure (names, field order, control flow), infers ownership/error/concurrency mappings instead of guessing, and marks every uncertain spot. Language-agnostic methodology with per-language pitfall references. Triggers on: 'port X to Rust/Go/TS/...', 'translate this file to <lang>', 'rewrite <lang> code in <lang>', 'migrate to <lang>', 포팅, 변환, 이식.Other plugins' skills for the same job