Skip to content
skillcellar
All skills

Code Modernization

Workflow

Anthropic's plugin for legacy code: assess, map, plan, upgrade or rewrite, with independent proof of equivalence.

Stars49.1k
Forks5.2k
Watchers277
Open issues1.4k
LicenseApache-2.0
Last pushtoday

Install

install

$ /plugin install code-modernization@claude-plugins-official

Works with Claude Code.

Update

update

$ /plugin marketplace update claude-plugins-official

Then run /reload-plugins. Official marketplaces auto-update at startup.

When to use it

  • You inherited a legacy system and need to understand it before deciding anything
  • You are moving to a newer version of the same stack, a different technology or a new architecture
  • You need evidence that rewritten code behaves like the old, not only that tests pass
  • You want a plan a steering committee can approve before any code is rebuilt

Commands & flags

/code-modernization:modernize
Start here: say what you want, and it writes INTENT.md and shows the road ahead.
/code-modernization:modernize-preflight <name> --source <path>
Check the environment and link the legacy code without copying it.
/code-modernization:modernize-assess <name>
Inventory, complexity, debt and a recommended pattern.
/code-modernization:modernize-extract-rules <name>
Mine business rules as testable Given/When/Then cards with citations.
/code-modernization:modernize-brief <name> [target-stack]
Write the phased plan; nothing is built until you approve it.
/code-modernization:modernize-verify <name>
Independent re-check with one verdict per module.
/code-modernization:modernize-status <name>
Where you are and the exact next command.

How to use it

Open a folder for the work and run /code-modernization:modernize. It asks a couple of short questions, records your intent once and gives you the first command. Each step stands alone, so you can stop and review after any of them. Nothing edits the legacy source: commands write only to analysis/<name>/ and modernized/.

/plugin install code-modernization@claude-plugins-official
/code-modernization:modernize

Some steps start many agents at once, so expect real usage on a large system. Start with one module as a pilot. Not sure what you want? Choose "Understand it first" to get the assessment, map, rules and plan without rebuilding anything.

Why it earns its place

Modernization fails quietly: the new code passes the tests someone wrote and differs on the inputs nobody thought of. This plugin separates understanding, planning, building and proof into reviewable steps, puts a human at each decision, and builds the proof from re-run tests and old-versus-new comparisons rather than the model's opinion. It is a lot of machinery for a small upgrade; for a one-off version bump, a plain prompt is enough.

Try it

claude

> /code-modernization:modernize