Command Palette

Search for a command to run...

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

author-migration

Author or scope a first-party Nx migration. Use whenever code removes, renames, or deprecates an option/flag/executor/generator-schema field, changes a…

БесплатноЗапускает вложенные скрипты
nrwlот nrwl★ 29 499 звёзд на GitHub

Установить author-migration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Author a first-party Nx migration

Companion files in this directory:

  • runtime-contract.md: how nx migrate consumes every migrations.json key. Read it before wiring an entry; most authoring mistakes are wrong assumptions about this contract.
  • deprecated-patterns.md: patterns to never reproduce, with recognition signatures. Read it before copying from an existing migration or from git history.
  • templates/: entry shapes, spec skeleton, and the two .md genres.

1. Decompose the change into migration needs

Enumerate every breaking or behavior-changing item in the change (upstream changelog, upstream migration guide, upstream repo's own migrations directory, or the Nx-internal change itself). Classify each item with exactly one treatment:

Treatment When Shape
Nothing Additive change, a plugin-absorbed break, or a shape no Nx surface produces (prose below) No entry
Version admission Nx starts supporting a new upstream major, even when the previous major stays supported packageJsonUpdates group gated on the source-major window; nx migrate moves willing workspaces onto the latest supported major (see packages/storybook/migrations.json key 22.1.0, shipped while v8 stayed supported, and packages/vite key 21.5.0)
Plain bump Dependency versions change, nothing else Declarative packageJsonUpdates. Never write a .ts implementation for an unconditional bump
Conditional dep change Add/remove/swap a dependency based on workspace state .ts implementation using addDependenciesToPackageJson / removeDependenciesFromPackageJson (add side: see packages/angular/src/migrations/update-23-1-0/add-angular-build.ts; copy its dependency handling, not its utils/versions import)
Source transform Deterministic, statically detectable source or config change (removed option, key rename, default flip) implementation + spec + documentation .md
Ported upstream migration Upstream ships its own migrations for the major (wins over Source transform for those items; a judgment-based upstream migration takes the Prompt-only/Hybrid shape) One generator-only migration per upstream migration, description ending "matching the X migration", requires on the new major (see packages/angular/migrations.json update-23-1-0-add-trust-proxy-headers)
Run upstream codemod Upstream publishes an npx-runnable codemod Prompt migration instructing the agent to run it; do not port it (see packages/react/src/migrations/update-23-1-0/ai-instructions-for-react-19.md)
Prompt-only Change requires judgment an AST transform cannot make
Полный SKILL.md на GitHub

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

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

  1. 01Bash
  2. 02Read
  3. 03Write
  4. 04Edit
  5. 05Glob
  6. 06Grep

Вложенные файлы

  • deprecated-patterns.md
  • runtime-contract.md
  • scripts/compute-target-versions.mjs
  • templates/documentation-md.md
  • templates/migrations-json.md
  • templates/prompt-runbook.md
  • templates/spec-skeleton.md

FAQ

Что делает скилл author-migration?

Author or scope a first-party Nx migration. Use whenever code removes, renames, or deprecates an option/flag/executor/generator-schema field, changes a default, or bumps a dependency, and someone asks whether existing workspaces need a migration so they don't break on `nx migrate`/upgrade. Covers writing the colocated update-VER/NAME.{ts,spec.ts,md} set, the migrations.json entry (version, requires, implementation, prompt, documentation) or packageJsonUpdates group, and the AI-agent prompt/runbook .md for prompt-only or hybrid (generator + prompt) migrations. Also covers porting an upstream framework's own migrations into Nx. Invoke BEFORE writing, fixing, or editing any migration, migration prompt/runbook, or packageJsonUpdates group, and before concluding a breaking change needs no migration at all.

Как установить скилл author-migration?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл author-migration запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить author-migration с