Cross-Repo Migration Swarm

•
188
•

Orchestrates parallel AI agents to apply code transformations and manage pull requests across multiple repositories simultaneously.

The swarm-migrate skill is a high-level orchestration tool for Claude Code designed to automate large-scale code changes across an entire organization. It employs a coordinator-led architecture where a central controller manages multiple parallel sub-agents, each operating in an isolated git worktree for a specific repository. By utilizing a YAML-based specification, it handles topological dependency sorting, automated verification, PR creation, and CI status monitoring, ensuring that complex rollouts—like dependency upgrades, security patches, or organization-wide workflow changes—are executed safely, consistently, and with a shared ledger for real-time progress tracking.

Key Features

01Automated CI Gating: Polls GitHub PR checks and pauses or skips repos based on CI success or failure policies.
02Conflict Auto-Rebase: Automatically attempts to rebase downstream branches when parent repositories are merged to maintain sync.
03Real-Time Ledger Tracking: Maintains a detailed JSON state file for progress tracking, resumability, and final reporting.
04Topological Dependency Management: Builds a DAG to ensure upstream repositories are merged and green before proceeding downstream.
05188 GitHub stars
06Parallel Multi-Repo Execution: Dispatches sub-agents to multiple repositories simultaneously using isolated git worktrees.

Use Cases

01Bumping a shared GitHub Action or core dependency version across dozens of internal repositories at once.
02Executing multi-stage codemods that require PRs to be merged in a specific order to prevent breaking changes.
03Rolling out standardized linting rules, license headers, or security configurations across an entire organization.