$npx -y skills add spencermarx/open-code-review --skill github-multi-repoMulti-repository coordination, synchronization, and architecture management with AI swarm orchestration
| 1 | # GitHub Multi-Repository Coordination Skill |
| 2 | |
| 3 | ## Overview |
| 4 | |
| 5 | Advanced multi-repository coordination system that combines swarm intelligence, package synchronization, and repository architecture optimization. This skill enables organization-wide automation, cross-project collaboration, and scalable repository management. |
| 6 | |
| 7 | ## Core Capabilities |
| 8 | |
| 9 | ### 🔄 Multi-Repository Swarm Coordination |
| 10 | Cross-repository AI swarm orchestration for distributed development workflows. |
| 11 | |
| 12 | ### 📦 Package Synchronization |
| 13 | Intelligent dependency resolution and version alignment across multiple packages. |
| 14 | |
| 15 | ### 🏗️ Repository Architecture |
| 16 | Structure optimization and template management for scalable projects. |
| 17 | |
| 18 | ### 🔗 Integration Management |
| 19 | Cross-package integration testing and deployment coordination. |
| 20 | |
| 21 | ## Quick Start |
| 22 | |
| 23 | ### Initialize Multi-Repo Coordination |
| 24 | ```bash |
| 25 | # Basic swarm initialization |
| 26 | npx claude-flow skill run github-multi-repo init \ |
| 27 | --repos "org/frontend,org/backend,org/shared" \ |
| 28 | --topology hierarchical |
| 29 | |
| 30 | # Advanced initialization with synchronization |
| 31 | npx claude-flow skill run github-multi-repo init \ |
| 32 | --repos "org/frontend,org/backend,org/shared" \ |
| 33 | --topology mesh \ |
| 34 | --shared-memory \ |
| 35 | --sync-strategy eventual |
| 36 | ``` |
| 37 | |
| 38 | ### Synchronize Packages |
| 39 | ```bash |
| 40 | # Synchronize package versions and dependencies |
| 41 | npx claude-flow skill run github-multi-repo sync \ |
| 42 | --packages "claude-code-flow,ruv-swarm" \ |
| 43 | --align-versions \ |
| 44 | --update-docs |
| 45 | ``` |
| 46 | |
| 47 | ### Optimize Architecture |
| 48 | ```bash |
| 49 | # Analyze and optimize repository structure |
| 50 | npx claude-flow skill run github-multi-repo optimize \ |
| 51 | --analyze-structure \ |
| 52 | --suggest-improvements \ |
| 53 | --create-templates |
| 54 | ``` |
| 55 | |
| 56 | ## Features |
| 57 | |
| 58 | ### 1. Cross-Repository Swarm Orchestration |
| 59 | |
| 60 | #### Repository Discovery |
| 61 | ```javascript |
| 62 | // Auto-discover related repositories with gh CLI |
| 63 | const REPOS = Bash(`gh repo list my-organization --limit 100 \ |
| 64 | --json name,description,languages,topics \ |
| 65 | --jq '.[] | select(.languages | keys | contains(["TypeScript"]))'`) |
| 66 | |
| 67 | // Analyze repository dependencies |
| 68 | const DEPS = Bash(`gh repo list my-organization --json name | \ |
| 69 | jq -r '.[].name' | while read -r repo; do |
| 70 | gh api repos/my-organization/$repo/contents/package.json \ |
| 71 | --jq '.content' 2>/dev/null | base64 -d | jq '{name, dependencies}' |
| 72 | done | jq -s '.'`) |
| 73 | |
| 74 | // Initialize swarm with discovered repositories |
| 75 | mcp__claude-flow__swarm_init({ |
| 76 | topology: "hierarchical", |
| 77 | maxAgents: 8, |
| 78 | metadata: { repos: REPOS, dependencies: DEPS } |
| 79 | }) |
| 80 | ``` |
| 81 | |
| 82 | #### Synchronized Operations |
| 83 | ```javascript |
| 84 | // Execute synchronized changes across repositories |
| 85 | [Parallel Multi-Repo Operations]: |
| 86 | // Spawn coordination agents |
| 87 | Task("Repository Coordinator", "Coordinate changes across all repositories", "coordinator") |
| 88 | Task("Dependency Analyzer", "Analyze cross-repo dependencies", "analyst") |
| 89 | Task("Integration Tester", "Validate cross-repo changes", "tester") |
| 90 | |
| 91 | // Get matching repositories |
| 92 | Bash(`gh repo list org --limit 100 --json name \ |
| 93 | --jq '.[] | select(.name | test("-service$")) | .name' > /tmp/repos.txt`) |
| 94 | |
| 95 | // Execute task across repositories |
| 96 | Bash(`cat /tmp/repos.txt | while read -r repo; do |
| 97 | gh repo clone org/$repo /tmp/$repo -- --depth=1 |
| 98 | cd /tmp/$repo |
| 99 | |
| 100 | # Apply changes |
| 101 | npm update |
| 102 | npm test |
| 103 | |
| 104 | # Create PR if successful |
| 105 | if [ $? -eq 0 ]; then |
| 106 | git checkout -b update-dependencies-$(date +%Y%m%d) |
| 107 | git add -A |
| 108 | git commit -m "chore: Update dependencies" |
| 109 | git push origin HEAD |
| 110 | gh pr create --title "Update dependencies" --body "Automated update" --label "dependencies" |
| 111 | fi |
| 112 | done`) |
| 113 | |
| 114 | // Track all operations |
| 115 | TodoWrite { todos: [ |
| 116 | { id: "discover", content: "Discover all service repositories", status: "completed" }, |
| 117 | { id: "update", content: "Update dependencies", status: "completed" }, |
| 118 | { id: "test", content: "Run integration tests", status: "in_progress" }, |
| 119 | { id: "pr", content: "Create pull requests", status: "pending" } |
| 120 | ]} |
| 121 | ``` |
| 122 | |
| 123 | ### 2. Package Synchronization |
| 124 | |
| 125 | #### Version Alignment |
| 126 | ```javascript |
| 127 | // Synchronize package dependencies and versions |
| 128 | [Complete Package Sync]: |
| 129 | // Initialize sync swarm |
| 130 | mcp__claude-flow__swarm_init({ topology: "mesh", maxAgents: 5 }) |
| 131 | |
| 132 | // Spawn sync agents |
| 133 | Task("Sync Coordinator", "Coordinate version alignment", "coordinator") |
| 134 | Task("Dependency Analyzer", "Analyze dependencies", "analyst") |
| 135 | Task("Integration Tester", "Validate synchronization", "tester") |
| 136 | |
| 137 | // Read package states |
| 138 | Read("/workspaces/ruv-FANN/claude-code-flow/claude-code-flow/package.json") |
| 139 | Read("/wor |