Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By anthropics Verified Orgv1.1.0Apache-2.0In 2 marketplaces
Takes a legacy codebase through assessment, mapping, business-rule extraction and an approved plan, then an upgrade, rewrite or rebuild with an independent equivalence verdict per module. Hooks run telemetry scripts on prompts and responses.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; writes files; reads files; reads or rewrites your prompts; sends prompts on its own.
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
X-ray readsxray
When Claude reads a legacy file, attach what the analysis already knows about it (callers, data it touches, the rules citing it) as context only the model sees.
booleandefault true
Progress panepanel
auto opens the pane when a session starts in a workspace that has analysis/; command opens it only when you press its button or type /modernize-panel; off never opens it and never draws the button.
One of auto, command, off
stringdefault auto
Track to followtrack
auto follows whichever way the plugin's commands are working on the system: a rewrite, a same-stack uplift or a greenfield reimagine, by the newest artifacts. Name one to pin it.
One of auto, transform, uplift, reimagine
stringdefault auto
Systemsystem
The system under analysis/ to follow. Empty follows the first one found.
stringdefault
Legacy directorylegacyDir
The read-only tree holding the legacy systems, relative to the workspace.
stringdefault legacy
Usage countstelemetry
Send usage counts through Claude Code's own telemetry setting: whole numbers only, such as which command ran, how many rules were found, what kind of machine and python the plugin runs on, and which kind of error occurred. Never code, names, paths, prompts or error text. Nothing is sent when Claude Code telemetry is off. See exactly what would be sent with: python3 scripts/telemetry.py show
booleandefault true
Command prefixcommandPrefix
How the plugin's commands are written up to their verb, for the pane's Next line.
stringdefault /code-modernization:modernize-
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
Point Claude at a legacy codebase and get four things: an understanding of what it is and what it does, a plan you approve, the modernized code, and proof that the new code behaves like the old. It works with any language and any kind of move: a newer version of the same technology, a rewrite in another one, or a rebuild on a new architecture.

You need Claude Code. Then:
/plugin install code-modernization@claude-plugins-official
Some steps start many agents at once, so expect real usage on a large system (see What to expect). Start with one module or one unit as a pilot, not the whole estate.
Open a folder for the work and type /code-modernization:modernize. It asks what you want to do with your code (a couple of short questions), finds the code, writes your answers down once, shows the road ahead, and gives you the exact first command. Every later command reads what you said, so nothing is asked twice. Not sure what you want? Choose Understand it first: you get the assessment, the map, the business rules and a plan, and no code is rebuilt.
To go step by step instead, point the first command at your code and follow the "next step" line each command ends with:
/code-modernization:modernize-preflight <name> --source <path to your code>
/code-modernization:modernize-status <name> # where am I, and what is next: run it any time
<name> is a short label of your choice (letters, digits, -, _). --source makes a link at legacy/<name> and copies nothing, so a huge repository stays where it is. Nothing edits your legacy source. Commands write only to analysis/<name>/ and modernized/ (a build check writes build output where your build normally does), and each refreshes analysis/<name>/REPORT.html: one page, with everything found so far, that you can open or share. A few steps need someone who knows how the system is built and run, so bring an engineer for the first questions.
Each step stands alone, so you can stop and review after any of them.
| Step | Command | What you get |
|---|---|---|
| 0 | modernize | Say what you want. Writes INTENT.md; every later command reads it. |
| 1 | modernize-preflight <name> [target-stack] [--source <path>] | Is the environment ready? Asks five questions only a person can answer (is this the whole system or a slice, can it build and test here, is there custom build tooling, has anyone tried before, is anything off limits), proves a build works on this code, and finds missing source. |
| 2 | modernize-assess <name> | What am I dealing with: inventory, complexity, debt, security, and a recommended pattern. |
| 3 | modernize-map <name> | The structure: dependencies, data flow, entry points and business flows, as an interactive map. |
| 4 | modernize-extract-rules <name> | The business rules as testable Given/When/Then cards with file:line citations, each re-checked by a second agent. |
| 4b | modernize-review <name> | A person confirms or corrects the rules that look wrong. Your answers reach the plan and the build. With the live pane on, /modernize-review-pane does the same one card at a time. |
| 5 | modernize-brief <name> [target-stack] | The phased plan a steering committee approves. Nothing is built until you approve it. |
| 6 | uplift, transform or reimagine | The build (see below). |
| 7 | modernize-verify <name> | The proof. An independent re-check with one verdict per module. |
| 8 | modernize-harden <name> | A security scan of the legacy system with a reviewed patch you apply yourself. |
assess --portfolio <parent-dir> surveys many systems and ranks them on one page. modernize-status <name> says where you are and gives the exact command to paste.
A person decides at six points, and the plugin never decides them for you: the five preflight answers, the rules that look wrong (review), approving the brief, accepting any difference the proof finds, signing the proof, and applying the security patch.
Modernization fails quietly: the new code passes the tests someone wrote, and differs on the inputs nobody thought of. So the proof is built from evidence a script can check, not from the model's opinion. modernize-verify runs after a build, ideally in a fresh session, and re-does the work instead of trusting the notes the build left behind:
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
claude plugin install code-modernization@claude-plugins-officialPlugins from other owners that cover similar ground