modernize-transform

modernize-transform is a command for Claude Code from anthropics/claude-plugins-official. It costs 17 tokens per session (2,155 once invoked), scanned A, original, Apache-2.0.

A command that rewrites one module of an old software system for a different technology stack. It uses tests to check that the new module behaves like the original.

In plain words
What is it for?
Use it to transform a single legacy module, verify the target runtime and tools, create equivalent tests, and place the modernized module in the project’s output.
Why use it?
It limits the change to one vertical slice, making a large modernization easier to control and giving the rewrite a behavior check.

Command for Claude Code ✓ vendor

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the code-modernization plugin — 13 commands, 8 agents shipped together

Good fit Use it to transform a single legacy module, verify the target runtime and tools, create equivalent tests, and place the modernized module in the project’s output.

Compare 6 commands from other repositories ↓
About the project

Claude Code Plugins Directory is a marketplace containing plugins for Claude Code, including tools, commands, skills, agents, hooks, and model context servers. Claude Code users browse it to install Anthropic-maintained or approved third-party extensions.

anthropics/claude-plugins-official · 48,794 stars · on GitHub · code.claude.com

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add anthropics/claude-plugins-official
Claude Code
/plugin install code-modernization

Made for: Claude Code.

Or install code-modernization, the plugin that ships this one along with the rest of its 13 commands, 8 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for modernize-transform

README.md
[![agentmods](https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-transform/github.svg)](https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-transform)
Your own site
<a href="https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-transform"><img src="https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-transform/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for modernize-transform

Your own site · 80×15
<a href="https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-transform"><img src="https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-transform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,155 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.02155
Opus 5.5 $0.00007 $0.00862
Sonnet 5.5 $0.00003 $0.00431
Haiku 4.5 $0.00002 $0.00215

Measured 10d ago against content hash 883512f95312, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modernize-transform scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

plugins/code-modernization/commands/modernize-transform.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Transform module $module of $system into $target_stack, with proof of behavioral equivalence. This is one vertical slice of the strangler fig; output goes to modernized/$system/$module/.

The code is legacy/$system, often a symlink to where it really lives: say where it points (readlink legacy/$system) in one line before you start. If legacy/$system does not exist, stop and say so: nothing can run without the code, so the fix is /code-modernization:modernize $system --source <path to the code>. Run every subagent in the foreground and wait for its result: never end your turn while one is still running. Stop any server or other process you started (a legacy app on a local port, a watcher) before you finish, and say you did. If $module or $target_stack is empty, read analysis/$system/MODERNIZATION_BRIEF.md: take the target stack it names, and the first module of the earliest phase whose Command: is transform that has no modernized/$system/<module>/TRANSFORMATION_NOTES.md yet (with no brief, the target in INTENT.md). Say which you picked.

Step 0 — Toolchain, then the plan (human gate)

Target stack (required). The runtime, package manager and test framework must respond (java -version and mvn -v, node -v and npm -v, python3 -V and pytest --version). If not, stop and say what to install: a plan gate now would only defer the failure an hour. Point to /code-modernization:modernize-preflight $system $target_stack.

Target versions. Build on the versions in the brief's Target versions table. If it has none for this module, or they are unverified or were checked over 30 days ago, look them up now as ${CLAUDE_PLUGIN_ROOT}/references/target-versions.md says (never from memory), show the table in the plan and keep it in TRANSFORMATION_NOTES.md. Anything not supported and not yet decided is a question at the plan gate. A dependency with no row takes the newest compatible stable release the package registry reports.

Legacy stack (advisory, never a blocker). Try a syntax-only compile of the module. Legacy code often cannot build locally by nature (CICS and IMS programs have no local translator; the real runtime is a mainframe you do not have). If it cannot, dual execution is off the table: the tests assert against recorded traces and golden-master fixtures (real production outputs, captured reports, SME-confirmed examples). Say so in the plan and in TRANSFORMATION_NOTES.md ("equivalence is trace-based; legacy was not executable here"), so reviewers know how strong the proof is.

Run the old system only where it is safe. Record baselines from the legacy code running on this machine, or against a test environment the person named. Never call a production or third-party service, register an account, or send or change real data to record a baseline unless the person approved that exact target in the plan (say which calls, and which of them write). A token, password or session cookie in a recorded response is a secret: replace it with a fixed fake value before anything is saved, and never print it.

The brief is binding. If MODERNIZATION_BRIEF.md exists, find the phase whose Command: is this one and whose Modules: include $module, and treat its scope, entry criteria, exit criteria and any edits the user made as binding. An unmet entry criterion is the next step: meet it, never re-plan around it. If no phase covers $module, stop and ask which phase this is.

Read the module's source and the rules in BUSINESS_RULES.md that reference it, and any verdicts on them in analysis/$system/RULE_REVIEWS.json: a rule marked wrong is not pinned as the oracle (use the reviewer's note for what is right, and if the note does not say, ask), and a P0 rule marked discuss is a question to settle at this plan gate before any code. Then present the plan and stop: write no code until the user explicitly approves (plan mode if available): which source files are in scope, the target structure, which rules and behaviors it implements, how you will prove equivalence, and anything ambiguous that needs a human decision now.

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · +6 lines 883512f95312
  2. 2mo ago Changed · -14 lines 9ec68f181462
  3. 3mo ago First seen · 124 lines · 17 tokens per session scan A ba747f617a30

Subscribe to this mod's changes

modernize-transform is a command published in the GitHub repository anthropics/claude-plugins-official (48,794 stars, last pushed today), licensed Apache-2.0. It adds 17 tokens to every session and 2,155 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

modernize-transform compared with commands from other repositories

modernize-transform next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modernize-transformanthropics/claude-plugins-officialCommand49ktodayApache-2.0A17Claude Code
root-causehamr0/liteagentsCommand284d agoApache-2.0A52Claude Code
cc-flowyeisonrestrepo/code-conductorCommand22todayMITA13Claude Code
debug-podrohitg00/awesome-claude-code-toolkitCommand2.9k6mo agoApache-2.0A0Claude Code
maprohitg00/awesome-claude-code-toolkitCommand2.9k6mo agoApache-2.0A0Claude Code
find-dead-coderohitg00/awesome-claude-code-toolkitCommand2.9k6mo agoApache-2.0A0Claude Code
triageJewgah/claude-code-skillsCommand27d agoMITA27Claude Code