github-multi-repo
它能做什么
这个技能帮助 AI 协调跨多个 GitHub 代码仓库的工作,例如让包版本保持一致。适合管理多个相互关联项目的团队。
适用场景
- ✓当你需要让多个代码仓库中的包版本保持一致的时候。
- ✓当一个代码仓库中的改动影响到团队维护的其他代码仓库的时候。
- ✓当你希望规划一组相关项目的结构的时候。
技能链接
https://github.com/ruvnet/RuView/blob/main/.claude/skills/github-multi-repo/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们的前端和后端代码仓库使用了同一个库的不同版本。请帮我把它们统一起来。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 读取你指定的代码仓库,比较它们的包版本和依赖,并提出统一的方案。然后它会帮助应用你批准的改动。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GitHub Multi-Repository Coordination Skill
Overview
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.
Core Capabilities
🔄 Multi-Repository Swarm Coordination
Cross-repository AI swarm orchestration for distributed development workflows.
📦 Package Synchronization
Intelligent dependency resolution and version alignment across multiple packages.
🏗️ Repository Architecture
Structure optimization and template management for scalable projects.
🔗 Integration Management
Cross-package integration testing and deployment coordination.
Quick Start
Initialize Multi-Repo Coordination
# Basic swarm initialization
npx claude-flow skill run github-multi-repo init \
--repos "org/frontend,org/backend,org/shared" \
--topology hierarchical
# Advanced initialization with synchronization
npx claude-flow skill run github-multi-repo init \
--repos "org/frontend,org/backend,org/shared" \
--topology mesh \
--shared-memory \
--sync-strategy eventual
Synchronize Packages
# Synchronize package versions and dependencies
npx claude-flow skill run github-multi-repo sync \
--packages "claude-code-flow,ruv-swarm" \
--align-versions \
--update-docs
Optimize Architecture
# Analyze and optimize repository structure
npx claude-flow skill run github-multi-repo optimize \
--analyze-structure \
--suggest-improvements \
--create-templates
Features
1. Cross-Repository Swarm Orchestration
Repository Discovery
// Auto-discover related repositories with gh CLI
const REPOS = Bash(`gh repo list my-organization --limit 100 \
--json name,description,languages,topics \
--jq '.[] | select(.languages | keys | contains(["TypeScript"]))'`)
// Analyze repository dependencies
const DEPS = Bash(`gh repo list my-organization --json name | \
jq -r '.[].name' | while read -r repo; do
gh api repos/my-organization/$repo/contents/package.json \
--jq '.content' 2>/dev/null | base64 -d | jq '{name, dependencies}'
done | jq -s '.'`)
// Initialize swarm with discovered repositories
mcp__claude-flow__swarm_init({
topology: "hierarchical",
maxAgents: 8,
metadata: { repos: REPOS, dependencies: DEPS }
})
Synchronized Operations
// Execute synchronized changes across repositories
[Parallel Multi-Repo Operations]:
// Spawn coordination agents
Task("Repository Coordinator", "Coordinate changes across all repositories", "coordinator")
Task("Dependency Analyzer", "Analyze cross-repo dependencies", "analyst")
Task("Integration Tester", "Validate cross-repo changes", "tester")
// Get matching repositories
Bash(`gh repo list org --limit 100 --json name \
--jq '.[] | select(.name | test("-service$")) | .name' > /tmp/repos.txt`)
// Execute task across repositories
Bash(`cat /tmp/repos.txt | while read -r repo; do
gh repo clone org/$repo /tmp/$repo -- --depth=1
cd /tmp/$repo
# Apply changes
npm update
npm test
# Create PR if successful
if [ $? -eq 0 ]; then
git checkout -b update-dependencies-$(date +%Y%m%d)
git add -A
git commit -m "chore: Update dependencies"
git push origin HEAD
gh pr create --title "Update dependencies" --body "Automated update" --label "dependencies"
fi
done`)
// Track all operations
TodoWrite { todos: [
{ id: "discover", content: "Discover all service repositories", status: "completed" },
{ id: "update", content: "Update dependencies", status: "completed" },
{ id: "test", content: "Run integration tests", status: "in_progress" },
{ id: "pr", content: "Create pull requests", status: "pending" }
]}
2. Package Synchronization
Version Alignment
// Synchronize package dependencies and versions
[Complete Package Sync]:
// Initialize sync swarm
mcp__claude-flow__swarm_init({ topology: "mesh", maxAgents: 5 })
// Spawn sync agents
Task("Sync Coordinator", "Coordinate version alignment", "coordinator")
Task("Dependency Analyzer", "Analyze dependencies", "analyst")
Task("Integration Tester", "Validate synchronization", "tester")
// Read package states
Read("/workspaces/ruv-FANN/claude-code-flow/claude-code-flow/package.json")
Read("/
常见问题
它可以处理哪些代码仓库?
你指定的那些,例如某个组织的前端、后端和共享项目。
它会在不询问的情况下修改代码仓库吗?
该技能侧重协调,由你决定应用哪些改动。
它使用什么工具?
该技能运行 claude-flow 工具中的命令,并与 GitHub 协同工作。
详情
作者的原始描述
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
repo: ruvnet/RuView
热度
- GitHub 星标
- 102k
- 排名
- #830
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
AgentDB Advanced Features
102k帮你的智能体了解 AgentDB 的高级功能,例如在多台机器之间同步数据库,以及把向量搜索与元数据过滤结合起来。
AgentDB Learning Plugins
102k让你的智能体为 AgentDB 构建并训练学习插件,使用能从过去经验中不断改进的强化学习方法。
AgentDB Memory Patterns
102k让你的智能体跨会话记住对话和上下文,并以 AgentDB 作为其持久记忆存储。
AgentDB Performance Optimization
102k帮你的智能体提升 AgentDB 的搜索速度并减少内存占用,借助压缩、快速搜索索引和缓存。