Generated: {timestamp} Scope: {scope_description} Scan Time: {duration} Debt Score: {score}/100
{summary_paragraph}
Key Findings:
| Category | Findings | P0 | P1 | P2 | P3 |
|---|---|---|---|---|---|
| 🔄 Duplication | {dup_total} | {dup_p0} | {dup_p1} | {dup_p2} | {dup_p3} |
| 🔒 Security | {sec_total} | {sec_p0} | {sec_p1} | {sec_p2} | {sec_p3} |
| 📊 Complexity | {cplx_total} | {cplx_p0} | {cplx_p1} | {cplx_p2} | {cplx_p3} |
| 💀 Dead Code | {dead_total} | {dead_p0} | {dead_p1} | {dead_p2} | {dead_p3} |
| Total | {total} | {p0_total} | {p1_total} | {p2_total} | {p3_total} |
{if p0_count > 0} {for each p0_finding}
Category: {category} Issue: {issue_description} Impact: {impact_description} Recommendation: {fix_suggestion}
{code_snippet}
Fix:
{fixed_code_snippet}
{end for} {else} ✅ No critical issues found. {endif}
{if p1_count > 0} {for each p1_finding}
Category: {category} Issue: {issue_description} Impact: {impact_description} Recommendation: {fix_suggestion}
{code_snippet}
{end for} {else} ✅ No high-priority issues found. {endif}
{if p2_count > 0}
Show {p2_count} medium-priority findings
{for each p2_finding}
Category: {category} Issue: {issue_description} Fix: {fix_suggestion}
{end for}
{else} ✅ No medium-priority issues found. {endif}{if p3_count > 0}
Show {p3_count} low-priority findings
{for each p3_finding}
{if baseline_exists}
Baseline: {baseline_date} (commit {baseline_commit})
| Metric | Baseline | Current | Change |
|---|---|---|---|
| Debt Score | {baseline_score} | {current_score} | {score_delta} |
| P0 Issues | {baseline_p0} | {current_p0} | {p0_delta} |
| P1 Issues | {baseline_p1} | {current_p1} | {p1_delta} |
| Total Findings | {baseline_total} | {current_total} | {total_delta} |
Trend: {trend_description}
{else}
No baseline found. Run /techdebt --save-baseline to start tracking trends.
{endif}
{if p0_count > 0}
{if p1_count > 0}
Refactor {high_complexity_count} high-complexity functions
Eliminate major code duplication
{if p2_count > 0}
Code cleanup sprint
Establish debt baseline
Prevent new debt
Regular debt reviews
{file_list_with_counts}
Total: {total_files} files, {total_lines} lines analyzed
{if auto_fix_count > 0} The following {auto_fix_count} issues can be automatically fixed:
{for each auto_fix}
Run /techdebt --fix to apply these changes interactively.
{else}
No safe auto-fixes available. All issues require manual review.
{endif}
Generated by claude-mods techdebt skill v1.0