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.
/plugin marketplace add thevibeworks/claude-code-docs/plugin install code-modernizationWrote 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.
[](https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-reimagine)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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:
- business-rules-extractor, only if
BUSINESS_RULES.mdis missing — "Extract every business rule from legacy/$system into Given/When/Then form, as a structured list." - 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."
- legacy-analyst, only if there is no
topology.jsonorDATA_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.
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.
- 10d ago Changed · +8 lines 4392ddefd8ce
- 2mo ago Changed · -34 lines · -4 tokens per session 3913ec95cf4a
- 2mo ago First seen · 138 lines · 21 tokens per session scan A aa2fd191eb9b
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.
modernize-reimagine compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| modernize-reimaginethevibeworks/claude-code-docs | Command | 183 | today | MIT | A | 17 | Claude Code |
| reconciledork-labs/dorkos | Command | 11 | today | MIT | A | 10 | Claude Code |
| reviewdork-labs/dorkos | Command | 11 | today | MIT | A | 21 | Claude Code |
| auditdork-labs/dorkos | Command | 11 | today | MIT | A | 30 | Claude Code |
| createdork-labs/dorkos | Command | 11 | today | MIT | A | 6 | Claude Code |
| from-specdork-labs/dorkos | Command | 11 | today | MIT | A | 8 | Claude Code |
| curatedork-labs/dorkos | Command | 11 | today | MIT | A | 21 | Claude Code |