modernize-uplift
Same-stack version uplift (e.g. .NET Framework to modern .NET, Java 8 to the current LTS) — keep the code, fix the version deltas, prove nothing changed
от smartworldarafath★ 16 звёзд на GitHub
Установить modernize-uplift в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Uplift $system from $source_version to $target_version: same stack, newer version.
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.
This is not transform, which extracts intent and rewrites idiomatically. Here the code is good
and only needs to run on a newer runtime. Preserve structure and make the smallest diffs that compile
and behave identically on the target, driven by the known breaking changes between the two
versions, not by re-deriving business logic. The optional fourth argument $project_pattern scopes the
work to matching projects.
The strong case is a real dual run. If both runtimes execute here, one test suite runs on both and
the equivalence proof is a differential test. It is not always available: .NET can multi-target one
test project (net48 and the target) but net48 runs only on Windows or Mono; for Java it is the whole build
run under two JDK toolchains; Python 2 cannot import an un-rewritten module under Python 3. When both
cannot run here, equivalence falls back, as in transform, to characterization tests pinned to
recorded outputs on the target only. That is fine, but label it honestly (Step 0.3, Step 7).
Step 0 — Toolchain and version pinning (fail fast)
- Pin the version pair exactly. If the versions were not given, take them from
analysis/$system/INTENT.mdor the brief. If either version is missing or vague (".NET" with no number), stop and ask. Check that the target is supported as${ANTIGRAVITY_PLUGIN_ROOT}/references/target-versions.mdsays: looked up, never remembered, and the versions you offer when you ask are looked up too. When the move spans several major versions or two things at once (a JDK and a framework: Java 8 with Spring 4 to a newer JDK with Spring Boot), split it into hops that each build and pass their tests before the next starts (for example Java 8, 11, 17, then the target), name the order in the plan, and treat each hop as its own pilot. - Target runtime, required. Verify it builds and tests (
dotnet --versionand adotnet testsmoke;mvnorgradle;python3 -Vandpytest). - Source runtime, the baseline oracle. Verify the old version also runs here. If it does not (common in CI and sandboxes: no .NET Framework on Linux), say so: dual run degrades to target-only and equivalence falls back to recorded outputs. Note it in the plan and in UPLIFT_NOTES.
- Can the existing test suite run on $target_version as-is? This reshapes the plan. A test
framework whose runner does not support the target (NUnit 2 or MSTest v1 on modern .NET, JUnit 4
without the vintage engine,
noseon Python 3) makes the test migration a prerequisite, not a leaf: nothing migrated can be validated until the tests that validate it run. view_file the framework and version from the test manifests and check them against the target. If the answer is no, it is an explicit early phase in Step 2 and in the brief. - Detect the ecosystem migration tool, and distinguish present, runnable here and
actually ran: most need a working restore and build (often network), so installed is not the
same as produced findings. Never fold a tool's findings into the catalog unless it ran; say
"coverage lost: needs restore and network, unavailable here" instead. .NET:
dotnet upgrade-assistant(also applies changes in place;apiportanalyzes compiled assemblies and is archived, so optional). Java and Spring: OpenRewrite (mvn rewrite:dryRunis headless and emits a patch: the most reliable). Python:pyupgrade(2to3is removed in 3.13,python-modernizeis abandoned). JS and Angular:ng update(edits in place, needs a clean git tree andnode_modules). - Where the tests point. Before running any suite, read its configuration for the databases, queues and services it connects to. If any is not a local or throwaway instance, stop and ask which environment to use: the baseline and the proof both run the old code against it.
/code-modernization:modernize-preflight $system $target_version gives the full readiness report.
Step 1 — Working copy, project graph and order
The brief is binding. If analysis/$system/MODERNIZATION_BRIEF.md exists, this invocation executes
one of its phases: find the phase whose Command: is this one and whose scope matches
$system or $project_pattern, and treat its scope, entry criteria, exit
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл modernize-uplift?
Same-stack version uplift (e.g. .NET Framework to modern .NET, Java 8 to the current LTS) — keep the code, fix the version deltas, prove nothing changed
Как установить скилл modernize-uplift?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл modernize-uplift запускает скрипты?
Нет, скилл состоит только из инструкций (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…