Sponsor Suno AI Music arrow_forward
Plugin

Code Modernization

Guided modernization for any legacy codebase: start with /modernize, get an assessment, an interactive map, the business rules mined from the code, and a plan you approve, then an upgrade, a rewrite or a rebuild with independent proof that the new code behaves like the old. Includes security hardening, a one-page report, specialist agents, and an optional live progress pane (early access).

Type
Plugin
GitHub stars
37.1k
License
Apache-2.0
Repo last updated
Sep 25, 2026
Version
1.0.0
Author
Anthropic

What Code Modernization is

Code Modernization is a plugin published in the anthropics/claude-plugins-official repository on GitHub, which has about 37.1k stars. The repository describes itself as: “Official, Anthropic-managed directory of high quality Claude Code Plugins.”

A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.

Installing Code Modernization adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.

How to install Code Modernization

Claude Code

  1. Add the repository as a plugin marketplace: claude plugin marketplace add anthropics/claude-plugins-official
  2. Install the plugin: claude plugin install code-modernization@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
  3. Restart the session if the new skills or commands don't appear straight away.

Claude Cowork

  1. Open Customize → Plugins and choose Add marketplace.
  2. Enter anthropics/claude-plugins-official (the owner/repo shorthand works for GitHub).
  3. Find Code Modernization in the list, click Install, then connect any connectors it needs from its Connectors tab.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/code-modernization/.claude-plugin/plugin.json, shared under the repository's Apache-2.0 license. Read the full file on GitHub.

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.

Install

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.

Start here

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

is a short label of your choice (letters, digits, -, _). --source makes a link at legacy/ and copies nothing, so a huge repository stays where it is. Nothing edits your legacy source. Commands write only to analysis/ / and modernized/ (a build check writes build output where your build normally does), and each refreshes analysis/ /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.

The path

Each step stands alone, so you can stop and review after any of them.

assess --portfolio surveys many systems and ranks them on one page. modernize-status 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.

How it proves the result

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:

  • The tests, run again from clean. Build output is deleted, the full suite runs, and the counts come from the runner's own result files or a saved log. A run that executed no tests, or skipped them, is a failure, and a count the command merely typed in does not count.

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Code Modernization?

Code Modernization is a plugin for Claude Code and Claude Cowork from the anthropics/claude-plugins-official repository on GitHub. Guided modernization for any legacy codebase: start with /modernize, get an assessment, an interactive map, the business rules mined from the code, and a plan you approve, then an upgrade, a rewrite or a rebuild with independent proof that the new code behaves like the old. Includes security hardening, a one-page report, specialist agents, and an optional live progress pane (early access).

How do I install Code Modernization in Claude Code?

Add the repository as a plugin marketplace: claude plugin marketplace add anthropics/claude-plugins-official Install the plugin: claude plugin install code-modernization@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.

Can I use Code Modernization in Claude Cowork?

Open Customize → Plugins and choose Add marketplace. Enter anthropics/claude-plugins-official (the owner/repo shorthand works for GitHub). Find Code Modernization in the list, click Install, then connect any connectors it needs from its Connectors tab.

Is Code Modernization safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under Apache-2.0. This directory is independent and not affiliated with Anthropic or the resource's authors.