Skip to content
Skillpedia
General coding12k · #11529

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.md

Copy 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

Use this skill to help me: https://github.com/trycompai/crm/blob/release/.agents/skills/zero-tech-debt/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  1. State the intended end state in one or two sentences.

  2. Search for real callers before preserving compatibility. If a mode, prop, wrapper, route alias, or fallback has no current caller, delete it.

  3. 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.

  4. 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.

  5. 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills