modernize-verify

modernize-verify is a command for Claude Code from thevibeworks/claude-code-docs. It costs 21 tokens per session (3,552 once invoked), scanned A, a copy of modernize-verify, MIT.

A verification command independently checks whether modernized code still behaves like the older code. It runs tests and other checks, then gives each module a verdict: proven, partly proven, or not proven.

In plain words
What is it for?
Use it after transforming, upgrading, or redesigning a system to compare its modules with the legacy version and preserve the test and check records.
Why use it?
It helps detect behavior changes after a rewrite or migration instead of relying only on the new build's own claims.

Command for Claude Code

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 after transforming, upgrading, or redesigning a system to compare its modules with the legacy version and preserve the test and check records.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/thevibeworks/claude-code-docs/modernize-verify"><img src="https://agentmods.dev/badge/commands/thevibeworks/claude-code-docs/modernize-verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,552 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.00021 $0.03552
Opus 5.5 $0.00008 $0.01421
Sonnet 5.5 $0.00004 $0.00710
Haiku 4.5 $0.00002 $0.00355

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

Security

Grade A, and why

modernize-verify 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 19d 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-verify — 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-verify.md · 140 lines

How it starts

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

Re-check, independently, that the modernized code of $system behaves like the legacy, and give each module one verdict: PROVEN, PARTLY PROVEN or NOT PROVEN. Run it after transform, uplift or reimagine, in a fresh session if you can: what the build left behind is a claim, and this command re-runs it. A script computes the verdict, not you (fixed rules, written into the output), and it counts tests only from files it parses itself: keep the result file or the raw log of every test run and every canary run, and never type a count into test-runs.json. You write nothing in legacy/, never hand-edit the built code, the tests, an output or a result to improve a verdict, and never tick or approve anything a person owns. Run every command from the workspace root.

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. Run any 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 before you finish, and say you did. Before running any suite or the legacy code, read its configuration for the databases and services it connects to: if any is not a local or throwaway instance, stop and ask which environment to use.

1 — What was built

Rewrite: each folder in modernized/$system/. Same-stack uplift: the working copy modernized/$system-uplifted/ (the pack calls it $system-uplifted; its units are named in the Code and Command lines of BASELINE.md). Reimagine: each service in modernized/$system-reimagined/. Name them. With a $module (for an uplift, a unit) re-run only that one; the pack still judges every built module from its current evidence, never from an earlier run. A folder that holds only test code and the files that build it (a parity harness, say) is test tooling: the pack lists it as not judged and leaves it out of the verdict. If nothing is built, say so and stop: the next step is the brief's Phase 1 command (/code-modernization:modernize-status $system).

Read the full file on GitHub · 140 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. 19d ago First seen · 140 lines · 21 tokens per session scan A b2c5f4701ed9

Subscribe to this mod's changes

modernize-verify is a command published in the GitHub repository thevibeworks/claude-code-docs (150 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 3,552 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-verify, differing in 0 lines, and is treated as a copy.