Skip to content

skilldrop·docs·How-to

Use refactor-plan

Plan paying down one piece of technical debt as a refactor that serves the goal it is blocking

Plan paying down one piece of technical debt as a refactor that serves the goal it is blocking — characterisation tests on the riskiest behaviour first, then small steps each merged to main with main releasable after every one, pure refactors kept apart from the behaviour changes the goal needs, a scope fence, a stop point, a technique per step (extract, branch by abstraction, parallel change, strangler fig, mikado) and the clashes with in-flight feature work.

Reach for it when the user asks for a refactor plan, how to untangle, break up, replace or clean up a module without a rewrite, how to pay down a tech-debt item, "how do we refactor X without stopping feature work", "how do we get off X without a big bang", or wants a strangler-fig or mikado plan.

Install it

npx skilldrop-cli install refactor-plan                 # Claude Code, your user folder
npx skilldrop-cli install refactor-plan --project       # Claude Code, this repo
npx skilldrop-cli install refactor-plan --ide cursor    # or kiro, codex, antigravity, copilot

It is part of the Dev team pack: --pack dev-team installs it with its neighbours.

Ask for it

Say it the way you would to a colleague. Requests like these route to it:

Requests like these belong to a different skill, so it shouldn't answer them:

If another skill answers instead, ask for this one by name: "use refactor-plan".

Check what you get

A good result:

See a worked example

Use something else when

Where a loop runs it

Next

Edit this page on GitHub · View source