GitHub Multi-Repository Coordination
Coordinate AI swarms, package synchronisation, and architecture across multiple
repositories: organisation-wide automation, cross-project changes, and scalable
repository management. Combines gh CLI, claude-flow swarm MCP tools, and
agent orchestration.
When to use
- A single change must land across several repos in step (dependency bumps,
security patches, policy files, shared CI workflows).
- Aligning package versions or documentation across packages/monorepo members.
- Discovering related repos, mapping cross-repo dependencies, or standardising
structure/templates org-wide.
When not to use
- Single-repository code review →
github-code-review.
- Release management within one repo →
github-release-management.
- GitHub Actions workflow authoring →
github-workflow-automation.
- Issue tracking / sprint planning →
github-project-management.
- Cloud swarm deployment unrelated to GitHub repos →
flow-nexus-swarm.
Safety — org-wide operations are hard to reverse
Cross-repo pushes touch many repositories in one sweep and are not locally
reversible once fanned out. Before running a fan-out that pushes, opens PRs, or
mutates files across an org:
- Scope the repo filter tightly and dry-run the discovery step first (list the
repos that would be touched before acting on them).
- Prefer opening PRs over direct pushes so each change is reviewable per repo.
- For genuinely irreversible org-wide sweeps (force pushes, protected-branch or
policy changes), get explicit human sign-off before executing — treat this as a
hard gate, not a default.
This is the one guard-railed path in the skill; everything else is judgment-based.
Quick start
# Initialize multi-repo coordination (hierarchical topology)
npx claude-flow skill run github-multi-repo init \
--repos "org/frontend,org/backend,org/shared" \
--topology hierarchical
# Mesh topology with shared memory + eventual-consistency sync
npx claude-flow skill run github-multi-repo init \
--repos "org/frontend,org/backend,org/shared" \
--topology mesh --shared-memory --sync-strategy eventual
# Synchronize package versions and dependencies
npx claude-flow skill run github-multi-repo sync \
--packages "claude-code-flow,ruv-swarm" --align-versions --update-docs
# Analyze and optimize repository structure
npx claude-flow skill run github-multi-repo optimize \
--analyze-structure --suggest-improvements --create-templates
Claude Code only: the swarm orchestration above (claude-flow skill run) needs the
claude-flow MCP server. On Codex / GPT-6 Astra (or any session without it): see
../github-code-review/references/plain-gh-fallback.md
for the plain gh-only path (the org-wide safety rules above still apply).
Core capabilities
- Multi-repository swarm coordination — cross-repo AI swarm orchestration for
distributed workflows.
- Package synchronisation — dependency resolution and version alignment across
packages.
- Repository architecture — structure optimisation and template management.
- Integration management — cross-package integration testing and deployment.
References
- references/cookbook.md — runnable recipes: swarm
discovery/synchronised ops, package + doc version alignment, cross-package
features, architecture analysis, template creation, standardisation, and the
org-wide dependency/refactor/security-patch workflows.
- references/configuration.md —
.swarm/multi-repo.yml
config, repository roles, webhook/Kafka communication strategies, eventual/strong/
hybrid sync patterns, and monorepo/command-structure layouts.
- references/operations.md — the
skill run github-multi-repo <verb> operational surface (use cases, dashboards,
dep-graph, health checks, caching/parallel/resource tuning, troubleshooting,
advanced features, metrics), plus related-skill integration points.
Version: 1.0.0 · Last Updated: 2026-07-28 · Maintainer: Claude Flow Team
1---2name: github-multi-repo3description: Coordinate work across many GitHub repositories at once — org-wide dependency/security updates, package and doc version alignment, cross-repo refactors, and shared architecture/templates. Use when a change must land in several repos together, not for single-repo review, release, or CI tasks.4---56# GitHub Multi-Repository Coordination78Coordinate AI swarms, package synchronisation, and architecture across multiple9repositories: organisation-wide automation, cross-project changes, and scalable10repository management. Combines `gh` CLI, `claude-flow` swarm MCP tools, and11agent orchestration.1213## When to use14- A single change must land across several repos in step (dependency bumps,15 security patches, policy files, shared CI workflows).16- Aligning package versions or documentation across packages/monorepo members.17- Discovering related repos, mapping cross-repo dependencies, or standardising18 structure/templates org-wide.1920## When not to use21- Single-repository code review → `github-code-review`.22- Release management within one repo → `github-release-management`.23- GitHub Actions workflow authoring → `github-workflow-automation`.24- Issue tracking / sprint planning → `github-project-management`.25- Cloud swarm deployment unrelated to GitHub repos → `flow-nexus-swarm`.2627## Safety — org-wide operations are hard to reverse28Cross-repo pushes touch many repositories in one sweep and are not locally29reversible once fanned out. Before running a fan-out that pushes, opens PRs, or30mutates files across an org:31- Scope the repo filter tightly and dry-run the discovery step first (list the32 repos that would be touched before acting on them).33- Prefer opening PRs over direct pushes so each change is reviewable per repo.34- For genuinely irreversible org-wide sweeps (force pushes, protected-branch or35 policy changes), get explicit human sign-off before executing — treat this as a36 hard gate, not a default.37This is the one guard-railed path in the skill; everything else is judgment-based.3839## Quick start4041```bash42# Initialize multi-repo coordination (hierarchical topology)43npx claude-flow skill run github-multi-repo init \44 --repos "org/frontend,org/backend,org/shared" \45 --topology hierarchical4647# Mesh topology with shared memory + eventual-consistency sync48npx claude-flow skill run github-multi-repo init \49 --repos "org/frontend,org/backend,org/shared" \50 --topology mesh --shared-memory --sync-strategy eventual5152# Synchronize package versions and dependencies53npx claude-flow skill run github-multi-repo sync \54 --packages "claude-code-flow,ruv-swarm" --align-versions --update-docs5556# Analyze and optimize repository structure57npx claude-flow skill run github-multi-repo optimize \58 --analyze-structure --suggest-improvements --create-templates59```6061**Claude Code only:** the swarm orchestration above (`claude-flow skill run`) needs the62claude-flow MCP server. On Codex / GPT-6 Astra (or any session without it): see63[../github-code-review/references/plain-gh-fallback.md](../github-code-review/references/plain-gh-fallback.md)64for the plain `gh`-only path (the org-wide safety rules above still apply).6566## Core capabilities67- **Multi-repository swarm coordination** — cross-repo AI swarm orchestration for68 distributed workflows.69- **Package synchronisation** — dependency resolution and version alignment across70 packages.71- **Repository architecture** — structure optimisation and template management.72- **Integration management** — cross-package integration testing and deployment.7374## References75- **[references/cookbook.md](references/cookbook.md)** — runnable recipes: swarm76 discovery/synchronised ops, package + doc version alignment, cross-package77 features, architecture analysis, template creation, standardisation, and the78 org-wide dependency/refactor/security-patch workflows.79- **[references/configuration.md](references/configuration.md)** — `.swarm/multi-repo.yml`80 config, repository roles, webhook/Kafka communication strategies, eventual/strong/81 hybrid sync patterns, and monorepo/command-structure layouts.82- **[references/operations.md](references/operations.md)** — the83 `skill run github-multi-repo <verb>` operational surface (use cases, dashboards,84 dep-graph, health checks, caching/parallel/resource tuning, troubleshooting,85 advanced features, metrics), plus related-skill integration points.8687---8889**Version:** 1.0.0 · **Last Updated:** 2026-07-28 · **Maintainer:** Claude Flow Team