[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BNF4NNP29EY786331SJTQA":3,"skill-same:01M7BNF4NNP29EY786331SJTQA":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7BNF4NNP29EY786331SJTQA","agent-multi-repo-swarm",null,"Agent skill for multi-repo-swarm - invoke with $agent-multi-repo-swarm","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-ruflo\u002F.agents\u002Fskills\u002Fagent-multi-repo-swarm\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-multi-repo-swarm\ndescription: Agent skill for multi-repo-swarm - invoke with $agent-multi-repo-swarm\n---\n\n---\nname: multi-repo-swarm\ndescription: Cross-repository swarm orchestration for organization-wide automation and intelligent collaboration\ntype: coordination\ncolor: \"#FF6B35\"\ntools:\n  - Bash\n  - Read\n  - Write\n  - Edit\n  - Glob\n  - Grep\n  - LS\n  - TodoWrite\n  - mcp__claude-flow__swarm_init\n  - mcp__claude-flow__agent_spawn\n  - mcp__claude-flow__task_orchestrate\n  - mcp__claude-flow__swarm_status\n  - mcp__claude-flow__memory_usage\n  - mcp__claude-flow__github_repo_analyze\n  - mcp__claude-flow__github_pr_manage\n  - mcp__claude-flow__github_sync_coord\n  - mcp__claude-flow__github_metrics\nhooks:\n  pre:\n    - \"gh auth status || (echo 'GitHub CLI not authenticated' && exit 1)\"\n    - \"git status --porcelain || echo 'Not in git repository'\"\n    - \"gh repo list --limit 1 >$dev$null || (echo 'No repo access' && exit 1)\"\n  post:\n    - \"gh pr list --state open --limit 5 | grep -q . && echo 'Active PRs found'\"\n    - \"git log --oneline -5 | head -3\"\n    - \"gh repo view --json name,description,topics\"\n---\n\n# Multi-Repo Swarm - Cross-Repository Swarm Orchestration\n\n## Overview\nCoordinate AI swarms across multiple repositories, enabling organization-wide automation and intelligent cross-project collaboration.\n\n## Core Features\n\n### 1. Cross-Repo Initialization\n```bash\n# Initialize multi-repo swarm with gh CLI\n# List organization repositories\nREPOS=$(gh repo list org --limit 100 --json name,description,languages \\\n  --jq '.[] | select(.name | test(\"frontend|backend|shared\"))')\n\n# Get repository details\nREPO_DETAILS=$(echo \"$REPOS\" | jq -r '.name' | while read -r repo; do\n  gh api repos$org\u002F$repo --jq '{name, default_branch, languages, topics}'\ndone | jq -s '.')\n\n# Initialize swarm with repository context\nnpx ruv-swarm github multi-repo-init \\\n  --repo-details \"$REPO_DETAILS\" \\\n  --repos \"org$frontend,org$backend,org$shared\" \\\n  --topology hierarchical \\\n  --shared-memory \\\n  --sync-strategy eventual\n```\n\n### 2. Repository Discovery\n```bash\n# Auto-discover related repositories with gh CLI\n# Search organization repositories\nREPOS=$(gh repo list my-organization --limit 100 \\\n  --json name,description,languages,topics \\\n  --jq '.[] | select(.languages | keys | contains([\"TypeScript\"]))')\n\n# Analyze repository dependencies\nDEPS=$(echo \"$REPOS\" | jq -r '.name' | while read -r repo; do\n  # Get package.json if it exists\n  if gh api repos$my-organization\u002F$repo$contents$package.json --jq '.content' 2>$dev$null; then\n    gh api repos$my-organization\u002F$repo$contents$package.json \\\n      --jq '.content' | base64 -d | jq '{name, dependencies, devDependencies}'\n  fi\ndone | jq -s '.')\n\n# Discover and analyze\nnpx ruv-swarm github discover-repos \\\n  --repos \"$REPOS\" \\\n  --dependencies \"$DEPS\" \\\n  --analyze-dependencies \\\n  --suggest-swarm-topology\n```\n\n### 3. Synchronized Operations\n```bash\n# Execute synchronized changes across repos with gh CLI\n# Get matching repositories\nMATCHING_REPOS=$(gh repo list org --limit 100 --json name \\\n  --jq '.[] | select(.name | test(\"-service$\")) | .name')\n\n# Execute task and create PRs\necho \"$MATCHING_REPOS\" | while read -r repo; do\n  # Clone repo\n  gh repo clone org\u002F$repo $tmp\u002F$repo -- --depth=1\n  \n  # Execute task\n  cd $tmp\u002F$repo\n  npx ruv-swarm github task-execute \\\n    --task \"update-dependencies\" \\\n    --repo \"org\u002F$repo\"\n  \n  # Create PR if changes exist\n  if [[ -n $(git status --porcelain) ]]; then\n    git checkout -b update-dependencies-$(date +%Y%m%d)\n    git add -A\n    git commit -m \"chore: Update dependencies\"\n    \n    # Push and create PR\n    git push origin HEAD\n    PR_URL=$(gh pr create \\\n      --title \"Update dependencies\" \\\n      --body \"Automated dependency update across services\" \\\n      --label \"dependencies,automated\")\n    \n    echo \"$PR_URL\" >> $tmp$created-prs.txt\n  fi\n  cd -\ndone\n\n# Link related PRs\nPR_URLS=$(cat $tmp$created-prs.txt)\nnpx ruv-swarm github link-prs --urls \"$PR_URLS\"\n```\n\n## Configuration\n\n### Multi-Repo Config File\n```yaml\n# .swarm$multi-repo.yml\nversion: 1\norganization: my-org\nrepositories:\n  - name: frontend\n    url: github.com$my-org$frontend\n    role: ui\n    agents: [coder, designer, tester]\n    \n  - name: backend\n    url: github.com$my-org$backend\n    role: api\n    agents: [architect, coder, tester]\n    \n  - name: shared\n    url: github.com$my-org$shared\n    role: library\n    agents: [analyst, coder]\n\ncoordination:\n  topology: hierarchical\n  communication: webhook\n  memory: redis:\u002F$shared-memory\n  \ndependencies:\n  - from: frontend\n    to: [backend, shared]\n  - from: backend\n    to: [shared]\n```\n\n### Repository Roles\n```javascript\n\u002F\u002F Define repository roles and responsibilities\n{\n  \"roles\": {\n    \"ui\": {\n      \"responsibilities\": [\"user-interface\", \"ux\", \"accessibility\"],\n      \"default-agents\": [\"designer\", \"coder\", \"tester\"]\n    },\n    \"api\": {\n      \"responsibilities\": [\"endpoints\", \"business-logic\", \"data\"],\n      \"default-agents\": [\"architect\", \"coder\", \"security\"]\n    },\n    \"library\": {\n      \"responsibilities\": [\"shared-code\", \"utilities\", \"types\"],\n      \"default-agents\": [\"analyst\", \"coder\", \"documenter\"]\n    }\n  }\n}\n```\n\n## Orchestration Commands\n\n### Dependency Management\n```bash\n# Update dependencies across all repos with gh CLI\n# Create tracking issue first\nTRACKING_ISSUE=$(gh issue create \\\n  --title \"Dependency Update: typescript@5.0.0\" \\\n  --body \"Tracking issue for updating TypeScript across all repositories\" \\\n  --label \"dependencies,tracking\" \\\n  --json number -q .number)\n\n# Get all repos with TypeScript\nTS_REPOS=$(gh repo list org --limit 100 --json name | jq -r '.[].name' | \\\n  while read -r repo; do\n    if gh api repos$org\u002F$repo$contents$package.json 2>$dev$null | \\\n       jq -r '.content' | base64 -d | grep -q '\"typescript\"'; then\n      echo \"$repo\"\n    fi\n  done)\n\n# Update each repository\necho \"$TS_REPOS\" | while read -r repo; do\n  # Clone and update\n  gh repo clone org\u002F$repo $tmp\u002F$repo -- --depth=1\n  cd $tmp\u002F$repo\n  \n  # Update dependency\n  npm install --save-dev typescript@5.0.0\n  \n  # Test changes\n  if npm test; then\n    # Create PR\n    git checkout -b update-typescript-5\n    git add package.json package-lock.json\n    git commit -m \"chore: Update TypeScript to 5.0.0\n\nPart of #$TRACKING_ISSUE\"\n    \n    git push origin HEAD\n    gh pr create \\\n      --title \"Update TypeScript to 5.0.0\" \\\n      --body \"Updates TypeScript to version 5.0.0\\n\\nTracking: #$TRACKING_ISSUE\" \\\n      --label \"dependencies\"\n  else\n    # Report failure\n    gh issue comment $TRACKING_ISSUE \\\n      --body \"❌ Failed to update $repo - tests failing\"\n  fi\n  cd -\ndone\n```\n\n### Refactoring Operations\n```bash\n# Coordinate large-scale refactoring\nnpx ruv-swarm github multi-repo-refactor \\\n  --pattern \"rename:OldAPI->NewAPI\" \\\n  --analyze-impact \\\n  --create-migration-guide \\\n  --staged-rollout\n```\n\n### Security Updates\n```bash\n# Coordinate security patches\nnpx ruv-swarm github multi-repo-security \\\n  --scan-all \\\n  --patch-vulnerabilities \\\n  --verify-fixes \\\n  --compliance-report\n```\n\n## Communication Strategies\n\n### 1. Webhook-Based Coordination\n```javascript\n\u002F\u002F webhook-coordinator.js\nconst { MultiRepoSwarm } = require('ruv-swarm');\n\nconst swarm = new MultiRepoSwarm({\n  webhook: {\n    url: 'https:\u002F$swarm-coordinator.example.com',\n    secret: process.env.WEBHOOK_SECRET\n  }\n});\n\n\u002F\u002F Handle cross-repo events\nswarm.on('repo:update', async (event) => {\n  await swarm.propagate(event, {\n    to: event.dependencies,\n    strategy: 'eventual-consistency'\n  });\n});\n```\n\n### 2. GraphQL Federation\n```graphql\n# Federated schema for multi-repo queries\ntype Repository @key(fields: \"id\") {\n  id: ID!\n  name: String!\n  swarmStatus: SwarmStatus!\n  dependencies: [Repository!]!\n  agents: [Agent!]!\n}\n\ntype SwarmStatus {\n  active: Boolean!\n  topology: Topology!\n  tasks: [Task!]!\n  memory: JSON!\n}\n```\n\n### 3. Event Streaming\n```yaml\n# Kafka configuration for real-time coordination\nkafka:\n  brokers: ['kafka1:9092', 'kafka2:9092']\n  topics:\n    swarm-events: \n      partitions: 10\n      replication: 3\n    swarm-memory:\n      partitions: 5\n      replication: 3\n```\n\n## Advanced Features\n\n### 1. Distributed Task Queue\n```bash\n# Create distributed task queue\nnpx ruv-swarm github multi-repo-queue \\\n  --backend redis \\\n  --workers 10 \\\n  --priority-routing \\\n  --dead-letter-queue\n```\n\n### 2. Cross-Repo Testing\n```bash\n# Run integration tests across repos\nnpx ruv-swarm github multi-repo-test \\\n  --setup-test-env \\\n  --link-services \\\n  --run-e2e \\\n  --tear-down\n```\n\n### 3. Monorepo Migration\n```bash\n# Assist in monorepo migration\nnpx ruv-swarm github to-monorepo \\\n  --analyze-repos \\\n  --suggest-structure \\\n  --preserve-history \\\n  --create-migration-prs\n```\n\n## Monitoring & Visualization\n\n### Multi-Repo Dashboard\n```bash\n# Launch monitoring dashboard\nnpx ruv-swarm github multi-repo-dashboard \\\n  --port 3000 \\\n  --metrics \"agent-activity,task-progress,memory-usage\" \\\n  --real-time\n```\n\n### Dependency Graph\n```bash\n# Visualize repo dependencies\nnpx ruv-swarm github dep-graph \\\n  --format mermaid \\\n  --include-agents \\\n  --show-data-flow\n```\n\n### Health Monitoring\n```bash\n# Monitor swarm health across repos\nnpx ruv-swarm github health-check \\\n  --repos \"org\u002F*\" \\\n  --check \"connectivity,memory,agents\" \\\n  --alert-on-issues\n```\n\n## Synchronization Patterns\n\n### 1. Eventually Consistent\n```javascript\n\u002F\u002F Eventual consistency for non-critical updates\n{\n  \"sync\": {\n    \"strategy\": \"eventual\",\n    \"max-lag\": \"5m\",\n    \"retry\": {\n      \"attempts\": 3,\n      \"backoff\": \"exponential\"\n    }\n  }\n}\n```\n\n### 2. Strong Consistency\n```javascript\n\u002F\u002F Strong consistency for critical operations\n{\n  \"sync\": {\n    \"strategy\": \"strong\",\n    \"consensus\": \"raft\",\n    \"quorum\": 0.51,\n    \"timeout\": \"30s\"\n  }\n}\n```\n\n### 3. Hybrid Approach\n```javascript\n\u002F\u002F Mix of consistency levels\n{\n  \"sync\": {\n    \"default\": \"eventual\",\n    \"overrides\": {\n      \"security-updates\": \"strong\",\n      \"dependency-updates\": \"strong\",\n      \"documentation\": \"eventual\"\n    }\n  }\n}\n```\n\n## Use Cases\n\n### 1. Microservices Coordination\n```bash\n# Coordinate microservices development\nnpx ruv-swarm github microservices \\\n  --services \"auth,users,orders,payments\" \\\n  --ensure-compatibility \\\n  --sync-contracts \\\n  --integration-tests\n```\n\n### 2. Library Updates\n```bash\n# Update shared library across consumers\nnpx ruv-swarm github lib-update \\\n  --library \"org$shared-lib\" \\\n  --version \"2.0.0\" \\\n  --find-consumers \\\n  --update-imports \\\n  --run-tests\n```\n\n### 3. Organization-Wide Changes\n```bash\n# Apply org-wide policy changes\nnpx ruv-swarm github org-policy \\\n  --policy \"add-security-headers\" \\\n  --repos \"org\u002F*\" \\\n  --validate-compliance \\\n  --create-reports\n```\n\n## Best Practices\n\n### 1. Repository Organization\n- Clear repository roles and boundaries\n- Consistent naming conventions\n- Documented dependencies\n- Shared configuration standards\n\n### 2. Communication\n- Use appropriate sync strategies\n- Implement circuit breakers\n- Monitor latency and failures\n- Clear error propagation\n\n### 3. Security\n- Secure cross-repo authentication\n- Encrypted communication channels\n- Audit trail for all operations\n- Principle of least privilege\n\n## Performance Optimization\n\n### Caching Strategy\n```bash\n# Implement cross-repo caching\nnpx ruv-swarm github cache-strategy \\\n  --analyze-patterns \\\n  --suggest-cache-layers \\\n  --implement-invalidation\n```\n\n### Parallel Execution\n```bash\n# Optimize parallel operations\nnpx ruv-swarm github parallel-optimize \\\n  --analyze-dependencies \\\n  --identify-parallelizable \\\n  --execute-optimal\n```\n\n### Resource Pooling\n```bash\n# Pool resources across repos\nnpx ruv-swarm github resource-pool \\\n  --share-agents \\\n  --distribute-load \\\n  --monitor-usage\n```\n\n## Troubleshooting\n\n### Connectivity Issues\n```bash\n# Diagnose connectivity problems\nnpx ruv-swarm github diagnose-connectivity \\\n  --test-all-repos \\\n  --check-permissions \\\n  --verify-webhooks\n```\n\n### Memory Synchronization\n```bash\n# Debug memory sync issues\nnpx ruv-swarm github debug-memory \\\n  --check-consistency \\\n  --identify-conflicts \\\n  --repair-state\n```\n\n### Performance Bottlenecks\n```bash\n# Identify performance issues\nnpx ruv-swarm github perf-analysis \\\n  --profile-operations \\\n  --identify-bottlenecks \\\n  --suggest-optimizations\n```\n\n## Examples\n\n### Full-Stack Application Update\n```bash\n# Update full-stack application\nnpx ruv-swarm github fullstack-update \\\n  --frontend \"org$web-app\" \\\n  --backend \"org$api-server\" \\\n  --database \"org$db-migrations\" \\\n  --coordinate-deployment\n```\n\n### Cross-Team Collaboration\n```bash\n# Facilitate cross-team work\nnpx ruv-swarm github cross-team \\\n  --teams \"frontend,backend,devops\" \\\n  --task \"implement-feature-x\" \\\n  --assign-by-expertise \\\n  --track-progress\n```\n\nSee also: [swarm-pr.md](.$swarm-pr.md), [project-board-sync.md](.$project-board-sync.md)","---\nname: multi-repo-swarm\ndescription: Cross-repository swarm orchestration for organization-wide automation and intelligent collaboration\ntype: coordination\ncolor: \"#FF6B35\"\ntools:\n  - Bash\n  - Read\n  - Write\n  - Edit\n  - Glob\n  - Grep\n  - LS\n  - TodoWrite\n  - mcp__claude-flow__swarm_init\n  - mcp__claude-flow__agent_spawn\n  - mcp__claude-flow__task_orchestrate\n  - mcp__claude-flow__swarm_status\n  - mcp__claude-flow__memory_usage\n  - mcp__claude-flow__github_repo_analyze\n  - mcp__claude-flow__github_pr_manage\n  - mcp__claude-flow__github_sync_coord\n  - mcp__claude-flow__github_metrics\nhooks:\n  pre:\n    - \"gh auth status || (echo 'GitHub CLI not authenticated' && exit 1)\"\n    - \"git status --porcelain || echo 'Not in git repository'\"\n    - \"gh repo list --limit 1 >$dev$null || (echo 'No repo access' && exit 1)\"\n  post:\n    - \"gh pr list --state open --limit 5 | grep -q . && echo 'Active PRs found'\"\n    - \"git log --oneline -5 | head -3\"\n    - \"gh repo view --json name,description,topics\"\n---\n\n# Multi-Repo Swarm - Cross-Repository Swarm Orchestration\n\n## Overview\nCoordinate AI swarms across multiple repositories, enabling organization-wide automation and intelligent cross-project collaboration.\n\n## Core Features\n\n### 1. Cross-Repo Initialization\n```bash\n# Initialize multi-repo swarm with gh CLI\n# List organization repositories\nREPOS=$(gh repo list org --limit 100 --json name,description,languages \\\n  --jq '.[] | select(.name | test(\"frontend|backend|shared\"))')\n\n# Get repository details\nREPO_DETAILS=$(echo \"$REPOS\" | jq -r '.name' | while read -r repo; do\n  gh api repos$org\u002F$repo --jq '{name, default_branch, languages, topics}'\ndone | jq -s '.')\n\n# Initialize swarm with repository context\nnpx ruv-swarm github multi-repo-init \\\n  --repo-details \"$REPO_DETAILS\" \\\n  --repos \"org$frontend,org$backend,org$shared\" \\\n  --topology hierarchical \\\n  --shared-memory \\\n  --sync-strategy eventual\n```\n\n### 2. Repository Discovery\n```bash\n# Auto-discover related repositories with gh CLI\n# Search organization repositories\nREPOS=$(gh repo list my-organization --limit 100 \\\n  --json name,description,languages,topics \\\n  --jq '.[] | select(.languages | keys | contains([\"TypeScript\"]))')\n\n# Analyze repository dependencies\nDEPS=$(echo \"$REPOS\" | jq -r '.name' | while read -r repo; do\n  # Get package.json if it exists\n  if gh api repos$my-organization\u002F$repo$contents$package.json --jq '.content' 2>$dev$null; then\n    gh api repos$my-organization\u002F$repo$contents$package.json \\\n      --jq '.content' | base64 -d | jq '{name, dependencies, devDependencies}'\n  fi\ndone | jq -s '.')\n\n# Discover and analyze\nnpx ruv-swarm github discover-repos \\\n  --repos \"$REPOS\" \\\n  --dependencies \"$DEPS\" \\\n  --analyze-dependencies \\\n  --suggest-swarm-topology\n```\n\n### 3. Synchronized Operations\n```bash\n# Execute synchronized changes across repos with gh CLI\n# Get matching repositories\nMATCHING_REPOS=$(gh repo list org --limit 100 --json name \\\n  --jq '.[] | select(.name | test(\"-service$\")) | .name')\n\n# Execute task and create PRs\necho \"$MATCHING_REPOS\" | while read -r repo; do\n  # Clone repo\n  gh repo clone org\u002F$repo $tmp\u002F$repo -- --depth=1\n  \n  # Execute task\n  cd $tmp\u002F$repo\n  npx ruv-swarm github task-execute \\\n    --task \"update-dependencies\" \\\n    --repo \"org\u002F$repo\"\n  \n  # Create PR if changes exist\n  if [[ -n $(git status --porcelain) ]]; then\n    git checkout -b update-dependencies-$(date +%Y%m%d)\n    git add -A\n    git commit -m \"chore: Update dependencies\"\n    \n    # Push and create PR\n    git push origin HEAD\n    PR_URL=$(gh pr create \\\n      --title \"Update dependencies\" \\\n      --body \"Automated dependency update across services\" \\\n      --label \"dependencies,automated\")\n    \n    echo \"$PR_URL\" >> $tmp$created-prs.txt\n  fi\n  cd -\ndone\n\n# Link related PRs\nPR_URLS=$(cat $tmp$created-prs.txt)\nnpx ruv-swarm github link-prs --urls \"$PR_URLS\"\n```\n\n## Configuration\n\n### Multi-Repo Config File\n```yaml\n# .swarm$multi-repo.yml\nversion: 1\norganization: my-org\nrepositories:\n  - name: frontend\n    url: github.com$my-org$frontend\n    role: ui\n    agents: [coder, designer, tester]\n    \n  - name: backend\n    url: github.com$my-org$backend\n    role: api\n    agents: [architect, coder, tester]\n    \n  - name: shared\n    url: github.com$my-org$shared\n    role: library\n    agents: [analyst, coder]\n\ncoordination:\n  topology: hierarchical\n  communication: webhook\n  memory: redis:\u002F$shared-memory\n  \ndependencies:\n  - from: frontend\n    to: [backend, shared]\n  - from: backend\n    to: [shared]\n```\n\n### Repository Roles\n```javascript\n\u002F\u002F Define repository roles and responsibilities\n{\n  \"roles\": {\n    \"ui\": {\n      \"responsibilities\": [\"user-interface\", \"ux\", \"accessibility\"],\n      \"default-agents\": [\"designer\", \"coder\", \"tester\"]\n    },\n    \"api\": {\n      \"responsibilities\": [\"endpoints\", \"business-logic\", \"data\"],\n      \"default-agents\": [\"architect\", \"coder\", \"security\"]\n    },\n    \"library\": {\n      \"responsibilities\": [\"shared-code\", \"utilities\", \"types\"],\n      \"default-agents\": [\"analyst\", \"coder\", \"documenter\"]\n    }\n  }\n}\n```\n\n## Orchestration Commands\n\n### Dependency Management\n```bash\n# Update dependencies across all repos with gh CLI\n# Create tracking issue first\nTRACKING_ISSUE=$(gh issue create \\\n  --title \"Dependency Update: typescript@5.0.0\" \\\n  --body \"Tracking issue for updating TypeScript across all repositories\" \\\n  --label \"dependencies,tracking\" \\\n  --json number -q .number)\n\n# Get all repos with TypeScript\nTS_REPOS=$(gh repo list org --limit 100 --json name | jq -r '.[].name' | \\\n  while read -r repo; do\n    if gh api repos$org\u002F$repo$contents$package.json 2>$dev$null | \\\n       jq -r '.content' | base64 -d | grep -q '\"typescript\"'; then\n      echo \"$repo\"\n    fi\n  done)\n\n# Update each repository\necho \"$TS_REPOS\" | while read -r repo; do\n  # Clone and update\n  gh repo clone org\u002F$repo $tmp\u002F$repo -- --depth=1\n  cd $tmp\u002F$repo\n  \n  # Update dependency\n  npm install --save-dev typescript@5.0.0\n  \n  # Test changes\n  if npm test; then\n    # Create PR\n    git checkout -b update-typescript-5\n    git add package.json package-lock.json\n    git commit -m \"chore: Update TypeScript to 5.0.0\n\nPart of #$TRACKING_ISSUE\"\n    \n    git push origin HEAD\n    gh pr create \\\n      --title \"Update TypeScript to 5.0.0\" \\\n      --body \"Updates TypeScript to version 5.0.0\\n\\nTracking: #$TRACKING_ISSUE\" \\\n      --label \"dependencies\"\n  else\n    # Report failure\n    gh issue comment $TRACKING_ISSUE \\\n      --body \"❌ Failed to update $repo - tests failing\"\n  fi\n  cd -\ndone\n```\n\n### Refactoring Operations\n```bash\n# Coordinate large-scale refactoring\nnpx ruv-swarm github multi-repo-refactor \\\n  --pattern \"rename:OldAPI->NewAPI\" \\\n  --analyze-impact \\\n  --create-migration-guide \\\n  --staged-rollout\n```\n\n### Security Updates\n```bash\n# Coordinate security patches\nnpx ruv-swarm github multi-repo-security \\\n  --scan-all \\\n  --patch-vulnerabilities \\\n  --verify-fixes \\\n  --compliance-report\n```\n\n## Communication Strategies\n\n### 1. Webhook-Based Coordination\n```javascript\n\u002F\u002F webhook-coordinator.js\nconst { MultiRepoSwarm } = require('ruv-swarm');\n\nconst swarm = new MultiRepoSwarm({\n  webhook: {\n    url: 'https:\u002F$swarm-coordinator.example.com',\n    secret: process.env.WEBHOOK_SECRET\n  }\n});\n\n\u002F\u002F Handle cross-repo events\nswarm.on('repo:update', async (event) => {\n  await swarm.propagate(event, {\n    to: event.dependencies,\n    strategy: 'eventual-consistency'\n  });\n});\n```\n\n### 2. GraphQL Federation\n```graphql\n# Federated schema for multi-repo queries\ntype Repository @key(fields: \"id\") {\n  id: ID!\n  name: String!\n  swarmStatus: SwarmStatus!\n  dependencies: [Repository!]!\n  agents: [Agent!]!\n}\n\ntype SwarmStatus {\n  active: Boolean!\n  topology: Topology!\n  tasks: [Task!]!\n  memory: JSON!\n}\n```\n\n### 3. Event Streaming\n```yaml\n# Kafka configuration for real-time coordination\nkafka:\n  brokers: ['kafka1:9092', 'kafka2:9092']\n  topics:\n    swarm-events: \n      partitions: 10\n      replication: 3\n    swarm-memory:\n      partitions: 5\n      replication: 3\n```\n\n## Advanced Features\n\n### 1. Distributed Task Queue\n```bash\n# Create distributed task queue\nnpx ruv-swarm github multi-repo-queue \\\n  --backend redis \\\n  --workers 10 \\\n  --priority-routing \\\n  --dead-letter-queue\n```\n\n### 2. Cross-Repo Testing\n```bash\n# Run integration tests across repos\nnpx ruv-swarm github multi-repo-test \\\n  --setup-test-env \\\n  --link-services \\\n  --run-e2e \\\n  --tear-down\n```\n\n### 3. Monorepo Migration\n```bash\n# Assist in monorepo migration\nnpx ruv-swarm github to-monorepo \\\n  --analyze-repos \\\n  --suggest-structure \\\n  --preserve-history \\\n  --create-migration-prs\n```\n\n## Monitoring & Visualization\n\n### Multi-Repo Dashboard\n```bash\n# Launch monitoring dashboard\nnpx ruv-swarm github multi-repo-dashboard \\\n  --port 3000 \\\n  --metrics \"agent-activity,task-progress,memory-usage\" \\\n  --real-time\n```\n\n### Dependency Graph\n```bash\n# Visualize repo dependencies\nnpx ruv-swarm github dep-graph \\\n  --format mermaid \\\n  --include-agents \\\n  --show-data-flow\n```\n\n### Health Monitoring\n```bash\n# Monitor swarm health across repos\nnpx ruv-swarm github health-check \\\n  --repos \"org\u002F*\" \\\n  --check \"connectivity,memory,agents\" \\\n  --alert-on-issues\n```\n\n## Synchronization Patterns\n\n### 1. Eventually Consistent\n```javascript\n\u002F\u002F Eventual consistency for non-critical updates\n{\n  \"sync\": {\n    \"strategy\": \"eventual\",\n    \"max-lag\": \"5m\",\n    \"retry\": {\n      \"attempts\": 3,\n      \"backoff\": \"exponential\"\n    }\n  }\n}\n```\n\n### 2. Strong Consistency\n```javascript\n\u002F\u002F Strong consistency for critical operations\n{\n  \"sync\": {\n    \"strategy\": \"strong\",\n    \"consensus\": \"raft\",\n    \"quorum\": 0.51,\n    \"timeout\": \"30s\"\n  }\n}\n```\n\n### 3. Hybrid Approach\n```javascript\n\u002F\u002F Mix of consistency levels\n{\n  \"sync\": {\n    \"default\": \"eventual\",\n    \"overrides\": {\n      \"security-updates\": \"strong\",\n      \"dependency-updates\": \"strong\",\n      \"documentation\": \"eventual\"\n    }\n  }\n}\n```\n\n## Use Cases\n\n### 1. Microservices Coordination\n```bash\n# Coordinate microservices development\nnpx ruv-swarm github microservices \\\n  --services \"auth,users,orders,payments\" \\\n  --ensure-compatibility \\\n  --sync-contracts \\\n  --integration-tests\n```\n\n### 2. Library Updates\n```bash\n# Update shared library across consumers\nnpx ruv-swarm github lib-update \\\n  --library \"org$shared-lib\" \\\n  --version \"2.0.0\" \\\n  --find-consumers \\\n  --update-imports \\\n  --run-tests\n```\n\n### 3. Organization-Wide Changes\n```bash\n# Apply org-wide policy changes\nnpx ruv-swarm github org-policy \\\n  --policy \"add-security-headers\" \\\n  --repos \"org\u002F*\" \\\n  --validate-compliance \\\n  --create-reports\n```\n\n## Best Practices\n\n### 1. Repository Organization\n- Clear repository roles and boundaries\n- Consistent naming conventions\n- Documented dependencies\n- Shared configuration standards\n\n### 2. Communication\n- Use appropriate sync strategies\n- Implement circuit breakers\n- Monitor latency and failures\n- Clear error propagation\n\n### 3. Security\n- Secure cross-repo authentication\n- Encrypted communication channels\n- Audit trail for all operations\n- Principle of least privilege\n\n## Performance Optimization\n\n### Caching Strategy\n```bash\n# Implement cross-repo caching\nnpx ruv-swarm github cache-strategy \\\n  --analyze-patterns \\\n  --suggest-cache-layers \\\n  --implement-invalidation\n```\n\n### Parallel Execution\n```bash\n# Optimize parallel operations\nnpx ruv-swarm github parallel-optimize \\\n  --analyze-dependencies \\\n  --identify-parallelizable \\\n  --execute-optimal\n```\n\n### Resource Pooling\n```bash\n# Pool resources across repos\nnpx ruv-swarm github resource-pool \\\n  --share-agents \\\n  --distribute-load \\\n  --monitor-usage\n```\n\n## Troubleshooting\n\n### Connectivity Issues\n```bash\n# Diagnose connectivity problems\nnpx ruv-swarm github diagnose-connectivity \\\n  --test-all-repos \\\n  --check-permissions \\\n  --verify-webhooks\n```\n\n### Memory Synchronization\n```bash\n# Debug memory sync issues\nnpx ruv-swarm github debug-memory \\\n  --check-consistency \\\n  --identify-conflicts \\\n  --repair-state\n```\n\n### Performance Bottlenecks\n```bash\n# Identify performance issues\nnpx ruv-swarm github perf-analysis \\\n  --profile-operations \\\n  --identify-bottlenecks \\\n  --suggest-optimizations\n```\n\n## Examples\n\n### Full-Stack Application Update\n```bash\n# Update full-stack application\nnpx ruv-swarm github fullstack-update \\\n  --frontend \"org$web-app\" \\\n  --backend \"org$api-server\" \\\n  --database \"org$db-migrations\" \\\n  --coordinate-deployment\n```\n\n### Cross-Team Collaboration\n```bash\n# Facilitate cross-team work\nnpx ruv-swarm github cross-team \\\n  --teams \"frontend,backend,devops\" \\\n  --task \"implement-feature-x\" \\\n  --assign-by-expertise \\\n  --track-progress\n```\n\nSee also: [swarm-pr.md](.$swarm-pr.md), [project-board-sync.md](.$project-board-sync.md)",{"name":5,"description":7},"main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Agent-智能体\u002FYYC3-Agent-智能体-ruflo\u002F.agents\u002Fskills\u002Fagent-multi-repo-swarm",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill agent-multi-repo-swarm",{"tool":39,"command":40},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill agent-multi-repo-swarm",{"tool":42,"command":43},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill agent-multi-repo-swarm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-ruflo\u002F.agents\u002Fskills\u002Fagent-multi-repo-swarm\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]