migrate · parcadei — скилл для Claude Code: миграции и установка
Ведёт миграцию от исследования цели до проверки изменений. Пригодится при обновлении фреймворка, языка, базы данных или инфраструктуры.
npx skills add parcadei/Continuous-Claude-v3 --skill migrate -a claude-codeЧто делает migrate
Скилл проводит миграцию по цепочке из пяти субагентов: oracle изучает целевую технологию, phoenix оценивает влияние на код, plan-agent строит поэтапный план. Затем kraken вносит изменения, а surveyor проверяет результат.
Исследование ищет критические изменения, новые API, устаревшие возможности и типичные проблемы. Анализ выделяет затронутые файлы, конфликты зависимостей, шаблоны для обновления и покрытие тестами. План включает независимые для тестирования этапы и стратегию отката.
Во время внедрения скилл запускает тесты после каждого изменения и останавливается при их сбое. Флаги --phase N, --dry-run, --rollback и --parallel позволяют выполнить отдельный этап, составить план без изменений, откатить работу или держать новую версию рядом со старой. Из-за конфликтов зависимостей и устаревших API это повод начать с --dry-run.
Какие задачи решает
- обновить версию фреймворка
- перенести проект с одной технологии на другую
- найти файлы с устаревшими API
- разбить миграцию на проверяемые этапы
- проверить изменения после переноса базы данных
Примеры запросов агенту
- Запусти
/migrate React 17 → 18 - Составь план через
/migrate MongoDB → PostgreSQL --dry-run - Выполни первый этап:
/migrate Python 3.9 → 3.12 --phase 1
Как установить migrate
1Через Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill migrate -a claude-code2Вручную: положить файлы
~/.claude/skills/migrate/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/migrate/
1Через Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill migrate -a codex2Вручную: положить файлы
.agents/skills/migrate/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill migrate -a cursor2Вручную: положить файлы
.cursor/skills/migrate/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install parcadei/Continuous-Claude-v3 migrate2Вручную: положить файлы
.github/skills/migrate/SKILL.md1Через Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill migrate -a gemini-cli2Командой платформы
gemini skills install https://github.com/parcadei/Continuous-Claude-v3 --path .claude/skills/migrateВручную: положить файлы
.devin/skills/migrate/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill migrate -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора69
Другие версии migrate
Похожие
Рядом в теме «Настройка агента: память, контекст, субагенты»
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Вопросы о migrate
Как установить migrate в Claude Code?
Выполните npx skills add parcadei/Continuous-Claude-v3 --skill migrate -a claude-code, затем повторите npx skills add parcadei/Continuous-Claude-v3 --skill migrate -a claude-code. Файл скилла находится в ~/.claude/skills/migrate/SKILL.md.
Что делает migrate?
Скилл организует миграцию через исследование целевой технологии, анализ текущего кода, планирование, внесение изменений и итоговую проверку. Для этапов он использует субагентов oracle, phoenix, plan-agent, kraken и surveyor.
Как выполнить только один этап миграции?
Добавьте флаг --phase N, где N задаёт нужный этап. Для подготовки плана без изменений используйте --dry-run.
Исходный текст
SKILL.md · MIT
--- name: migrate description: Migration workflow - research → analyze → plan → implement → review --- # /migrate - Migration Workflow Safe migrations for frameworks, languages, and infrastructure. ## When to Use - "Migrate to X" - "Upgrade framework" - "Move from X to Y" - "Upgrade Python/Node/etc." - "Migrate database" - Framework version upgrades - Language migrations - Infrastructure changes ## Workflow Overview ``` ┌──────────┐ ┌──────────┐ ┌────────────┐ ┌──────────┐ ┌───────────┐ │ oracle │───▶│ phoenix │───▶│ plan- │───▶│ kraken │───▶│ surveyor │ │ │ │ │ │ agent │ │ │ │ │ └──────────┘ └──────────┘ └────────────┘ └──────────┘ └───────────┘ Research Analyze Plan Implement Review target current migration changes migration ``` ## Agent Sequence | # | Agent | Role | Output | |---|-------|------|--------| | 1 | **oracle** | Research target framework/version | Research report | | 2 | **phoenix** | Analyze current codebase for migration impact | Impact analysis | | 3 | **plan-agent** | Create phased migration plan | Migration plan | | 4 | **kraken** | Implement migration changes | Code changes | | 5 | **surveyor** | Review migration for completeness | Migration review | ## Why Extra Gates? Migrations are high-risk: - Breaking changes between versions - Dependency conflicts - Data format changes - API deprecations The extra research and review phases catch issues early. ## Execution ### Phase 1: Research Target ``` Task( subagent_type="oracle", prompt=""" Research migration target: [TARGET] Investigate: - Breaking changes from current version - New APIs and patterns - Deprecated features we use - Migration guides from official docs - Common pitfalls and solutions Output: Migration research report """ ) ``` ### Phase 2: Analyze Current State ``` Task( subagent_type="phoenix", prompt=""" Analyze codebase for migration: [FROM] → [TO] Identify: - Files using deprecated APIs - Dependency conflicts - Patterns that need updating - Test coverage of affected areas - Risk areas (critical paths) Output: Impact analysis with affected files """ ) ``` ### Phase 3: Plan Migration ``` Task( subagent_type="plan-agent", prompt=""" Create migration plan: [FROM] → [TO] Research: [from oracle] Impact: [from phoenix] Plan should: - Be phased (incremental if possible) - Each phase independently testable - Include rollback strategy - Prioritize critical path stability Output: Phased migration plan """ ) ``` ### Phase 4: Implement ``` Task( subagent_type="kraken", prompt=""" Implement migration phase: [PHASE_N] Plan: [from plan-agent] Requirements: - Follow plan exactly - Run tests after each change - Document any deviations - Stop if tests fail Output: Completed phase with test results """ ) ``` ### Phase 5: Review Migration ``` Task( subagent_type="surveyor", prompt=""" Review migration: [FROM] → [TO] Check: - All deprecated APIs replaced - No remaining compatibility shims - Tests passing - Performance acceptable - No security regressions Output: Migration review report """ ) ``` ## Migration Types ### Framework Upgrade ``` User: /migrate React 17 → 18 → Full workflow with hooks/concurrent mode changes ``` ### Language Version ``` User: /migrate Python 3.9 → 3.12 → Focus on new syntax, removed features ``` ### Database Migration ``` User: /migrate MongoDB → PostgreSQL → Schema design, data transformation, query rewrite ``` ### Infrastructure ``` User: /migrate AWS → GCP → Service mapping, config translation ``` ## Example ``` User: /migrate from Express to Fastify Claude: Starting /migrate workflow: Express → Fastify Phase 1: Researching Fastify... [Spawns oracle] Key differences: - Schema-based validation (vs middleware) - Plugin architecture - Async/await native - Different middleware pattern Phase 2: Analyzing current Express usage... [Spawns phoenix] Impact analysis: - 23 route files to update - 8 middleware to convert - 3 plugins need Fastify equivalents - Test coverage: 78% Phase 3: Creating migration plan... [Spawns plan-agent] Migration Plan: Express → Fastify ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Phase 1: Setup & Core - Add Fastify alongside Express - Migrate core server setup - Run both in parallel Phase 2: Routes (by domain) - Migrate auth routes - Migrate user routes - Migrate product routes - ... Phase 3: Middleware - Convert error handler - Convert auth middleware - Convert logging Phase 4: Cleanup - Remove Express - Remove compatibility layer - Final testing Rollback: Keep Express until Phase 4 complete Phase 4: Implementing Phase 1... [Spawns kraken] ✅ Fastify server running alongside Express ✅ Core routes migrated ✅ Tests passing [Continues through phases...] Phase 5: Reviewing migration... [Spawns surveyor] ✅ All Express code removed ✅ 23/23 routes migrated ✅ Performance improved (2.1x faster) ✅ No security regressions Migration complete! Express → Fastify ``` ## Incremental Migration For large codebases, run one phase at a time: ``` User: /migrate React 17 → 18 --phase 1 [Runs only Phase 1] User: /migrate React 17 → 18 --phase 2 [Runs Phase 2, reads previous handoff] ``` ## Flags - `--phase N`: Run specific phase only - `--dry-run`: Plan without implementing - `--rollback`: Execute rollback plan - `--parallel`: Run new alongside old (strangler fig)
© parcadei · MIT · parcadei/Continuous-Claude-v3