moflo 4.9.20 → 4.9.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/.claude/commands/{simplify.md → flo-simplify.md} +4 -4
  2. package/.claude/guidance/shipped/moflo-agent-rules.md +172 -0
  3. package/.claude/guidance/shipped/moflo-claude-swarm-cohesion.md +73 -265
  4. package/.claude/guidance/shipped/moflo-cli-reference.md +6 -6
  5. package/.claude/guidance/shipped/moflo-core-guidance.md +66 -184
  6. package/.claude/guidance/shipped/moflo-cross-platform.md +1 -1
  7. package/.claude/guidance/shipped/moflo-error-handling.md +3 -3
  8. package/.claude/guidance/shipped/moflo-guidance-rules.md +17 -7
  9. package/.claude/guidance/shipped/moflo-memory-strategy.md +76 -182
  10. package/.claude/guidance/shipped/moflo-memorydb-maintenance.md +6 -8
  11. package/.claude/guidance/shipped/moflo-settings-injection.md +7 -9
  12. package/.claude/guidance/shipped/moflo-source-hygiene.md +5 -5
  13. package/.claude/guidance/shipped/moflo-spell-connectors.md +3 -4
  14. package/.claude/guidance/shipped/moflo-spell-custom-steps.md +3 -4
  15. package/.claude/guidance/shipped/moflo-spell-engine.md +40 -162
  16. package/.claude/guidance/shipped/moflo-spell-runner.md +134 -0
  17. package/.claude/guidance/shipped/moflo-spell-sandboxing.md +10 -57
  18. package/.claude/guidance/shipped/moflo-spell-troubleshooting.md +149 -0
  19. package/.claude/guidance/shipped/moflo-subagents.md +43 -114
  20. package/.claude/guidance/shipped/moflo-task-icons.md +4 -4
  21. package/.claude/guidance/shipped/moflo-user-facing-language.md +3 -3
  22. package/.claude/guidance/shipped/moflo-verbose-command-filtering.md +3 -3
  23. package/.claude/guidance/shipped/moflo-yaml-reference.md +4 -5
  24. package/.claude/helpers/gate.cjs +124 -14
  25. package/.claude/helpers/prompt-hook.mjs +4 -38
  26. package/.claude/helpers/simplify-classify.cjs +32 -11
  27. package/.claude/helpers/subagent-bootstrap.json +1 -1
  28. package/.claude/helpers/subagent-start.cjs +1 -1
  29. package/.claude/skills/connector-builder/SKILL.md +42 -429
  30. package/.claude/skills/connector-builder/templates/connector.md +189 -0
  31. package/.claude/skills/connector-builder/templates/step-command.md +176 -0
  32. package/.claude/skills/eldar/SKILL.md +7 -7
  33. package/.claude/skills/fl/SKILL.md +3 -3
  34. package/.claude/skills/fl/execution-modes.md +3 -3
  35. package/.claude/skills/fl/phases.md +3 -3
  36. package/.claude/skills/{simplify → flo-simplify}/SKILL.md +11 -11
  37. package/.claude/skills/guidance/SKILL.md +17 -9
  38. package/.claude/skills/memory-patterns/SKILL.md +1 -1
  39. package/.claude/skills/publish/SKILL.md +121 -36
  40. package/.claude/skills/reset-epic/SKILL.md +2 -2
  41. package/.claude/skills/spell-builder/SKILL.md +39 -226
  42. package/.claude/skills/spell-builder/architecture.md +1 -1
  43. package/.claude/skills/spell-builder/permissions.md +107 -0
  44. package/.claude/skills/spell-builder/preflight.md +101 -0
  45. package/.claude/skills/spell-schedule/SKILL.md +2 -3
  46. package/bin/gate.cjs +124 -14
  47. package/bin/prompt-hook.mjs +4 -38
  48. package/bin/session-start-launcher.mjs +19 -1
  49. package/bin/setup-project.mjs +63 -69
  50. package/bin/simplify-classify.cjs +32 -11
  51. package/dist/src/cli/commands/doctor-checks-deep.js +4 -0
  52. package/dist/src/cli/init/claudemd-generator.js +30 -33
  53. package/dist/src/cli/init/executor.js +28 -16
  54. package/dist/src/cli/init/helpers-generator.js +101 -51
  55. package/dist/src/cli/init/moflo-init.js +41 -114
  56. package/dist/src/cli/init/settings-generator.js +32 -14
  57. package/dist/src/cli/services/hook-block-hash.js +7 -2
  58. package/dist/src/cli/services/hook-wiring.js +86 -3
  59. package/dist/src/cli/services/subagent-bootstrap.js +1 -1
  60. package/dist/src/cli/version.js +1 -1
  61. package/package.json +2 -2
  62. package/scripts/post-install-bootstrap.mjs +19 -0
  63. package/.claude/guidance/shipped/moflo-session-start.md +0 -154
  64. package/.claude/guidance/shipped/moflo-spell-engine-architecture.md +0 -145
  65. package/.claude/skills/browser/SKILL.md +0 -204
  66. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  67. package/.claude/skills/github-multi-repo/SKILL.md +0 -866
  68. package/.claude/skills/github-project-management/SKILL.md +0 -1272
  69. package/.claude/skills/github-release-management/SKILL.md +0 -1074
  70. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1060
  71. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  72. package/.claude/skills/hooks-automation/SKILL.md +0 -1193
  73. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  74. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  75. package/.claude/skills/skill-builder/SKILL.md +0 -910
  76. package/.claude/skills/sparc-methodology/SKILL.md +0 -904
  77. package/.claude/skills/stream-chain/SKILL.md +0 -563
  78. package/.claude/skills/swarm-advanced/SKILL.md +0 -811
  79. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  80. package/.claude/skills/verification-quality/SKILL.md +0 -649
  81. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  82. package/.claude/skills/worker-integration/skill.md +0 -154
