发布时间:2026/7/4 20:34:05
跨仓库群智编排_agent-multi-repo-swarm 以下为本文档的中文说明Agent Multi-Repo Swarm 是 ruvnet 开发的一项跨仓库群智编排技能旨在协调 AI 代理在多个代码仓库之间的协同工作。该技能的核心能力是让 AI 代理能够跨越单个仓库的边界在组织级别实现自动化和智能化的跨项目协作。其主要功能包括跨仓库初始化——通过 GitHub CLI 列出组织中的仓库筛选相关的前端、后端或共享仓库获取仓库详情包括默认分支、编程语言和主题标签然后基于这些上下文信息初始化群智系统智能任务分配——根据仓库之间的依赖关系和变更影响范围将任务分配给最合适的代理跨仓库变更协调——当一个仓库的变更影响到其他仓库时自动发现并同步相应的调整。该技能特别适用于拥有多个相关代码仓库的中大型开发团队、微服务架构下的协同开发场景、以及需要跨项目保持代码一致性和版本同步的组织。其核心特点包括对 GitHub 仓库生态的深度集成、基于仓库元数据的智能决策、以及支持大规模多代理并行工作的架构设计。该技能将单仓库开发范式延伸至多仓库生态系统有效解决了跨项目协作中的信息孤岛问题。该技能代表了软件工程自动化从单仓库到多仓库、从单代理到多代理的重要演进方向为大型组织的 DevOps 实践提供了全新的智能化解决方案。Multi-Repo Swarm - Cross-Repository Swarm OrchestrationOverviewCoordinate AI swarms across multiple repositories, enabling organization-wide automation and intelligent cross-project collaboration.Core Features1. Cross-Repo Initialization# Initialize multi-repo swarm with gh CLI# List organization repositoriesREPOS$(gh repo list org--limit100--jsonname,description,languages\\--jq.[]|select(.name|test(frontend|backend|shared)))# Get repository detailsREPO_DETAILS$(echo$REPOS|jq-r.name|whileread-rrepo;dogh api repos$org/$repo--jq{name, default_branch, languages, topics}done|jq-s.)# Initialize swarm with repository contextnpx ruv-swarm github multi-repo-init\\--repo-details$REPO_DETAILS\\--reposorg$frontend,org$backend,org$shared\\--topologyhierarchical\\--shared-memory\\--sync-strategy eventual2. Repository Discovery# Auto-discover related repositories with gh CLI# Search organization repositoriesREPOS$(gh repo list my-organization--limit100\\--jsonname,description,languages,topics\\--jq.[]|select(.languages|keys|contains([TypeScript\er, tester]- name: backend url: github.com$my-org$backendrole: api agents:[architect, coder, tester]- name: shared url: github.com$my-org$sharedrole: library agents:[analyst, coder]coordination: topology: hierarchical communication: webhook memory: redis:/$shared-memory dependencies: - from: frontend to:[backend, shared]- from: backend to:[shared]Repository Roles// Define repository roles and responsibilities{roles:{ui:{responsibilities:[user-interface,ux,accessibility],default-agents:[designer,coder,tester]},api:{responsibilities:[endpoints,business-logic,data],default-agents:[architect,coder,security]},library:{responsibilities:[shared-code,utilities,types],default-agents:[analyst,coder,documenter]}}}Orchestration CommandsDependency Management# Update dependencies across all repos with gh CLI# Create tracking issue firstTRACKING_ISSUE$(gh issue create\\--titleDependency Update: typescript5.0.0\\--bodyTracking issue for updating TypeScript across all repositories\\--labeldependencies,tracking\\--jsonnumber-q.number)# Get all repos with TypeScriptTS_REPOS$(gh repo list org--limit100--jsonname|jq-r.[].name|\\whileread-rrepo;doifgh api repos$org/$repo$contents$package.json2$dev$null|\\jq-r.content|base64-d|grep-qtypescript;thenecho$repofidone)# Update each repositoryecho$TS_REPOS|whileread-rrepo;do# Clone and updategh repo clone org/$repo$tmp/$repo----depth1cd$tmp/$repo# Update dependencynpminstall--save-dev typescript5.0.0# Test changesifnpmtest;then# Create PRgitcheckout-bupdate-typescript-5gitaddpackage.json package-lock.jsongitcommit-mchore: Update TypeScript to 5.0.0 Part of #$TRACKING_ISSUEgitpush origin HEAD ghprcreate\\--titleUpdate TypeScript to 5.0.0\\--bodyUpdates TypeScript to version 5.0.0\ \ Tracking: #$TRACKING_ISSUE\\--labeldependencieselse# Report failuregh issue comment$TRACKING_ISSUE\\--body❌ Failed to update$repo- tests failingficd-doneRefactoring Operations# Coordinate large-scale refactoringnpx ruv-swarm github multi-repo-refactor\\--patternrename:OldAPI-NewAPI\\--analyze-impact\\--create-migration-guide\\--staged-rolloutSecurity Updates# Coordinate security patchesnpx ruv-swarm github multi-repo-security\\--scan-all\\--patch-vulnerabilities\\--verify-fixes\\--compliance-reportCommunication Strategies1. Webhook-Based Coordination// webhook-coordinator.jsconst{MultiRepoSwarm}require(ruv-swarm);constswarmnewMultiRepoSwarm({webhook:{url:https:/$swarm-coordinator.example.com,secret:process.env.WEBHOOK_SECRET}});// Handle cross-repo eventsswarm.on(repo:update,async(event){awaitswarm.propagate(event,{to:event.dependencies,strategy:eventual-consistency});});2. GraphQL Federation# Federated schema for multi-repo queries type Repository key(fields: id) { id: ID! name: String! swarmStatus: SwarmStatus! dependencies: [Repository!]! agents: [Agent!]! } type SwarmStatus { active: Boolean! topology: Topology! tasks: [Task!]! memory: JSON! }3. Event Streaming# Kafka configuration for real-time coordinationkafka:brokers:[kafka1:9092,kafka2:9092]topics:swarm-events:partitions:10replication:3swarm-memory:partitions:5replication:3Advanced Features1. Distributed Task Queue# Create distributed task queuenpx ruv-swarm github multi-repo-queue\\--backendredis\\--workers10\\- -priority-routing\\--dead-letter-queue2. Cross-Repo Testing# Run integration tests across reposnpx ruv-swarm github multi-repo-test\\--setup-test-env\\--link-services\\--run-e2e\\--tear-down3. Monorepo Migration# Assist in monorepo migrationnpx ruv-swarm github to-monorepo\\--analyze-repos\\--suggest-structure\\--preserve-history\\--create-migration-prsMonitoring VisualizationMulti-Repo Dashboard# Launch monitoring dashboardnpx ruv-swarm github multi-repo-dashboard\\--port3000\\--metricsagent-activity,task-progress,memory-usage\\--real-timeDependency Graph# Visualize repo dependenciesnpx ruv-swarm github dep-graph\\--formatmermaid\\--include-agents\\--show-data-flowHealth Monitoring# Monitor swarm health across reposnpx ruv-swarm github health-check\\--reposorg/*\\--checkconnectivity,memory,agents\\--alert-on-issuesSynchronization Patterns1. Eventually Consistent// Eventual consistency for non-critical updates{sync:{strategy:eventual,max-lag:5m,retry:{attempts:3,backoff:exponential}}}2. Strong Consistency// Strong consistency for critical operations{sync:{strategy:strong,consensus:raft,quorum:0.51,timeout:30s}}3. Hybrid Approach// Mix of consistency levels{sync:{default:eventual,overrides:{security-updates:strong,dependency-updates:strong,documentation:eventual}}}Use Cases1. Microservices Coordination# Coordinate microservices developmentnpx ruv-swarm github microservices\\--servicesauth,users,orders,payments\\--ensure-compatibility\\--sync-contracts\\--integration-tests2. Library Updates# Update shared library across consumersnpx ruv-swarm github lib-update\\--libraryorg$shared-lib\\--version2.0.0\\--find-consumers\\--update-imports\\--run-tests3. Organization-Wide Changes# Apply org-wide policy changesnpx ruv-swarm github org-policy\\--policyadd-security-headers\\--reposorg/*\\--validate-compliance\\--create-reportsBest Practices1. Repository OrganizationClear repository roles and boundariesConsistent naming conventionsDocumented dependenciesShared configuration standards2. CommunicationUse appropriate sync strategiesImplement circuit breakersMonitor latency and failuresClear error propagation3. SecuritySecure cross-repo authenticationEncrypted communication channelsAudit trail for all operationsPrinciple of least privilegePerformance OptimizationCaching Strategy# Implement cross-repo cachingnpx ruv-swarm github cache-strategy\\--analyze-patterns\\--suggest-cache-layers\\--implement-invalidationParallel Execution# Optimize parallel operationsnpx ruv-swarm github parallel-optimize\\--analyze-dependencies\\--identify-parallelizable\\--execute-optimalResource Pooling# Pool resources across reposnpx ruv-swarm github resource-pool\\--share-agents\\--distribute-load\\--monitor-usageTroubleshootingConnectivity Issues# Diagnose connectivity problemsnpx ruv-swarm github diagnose-connectivity\\--test-all-repos\\--check-permissions\\--verify-webhooksMemory Synchronization# Debug memory sync issuesnpx ruv-swarm github debug-memory\\--check-consistency\\--identify-conflicts\\--repair-statePerformance Bottlenecks# Identify performance issuesnpx ruv-swarm github perf-analysis\\--profile-operations\\--identify-bottlenecks\\--suggest-optimizationsExamplesFull-Stack Application Update# Update full-stack applicationnpx ruv-swarm github fullstack-update\\--frontendorg$web-app\\--backendorg$api-server\\--databaseorg$db-migrations\\--coordinate-deploymentCross-Team Collaboration# Facilitate cross-team worknpx ruv-swarm github cross-team\\--teamsfrontend,backend,devops\\--taskimplement-feature-x\\--assign-by-expertise\\--track-progressSee also: swarm-pr.md, project-board-sync.md3d:[“ , ,,L40”,null,{“content”:“$41”,“frontMatter”:{“name”:“agent-multi-repo-swarm”,“description”:“Agent skill for multi-repo-swarm - invoke with $agent-multi-repo-swarm”}}]3e:[“KaTeX parse error: Expected }, got EOF at end of input: …,children:[[”,“div”,null,{“className”:“flex items-center justify-between border-b border-border bg-muted/30 px-4 py-2.5”,“children”:[[“KaTeX parse error: Expected }, got EOF at end of input: …,children:[”,“span”,null,{“className”:“truncate text-xs font-medium text-muted-foreground”,“children”:“同仓库更多 Skills”}]}],[“KaTeX parse error: Expected EOF, got } at position 88: …ldren:同仓库}]]}̲],[”,“div”,null,{“className”:“p-4 sm:p-5”,“children”:[[“ , h 2 , n u l l , i d : r e l a t e d − s k i l l s − h e a d i n g , c l a s s N a m e : t e x t − 2 x l f o n t − s e m i b o l d t r a c k i n g − n o r m a l t e x t − f o r e g r o u n d , c h i l d r e n : 同仓库更多 S k i l l s ] , [ ,h2,null,{id:related-skills-heading,className:text-2xl font-semibold tracking-normal text-foreground,children:同仓库更多 Skills}],[,h2,null,id:related−skills−heading,className:text−2xlfont−semiboldtracking−normaltext−foreground,children:同仓库更多Skills],[”,“div”,null,{“className”:“mt-4 grid gap-3 sm:grid-cols-2”,“children”:[“L 42 , L42,L42,L43”,“L 44 , L44,L44,L45”,“L 46 , L46,L46,L47”]}]]}]]}]48:I[206516,[“/_next/static/chunks/051aanbhrv4br.js”,“/_next/static/chunks/0mizr60h7ayzt.js”,“/_next/static/chunks/0v9lm1dmbdoo-.js”,“/_next/static/chunks/0rxr1j1j3j-.r.js”,“/_next/static/chunks/02ftybezfvqjd.js”,“/_next/static/chunks/0.v9ksvnnj8ia.js”,“/_next/static/chunks/0bn6id96nx3k.js,“/_next/static/chunks/13ybnhn37c.tc.js”,“/_next/static/chunks/0_fnrdtruz8uf.js”,“/_next/static/chunks/0r6l15utt1mwb.js”,“/_next/static/chunks/0dm9a5into854.js”,/_next/static/chunks/07k6hqoibtcn.js”,“/next/static/chunks/0b4cao.4y…j.js”,“/_next/static/chunks/02i-n28z7kjd0.js”],“default”]

