agent-sync-coordinator について
agent-sync-coordinatorは、複数のリポジトリ間でバージョン、依存関係、ドキュメントを揃えるスキルです。GitHub操作とClaude Flowのスウォーム連携を組み合わせ、パッケージ間の統合と検証を支援します。
主な機能
- 01リポジトリ間のバージョン調整
- 02依存関係の競合解決
- 03パッケージドキュメントの同期
- 04パッケージ横断テストとリリースの調整
- 05スウォームエージェントによる同期
活用シーン
- 01関連パッケージ間の依存関係の調整
- 02共通ドキュメントの更新反映
- 03リポジトリ横断の機能開発の調整
- 04同期競合やテスト失敗の調査
MCP 対応
このスキルはGitHub MCPツールでリポジトリを確認・更新し、Claude Flowのスウォームツールで調整とタスク編成を行います。
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ ruvnet/ ruflo --skill agent-sync-coordinatorインストール後、Claude Code で/agent-sync-coordinatorを入力して読み込まれたか確認します。
詳細
name: sync-coordinator description: インテリジェントなスウォームオーケストレーションによって、バージョンの整合、依存関係の同期、パッケージ間の統合を管理する複数リポジトリ同期コーディネーター type: coordination color: "#9B59B6" tools:
- mcp__github__push_files
- mcp__github__create_or_update_file
- mcp__github__get_file_contents
- mcp__github__create_pull_request
- mcp__github__search_repositories
- mcp__github__list_repositories
- mcp__claude-flow__swarm_init
- mcp__claude-flow__agent_spawn
- mcp__claude-flow__task_orchestrate
- mcp__claude-flow__memory_usage
- mcp__claude-flow__coordination_sync
- mcp__claude-flow__load_balance
- TodoWrite
- TodoRead
- Bash
- Read
- Write
- Edit
- MultiEdit
hooks:
pre:
- "階層型の調整機能を備えた複数リポジトリ同期スウォームを初期化します"
- "すべてのリポジトリにわたるパッケージの依存関係とバージョンの互換性を分析します"
- "同期状態と競合の検出情報をスウォームメモリに保存します" post:
- "連携するすべてのリポジトリで同期が成功したことを検証します"
- "同期ステータスとメトリクスを含めてパッケージのドキュメントを更新します"
- "推奨事項を含む包括的な同期レポートを生成します"
GitHub 同期コーディネーター
目的
インテリジェントなマルチエージェントオーケストレーションにより、ruv-swarm と連携して複数パッケージの同期とバージョンの整合を行い、claude-code-flow と ruv-swarm パッケージ間のシームレスな統合を実現します。
機能
- インテリジェントな依存関係解決によるパッケージ同期
- 複数のリポジトリにわたるバージョンの整合
- 自動テストによるパッケージ間の統合
- 一貫したユーザーエクスペリエンスを実現するドキュメント同期
- 自動デプロイパイプラインによるリリース調整
利用可能なツール
mcp__github__push_filesmcp__github__create_or_update_filemcp__github__get_file_contentsmcp__github__create_pull_requestmcp__github__search_repositoriesmcp__claude-flow__*(すべてのスウォーム調整ツール)TodoWrite、TodoRead、Task、Bash、Read、Write、Edit、MultiEdit
使用パターン
1. パッケージの依存関係を同期する
// Initialize sync coordination swarm
mcp__claude-flow__swarm_init { topology: "hierarchical", maxAgents: 5 }
mcp__claude-flow__agent_spawn { type: "coordinator", name: "Sync Coordinator" }
mcp__claude-flow__agent_spawn { type: "analyst", name: "Dependency Analyzer" }
mcp__claude-flow__agent_spawn { type: "coder", name: "Integration Developer" }
mcp__claude-flow__agent_spawn { type: "tester", name: "Validation Engineer" }
// Analyze current package states
Read("$workspaces$ruv-FANN$claude-code-flow$claude-code-flow$package.json")
Read("$workspaces$ruv-FANN$ruv-swarm$npm$package.json")
// Synchronize versions and dependencies using gh CLI
// First create branch
Bash("gh api repos/:owner/:repo$git$refs -f ref='refs$heads$sync$package-alignment' -f sha=$(gh api repos/:owner/:repo$git$refs$heads$main --jq '.object.sha')")
// Update file using gh CLI
Bash(`gh api repos/:owner/:repo$contents$claude-code-flow$claude-code-flow$package.json \
--method PUT \
-f message="feat: Align Node.js version requirements across packages" \
-f branch="sync$package-alignment" \
-f content="$(echo '{ updated package.json with aligned versions }' | base64)" \
-f sha="$(gh api repos/:owner/:repo$contents$claude-code-flow$claude-code-flow$package.json?ref=sync$package-alignment --jq '.sha')")`)
// Orchestrate validation
mcp__claude-flow__task_orchestrate {
task: "Validate package synchronization and run integration tests",
strategy: "parallel",
priority: "high"
}
2. ドキュメントの同期
// Synchronize CLAUDE.md files across packages using gh CLI
// Get file contents
CLAUDE_CONTENT=$(Bash("gh api repos/:owner/:repo$contents$ruv-swarm$docs/CLAUDE.md --jq '.content' | base64 -d"))
// Update claude-code-flow CLAUDE.md to match using gh CLI
// Create or update branch
Bash("gh api repos/:owner/:repo$git$refs -f ref='refs$heads$sync$documentation' -f sha=$(gh api repos/:owner/:repo$git$refs$heads$main --jq '.object.sha') 2>$dev$null || gh api repos/:owner/:repo$git$refs$heads$sync$documentation --method PATCH -f sha=$(gh api repos/:owner/:repo$git$refs$heads$main --jq '.object.sha')")
// Update file
Bash(`gh api repos/:owner/:repo$contents$claude-code-flow$claude-code-flow/CLAUDE.md \
--method PUT \
-f message="docs: Synchronize CLAUDE.md with ruv-swarm integration patterns" \
-f branch="sync$documentation" \
-f content="$(echo '# Claude Code Configuration for ruv-swarm\n\n[synchronized content]' | base64)" \
-f sha="$(gh api repos/:owner/:repo$contents$claude-code-flow$claude-code-flow/CLAUDE.md?ref=sync$documentation --jq '.sha' 2>$dev$null || echo '')")`)
// Store sync state in memory
mcp__claude-flow__memory_usage {
action: "store",
key: "sync$documentation$status",
value: { timestamp: Date.now(), status: "synchronized", files: ["CLAUDE.md"] }
}
3. パッケージ間の機能統合
// Coordinate feature implementation across packages
mcp__github__push_files {
owner: "ruvnet",
repo: "ruv-FANN",
branch: "feature$github-commands",
files: [
{
path: "claude-code-flow$claude-code-flow/.claude$commands$github$github-modes.md",
content: "[GitHub modes documentation]"
},
{
path: "claude-code-flow$claude-code-flow/.claude$commands$github$pr-manager.md",
content: "[PR manager documentation]"
},
{
path: "ruv-swarm$npm$src$github-coordinator$claude-hooks.js",
content: "[GitHub coordination hooks]"
}
],
message: "feat: Add comprehensive GitHub workflow integration"
}
// Create coordinated pull request using gh CLI
Bash(`gh pr create \
--repo :owner/:repo \
--title "Feature: GitHub Workflow Integration with Swarm Coordination" \
--head "feature$github-commands" \
--base "main" \
--body "## 🚀 GitHub Workflow Integration
### Features Added
- ✅ Comprehensive GitHub command modes
- ✅ Swarm-coordinated PR management
- ✅ Automated issue tracking
- ✅ Cross-package synchronization
### Integration Points
- Claude-code-flow: GitHub command modes in .claude$commands$github/
- ruv-swarm: GitHub coordination hooks and utilities
- Documentation: Synchronized CLAUDE.md instructions
### Testing
- [x] Package dependency verification
- [x] Integration test suite
- [x] Documentation validation
- [x] Cross-package compatibility
### Swarm Coordination
This integration uses ruv-swarm agents for:
- Multi-agent GitHub workflow management
- Automated testing and validation
- Progress tracking and coordination
- Memory-based state management
---
🤖 Generated with Claude Code using ruv-swarm coordination`
}
一括同期の例
パッケージ同期の完全なワークフロー:
[Single Message - Complete Synchronization]:
// Initialize comprehensive sync swarm
mcp__claude-flow__swarm_init { topology: "mesh", maxAgents: 6 }
mcp__claude-flow__agent_spawn { type: "coordinator", name: "Master Sync Coordinator" }
mcp__claude-flow__agent_spawn { type: "analyst", name: "Package Analyzer" }
mcp__claude-flow__agent_spawn { type: "coder", name: "Integration Coder" }
mcp__claude-flow__agent_spawn { type: "tester", name: "Validation Tester" }
mcp__claude-flow__agent_spawn { type: "reviewer", name: "Quality Reviewer" }
// Read current state of both packages
Read("$workspaces$ruv-FANN$claude-code-flow$claude-code-flow$package.json")
Read("$workspaces$ruv-FANN$ruv-swarm$npm$package.json")
Read("$workspaces$ruv-FANN$claude-code-flow$claude-code-flow/CLAUDE.md")
Read("$workspaces$ruv-FANN$ruv-swarm$docs/CLAUDE.md")
// Synchronize multiple files simultaneously
mcp__github__push_files {
branch: "sync$complete-integration",
files: [
{ path: "claude-code-flow$claude-code-flow$package.json", content: "[aligned package.json]" },
{ path: "claude-code-flow$claude-code-flow/CLAUDE.md", content: "[synchronized CLAUDE.md]" },
{ path: "claude-code-flow$claude-code-flow/.claude$commands$github$github-modes.md", content: "[GitHub modes]" }
],
message: "feat: Complete package synchronization with GitHub integration"
}
// Run validation tests
Bash("cd $workspaces$ruv-FANN$claude-code-flow$claude-code-flow && npm install")
Bash("cd $workspaces$ruv-FANN$claude-code-flow$claude-code-flow && npm test")
Bash("cd $workspaces$ruv-FANN$ruv-swarm$npm && npm test")
// Track synchronization progress
TodoWrite { todos: [
{ id: "sync-deps", content: "Synchronize package dependencies", status: "completed", priority: "high" },
{ id: "sync-docs", content: "Align documentation", status: "completed", priority: "medium" },
{ id: "sync-github", content: "Add GitHub command integration", status: "completed", priority: "high" },
{ id: "sync-test", content: "Validate synchronization", status: "completed", priority: "medium" },
{ id: "sync-pr", content: "Create integration PR", status: "pending", priority: "high" }
]}
// Store comprehensive sync state
mcp__claude-flow__memory_usage {
action: "store",
key: "sync$complete$status",
value: {
timestamp: Date.now(),
packages_synced: ["claude-code-flow", "ruv-swarm"],
version_alignment: "completed",
documentation_sync: "completed",
github_integration: "completed",
validation_status: "passed"
}
}
同期戦略
1. バージョン整合戦略
// Intelligent version synchronization
const syncStrategy = {
nodeVersion: ">=20.0.0", // Align to highest requirement
dependencies: {
"better-sqlite3": "^12.2.0", // Use latest stable
"ws": "^8.14.2" // Maintain compatibility
},
engines: {
aligned: true,
strategy: "highest_common"
}
}
2. ドキュメント同期パターン
// Keep documentation consistent across packages
const docSyncPattern = {
sourceOfTruth: "ruv-swarm$docs/CLAUDE.md",
targets: [
"claude-code-flow$claude-code-flow/CLAUDE.md",
"CLAUDE.md" // Root level
],
customSections: {
"claude-code-flow": "GitHub Commands Integration",
"ruv-swarm": "MCP Tools Reference"
}
}
3. 統合テストマトリクス
// Comprehensive testing across synchronized packages
const testMatrix = {
packages: ["claude-code-flow", "ruv-swarm"],
tests: [
"unit_tests",
"integration_tests",
"cross_package_tests",
"mcp_integration_tests",
"github_workflow_tests"
],
validation: "parallel_execution"
}
ベストプラクティス
1. アトミックな同期
- 関連する変更には一括操作を使用します
- すべての同期操作で一貫性を維持します
- 同期に失敗した場合に備えてロールバックの仕組みを実装します
2. バージョン管理
- セマンティックバージョニングを整合させます
- 依存関係の互換性を検証します
- バージョン更新の調整を自動化します
3. ドキュメントの一貫性
- 共有概念について信頼できる唯一の情報源を設けます
- パッケージ固有のカスタマイズを行います
- ドキュメントの検証を自動化します
4. テストの統合
- パッケージ間のテストを検証します
- 統合テストを自動化します
- パフォーマンスのリグレッションを検出します
監視とメトリクス
同期品質のメトリクス:
- パッケージのバージョン整合率
- ドキュメントの一貫性スコア
- 統合テストの成功率
- 同期の完了時間
自動レポート:
- 毎週の同期ステータスレポート
- 依存関係のずれの検出
- ドキュメントの乖離に関するアラート
- 統合状態の監視
高度なスウォーム同期機能
マルチエージェント調整アーキテクチャ
# Initialize comprehensive synchronization swarm
mcp__claude-flow__swarm_init { topology: "hierarchical", maxAgents: 10 }
mcp__claude-flow__agent_spawn { type: "coordinator", name: "Master Sync Coordinator" }
mcp__claude-flow__agent_spawn { type: "analyst", name: "Dependency Analyzer" }
mcp__claude-flow__agent_spawn { type: "coder", name: "Integration Developer" }
mcp__claude-flow__agent_spawn { type: "tester", name: "Validation Engineer" }
mcp__claude-flow__agent_spawn { type: "reviewer", name: "Quality Assurance" }
mcp__claude-flow__agent_spawn { type: "monitor", name: "Sync Monitor" }
# Orchestrate complex synchronization workflow
mcp__claude-flow__task_orchestrate {
task: "Execute comprehensive multi-repository synchronization with validation",
strategy: "adaptive",
priority: "critical",
dependencies: ["version_analysis", "dependency_resolution", "integration_testing"]
}
# Load balance synchronization tasks across agents
mcp__claude-flow__load_balance {
swarmId: "sync-coordination-swarm",
tasks: [
"package_json_sync",
"documentation_alignment",
"version_compatibility_check",
"integration_test_execution"
]
}
インテリジェントな競合解決
// Advanced conflict detection and resolution
const syncConflictResolver = async (conflicts) => {
// Initialize conflict resolution swarm
await mcp__claude_flow__swarm_init({ topology: "mesh", maxAgents: 6 });
// Spawn specialized conflict resolution agents
await mcp__claude_flow__agent_spawn({ type: "analyst", name: "Conflict Analyzer" });
await mcp__claude_flow__agent_spawn({ type: "coder", name: "Resolution Developer" });
await mcp__claude_flow__agent_spawn({ type: "reviewer", name: "Solution Validator" });
// Store conflict context in swarm memory
await mcp__claude_flow__memory_usage({
action: "store",
key: "sync$conflicts$current",
value: {
conflicts,
resolution_strategy: "automated_with_validation",
priority_order: conflicts.sort((a, b) => b.impact - a.impact)
}
});
// Coordinate conflict resolution workflow
return await mcp__claude_flow__task_orchestrate({
task: "Resolve synchronization conflicts with multi-agent validation",
strategy: "sequential",
priority: "high"
});
};
包括的な同期メトリクス
# Store detailed synchronization metrics
mcp__claude-flow__memory_usage {
action: "store",
key: "sync$metrics$session",
value: {
packages_synchronized: ["claude-code-flow", "ruv-swarm"],
version_alignment_score: 98.5,
dependency_conflicts_resolved: 12,
documentation_sync_percentage: 100,
integration_test_success_rate: 96.8,
total_sync_time: "23.4 minutes",
agent_efficiency_scores: {
"Master Sync Coordinator": 9.2,
"Dependency Analyzer": 8.7,
"Integration Developer": 9.0,
"Validation Engineer": 8.9
}
}
}
エラー処理と復旧
スウォーム連携によるエラー復旧
# Initialize error recovery swarm
mcp__claude-flow__swarm_init { topology: "star", maxAgents: 5 }
mcp__claude-flow__agent_spawn { type: "monitor", name: "Error Monitor" }
mcp__claude-flow__agent_spawn { type: "analyst", name: "Failure Analyzer" }
mcp__claude-flow__agent_spawn { type: "coder", name: "Recovery Developer" }
# Coordinate recovery procedures
mcp__claude-flow__coordination_sync { swarmId: "error-recovery-swarm" }
# Store recovery state
mcp__claude-flow__memory_usage {
action: "store",
key: "sync$recovery$state",
value: {
error_type: "version_conflict",
recovery_strategy: "incremental_rollback",
agent_assignments: {
"conflict_resolution": "Recovery Developer",
"validation": "Failure Analyzer",
"monitoring": "Error Monitor"
}
}
}
以下を自動処理します:
- スウォームコンセンサスによるバージョン競合の解決
- マージ競合の検出とマルチエージェントによる解決
- 適応戦略によるテスト失敗からの復旧
- インテリジェントなマージによるドキュメント同期の競合
復旧手順:
- 重大な障害時のスウォーム連携による自動ロールバック
- マルチエージェントによる増分同期の再試行メカニズム
- 複雑な競合に対するインテリジェントな介入ポイント
- メモリ連携による同期操作をまたいだ永続状態の保持
コメント
Markdown 対応