zero-tech-debt
Skill47 starsChanged 2 months agoMITView on GitHub
Rewrite an accreted patch into its intended end state by removing unused compat layers, flags, fallbacks, and wrappers. Triggers "zero tech debt", "delete the compat layer", "kill the legacy path", "too many flags".
5 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- prefapp/skillstheir own version, first seen Oct 4, 2026
- jnsahaj/skillsedited, first seen Jul 1, 2026
- erik-kroon/skillsedited, first seen Apr 29, 2026
- susomejias/skillsedited, first seen Mar 22, 2026
- Makisuo/skillsedited, first seen Feb 11, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- jnsahaj/skills★ 10158% same
- Makisuo/skills★ 7953% same
- erik-kroon/skills★ 117% same
- susomejias/skills★ 133% same
Wrote their own version · 1
- prefapp/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/AGENTS.mdAGENTS.md
- adhdSkill
- auditSkill
- autoresearchSkill
- buildSkill
- ccSkill
- checkpointSkill
- codexSkill
- componentSkill
- consolidateSkill
- context-docSkill
- design-tokensSkill
- dr-initSkill
- exploreSkill
- fixSkill
- freezeSkill
- handoffSkill
- harvestSkill
- hookSkill
- lighthouseSkill
- oracleSkill
- orchestrateSkill
- plan-ceo-reviewSkill
- plan-featureSkill
- poke-holesSkill
- projectSkill
- proof-of-workSkill
- qaSkill
- refactorSkill
- retroSkill
- review-batchSkill
- reviewSkill
- share-learningSkill
- shipSkill
- strategistSkill
- testSkill
- tldrSkill
- triageSkill
The file
We split this skill into the rules it gives an agent
6 rules. 2 are common, 3 are distinctive, and 1 is very specific to this project.
2
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Reshape around the final product surface: Prefer one clear component or flow over mode flags.
- Common: line 26
Verify the intended flow: Test the new behavior and any deleted assumptions that affect navigation, permissions, or persisted state.
- Distinctive: line 31
Delete dead compatibility paths instead of making them better.
- Common: line 32
Don't invent a generic framework for one feature.
- Distinctive: line 33
Keep the rework scoped to what makes the final shape coherent — don't drag in unrelated cleanup.
- Very specific: line 34
Prefer names that describe product intent over implementation history (AdminDashboard over LegacyDashboardV2).
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Zero Tech Debt
Rework the change from the intended end-state, not from the historical path that produced the current patch. The principles (no compat hacks, no abstractions you don't need, no dead branches) are in AGENTS.md — this skill is the workflow for applying them to a specific patch.
When to invoke
- A feature has accreted mode props, route aliases, or fallbacks across iterations
- A migration left behind a compatibility shim that no current caller uses
- You catch yourself preserving an old shape "just in case" with no concrete caller in mind
- The diff is bigger than the change it represents because it's making the old structure better instead of removing it
For restructuring code outside the current diff use /refactor. This skill is for the patch in front of you. (Claude Code 2.1.147 renamed /simplify to /code-review and removed the old cleanup-and-fix behavior; the native command is now a correctness reporter, not a code tightener.)
Steps
- State the intended end-state. One or two sentences. If you can't name it, stop and ask the user — you'll otherwise optimize toward the current shape.
- Search for real callers before preserving compatibility. For each mode prop, route alias, fallback branch, or wrapper: grep for current callers. No caller → delete it, don't improve it.
- Reshape around the final product surface. Prefer one clear component or flow over mode flags. Split only when there's an obvious boundary — state, layout, controls, or domain commands.
- Move shared rules to one place. Feature flags, permissions, route gating, URL state, and command naming should not be duplicated across pages or hidden inside view components.
- Verify the intended flow. Test the new behavior and any deleted assumptions that affect navigation, permissions, or persisted state.
Rules
- Optimize for the code that should exist, not the smallest diff from the old shape.
- Delete dead compatibility paths instead of making them better.
- Don't invent a generic framework for one feature.
- Keep the rework scoped to what makes the final shape coherent — don't drag in unrelated cleanup.
- Prefer names that describe product intent over implementation history (
AdminDashboardoverLegacyDashboardV2).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

