zero-tech-debt
What it does
This skill asks your AI to rebuild a code change around the intended final design, removing compatibility leftovers and unused paths. It is for developers who want a clean result instead of a patch on a patch.
When to use it
- ✓When a change has grown messy with temporary fixes and you want a cleaner version.
- ✓When you want to remove old modes, flags or fallbacks that no longer have a user.
- ✓When you are refactoring a feature and want the code to match its final product shape.
Skill link
https://github.com/trycompai/crm/blob/release/.agents/skills/zero-tech-debt/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Rework this change as if the final design had existed from the start, and remove any leftovers from the old version.”
5 new skills a week. 1 minute to read.
How it works
The skill first states the intended end state, checks which old paths still have callers, deletes the unused ones, and then tests the new behavior.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Zero Tech Debt
Rework the change from the intended end state, not from the historical path that produced the current patch.
Steps
State the intended end state in one or two sentences.
Search for real callers before preserving compatibility. If a mode, prop, wrapper, route alias, or fallback has no current caller, delete it.
Reshape around the final product surface. Prefer one clear component or flow over mode flags. Split only when it creates an obvious boundary such as 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 in 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.
- Do not invent a generic framework for one feature.
- Keep the refactor scoped to what makes the final shape coherent.
- Prefer names that describe product intent over implementation history.
FAQ
Will the AI delete code that is still used?
The skill says to search for real callers first, and to remove only the parts that have no current caller.
Does it add a new framework for one feature?
No. The skill warns against building a generic framework for a single feature.
Does it keep the change small?
No. The skill says to optimize for the code that should exist, not for the smallest possible diff.
Details
Original description by the author
Rework a change as if the intended UX and architecture existed from day one, deleting compatibility cruft and accidental complexity.
repo: trycompai/crm
Popularity
- GitHub stars
- 12k
- Ranking position
- #11529
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
ai-elements
12kHelps your agent build AI chat interfaces with ready-made components for conversations, messages, tool displays and prompt inputs.
ai-sdk
12kHelps your agent build AI features with the Vercel AI SDK, including text generation, streaming, tool calling and agents.
better-accessibility
12kHelps your agent make interfaces usable with a keyboard and screen readers, covering focus, labels, ARIA and forms.
better-auth-best-practices
12kHelps your agent set up Better Auth for login, sessions, OAuth and plugins in a TypeScript app, following its documented steps.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.