modernize-reimagine

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

A command for rebuilding an old software system as a new, AI-focused system. It first extracts what the old system is meant to do, then designs, scaffolds, and checks the replacement with human review points.

In plain words
What is it for?
Use it to guide a multi-step rebuild of a legacy system, from extracting requirements through design, initial code setup, validation, and human approval checkpoints.
Why use it?
It separates the system’s intended behavior from its old structure, so developers can rebuild around current needs instead of copying outdated design decisions.

Command for Claude Code ✓ vendor

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; 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 to guide a multi-step rebuild of a legacy system, from extracting requirements through design, initial code setup, validation, and human approval checkpoints.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/anthropics/claude-plugins-official/modernize-reimagine"><img src="https://agentmods.dev/badge/commands/anthropics/claude-plugins-official/modernize-reimagine.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 1,859 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.01859
Opus 5.5 $0.00007 $0.00744
Sonnet 5.5 $0.00003 $0.00372
Haiku 4.5 $0.00002 $0.00186

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

Security

Grade A, and why

modernize-reimagine 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-reimagine.md · 112 lines

How it starts

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

The first token of $ARGUMENTS is the system name ($system); everything after it is the target vision, usually several words, so do not truncate it (with none, use the one in analysis/$system/INTENT.md). Below, <vision> means that whole remainder. 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.

Reimagine the system as: . This is not a port but a rebuild from extracted intent: the legacy system is the specification source, not the structural template. The command orchestrates a team of agents with two explicit human checkpoints.

The brief is binding. If analysis/$system/MODERNIZATION_BRIEF.md exists, find the phase whose Command: is this one and whose scope matches $system and , and treat its scope, entry criteria, exit criteria and the user's edits as binding on everything below, on top of (never instead of) this command's own two checkpoints. An unmet entry criterion is the next step: meet it, never re-plan around it. If no phase matches, stop and ask which phase this is.

Phase A — Specification mining

Reuse what discovery already produced (honoring RULE_REVIEWS.json: a rule marked wrong is not part of the spec as written, and a P0 rule marked discuss is a question for the architecture checkpoint): BUSINESS_RULES.md, DATA_OBJECTS.md, topology.json and ASSESSMENT.md in analysis/$system/. Spawn concurrently (and tell the user all are running) only the agents whose input is missing:

  1. business-rules-extractor, only if BUSINESS_RULES.md is missing — "Extract every business rule from legacy/$system into Given/When/Then form, as a structured list."
  2. legacy-analyst — "Catalog every external interface of legacy/$system: inbound (screens, APIs, batch triggers, queues) and outbound (reports, files, downstream calls, DB writes), each with name, direction, payload shape, and frequency or SLA if discernible. Mask credentials in endpoints and payload examples."
  3. legacy-analyst, only if there is no topology.json or DATA_OBJECTS.md — "Identify the core domain entities of legacy/$system and their relationships: an entity list and a Mermaid erDiagram."

Write analysis/$system/AI_NATIVE_SPEC.md: Capabilities (what the system must do, from rules and interfaces), Domain Model (entities and erDiagram), Interface Contracts (each external interface as an OpenAPI or AsyncAPI fragment), Non-functional requirements inferred from legacy (batch windows, volumes), and the Behavior Contract (the Given/When/Then rules, which are the acceptance tests). Credentials are masked everywhere; connection details appear as env-var placeholders (${DATABASE_URL}), never literals.

Read the full file on GitHub · 112 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 · +8 lines 4392ddefd8ce
  2. 2mo ago Changed · -34 lines · -4 tokens per session 3913ec95cf4a
  3. 3mo ago First seen · 138 lines · 21 tokens per session scan A aa2fd191eb9b

Subscribe to this mod's changes

modernize-reimagine 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 1,859 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-reimagine compared with commands from other repositories

modernize-reimagine next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modernize-reimagineanthropics/claude-plugins-officialCommand49ktodayApache-2.0A17Claude Code
constraintsvinvcn/addyosmani-agent-skills-zhCommand591mo agoMITA20Claude Code
releasekomunite/kalfaCommand2467mo agoMITA13Claude Code
rclone_config_dumpchaunsin/agent-skillsCommand211d agoApache-2.0A7Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code