Command Palette

Search for a command to run...

Назад к скиллам
скилл № 91407

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от 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)

  1. Pin the version pair exactly. If the versions were not given, take them from analysis/$system/INTENT.md or 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.md says: 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.
  2. Target runtime, required. Verify it builds and tests (dotnet --version and a dotnet test smoke; mvn or gradle; python3 -V and pytest).
  3. 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.
  4. 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, nose on 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.
  5. 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; apiport analyzes compiled assemblies and is archived, so optional). Java and Spring: OpenRewrite (mvn rewrite:dryRun is headless and emits a patch: the most reliable). Python: pyupgrade (2to3 is removed in 3.13, python-modernize is abandoned). JS and Angular: ng update (edits in place, needs a clean git tree and node_modules).
  6. 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

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить modernize-uplift с