modernize-uplift

modernize-uplift is a command for Claude Code from anthropics/claude-plugins-official. It costs 39 tokens per session (4,992 once invoked), scanned A, original, Apache-2.0.

A command that moves software from an older version of its existing technology to a newer version, such as .NET Framework 4.8 to .NET 8. It preserves the code’s structure and checks behavior across runtimes when both can run.

In plain words
What is it for?
Use it for same-stack upgrades, updating version-specific code, running the test suite on old and new runtimes when possible, and comparing the results.
Why use it?
It addresses version-related breaking changes without turning the work into a full rewrite of the software’s business logic.

Command for Claude Code ✓ vendor

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents; $skill-name invocation.

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 for same-stack upgrades, updating version-specific code, running the test suite on old and new runtimes when possible, and comparing the results.

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-uplift

README.md
[![agentmods](https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-uplift/github.svg)](https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-uplift)
Your own site
<a href="https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-uplift"><img src="https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-uplift/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-uplift

Your own site · 80×15
<a href="https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-uplift"><img src="https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-uplift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,992 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.00039 $0.04992
Opus 5.5 $0.00016 $0.01997
Sonnet 5.5 $0.00008 $0.00998
Haiku 4.5 $0.00004 $0.00499

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

Security

Grade A, and why

modernize-uplift 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-uplift.md · 273 lines

How it starts

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

Uplift $system from $source_version to $target_version: same stack, newer version. 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.

This is not transform, which extracts intent and rewrites idiomatically. Here the code is good and only needs to run on a newer runtime. Preserve structure and make the smallest diffs that compile and behave identically on the target, driven by the known breaking changes between the two versions, not by re-deriving business logic. The optional fourth argument $project_pattern scopes the work to matching projects.

The strong case is a real dual run. If both runtimes execute here, one test suite runs on both and the equivalence proof is a differential test. It is not always available: .NET can multi-target one test project (net48 and the target) but net48 runs only on Windows or Mono; for Java it is the whole build run under two JDK toolchains; Python 2 cannot import an un-rewritten module under Python 3. When both cannot run here, equivalence falls back, as in transform, to characterization tests pinned to recorded outputs on the target only. That is fine, but label it honestly (Step 0.3, Step 7).

Step 0 — Toolchain and version pinning (fail fast)

  1. Pin the version pair exactly. If the versions were not given, take them from analysis/$system/INTENT.md or the brief. If either version is missing or vague (".NET" with no number), stop and ask. Check that the target is supported as ${CLAUDE_PLUGIN_ROOT}/references/target-versions.md says: looked up, never remembered, and the versions you offer when you ask are looked up too. When the move spans several major versions or two things at once (a JDK and a framework: Java 8 with Spring 4 to a newer JDK with Spring Boot), split it into hops that each build and pass their tests before the next starts (for example Java 8, 11, 17, then the target), name the order in the plan, and treat each hop as its own pilot.
  2. Target runtime, required. Verify it builds and tests (dotnet --version and a dotnet test smoke; mvn or gradle; python3 -V and pytest).
  3. Source runtime, the baseline oracle. Verify the old version also runs here. If it does not (common in CI and sandboxes: no .NET Framework on Linux), say so: dual run degrades to target-only and equivalence falls back to recorded outputs. Note it in the plan and in UPLIFT_NOTES.
  4. Can the existing test suite run on $target_version as-is? This reshapes the plan. A test framework whose runner does not support the target (NUnit 2 or MSTest v1 on modern .NET, JUnit 4 without the vintage engine, nose on Python 3) makes the test migration a prerequisite, not a leaf: nothing migrated can be validated until the tests that validate it run. Read the framework and version from the test manifests and check them against the target. If the answer is no, it is an explicit early phase in Step 2 and in the brief.
  5. Detect the ecosystem migration tool, and distinguish present, runnable here and actually ran: most need a working restore and build (often network), so installed is not the same as produced findings. Never fold a tool's findings into the catalog unless it ran; say "coverage lost: needs restore and network, unavailable here" instead. .NET: dotnet upgrade-assistant (also applies changes in place; apiport analyzes compiled assemblies and is archived, so optional). Java and Spring: OpenRewrite (mvn rewrite:dryRun is headless and emits a patch: the most reliable). Python: pyupgrade (2to3 is removed in 3.13, python-modernize is abandoned). JS and Angular: ng update (edits in place, needs a clean git tree and node_modules).
  6. Where the tests point. Before running any suite, read its configuration for the databases, queues and services it connects to. If any is not a local or throwaway instance, stop and ask which environment to use: the baseline and the proof both run the old code against it.

Read the full file on GitHub · 273 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 · +3 lines · -3 tokens per session ca7ad8dcc25e
  2. 2mo ago Changed · -151 lines · -2 tokens per session 1ab1c23e031a
  3. 3mo ago First seen · 421 lines · 44 tokens per session scan A 7630f9109cd7

Subscribe to this mod's changes

modernize-uplift is a command published in the GitHub repository anthropics/claude-plugins-official (48,794 stars, last pushed today), licensed Apache-2.0. It adds 39 tokens to every session and 4,992 once invoked, about $0.0002 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-uplift compared with commands from other repositories

modernize-uplift next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modernize-upliftanthropics/claude-plugins-officialCommand49ktodayApache-2.0A39Claude Code
testpeterblazejewicz/claude-pluginsCommand85mo agoMITA30Claude Code
laravelPixel-Process-UG/superkit-agentsCommand48mo agoMITA19Claude Code
csharp-exercise-clearaleksei-perchukov/coding-exercise-generator-ide-pluginCommand56mo agononeA15Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code