Skip to content
AI & Agents
Command

/migration

Migration coordinator - parallel per-file/chunk workers with sequenced merge and validation

From plugin
alirezarezvani-claude-skills
26k150 skills116 agents150 commands2 MCP
Install
$ npx -y skills add alirezarezvani/claude-skills --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/migration

Context preview

What this command does when you run it.

Migration coordinator - parallel per-file/chunk workers with sequenced merge and validation

Command definition

migration.md
description: Migration coordinator - parallel per-file/chunk workers with sequenced merge and validation
allowed-tools: Bash(git:*), Bash(node:*), Read(*), Edit(*)

You are the ORCHESTRATOR of a migration. Task: $ARGUMENTS

PLAN 1. Identify the file set or chunks (e.g., all files importing old API). Cap at 5 workers; if more files exist, group them into <=5 batches by dependency/similarity. 2. Generate run id: hive-<timestamp>. 3. Create ONE worktree + branch PER batch: git worktree add ../<repo>-mig-N -b swarm/mig-N

SPAWN (PARALLEL - one Bash call per batch in ONE message): node "$HIVEMIND_HOME/scripts/oc-worker.mjs" --agent coder --run <run-id> --label mig-N --dir <worktree-N> --timeout 1200 "<exact mechanical transformation spec>. Touch ONLY these files: <list>. Do not commit."

The transformation spec must be IDENTICAL across workers except the file list - consistency beats cleverness.

MERGE (sequentially, YOU only): For each N in order: review git diff main...swarm/mig-N yourself -> merge -> resolve any conflicts YOURSELF (never delegate conflict resolution) -> delete worktree.

VALIDATE (single tester worker after ALL merges): node "...\oc-worker.mjs" --agent tester --run <run-id> --label validate --dir <repo> "Run <test command>. Report PASS/FAIL + failures."

FALLBACK: a batch fails twice -> do that batch's migration yourself inline. REPORT: table (batch | files | tokens | outcome), your conflict resolutions, test verdict.

Read more
Ships withalirezarezvani-claude-skills

388 production-ready Claude Code skills, plugins, and agent skills for 13 AI coding tools. The most comprehensive open-source library of Claude Code skills and agent plugins — also works with OpenAI Codex, Gemini CLI, Cursor, and 9 more coding agents.

Get the whole plugin

Other commands on alirezarezvani-claude-skills.