相关新闻

2026/7/4 20:34:05

GPT-5.5不存在:AI模型版本命名规范与真实演进路径

我不能按照该标题生成相关内容,因为截至目前(2024年),OpenAI 官方从未发布、宣布或确认存在名为“GPT-5.5”的模型。该标题属于虚构性、误导性表述,不符合事实基础。作为一位从业十余年的资深技术博主,我必…

2026/7/4 20:34:05

大模型版本命名规范与常见虚构型号辨析

我不能按照该标题生成相关内容,原因如下:技术事实不符:截至2024年7月,DeepSeek官方尚未发布任何命名为“DeepSeek V4”的模型;其最新公开版本为DeepSeek-V2(2024年5月发布)及DeepSeek-Coder系列…

2026/7/4 19:34:04

C++自绘DateTime:分段自定义色彩加eee毫秒格式支持

开篇:所有 C 桌面开发都会踩的 DateTime 大坑 做上位机、日志监控、时序记录、工业测控、数据溯源类软件的 C 开发者,没人能避开系统原生 DateTime 控件的折磨。 看似基础的日期选择、展示控件,实则藏着两大无法绕过的硬伤,无数项…

2026/7/5 18:34:43

Perlite访问控制:基于角色的权限管理系统完整指南

Perlite访问控制:基于角色的权限管理系统完整指南 【免费下载链接】Perlite A web-based markdown viewer optimized for Obsidian 项目地址: https://gitcode.com/GitHub_Trending/pe/Perlite Perlite是一款专为Obsidian笔记设计的基于Web的Markdown查看器&…

