/zero-tech-debt:zero-tech-debtfrom zero-tech-debt
Refactors features toward intended architecture by removing obsolete flows and unnecessary abstractions while preserving behavior and contracts. Trigger with 'refactor properly', 'remove legacy', or 'zero-tech-debt'.
Ships in zero-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.
Build toward the intended product shape rather than preserving the sequence of historical patches. Keep one coherent end state in scope. Remove obsolete layers when evidence supports removal; do not use smaller diffs or fewer files as a substitute for the requested architecture.
Current code is evidence of behavior and contracts, not automatic architectural authority. Explicit requirements, supported clients, persisted data, security boundaries and the user's instructions still govern what may change.
Read when to use this method before choosing a structural redesign. For an ambiguous "clean up" request, infer scope from the context and ask only for a missing decision that materially affects the outcome.
A reviewable change implementing the agreed end state, with updated callers, contracts, documentation or migrations where the scope requires them. Explain:
Use the project's issue tracker for durable follow-up work. Do not invent tickets, caller counts, successful migration results or stakeholder approval.
| Situation | Recovery |
|---|---|
| Intended behavior is unclear | Inspect requirements and ask for the missing decision before a conflicting change. |
| A caller cannot be inspected | Record the uncertainty; retain compatibility or resolve the contract decision before removal. |
| A test fails after redesign | Reproduce and compare with requirements; fix the regression or justify a separately supported expectation change. |
| Another migration overlaps | Coordinate through the authorized workflow or isolate independent work; do not overwrite it. |
| Data migration is irreversible | Verify backup/restore or forward recovery in an authorized isolated environment; do not demand a destructive downgrade. |
| Deeper debt appears outside scope | Record the finding without silently expanding the refactor. |
Consolidate retry ownership: "Replace the three divergent retry loops with one policy." Inspect each loop's deadlines, retryable errors and idempotency behavior. Build the requested common policy, update callers atomically and verify those contracts; do not erase meaningful differences just to reduce the count.
Remove a legacy export: A repository search finds no callers, but an exported package API is public. Record the search limits and resolve supported-client and deprecation requirements before deletion. An empty search does not prove no usage.
Redesign storage: "Move this workflow to the new state model." Use an isolated, authorized fixture or sanitized snapshot to check data mapping and recovery. Keep production execution separate from the source refactor's authorization.
references/01-when-to-use.md (opens in a new tab)references/02-preflight-checklist.md (opens in a new tab)references/03-workflow.md (opens in a new tab)references/04-audit-patterns.md (opens in a new tab)references/05-decision-filters.md (opens in a new tab)references/06-outcomes-and-reporting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin zero-tech-debtOther plugins' skills for the same job