@@ -1,866 +0,0 @@
1
- ---
2
- name: github-multi-repo
3
- version: 1.0.0
4
- description: Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
5
- category: github-integration
6
- tags: [multi-repo, synchronization, architecture, coordination, github]
7
- author: Claude Flow Team
8
- requires:
9
- - ruv-swarm@^1.0.11
10
- - gh-cli@^2.0.0
11
- capabilities:
12
- - cross-repository coordination
13
- - package synchronization
14
- - architecture optimization
15
- - template management
16
- - distributed workflows
17
- ---
18
-
19
- # GitHub Multi-Repository Coordination Skill
20
-
21
- ## Overview
22
-
23
- 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.
24
-
25
- ## Core Capabilities
26
-
27
- ### 🔄 Multi-Repository Swarm Coordination
28
- Cross-repository AI swarm orchestration for distributed development workflows.
29
-
30
- ### 📦 Package Synchronization
31
- Intelligent dependency resolution and version alignment across multiple packages.
32
-
33
- ### 🏗️ Repository Architecture
34
- Structure optimization and template management for scalable projects.
35
-
36
- ### 🔗 Integration Management
37
- Cross-package integration testing and deployment coordination.
38
-
39
- ## Quick Start
40
-
41
- ### Initialize Multi-Repo Coordination
42
- ```bash
43
- # Basic swarm initialization
44
- npx claude-flow skill run github-multi-repo init \
45
- --repos "org/frontend,org/backend,org/shared" \
46
- --topology hierarchical
47
-
48
- # Advanced initialization with synchronization
49
- npx claude-flow skill run github-multi-repo init \
50
- --repos "org/frontend,org/backend,org/shared" \
51
- --topology mesh \
52
- --shared-memory \
53
- --sync-strategy eventual
54
- ```
55
-
56
- ### Synchronize Packages
57
- ```bash
58
- # Synchronize package versions and dependencies
59
- npx claude-flow skill run github-multi-repo sync \
60
- --packages "claude-code-flow,ruv-swarm" \
61
- --align-versions \
62
- --update-docs
63
- ```
64
-
65
- ### Optimize Architecture
66
- ```bash
67
- # Analyze and optimize repository structure
68
- npx claude-flow skill run github-multi-repo optimize \
69
- --analyze-structure \
70
- --suggest-improvements \
71
- --create-templates
72
- ```
73
-
74
- ## Features
75
-
76
- ### 1. Cross-Repository Swarm Orchestration
77
-
78
- #### Repository Discovery
79
- ```javascript
80
- // Auto-discover related repositories with gh CLI
81
- const REPOS = Bash(`gh repo list my-organization --limit 100 \
82
- --json name,description,languages,topics \
83
- --jq '.[] | select(.languages | keys | contains(["TypeScript"]))'`)
84
-
85
- // Analyze repository dependencies
86
- const DEPS = Bash(`gh repo list my-organization --json name | \
87
- jq -r '.[].name' | while read -r repo; do
88
- gh api repos/my-organization/$repo/contents/package.json \
89
- --jq '.content' 2>/dev/null | base64 -d | jq '{name, dependencies}'
90
- done | jq -s '.'`)
91
-
92
- // Initialize swarm with discovered repositories
93
- mcp__moflo__swarm_init({
94
- topology: "hierarchical",
95
- maxAgents: 8,
96
- metadata: { repos: REPOS, dependencies: DEPS }
97
- })
98
- ```
99
-
100
- #### Synchronized Operations
101
- ```javascript
102
- // Execute synchronized changes across repositories
103
- [Parallel Multi-Repo Operations]:
104
- // Spawn coordination agents
105
- Task("Repository Coordinator", "Coordinate changes across all repositories", "coordinator")
106
- Task("Dependency Analyzer", "Analyze cross-repo dependencies", "analyst")
107
- Task("Integration Tester", "Validate cross-repo changes", "tester")
108
-
109
- // Get matching repositories
110
- Bash(`gh repo list org --limit 100 --json name \
111
- --jq '.[] | select(.name | test("-service$")) | .name' > /tmp/repos.txt`)
112
-
113
- // Execute task across repositories
114
- Bash(`cat /tmp/repos.txt | while read -r repo; do
115
- gh repo clone org/$repo /tmp/$repo -- --depth=1
116
- cd /tmp/$repo
117
-
118
- # Apply changes
119
- npm update
120
- npm test
121
-
122
- # Create PR if successful
123
- if [ $? -eq 0 ]; then
124
- git checkout -b update-dependencies-$(date +%Y%m%d)
125
- git add -A
126
- git commit -m "chore: Update dependencies"
127
- git push origin HEAD
128
- gh pr create --title "Update dependencies" --body "Automated update" --label "dependencies"
129
- fi
130
- done`)
131
-
132
- // Track all operations
133
- TodoWrite { todos: [
134
- { id: "discover", content: "Discover all service repositories", status: "completed" },
135
- { id: "update", content: "Update dependencies", status: "completed" },
136
- { id: "test", content: "Run integration tests", status: "in_progress" },
137
- { id: "pr", content: "Create pull requests", status: "pending" }
138
- ]}
139
- ```
140
-
141
- ### 2. Package Synchronization
142
-
143
- #### Version Alignment
144
- ```javascript
145
- // Synchronize package dependencies and versions
146
- [Complete Package Sync]:
147
- // Initialize sync swarm
148
- mcp__moflo__swarm_init({ topology: "mesh", maxAgents: 5 })
149
-
150
- // Spawn sync agents
151
- Task("Sync Coordinator", "Coordinate version alignment", "coordinator")
152
- Task("Dependency Analyzer", "Analyze dependencies", "analyst")
153
- Task("Integration Tester", "Validate synchronization", "tester")
154
-
155
- // Read package states
156
- Read("/workspaces/ruv-FANN/claude-code-flow/claude-code-flow/package.json")
157
- Read("/workspaces/ruv-FANN/ruv-swarm/npm/package.json")
158
-
159
- // Align versions using gh CLI
160
- Bash(`gh api repos/:owner/:repo/git/refs \
161
- -f ref='refs/heads/sync/package-alignment' \
162
- -f sha=$(gh api repos/:owner/:repo/git/refs/heads/main --jq '.object.sha')`)
163
-
164
- // Update package.json files
165
- Bash(`gh api repos/:owner/:repo/contents/package.json \
166
- --method PUT \
167
- -f message="feat: Align Node.js version requirements" \
168
- -f branch="sync/package-alignment" \
169
- -f content="$(cat aligned-package.json | base64)"`)
170
-
171
- // Store sync state
172
- mcp__moflo__memory_store({
173
- key: "sync/packages/status",
174
- value: {
175
- timestamp: Date.now(),
176
- packages_synced: ["claude-code-flow", "ruv-swarm"],
177
- status: "synchronized"
178
- }
179
- })
180
- ```
181
-
182
- #### Documentation Synchronization
183
- ```javascript
184
- // Synchronize CLAUDE.md files across packages
185
- [Documentation Sync]:
186
- // Get source documentation
187
- Bash(`gh api repos/:owner/:repo/contents/ruv-swarm/docs/CLAUDE.md \
188
- --jq '.content' | base64 -d > /tmp/claude-source.md`)
189
-
190
- // Update target documentation
191
- Bash(`gh api repos/:owner/:repo/contents/claude-code-flow/CLAUDE.md \
192
- --method PUT \
193
- -f message="docs: Synchronize CLAUDE.md" \
194
- -f branch="sync/documentation" \
195
- -f content="$(cat /tmp/claude-source.md | base64)"`)
196
-
197
- // Track sync status
198
- mcp__moflo__memory_store({
199
- key: "sync/documentation/status",
200
- value: { status: "synchronized", files: ["CLAUDE.md"] }
201
- })
202
- ```
203
-
204
- #### Cross-Package Integration
205
- ```javascript
206
- // Coordinate feature implementation across packages
207
- [Cross-Package Feature]:
208
- // Push changes to all packages
209
- mcp__github__push_files({
210
- branch: "feature/github-integration",
211
- files: [
212
- {
213
- path: "claude-code-flow/.claude/commands/github/github-modes.md",
214
- content: "[GitHub modes documentation]"
215
- },
216
- {
217
- path: "ruv-swarm/src/github-coordinator/hooks.js",
218
- content: "[GitHub coordination hooks]"
219
- }
220
- ],
221
- message: "feat: Add GitHub workflow integration"
222
- })
223
-
224
- // Create coordinated PR
225
- Bash(`gh pr create \
226
- --title "Feature: GitHub Workflow Integration" \
227
- --body "## 🚀 GitHub Integration
228
-
229
- ### Features
230
- - ✅ Multi-repo coordination
231
- - ✅ Package synchronization
232
- - ✅ Architecture optimization
233
-
234
- ### Testing
235
- - [x] Package dependency verification
236
- - [x] Integration tests
237
- - [x] Cross-package compatibility"`)
238
- ```
239
-
240
- ### 3. Repository Architecture
241
-
242
- #### Structure Analysis
243
- ```javascript
244
- // Analyze and optimize repository structure
245
- [Architecture Analysis]:
246
- // Initialize architecture swarm
247
- mcp__moflo__swarm_init({ topology: "hierarchical", maxAgents: 6 })
248
-
249
- // Spawn architecture agents
250
- Task("Senior Architect", "Analyze repository structure", "architect")
251
- Task("Structure Analyst", "Identify optimization opportunities", "analyst")
252
- Task("Performance Optimizer", "Optimize structure for scalability", "optimizer")
253
- Task("Best Practices Researcher", "Research architecture patterns", "researcher")
254
-
255
- // Analyze current structures
256
- LS("/workspaces/ruv-FANN/claude-code-flow/claude-code-flow")
257
- LS("/workspaces/ruv-FANN/ruv-swarm/npm")
258
-
259
- // Search for best practices
260
- Bash(`gh search repos "language:javascript template architecture" \
261
- --limit 10 \
262
- --json fullName,description,stargazersCount \
263
- --sort stars \
264
- --order desc`)
265
-
266
- // Store analysis results
267
- mcp__moflo__memory_store({
268
- key: "architecture/analysis/results",
269
- value: {
270
- repositories_analyzed: ["claude-code-flow", "ruv-swarm"],
271
- optimization_areas: ["structure", "workflows", "templates"],
272
- recommendations: ["standardize_structure", "improve_workflows"]
273
- }
274
- })
275
- ```
276
-
277
- #### Template Creation
278
- ```javascript
279
- // Create standardized repository template
280
- [Template Creation]:
281
- // Create template repository
282
- mcp__github__create_repository({
283
- name: "github-multi-repo",
284
- description: "Standardized template for Claude Code projects",
285
- private: false,
286
- autoInit: true
287
- })
288
-
289
- // Push template structure
290
- mcp__github__push_files({
291
- repo: "claude-project-template",
292
- files: [
293
- {
294
- path: ".claude/commands/github/github-modes.md",
295
- content: "[GitHub modes template]"
296
- },
297
- {
298
- path: ".claude/config.json",
299
- content: JSON.stringify({
300
- version: "1.0",
301
- mcp_servers: {
302
- "ruv-swarm": {
303
- command: "npx",
304
- args: ["ruv-swarm", "mcp", "start"]
305
- }
306
- }
307
- })
308
- },
309
- {
310
- path: "CLAUDE.md",
311
- content: "[Standardized CLAUDE.md]"
312
- },
313
- {
314
- path: "package.json",
315
- content: JSON.stringify({
316
- name: "claude-project-template",
317
- engines: { node: ">=20.0.0" },
318
- dependencies: { "ruv-swarm": "^1.0.11" }
319
- })
320
- }
321
- ],
322
- message: "feat: Create standardized template"
323
- })
324
- ```
325
-
326
- #### Cross-Repository Standardization
327
- ```javascript
328
- // Synchronize structure across repositories
329
- [Structure Standardization]:
330
- const repositories = ["claude-code-flow", "ruv-swarm", "claude-extensions"]
331
-
332
- // Update common files across all repositories
333
- repositories.forEach(repo => {
334
- mcp__github__create_or_update_file({
335
- repo: "ruv-FANN",
336
- path: `${repo}/.github/workflows/integration.yml`,
337
- content: `name: Integration Tests
338
- on: [push, pull_request]
339
- jobs:
340
- test:
341
- runs-on: ubuntu-latest
342
- steps:
343
- - uses: actions/checkout@v3
344
- - uses: actions/setup-node@v3
345
- with: { node-version: '20' }
346
- - run: npm install && npm test`,
347
- message: "ci: Standardize integration workflow",
348
- branch: "structure/standardization"
349
- })
350
- })
351
- ```
352
-
353
- ### 4. Orchestration Workflows
354
-
355
- #### Dependency Management
356
- ```javascript
357
- // Update dependencies across all repositories
358
- [Organization-Wide Dependency Update]:
359
- // Create tracking issue
360
- TRACKING_ISSUE=$(Bash(`gh issue create \
361
- --title "Dependency Update: typescript@5.0.0" \
362
- --body "Tracking TypeScript update across all repositories" \
363
- --label "dependencies,tracking" \
364
- --json number -q .number`))
365
-
366
- // Find all TypeScript repositories
367
- TS_REPOS=$(Bash(`gh repo list org --limit 100 --json name | \
368
- jq -r '.[].name' | while read -r repo; do
369
- if gh api repos/org/$repo/contents/package.json 2>/dev/null | \
370
- jq -r '.content' | base64 -d | grep -q '"typescript"'; then
371
- echo "$repo"
372
- fi
373
- done`))
374
-
375
- // Update each repository
376
- Bash(`echo "$TS_REPOS" | while read -r repo; do
377
- gh repo clone org/$repo /tmp/$repo -- --depth=1
378
- cd /tmp/$repo
379
-
380
- npm install --save-dev typescript@5.0.0
381
-
382
- if npm test; then
383
- git checkout -b update-typescript-5
384
- git add package.json package-lock.json
385
- git commit -m "chore: Update TypeScript to 5.0.0
386
-
387
- Part of #$TRACKING_ISSUE"
388
-
389
- git push origin HEAD
390
- gh pr create \
391
- --title "Update TypeScript to 5.0.0" \
392
- --body "Updates TypeScript\n\nTracking: #$TRACKING_ISSUE" \
393
- --label "dependencies"
394
- else
395
- gh issue comment $TRACKING_ISSUE \
396
- --body "❌ Failed to update $repo - tests failing"
397
- fi
398
- done`)
399
- ```
400
-
401
- #### Refactoring Operations
402
- ```javascript
403
- // Coordinate large-scale refactoring
404
- [Cross-Repo Refactoring]:
405
- // Initialize refactoring swarm
406
- mcp__moflo__swarm_init({ topology: "mesh", maxAgents: 8 })
407
-
408
- // Spawn specialized agents
409
- Task("Refactoring Coordinator", "Coordinate refactoring across repos", "coordinator")
410
- Task("Impact Analyzer", "Analyze refactoring impact", "analyst")
411
- Task("Code Transformer", "Apply refactoring changes", "coder")
412
- Task("Migration Guide Creator", "Create migration documentation", "documenter")
413
- Task("Integration Tester", "Validate refactored code", "tester")
414
-
415
- // Execute refactoring
416
- ```
417
-
418
- #### Security Updates
419
- ```javascript
420
- // Coordinate security patches
421
- [Security Patch Deployment]:
422
- // Scan all repositories
423
- Bash(`gh repo list org --limit 100 --json name | jq -r '.[].name' | \
424
- while read -r repo; do
425
- gh repo clone org/$repo /tmp/$repo -- --depth=1
426
- cd /tmp/$repo
427
- npm audit --json > /tmp/audit-$repo.json
428
- done`)
429
-
430
- // Apply patches
431
- Bash(`for repo in /tmp/audit-*.json; do
432
- if [ $(jq '.vulnerabilities | length' $repo) -gt 0 ]; then
433
- cd /tmp/$(basename $repo .json | sed 's/audit-//')
434
- npm audit fix
435
-
436
- if npm test; then
437
- git checkout -b security/patch-$(date +%Y%m%d)
438
- git add -A
439
- git commit -m "security: Apply security patches"
440
- git push origin HEAD
441
- gh pr create --title "Security patches" --label "security"
442
- fi
443
- fi
444
- done`)
445
- ```
446
-
447
- ## Configuration
448
-
449
- ### Multi-Repo Config File
450
- ```yaml
451
- # .swarm/multi-repo.yml
452
- version: 1
453
- organization: my-org
454
-
455
- repositories:
456
- - name: frontend
457
- url: github.com/my-org/frontend
458
- role: ui
459
- agents: [coder, designer, tester]
460
-
461
- - name: backend
462
- url: github.com/my-org/backend
463
- role: api
464
- agents: [architect, coder, tester]
465
-
466
- - name: shared
467
- url: github.com/my-org/shared
468
- role: library
469
- agents: [analyst, coder]
470
-
471
- coordination:
472
- topology: hierarchical
473
- communication: webhook
474
- memory: redis://shared-memory
475
-
476
- dependencies:
477
- - from: frontend
478
- to: [backend, shared]
479
- - from: backend
480
- to: [shared]
481
- ```
482
-
483
- ### Repository Roles
484
- ```javascript
485
- {
486
- "roles": {
487
- "ui": {
488
- "responsibilities": ["user-interface", "ux", "accessibility"],
489
- "default-agents": ["designer", "coder", "tester"]
490
- },
491
- "api": {
492
- "responsibilities": ["endpoints", "business-logic", "data"],
493
- "default-agents": ["architect", "coder", "security"]
494
- },
495
- "library": {
496
- "responsibilities": ["shared-code", "utilities", "types"],
497
- "default-agents": ["analyst", "coder", "documenter"]
498
- }
499
- }
500
- }
501
- ```
502
-
503
- ## Communication Strategies
504
-
505
- ### 1. Webhook-Based Coordination
506
- ```javascript
507
- const { MultiRepoSwarm } = require('ruv-swarm');
508
-
509
- const swarm = new MultiRepoSwarm({
510
- webhook: {
511
- url: 'https://swarm-coordinator.example.com',
512
- secret: process.env.WEBHOOK_SECRET
513
- }
514
- });
515
-
516
- swarm.on('repo:update', async (event) => {
517
- await swarm.propagate(event, {
518
- to: event.dependencies,
519
- strategy: 'eventual-consistency'
520
- });
521
- });
522
- ```
523
-
524
- ### 2. Event Streaming
525
- ```yaml
526
- # Kafka configuration for real-time coordination
527
- kafka:
528
- brokers: ['kafka1:9092', 'kafka2:9092']
529
- topics:
530
- swarm-events:
531
- partitions: 10
532
- replication: 3
533
- swarm-memory:
534
- partitions: 5
535
- replication: 3
536
- ```
537
-
538
- ## Synchronization Patterns
539
-
540
- ### 1. Eventually Consistent
541
- ```javascript
542
- {
543
- "sync": {
544
- "strategy": "eventual",
545
- "max-lag": "5m",
546
- "retry": {
547
- "attempts": 3,
548
- "backoff": "exponential"
549
- }
550
- }
551
- }
552
- ```
553
-
554
- ### 2. Strong Consistency
555
- ```javascript
556
- {
557
- "sync": {
558
- "strategy": "strong",
559
- "consensus": "raft",
560
- "quorum": 0.51,
561
- "timeout": "30s"
562
- }
563
- }
564
- ```
565
-
566
- ### 3. Hybrid Approach
567
- ```javascript
568
- {
569
- "sync": {
570
- "default": "eventual",
571
- "overrides": {
572
- "security-updates": "strong",
573
- "dependency-updates": "strong",
574
- "documentation": "eventual"
575
- }
576
- }
577
- }
578
- ```
579
-
580
- ## Use Cases
581
-
582
- ### 1. Microservices Coordination
583
- ```bash
584
- npx claude-flow skill run github-multi-repo microservices \
585
- --services "auth,users,orders,payments" \
586
- --ensure-compatibility \
587
- --sync-contracts \
588
- --integration-tests
589
- ```
590
-
591
- ### 2. Library Updates
592
- ```bash
593
- npx claude-flow skill run github-multi-repo lib-update \
594
- --library "org/shared-lib" \
595
- --version "2.0.0" \
596
- --find-consumers \
597
- --update-imports \
598
- --run-tests
599
- ```
600
-
601
- ### 3. Organization-Wide Changes
602
- ```bash
603
- npx claude-flow skill run github-multi-repo org-policy \
604
- --policy "add-security-headers" \
605
- --repos "org/*" \
606
- --validate-compliance \
607
- --create-reports
608
- ```
609
-
610
- ## Architecture Patterns
611
-
612
- ### Monorepo Structure
613
- ```
614
- ruv-FANN/
615
- ├── packages/
616
- │ ├── claude-code-flow/
617
- │ │ ├── src/
618
- │ │ ├── .claude/
619
- │ │ └── package.json
620
- │ ├── ruv-swarm/
621
- │ │ ├── src/
622
- │ │ ├── wasm/
623
- │ │ └── package.json
624
- │ └── shared/
625
- │ ├── types/
626
- │ ├── utils/
627
- │ └── config/
628
- ├── tools/
629
- │ ├── build/
630
- │ ├── test/
631
- │ └── deploy/
632
- ├── docs/
633
- │ ├── architecture/
634
- │ ├── integration/
635
- │ └── examples/
636
- └── .github/
637
- ├── workflows/
638
- ├── templates/
639
- └── actions/
640
- ```
641
-
642
- ### Command Structure
643
- ```
644
- .claude/
645
- ├── commands/
646
- │ ├── github/
647
- │ │ ├── github-modes.md
648
- │ │ ├── pr-manager.md
649
- │ │ ├── issue-tracker.md
650
- │ │ └── sync-coordinator.md
651
- │ ├── sparc/
652
- │ │ ├── sparc-modes.md
653
- │ │ ├── coder.md
654
- │ │ └── tester.md
655
- │ └── swarm/
656
- │ ├── coordination.md
657
- │ └── orchestration.md
658
- ├── templates/
659
- │ ├── issue.md
660
- │ ├── pr.md
661
- │ └── project.md
662
- └── config.json
663
- ```
664
-
665
- ## Monitoring & Visualization
666
-
667
- ### Multi-Repo Dashboard
668
- ```bash
669
- npx claude-flow skill run github-multi-repo dashboard \
670
- --port 3000 \
671
- --metrics "agent-activity,task-progress,memory-usage" \
672
- --real-time
673
- ```
674
-
675
- ### Dependency Graph
676
- ```bash
677
- npx claude-flow skill run github-multi-repo dep-graph \
678
- --format mermaid \
679
- --include-agents \
680
- --show-data-flow
681
- ```
682
-
683
- ### Health Monitoring
684
- ```bash
685
- npx claude-flow skill run github-multi-repo health-check \
686
- --repos "org/*" \
687
- --check "connectivity,memory,agents" \
688
- --alert-on-issues
689
- ```
690
-
691
- ## Best Practices
692
-
693
- ### 1. Repository Organization
694
- - Clear repository roles and boundaries
695
- - Consistent naming conventions
696
- - Documented dependencies
697
- - Shared configuration standards
698
-
699
- ### 2. Communication
700
- - Use appropriate sync strategies
701
- - Implement circuit breakers
702
- - Monitor latency and failures
703
- - Clear error propagation
704
-
705
- ### 3. Security
706
- - Secure cross-repo authentication
707
- - Encrypted communication channels
708
- - Audit trail for all operations
709
- - Principle of least privilege
710
-
711
- ### 4. Version Management
712
- - Semantic versioning alignment
713
- - Dependency compatibility validation
714
- - Automated version bump coordination
715
-
716
- ### 5. Testing Integration
717
- - Cross-package test validation
718
- - Integration test automation
719
- - Performance regression detection
720
-
721
- ## Performance Optimization
722
-
723
- ### Caching Strategy
724
- ```bash
725
- npx claude-flow skill run github-multi-repo cache-strategy \
726
- --analyze-patterns \
727
- --suggest-cache-layers \
728
- --implement-invalidation
729
- ```
730
-
731
- ### Parallel Execution
732
- ```bash
733
- npx claude-flow skill run github-multi-repo parallel-optimize \
734
- --analyze-dependencies \
735
- --identify-parallelizable \
736
- --execute-optimal
737
- ```
738
-
739
- ### Resource Pooling
740
- ```bash
741
- npx claude-flow skill run github-multi-repo resource-pool \
742
- --share-agents \
743
- --distribute-load \
744
- --monitor-usage
745
- ```
746
-
747
- ## Troubleshooting
748
-
749
- ### Connectivity Issues
750
- ```bash
751
- npx claude-flow skill run github-multi-repo diagnose-connectivity \
752
- --test-all-repos \
753
- --check-permissions \
754
- --verify-webhooks
755
- ```
756
-
757
- ### Memory Synchronization
758
- ```bash
759
- npx claude-flow skill run github-multi-repo debug-memory \
760
- --check-consistency \
761
- --identify-conflicts \
762
- --repair-state
763
- ```
764
-
765
- ### Performance Bottlenecks
766
- ```bash
767
- npx claude-flow skill run github-multi-repo perf-analysis \
768
- --profile-operations \
769
- --identify-bottlenecks \
770
- --suggest-optimizations
771
- ```
772
-
773
- ## Advanced Features
774
-
775
- ### 1. Distributed Task Queue
776
- ```bash
777
- npx claude-flow skill run github-multi-repo queue \
778
- --backend redis \
779
- --workers 10 \
780
- --priority-routing \
781
- --dead-letter-queue
782
- ```
783
-
784
- ### 2. Cross-Repo Testing
785
- ```bash
786
- npx claude-flow skill run github-multi-repo test \
787
- --setup-test-env \
788
- --link-services \
789
- --run-e2e \
790
- --tear-down
791
- ```
792
-
793
- ### 3. Monorepo Migration
794
- ```bash
795
- npx claude-flow skill run github-multi-repo to-monorepo \
796
- --analyze-repos \
797
- --suggest-structure \
798
- --preserve-history \
799
- --create-migration-prs
800
- ```
801
-
802
- ## Examples
803
-
804
- ### Full-Stack Application Update
805
- ```bash
806
- npx claude-flow skill run github-multi-repo fullstack-update \
807
- --frontend "org/web-app" \
808
- --backend "org/api-server" \
809
- --database "org/db-migrations" \
810
- --coordinate-deployment
811
- ```
812
-
813
- ### Cross-Team Collaboration
814
- ```bash
815
- npx claude-flow skill run github-multi-repo cross-team \
816
- --teams "frontend,backend,devops" \
817
- --task "implement-feature-x" \
818
- --assign-by-expertise \
819
- --track-progress
820
- ```
821
-
822
- ## Metrics and Reporting
823
-
824
- ### Sync Quality Metrics
825
- - Package version alignment percentage
826
- - Documentation consistency score
827
- - Integration test success rate
828
- - Synchronization completion time
829
-
830
- ### Architecture Health Metrics
831
- - Repository structure consistency score
832
- - Documentation coverage percentage
833
- - Cross-repository integration success rate
834
- - Template adoption and usage statistics
835
-
836
- ### Automated Reporting
837
- - Weekly sync status reports
838
- - Dependency drift detection
839
- - Documentation divergence alerts
840
- - Integration health monitoring
841
-
842
- ## Integration Points
843
-
844
- ### Related Skills
845
- - `github-workflow` - GitHub workflow automation
846
- - `github-pr` - Pull request management
847
- - `sparc-architect` - Architecture design
848
- - `sparc-optimizer` - Performance optimization
849
-
850
- ### Related Commands
851
- - `/github sync-coordinator` - Cross-repo synchronization
852
- - `/github release-manager` - Coordinated releases
853
- - `/github repo-architect` - Repository optimization
854
- - `/sparc architect` - Detailed architecture design
855
-
856
- ## Support and Resources
857
-
858
- - Documentation: https://github.com/eric-cielo/moflo
859
- - Issues: https://github.com/eric-cielo/moflo/issues
860
- - Examples: `.claude/examples/github-multi-repo/`
861
-
862
- ---
863
-
864
- **Version:** 1.0.0
865
- **Last Updated:** 2025-10-19
866
- **Maintainer:** Claude Flow Team