/tech-debt:tech-debtfrom tech-debt
Prevents tech debt during code changes or triages existing debt with categorization, scoring, and prioritization. Two modes: block fallbacks during edits, or audit backlog for remediation planning.
Ships in tech-debt. 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.
Read when SKILL.md points to them.
Two complementary stances on technical debt, picked apart by the router in this file:
They run at different points in a debt's lifecycle: prevent when writing, triage when planning. Triage output feeds back into prevent, one item at a time.
Use Mode A when:
Use Mode B when:
When NOT to use:
This skill is a ROUTER. This file stays a thin orchestrator. It picks exactly one mode (or the chain A→B→A), then you load the matching references/*.md and follow it. The two reference docs hold the actual steps, rules, and examples.
Never inline a reference doc's body. If a branch is more than a 2–3 line summary, it belongs in references/. The decision of which branch to take stays here.
Why: keeping the router thin keeps it scannable, and loading the branch body only when the mode is confirmed saves context on the wrong branch.
Decision criterion — one boolean property of the task: Is the user actively making a change right now (writing/editing code, has a diff)? yes → Mode A; no → Mode B. The chain rule: once a triaged item is being implemented, switch to Mode A for that change.
digraph tech_debt_route {
rankdir=TB;
node [shape=box];
start [label="User task touches tech debt" shape=oval];
q [label="Actively making a change\n(writing/editing code, has a diff)?" shape=diamond];
a [label="MODE A — PREVENT\nRework THIS change to the\nintended end state"];
b [label="MODE B — TRIAGE\nCategorize + score the\nwhole codebase's debt"];
loadA [label="Load references/prevent-during-change.md"];
loadB [label="Load references/triage-backlog.md"];
chain [label="Implementing a triaged item?\nSwitch to Mode A for that change" shape=diamond];
start -> q;
q -> a [label="yes"];
q -> b [label="no — assessing existing code"];
a -> loadA;
b -> loadB;
loadB -> chain;
chain -> loadA [label="yes, per item"];
}
| If the user is… | Mode | Load |
|---|---|---|
| implementing/finishing a feature, fix, or refactor and wants the change clean | A | references/prevent-during-change.md |
| about to preserve a fallback/alias/flag "just in case" | A | references/prevent-during-change.md |
| asking for a tech-debt audit / "what should we refactor" / code-health review | B | references/triage-backlog.md |
| asking to prioritize a maintenance or refactor backlog | B | references/triage-backlog.md |
| fixing an item that came out of a triage | A (per item) | references/prevent-during-change.md |
Rework the change from the intended end state, not the path that led to the current patch. Optimize for the code that should exist; delete dead compatibility paths rather than improving them. Prefer one clear component/flow over mode flags.
Load references/prevent-during-change.md and follow it.
Systematically identify, categorize, and prioritize existing debt across the codebase. Produce a prioritized list with effort estimates and a phased remediation plan that can run alongside feature work.
Load references/triage-backlog.md and follow it.
Prevent new debt while you're changing the code; triage old debt when you're planning what to fix.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub secondsky/claude-skills --plugin tech-debtOther plugins' skills for the same job