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★ 29 499 звёзд на GitHubОб этом скилле
Author a first-party Nx migration
Companion files in this directory:
- runtime-contract.md: how
nx migrateconsumes 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 |
Установить author-migration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepВложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic