migrate
БесплатноБез исполняемых скриптовНе проверенMulti-agent codebase migration with module ownership. Use for large refactors, API upgrades, framework migrations, or bulk code changes.
от drn★ 23 звезды на GitHubОб этом скилле
Multi-Agent Migration
Decompose a migration across modules, assign each to an agent, and let them coordinate interface changes directly with each other.
Prerequisites
Agent teams must be enabled in Claude Code settings:
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
If agent teams are not enabled, report: "Agent teams required. Add CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 to your Claude Code settings (env section)." and stop.
Arguments
$ARGUMENTS- Required: description of the migration (e.g., "upgrade from v2 to v3 of the API client", "migrate from callbacks to async/await", "replace ORM X with Y")
If no arguments are provided, ask the user what they want to migrate.
Context
- Current branch: !
git branch --show-current - Git status: !
git status --short - Project root: !
pwd - Project type: !
find . -maxdepth 1 \( -name go.mod -o -name Gemfile -o -name package.json -o -name Cargo.toml -o -name pyproject.toml -o -name setup.py -o -name requirements.txt -o -name pom.xml -o -name build.gradle -o -name Makefile \) 2>/dev/null | head -5 - Recent commits: !
git log --oneline -5 - Directory structure: !
find . -maxdepth 2 -type d -not -path '*/\.*' -not -path '*/node_modules/*' -not -path '*/vendor/*' | head -30
Overview
You are the lead coordinator for a migration team. Your job is to decompose the migration into independent modules, assign each to an agent, and ensure agents coordinate interface changes directly with each other.
Migration task: $ARGUMENTS
You do NOT write code yourself. You decompose, assign, coordinate, and verify.
Why teams: When agent A changes an interface, it messages agents B and C who depend on it. They adapt in parallel rather than waiting for a sequential cascade through the lead. This peer-to-peer negotiation is why migrations benefit from teams over subagents.
Phase 0: Analysis
Clean working tree: If there are uncommitted changes, commit them with message
"WIP: pre-migration state"before proceeding.Understand the migration scope:
- Explore the codebase to identify all files/modules affected
- Map dependencies between modules
- Identify the migration pattern (what changes from old → new)
Decompose into independent modules. Each module should:
- Be owned by a single agent
- Have clear file boundaries (no overlapping files between agents)
- Have identifiable dependencies on other modules
Present the decomposition to the user:
## Migration Plan: {migration description}
### Modules
| Module | Owner | Files | Depends On |
|--------|-------|-------|------------|
| {name} | migrator-1 | {file list} | {other modules} |
| {name} | migrator-2 | {file list} | {other modules} |
| {name} | migrator-3 | {file list} | {other modules} |
### Migration Order
{Which modules should go first based on dependency direction}
### Interface Boundaries
{Key interfaces that will change and which modules are affected}
Wait for user approval before proceeding.
Create the team (clean up stale session first if needed):
TeamDelete() -- ignore if no existing team TeamCreate(team_name: "migration-session", description: "Migration: {brief summary}")Create the task list with TaskCreate:
- One task per module, with dependency ordering reflected in blockedBy
- "Wave {N} test check" -- for tester, after each wave (not just at the end)
- "Final verification" -- blocked by all module tasks
Spawn agents: One migrator per module, plus one tester. Use
model: "sonnet"for all agents. Spawn all in a single message.
Phase 1: Migration Waves
Migrations proceed in dependency order. Modules with no dependencies start first.
Wave start
Send each ready migrator their assignment via SendMessage:
MIGRATION: {overall migration description}
YOUR MODULE: {module name}
YOUR FILES (you own these exclusively -- no other agent will touch them):
{file list}
MIGRATION PATTERN:
{what to change: old pattern → new pattern, with examples}
MODULES THAT DEPEND ON YOU:
{list of downstream modules and their owners}
MODULES YOU DEPEND ON:
{list of upstream modules and their owners}
INSTRUCTIONS:
1. Read all your files to understand current usage.
2. Apply the migration pattern to each file.
3. If you CHANGE AN INTERFACE (function signature, type, export, etc.):
- Message each DOWNSTREAM module owner DIRECTLY with:
"I changed {old interface} to {new interface} in {file}. You'll need to update your usage in {their files}."
- Be specific: include the old and new signatures.
4. If you RECEIVE a message about an upstream interface change:
- Update your code to match the new interface.
- Acknowledge to the sender that you've adapted.
5. Run a basic sanity check (compile, lint) after changes.
6. When done, message me (the lead) with:
- Files changed
- Interfaces changed (and who you notified)
- Any issues or uncertaintie
Установить migrate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл migrate?
Multi-agent codebase migration with module ownership. Use for large refactors, API upgrades, framework migrations, or bulk code changes.
Как установить скилл migrate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migrate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic