Skip to main content
skill CX Codex

zero-tech-debt — Claude Code skill: refactor patches without legacy

Rebuilds a change from the end state you actually want, dropping dead compatibility paths and accidental complexity along the way.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add jnsahaj/skills --skill zero-tech-debt -a claude-code
Open on GitHub

What zero-tech-debt does

The skill makes the agent name the target outcome in a sentence or two before touching code. Then it goes looking for real callers. Any mode, prop, wrapper, route alias or fallback nobody calls right now gets deleted.

Shape follows the shipped product surface: one clear component or flow beats a pile of flags. Splitting is fine only where a boundary is obvious, such as state, layout, controls or domain commands. Shared logic like feature flags, permissions, route gating, URL state and command names belongs in a single spot, not copied across pages or buried in view components.

Last step is verification of the new flow plus the assumptions you removed that touched navigation, permissions or persisted state. The skill optimises for the code that should remain, not for the smallest diff, yet it rules out building a generic framework for one feature and keeps the refactor inside what makes the final shape coherent.

What it helps with

  • strip dead compatibility branches from a patch
  • collapse mode flags into a single flow
  • pull duplicated permission checks into one place
  • rename things after product intent instead of edit history
  • confirm removed assumptions did not break navigation

Example prompts for the agent

  • Describe the end state this change is aiming at, then delete everything that only exists for backward compatibility.
  • Go through the patch and remove modes, flags and wrappers that have no current callers.
  • Move the flags and permission checks from several pages into one place, then verify the flow.

How to install zero-tech-debt

1Skills CLI (Vercel)

npx skills add jnsahaj/skills --skill zero-tech-debt -a claude-code

2Manually: put the files in place

~/.claude/skills/zero-tech-debt/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/zero-tech-debt/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about zero-tech-debt

How do I install zero-tech-debt in Claude Code?

Run npx skills add jnsahaj/skills --skill zero-tech-debt -a claude-code. The skill lands in ~/.claude/skills/zero-tech-debt/SKILL.md.

What does zero-tech-debt do?

It pushes the agent to rework a change from the intended end state: state the goal, hunt for real callers, remove unused paths and gather shared rules in one spot.

Will it rewrite my whole project?

No. The refactor stays within what makes the final shape coherent, and the skill forbids inventing a generic framework for a single feature.

Similar skills

All skills for Code review and refactoring →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor