zero-tech-debt
Skill1 starsChanged 8 months agoMITView on GitHub
Rework a change as if the intended UX and architecture had existed from day one — deleting compatibility cruft, dead branches, and accidental complexity instead of patching around them. Use when refactoring, cleaning up after a feature lands, removing flags, collapsing legacy paths, or when the user says the code "should look like X from scratch".
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
- darkroomengineering/cc-settingsedited, first seen Sep 24, 2026
- jnsahaj/skillsedited, first seen Jul 1, 2026
- erik-kroon/skillsedited, first seen Apr 29, 2026
- Makisuo/skillsedited, first seen Feb 11, 2026
Used with
Projects with it also use handoff.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- jnsahaj/skills★ 10153% same
- Makisuo/skills★ 7947% same
- darkroomengineering/cc-settings★ 4724% same
- erik-kroon/skills★ 115% 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 repository9 other files it gives its agents.
- skill-creatorSkill
- find-buggy-commitSkill
- git-commitSkill
- npm-security-best-practicesSkill
- root-cause-tracingSkill
- systematic-debuggingSkill
- systems-thinkerSkill
- testingSkill
- write-prdSkill
The file
We split this skill into the rules it gives an agent
6 rules. 4 are common, 2 are distinctive, and 0 are very specific to this project.
4
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Reshape around the final surface: Prefer one clear component or flow over mode flags.
- Common: line 21
Verify the intended flow: Test the new behavior *and* the assumptions you deleted — anything that touched navigation, permissions, or …
- Distinctive: line 26
Delete dead compatibility paths instead of polishing them.
- Common: line 27
Do not invent a generic framework for a single feature.
- Common: line 28
Keep the refactor scoped to what makes the final shape coherent — no opportunistic cleanup.
- Common: line 29
Prefer names that describe product intent over implementation history.
“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
Reshape the change from the intended end state, not from the historical path that produced the current patch. The goal is the code that should exist now, not the smallest diff from what's there.
Steps
- Name the end state. In one or two sentences, describe the product surface and architecture as if you were building it today.
- Find real callers before preserving anything. Grep for actual usage of each mode, prop, wrapper, route alias, or fallback. If nothing references it, delete it — do not "improve" it.
- Reshape around the final surface. Prefer one clear component or flow over mode flags. Split only when there is 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 must not be duplicated across pages or buried inside view components.
- Verify the intended flow. Test the new behavior and the assumptions you deleted — anything that touched 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 polishing them.
- Do not invent a generic framework for a single feature.
- Keep the refactor scoped to what makes the final shape coherent — no opportunistic cleanup.
- Prefer names that describe product intent over implementation history.
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.

