modernize-verify
Prove the modernized code behaves like the legacy, with an independent re-check and one verdict per module
от smartworldarafath★ 16 звёзд на GitHub
Установить modernize-verify в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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).
2 — Which rules do the tests name?
Rewrite and reimagine: python3 "${ANTIGRAVITY_PLUGIN_ROOT}/scripts/trace_rules.py" $system --module <module> (after step 3 add --results <the module's result folder>;
before it nothing has run, so a named rule reads "named, not run"). A rule counts as tested only when a test that ran and passed backs it: the id
(RULE-017, or rule017) is in the name of a passing test or of its class, or a test file names it on a line not marked skipped or pending and
that file's class passed. A rule only a skipped, pending or failing test names is "named, not run", and one only the notes name is "claimed":
neither is tested. The pack repeats this: read it to know the gaps, and do not fix them here.
3 — Run the tests again from clean, and run your own canary
For each module (uplift: the units the baseline covers) delete its build output and runner caches first (target/, build/,
bin/, obj/, __pycache__/, .pytest_cache/, .jqwik-database, or the stack's clean command when it works offline) and run
the full suite (uplift: the command BASELINE.md records; Maven also -Dmaven.test.failure.ignore=true). Keep the runner's
JUnit-style XML where it can write it (Maven writes target/surefire-reports; pytest --junitxml=<file>;
dotnet test --logger "junit;LogFilePath=<file>" or trx; jest-junit; gotestsum --junitfile <file>) and the raw output
either way: <test command> 2>&1 | tee analysis/$system/equivalence/<suite>.test-output.txt. The pack reads the XML, else the summary
lines of Maven and Gradle, cargo, pytest, unittest, go test, dotnet test, jest, vitest, ctest and phpunit. Only the XML lists each test, so only it can
show that a rule's test ran; a log gives counts. A failure caused by this
machine (a missing tool, a sandbox limit) is still a failure: say why in the suite note. If the toolchain will not run here, record the
suite with "executed": 0 and a note: nothing executed is NOT PROVEN, not a pass.
Canary. Copy the module (with what it builds from, such as a parent POM) to a scratch folder outside modernized/ and analysis/.
Break one line that matters (a rounding mode, a threshold by one, a comparison), run the tests that cover it (at least their class or
file) and keep that run's XML or raw log in analysis/$system/equivalence/canary/<module>/. The pack compares its failures with the
clean run's. A Canary: line in the notes is a claim; the pack does not count it.
Uplift: also run python3 "${ANTIGRAVITY_PLUGIN_ROOT}/scripts/baseline_diff.py" analysis/$system/BASELINE.md --junit <results folder>.
A test that pins the old version's behavior and fails on the new one is a difference, not a test bug, and tests the pilot added after
the baseline show as new failures (say so in the suite note). A person decides each: fix the code, update t
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл modernize-verify?
Prove the modernized code behaves like the legacy, with an independent re-check and one verdict per module
Как установить скилл modernize-verify?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл modernize-verify запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…