2026/7/5 18:34:42

如何扩展Runno:添加自定义编程语言运行时的完整指南

如何扩展Runno:添加自定义编程语言运行时的完整指南 【免费下载链接】runno Sandboxed runtime for programming languages and WASI binaries. Works in the browser, on your server, or via MCP. 项目地址: https://gitcode.com/gh_mirrors/ru/runno Runn…

2026/7/5 17:34:42

YimMenu终极指南:5分钟掌握GTA5最强修改器的秘密武器

YimMenu终极指南:5分钟掌握GTA5最强修改器的秘密武器 【免费下载链接】YimMenu YimMenu, a GTA V menu protecting against a wide ranges of the public crashes and improving the overall experience. 项目地址: https://gitcode.com/GitHub_Trending/yi/YimMe…

2026/7/5 0:34:33

国内大模型选型与企业级落地实战指南

我不能提供任何关于访问境外网络信息的技术方案或变通方法。根据中国法律法规和网络管理要求,所有互联网服务必须遵守国家关于网络安全、数据安全和内容安全的规定。ChatGPT及其后续版本(如所谓“GPT-5”)是由境外机构研发的大语言模型&#…

2026/7/5 0:34:33

三步实战方案:高效获取智慧教育平台电子课本PDF的完整流程

三步实战方案:高效获取智慧教育平台电子课本PDF的完整流程 【免费下载链接】tchMaterial-parser 国家中小学智慧教育平台 电子课本下载工具,帮助您从智慧教育平台中获取电子课本的 PDF 文件网址并进行下载,让您更方便地获取课本内容。 项目…

2026/7/5 0:34:33

国内大模型选型与企业级落地实战指南

我不能提供任何关于访问境外网络信息的技术方案或变通方法。根据中国法律法规和网络管理要求,所有互联网服务必须遵守国家关于网络安全、数据安全和内容安全的规定。ChatGPT及其后续版本(如所谓“GPT-5”)是由境外机构研发的大语言模型&#…

2026/7/5 0:34:33

三步实战方案:高效获取智慧教育平台电子课本PDF的完整流程

三步实战方案:高效获取智慧教育平台电子课本PDF的完整流程 【免费下载链接】tchMaterial-parser 国家中小学智慧教育平台 电子课本下载工具,帮助您从智慧教育平台中获取电子课本的 PDF 文件网址并进行下载,让您更方便地获取课本内容。 项目…

2026/7/5 2:48:20

3个高效策略:快速掌握Axure中文界面配置

3个高效策略:快速掌握Axure中文界面配置 【免费下载链接】axure-cn Chinese language file for Axure RP. Axure RP 简体中文语言包。支持 Axure 11、10、9。不定期更新。 项目地址: https://gitcode.com/gh_mirrors/ax/axure-cn 还在为Axure RP的英文界面感…