modernize-reimagine

modernize-reimagine is a command for Claude Code from thevibeworks/claude-code-docs. It costs 17 tokens per session (1,859 once invoked), scanned A, a copy of modernize-reimagine, MIT.

A command that rebuilds a legacy system as a new system based on its intended behavior rather than copying its structure. It uses several agents and pauses for human checkpoints.

In plain words
What is it for?
Use it to extract specifications from legacy code, design a new system, create its initial structure, and validate the result with human review.
Why use it?
It allows a modernization project to pursue a new design while treating the old system as a source of requirements.

Command for Claude Code

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 extract specifications from legacy code, design a new system, create its initial structure, and validate the result with human review.

Compare 6 commands from other repositories ↓
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 thevibeworks/claude-code-docs
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/thevibeworks/claude-code-docs/modernize-reimagine/github.svg)](https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-reimagine)
Your own site
<a href="https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-reimagine"><img src="https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/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/thevibeworks/claude-code-docs/modernize-reimagine"><img src="https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/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 100% copy Near-identical to another mod 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

This is a copy

100% identical to modernize-reimagine — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

content/github/claude-plugins-official/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. 2mo 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 thevibeworks/claude-code-docs (183 stars, last pushed today), licensed MIT. 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. It is 100% identical to modernize-reimagine, differing in 0 lines, and is treated as a copy.

Related

modernize-reimagine compared with commands from other repositories

modernize-reimagine next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modernize-reimaginethevibeworks/claude-code-docsCommand183todayMITA17Claude Code
reconciledork-labs/dorkosCommand11todayMITA10Claude Code
reviewdork-labs/dorkosCommand11todayMITA21Claude Code
auditdork-labs/dorkosCommand11todayMITA30Claude Code
createdork-labs/dorkosCommand11todayMITA6Claude Code
from-specdork-labs/dorkosCommand11todayMITA8Claude Code
curatedork-labs/dorkosCommand11todayMITA21Claude Code