Command Palette

Search for a command to run...

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

Migrate

Move instructions to AGENTS.md with a one-line CLAUDE.md shim (plan, apply, cutover-check, remove-shims; writes operator-gated). Use when: 'migrate to…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Migrate в Claude Code и Claude Desktop

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

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

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

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

Migrate a repository to AGENTS.md

Arguments. [plan|apply|cutover-check|remove-shims] [path ...]. Default: plan the repository at the current root

Purpose

One tool-agnostic instruction source per repository, small enough to load every session, readable by Codex, Cursor and every other agent that reads AGENTS.md, and still reaching Claude Code in the sessions that cannot read AGENTS.md directly.

Two mutating skills live in this plugin. /instruction-placement:realign executes findings a sibling audit produced, one at a time. This one owns a different unit of work: a repository's move from CLAUDE.md to AGENTS.md as the content home, which is a decision about a whole instruction layer rather than a list of findings. It gates every write on the operator just as realign does.

A migration run never removes a shim. Removal is a cutover with upstream conditions of its own, and it is the cutover-check and remove-shims arguments below. Never delete a CLAUDE.md shim during plan or apply, however unnecessary it looks.

The target shape

  • The root CLAUDE.md is exactly the one line @AGENTS.md. No heading, no comment, no other text.
  • Every directory with a Claude-audience nested AGENTS.md has a sibling CLAUDE.md that is exactly @AGENTS.md.
  • AGENTS.md carries the content. CLAUDE.md carries nothing but the import.
  • .cursor/, .codex/, .gemini/ and .github/ (chezmoi source dot_cursor/, dot_codex/, dot_gemini/) belong to those tools. Their instruction files are never given a Claude shim and never merged into AGENTS.md.

Where each kind of text goes

Each kind of text goes to the best current native location for it. That is the whole convention; the three destinations below follow from it.

Text Destination Why
Shared, relevant to every conversation root AGENTS.md It has to be resident, and every agent reads this file
Shared, relevant sometimes the repository's existing docs home, behind a one-line pointer in AGENTS.md that says when to read it It earns its place only at the moment it applies, and a resident copy taxes every session
Claude-specific .claude/rules/<topic>.md with a paths: glob, or a stated always-relevant reason Other tools never read it, and the glob is what makes the cost conditional
Tool-agnostic but about one file or area Short: stays resident in root AGENTS.md. Long: the docs home, behind a pointer whose condition names the file. Scoped to one directory: a nested AGENTS.md AGENTS.md has no path scoping, and .claude/rules/ would hide it from the other tools that need it. Length decides between resident and pointer; a directory boundary is what makes the nested file fit
Another tool's that tool's own directory, untouched It is theirs

The docs home is detected, never imposed: plan-migration.sh emits a DOCSHOME row naming the directory the repository already keeps (docs/, doc/, documentation/). Use that one. Create docs/ only when the row says absent, and never relocate an existing home as part of a migration.

A pointer is not a summary. One line naming the file and the condition that should send a reader to it ("Read docs/release-process.md before cutting a release") beats a paragraph restating it.

/docs-hygiene:write-for-agents (if enabled) owns how this text is written: invoke it via the Skill tool when that plugin is enabled, for the root AGENTS.md, every new .claude/rules/ file, and every pointer. Where it is not enabled, write the text here and say that the write-side doctrine was not available, rather than skipping the move.

Check the mechanics quotes first

Every run, whatever the argument, starts with "${CLAUDE_PLUGIN_ROOT}/scripts/quote-check.sh". Read reference/quote-check.md before running it: what it prints and how each result reaches the plan and the apply gate. In short: list each drift result at the top, quote the deciding sentence of each record a move relies on beside that move, and label a move relying on an unverified or drifted record "unverified as of <date>" in the plan and at the apply gate.

Plan first

${CLAUDE_PLUGIN_ROOT}/skills/migrate/scripts/plan-migration.sh --root <repo>

Always pass --root. The call's working directory may not be the repository root (what carries over between calls: Tools reference, "What persists between commands"). --root may point anywhere inside the repository; the script resolves to the toplevel itself.

Read-only: it has no other mode, and --dry-run is accepted and ignored so an older caller does not break. A kind with nothing to report prints a tab-separated <KIND> / NONE row, so a clean repository is visibly clean rather than indistinguishable from a run that never happened. Its rows are the fac

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

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

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

  1. 01[ "Bash(${CLAUDE_PLUGIN_ROOT}/scripts/quote-check.sh)"
  2. 02Bash(${CLAUDE_PLUGIN_ROOT}/skills/migrate/scripts/plan-migration.sh:*)
  3. 03Bash(${CLAUDE_PLUGIN_ROOT}/skills/migrate/scripts/cutover-check.sh:*)
  4. 04Bash(${CLAUDE_PLUGIN_ROOT}/scripts/render-index.sh:*)
  5. 05Bash(${CLAUDE_PLUGIN_ROOT}/scripts/glob-tools.sh:*)
  6. 06Bash(${CLAUDE_PLUGIN_ROOT}/scripts/verify-load.sh:*)
  7. 07Read
  8. 08Grep
  9. 09Glob
  10. 10Edit
  11. 11Write
  12. 12]

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

  • reference/cutover.md
  • reference/quote-check.md
  • reference/shim-droppable.md
  • reference/sources.md
  • reference/verification.md
  • scripts/cutover-check.sh
  • scripts/cutover-check.test.sh
  • scripts/plan-migration.sh
  • scripts/plan-migration.test.sh
  • scripts/remove-shims.sh
  • scripts/remove-shims.test.sh

FAQ

Что делает скилл Migrate?

Move instructions to AGENTS.md with a one-line CLAUDE.md shim (plan, apply, cutover-check, remove-shims; writes operator-gated). Use when: 'migrate to AGENTS.md', 'share instructions with Codex and Cursor', 'can we drop the CLAUDE.md shims yet'. Not for sweeps (/instruction-placement:audit) or findings (/instruction-placement:realign).

Как установить скилл Migrate?

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

Скилл Migrate запускает скрипты?

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

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

Сравнить Migrate с