moflo 4.8.16 → 4.8.17

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 (466) hide show
  1. package/.claude/agents/browser/browser-agent.yaml +182 -182
  2. package/.claude/agents/core/coder.md +265 -265
  3. package/.claude/agents/core/planner.md +167 -167
  4. package/.claude/agents/core/researcher.md +189 -189
  5. package/.claude/agents/core/reviewer.md +325 -325
  6. package/.claude/agents/core/tester.md +318 -318
  7. package/.claude/agents/database-specialist.yaml +21 -21
  8. package/.claude/agents/dual-mode/codex-coordinator.md +224 -224
  9. package/.claude/agents/dual-mode/codex-worker.md +211 -211
  10. package/.claude/agents/dual-mode/dual-orchestrator.md +291 -291
  11. package/.claude/agents/github/code-review-swarm.md +537 -537
  12. package/.claude/agents/github/github-modes.md +172 -172
  13. package/.claude/agents/github/issue-tracker.md +318 -318
  14. package/.claude/agents/github/multi-repo-swarm.md +552 -552
  15. package/.claude/agents/github/pr-manager.md +190 -190
  16. package/.claude/agents/github/project-board-sync.md +508 -508
  17. package/.claude/agents/github/release-manager.md +366 -366
  18. package/.claude/agents/github/release-swarm.md +582 -582
  19. package/.claude/agents/github/repo-architect.md +397 -397
  20. package/.claude/agents/github/swarm-issue.md +572 -572
  21. package/.claude/agents/github/swarm-pr.md +427 -427
  22. package/.claude/agents/github/sync-coordinator.md +451 -451
  23. package/.claude/agents/github/workflow-automation.md +634 -634
  24. package/.claude/agents/goal/code-goal-planner.md +445 -445
  25. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +129 -129
  26. package/.claude/agents/hive-mind/queen-coordinator.md +202 -202
  27. package/.claude/agents/hive-mind/scout-explorer.md +241 -241
  28. package/.claude/agents/hive-mind/swarm-memory-manager.md +192 -192
  29. package/.claude/agents/hive-mind/worker-specialist.md +216 -216
  30. package/.claude/agents/index.yaml +17 -17
  31. package/.claude/agents/neural/safla-neural.md +73 -73
  32. package/.claude/agents/project-coordinator.yaml +15 -15
  33. package/.claude/agents/python-specialist.yaml +21 -21
  34. package/.claude/agents/reasoning/goal-planner.md +72 -72
  35. package/.claude/agents/security-auditor.yaml +20 -20
  36. package/.claude/agents/swarm/adaptive-coordinator.md +395 -395
  37. package/.claude/agents/swarm/hierarchical-coordinator.md +326 -326
  38. package/.claude/agents/swarm/mesh-coordinator.md +391 -391
  39. package/.claude/agents/templates/migration-plan.md +745 -745
  40. package/.claude/agents/typescript-specialist.yaml +21 -21
  41. package/.claude/checkpoints/1767754460.json +8 -8
  42. package/.claude/commands/agents/agent-spawning.md +28 -28
  43. package/.claude/commands/github/github-modes.md +146 -146
  44. package/.claude/commands/github/github-swarm.md +121 -121
  45. package/.claude/commands/github/issue-tracker.md +291 -291
  46. package/.claude/commands/github/pr-manager.md +169 -169
  47. package/.claude/commands/github/release-manager.md +337 -337
  48. package/.claude/commands/github/repo-architect.md +366 -366
  49. package/.claude/commands/github/sync-coordinator.md +300 -300
  50. package/.claude/commands/memory/neural.md +47 -47
  51. package/.claude/commands/sparc/analyzer.md +51 -51
  52. package/.claude/commands/sparc/architect.md +53 -53
  53. package/.claude/commands/sparc/ask.md +97 -97
  54. package/.claude/commands/sparc/batch-executor.md +54 -54
  55. package/.claude/commands/sparc/code.md +89 -89
  56. package/.claude/commands/sparc/coder.md +54 -54
  57. package/.claude/commands/sparc/debug.md +83 -83
  58. package/.claude/commands/sparc/debugger.md +54 -54
  59. package/.claude/commands/sparc/designer.md +53 -53
  60. package/.claude/commands/sparc/devops.md +109 -109
  61. package/.claude/commands/sparc/docs-writer.md +80 -80
  62. package/.claude/commands/sparc/documenter.md +54 -54
  63. package/.claude/commands/sparc/innovator.md +54 -54
  64. package/.claude/commands/sparc/integration.md +83 -83
  65. package/.claude/commands/sparc/mcp.md +117 -117
  66. package/.claude/commands/sparc/memory-manager.md +54 -54
  67. package/.claude/commands/sparc/optimizer.md +54 -54
  68. package/.claude/commands/sparc/orchestrator.md +131 -131
  69. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -83
  70. package/.claude/commands/sparc/refinement-optimization-mode.md +83 -83
  71. package/.claude/commands/sparc/researcher.md +54 -54
  72. package/.claude/commands/sparc/reviewer.md +54 -54
  73. package/.claude/commands/sparc/security-review.md +80 -80
  74. package/.claude/commands/sparc/sparc-modes.md +174 -174
  75. package/.claude/commands/sparc/sparc.md +111 -111
  76. package/.claude/commands/sparc/spec-pseudocode.md +80 -80
  77. package/.claude/commands/sparc/supabase-admin.md +348 -348
  78. package/.claude/commands/sparc/swarm-coordinator.md +54 -54
  79. package/.claude/commands/sparc/tdd.md +54 -54
  80. package/.claude/commands/sparc/tester.md +54 -54
  81. package/.claude/commands/sparc/tutorial.md +79 -79
  82. package/.claude/commands/sparc/workflow-manager.md +54 -54
  83. package/.claude/commands/sparc.md +166 -166
  84. package/.claude/commands/swarm/analysis.md +95 -95
  85. package/.claude/commands/swarm/development.md +96 -96
  86. package/.claude/commands/swarm/examples.md +168 -168
  87. package/.claude/commands/swarm/maintenance.md +102 -102
  88. package/.claude/commands/swarm/optimization.md +117 -117
  89. package/.claude/commands/swarm/research.md +136 -136
  90. package/.claude/commands/swarm/testing.md +131 -131
  91. package/.claude/commands/workflows/development.md +77 -77
  92. package/.claude/commands/workflows/research.md +62 -62
  93. package/.claude/guidance/moflo-bootstrap.md +126 -126
  94. package/.claude/guidance/shipped/agent-bootstrap.md +126 -126
  95. package/.claude/guidance/shipped/guidance-memory-strategy.md +262 -262
  96. package/.claude/guidance/shipped/memory-strategy.md +204 -204
  97. package/.claude/guidance/shipped/moflo.md +608 -608
  98. package/.claude/guidance/shipped/task-swarm-integration.md +441 -441
  99. package/.claude/helpers/intelligence.cjs +207 -207
  100. package/.claude/helpers/statusline.cjs +851 -851
  101. package/.claude/skills/fl/SKILL.md +583 -583
  102. package/.claude/skills/flo/SKILL.md +583 -583
  103. package/.claude/skills/github-code-review/SKILL.md +1140 -1140
  104. package/.claude/skills/github-multi-repo/SKILL.md +874 -874
  105. package/.claude/skills/github-project-management/SKILL.md +1277 -1277
  106. package/.claude/skills/github-release-management/SKILL.md +1081 -1081
  107. package/.claude/skills/github-workflow-automation/SKILL.md +1065 -1065
  108. package/.claude/skills/hive-mind-advanced/SKILL.md +712 -712
  109. package/.claude/skills/hooks-automation/SKILL.md +1201 -1201
  110. package/.claude/skills/performance-analysis/SKILL.md +563 -563
  111. package/.claude/skills/sparc-methodology/SKILL.md +1115 -1115
  112. package/.claude/skills/swarm-advanced/SKILL.md +973 -973
  113. package/LICENSE +21 -21
  114. package/README.md +685 -685
  115. package/bin/cli.js +0 -0
  116. package/bin/gate-hook.mjs +50 -50
  117. package/bin/gate.cjs +138 -138
  118. package/bin/hook-handler.cjs +83 -83
  119. package/bin/hooks.mjs +656 -656
  120. package/bin/index-guidance.mjs +892 -892
  121. package/bin/index-tests.mjs +709 -709
  122. package/bin/lib/process-manager.mjs +243 -243
  123. package/bin/lib/registry-cleanup.cjs +41 -41
  124. package/bin/prompt-hook.mjs +72 -72
  125. package/bin/semantic-search.mjs +472 -472
  126. package/bin/session-start-launcher.mjs +238 -226
  127. package/bin/setup-project.mjs +250 -250
  128. package/package.json +123 -121
  129. package/src/@claude-flow/cli/README.md +452 -452
  130. package/src/@claude-flow/cli/bin/cli.js +175 -175
  131. package/src/@claude-flow/cli/bin/preinstall.cjs +2 -2
  132. package/src/@claude-flow/cli/dist/src/commands/completions.js +409 -409
  133. package/src/@claude-flow/cli/dist/src/commands/doctor.js +1091 -1091
  134. package/src/@claude-flow/cli/dist/src/commands/embeddings.js +25 -25
  135. package/src/@claude-flow/cli/dist/src/commands/github.js +61 -61
  136. package/src/@claude-flow/cli/dist/src/commands/hive-mind.js +90 -90
  137. package/src/@claude-flow/cli/dist/src/commands/hooks.js +9 -9
  138. package/src/@claude-flow/cli/dist/src/commands/ruvector/import.js +14 -14
  139. package/src/@claude-flow/cli/dist/src/commands/ruvector/setup.js +624 -624
  140. package/src/@claude-flow/cli/dist/src/config/moflo-config.js +91 -91
  141. package/src/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +29 -29
  142. package/src/@claude-flow/cli/dist/src/init/claudemd-generator.js +43 -43
  143. package/src/@claude-flow/cli/dist/src/init/executor.js +485 -453
  144. package/src/@claude-flow/cli/dist/src/init/helpers-generator.js +482 -482
  145. package/src/@claude-flow/cli/dist/src/init/moflo-init.d.ts +30 -30
  146. package/src/@claude-flow/cli/dist/src/init/moflo-init.js +839 -839
  147. package/src/@claude-flow/cli/dist/src/init/settings-generator.js +6 -2
  148. package/src/@claude-flow/cli/dist/src/init/statusline-generator.js +786 -786
  149. package/src/@claude-flow/cli/dist/src/memory/memory-initializer.js +371 -371
  150. package/src/@claude-flow/cli/dist/src/runtime/headless.js +28 -28
  151. package/src/@claude-flow/cli/dist/src/services/headless-worker-executor.js +84 -84
  152. package/src/@claude-flow/cli/package.json +1 -1
  153. package/src/@claude-flow/guidance/README.md +1195 -1195
  154. package/src/@claude-flow/guidance/dist/adversarial.d.ts +284 -0
  155. package/src/@claude-flow/guidance/dist/adversarial.js +572 -0
  156. package/src/@claude-flow/guidance/dist/analyzer.d.ts +530 -0
  157. package/src/@claude-flow/guidance/dist/analyzer.js +2518 -0
  158. package/src/@claude-flow/guidance/dist/artifacts.d.ts +283 -0
  159. package/src/@claude-flow/guidance/dist/artifacts.js +356 -0
  160. package/src/@claude-flow/guidance/dist/authority.d.ts +290 -0
  161. package/src/@claude-flow/guidance/dist/authority.js +558 -0
  162. package/src/@claude-flow/guidance/dist/capabilities.d.ts +209 -0
  163. package/src/@claude-flow/guidance/dist/capabilities.js +485 -0
  164. package/src/@claude-flow/guidance/dist/coherence.d.ts +233 -0
  165. package/src/@claude-flow/guidance/dist/coherence.js +372 -0
  166. package/src/@claude-flow/guidance/dist/compiler.d.ts +87 -0
  167. package/src/@claude-flow/guidance/dist/compiler.js +419 -0
  168. package/src/@claude-flow/guidance/dist/conformance-kit.d.ts +225 -0
  169. package/src/@claude-flow/guidance/dist/conformance-kit.js +629 -0
  170. package/src/@claude-flow/guidance/dist/continue-gate.d.ts +214 -0
  171. package/src/@claude-flow/guidance/dist/continue-gate.js +353 -0
  172. package/src/@claude-flow/guidance/dist/crypto-utils.d.ts +17 -0
  173. package/src/@claude-flow/guidance/dist/crypto-utils.js +24 -0
  174. package/src/@claude-flow/guidance/dist/evolution.d.ts +282 -0
  175. package/src/@claude-flow/guidance/dist/evolution.js +500 -0
  176. package/src/@claude-flow/guidance/dist/gates.d.ts +79 -0
  177. package/src/@claude-flow/guidance/dist/gates.js +302 -0
  178. package/src/@claude-flow/guidance/dist/gateway.d.ts +206 -0
  179. package/src/@claude-flow/guidance/dist/gateway.js +452 -0
  180. package/src/@claude-flow/guidance/dist/generators.d.ts +153 -0
  181. package/src/@claude-flow/guidance/dist/generators.js +682 -0
  182. package/src/@claude-flow/guidance/dist/headless.d.ts +177 -0
  183. package/src/@claude-flow/guidance/dist/headless.js +342 -0
  184. package/src/@claude-flow/guidance/dist/hooks.d.ts +109 -0
  185. package/src/@claude-flow/guidance/dist/hooks.js +347 -0
  186. package/src/@claude-flow/guidance/dist/index.d.ts +205 -0
  187. package/src/@claude-flow/guidance/dist/index.js +321 -0
  188. package/src/@claude-flow/guidance/dist/ledger.d.ts +162 -0
  189. package/src/@claude-flow/guidance/dist/ledger.js +375 -0
  190. package/src/@claude-flow/guidance/dist/manifest-validator.d.ts +289 -0
  191. package/src/@claude-flow/guidance/dist/manifest-validator.js +838 -0
  192. package/src/@claude-flow/guidance/dist/memory-gate.d.ts +222 -0
  193. package/src/@claude-flow/guidance/dist/memory-gate.js +382 -0
  194. package/src/@claude-flow/guidance/dist/meta-governance.d.ts +265 -0
  195. package/src/@claude-flow/guidance/dist/meta-governance.js +348 -0
  196. package/src/@claude-flow/guidance/dist/optimizer.d.ts +104 -0
  197. package/src/@claude-flow/guidance/dist/optimizer.js +329 -0
  198. package/src/@claude-flow/guidance/dist/persistence.d.ts +189 -0
  199. package/src/@claude-flow/guidance/dist/persistence.js +464 -0
  200. package/src/@claude-flow/guidance/dist/proof.d.ts +185 -0
  201. package/src/@claude-flow/guidance/dist/proof.js +238 -0
  202. package/src/@claude-flow/guidance/dist/retriever.d.ts +116 -0
  203. package/src/@claude-flow/guidance/dist/retriever.js +394 -0
  204. package/src/@claude-flow/guidance/dist/ruvbot-integration.d.ts +370 -0
  205. package/src/@claude-flow/guidance/dist/ruvbot-integration.js +738 -0
  206. package/src/@claude-flow/guidance/dist/temporal.d.ts +426 -0
  207. package/src/@claude-flow/guidance/dist/temporal.js +658 -0
  208. package/src/@claude-flow/guidance/dist/trust.d.ts +283 -0
  209. package/src/@claude-flow/guidance/dist/trust.js +473 -0
  210. package/src/@claude-flow/guidance/dist/truth-anchors.d.ts +276 -0
  211. package/src/@claude-flow/guidance/dist/truth-anchors.js +488 -0
  212. package/src/@claude-flow/guidance/dist/types.d.ts +378 -0
  213. package/src/@claude-flow/guidance/dist/types.js +10 -0
  214. package/src/@claude-flow/guidance/dist/uncertainty.d.ts +372 -0
  215. package/src/@claude-flow/guidance/dist/uncertainty.js +619 -0
  216. package/src/@claude-flow/guidance/dist/wasm-kernel.d.ts +48 -0
  217. package/src/@claude-flow/guidance/dist/wasm-kernel.js +158 -0
  218. package/src/@claude-flow/guidance/package.json +198 -198
  219. package/src/@claude-flow/memory/README.md +587 -587
  220. package/src/@claude-flow/memory/package.json +44 -44
  221. package/src/@claude-flow/shared/README.md +323 -323
  222. package/src/README.md +493 -493
  223. package/.claude/settings.local.json +0 -18
  224. package/.claude/workflow-state.json +0 -9
  225. package/src/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +0 -197
  226. package/src/@claude-flow/cli/dist/src/services/container-worker-pool.js +0 -584
  227. package/src/@claude-flow/memory/dist/agent-memory-scope.d.ts +0 -131
  228. package/src/@claude-flow/memory/dist/agent-memory-scope.js +0 -223
  229. package/src/@claude-flow/memory/dist/agent-memory-scope.test.d.ts +0 -8
  230. package/src/@claude-flow/memory/dist/agent-memory-scope.test.js +0 -463
  231. package/src/@claude-flow/memory/dist/agentdb-adapter.d.ts +0 -165
  232. package/src/@claude-flow/memory/dist/agentdb-adapter.js +0 -806
  233. package/src/@claude-flow/memory/dist/agentdb-backend.d.ts +0 -214
  234. package/src/@claude-flow/memory/dist/agentdb-backend.js +0 -844
  235. package/src/@claude-flow/memory/dist/agentdb-backend.test.d.ts +0 -7
  236. package/src/@claude-flow/memory/dist/agentdb-backend.test.js +0 -258
  237. package/src/@claude-flow/memory/dist/application/commands/delete-memory.command.d.ts +0 -65
  238. package/src/@claude-flow/memory/dist/application/commands/delete-memory.command.js +0 -129
  239. package/src/@claude-flow/memory/dist/application/commands/store-memory.command.d.ts +0 -48
  240. package/src/@claude-flow/memory/dist/application/commands/store-memory.command.js +0 -72
  241. package/src/@claude-flow/memory/dist/application/index.d.ts +0 -12
  242. package/src/@claude-flow/memory/dist/application/index.js +0 -15
  243. package/src/@claude-flow/memory/dist/application/queries/search-memory.query.d.ts +0 -72
  244. package/src/@claude-flow/memory/dist/application/queries/search-memory.query.js +0 -143
  245. package/src/@claude-flow/memory/dist/application/services/memory-application-service.d.ts +0 -121
  246. package/src/@claude-flow/memory/dist/application/services/memory-application-service.js +0 -190
  247. package/src/@claude-flow/memory/dist/auto-memory-bridge.d.ts +0 -226
  248. package/src/@claude-flow/memory/dist/auto-memory-bridge.js +0 -709
  249. package/src/@claude-flow/memory/dist/auto-memory-bridge.test.d.ts +0 -8
  250. package/src/@claude-flow/memory/dist/auto-memory-bridge.test.js +0 -754
  251. package/src/@claude-flow/memory/dist/benchmark.test.d.ts +0 -2
  252. package/src/@claude-flow/memory/dist/benchmark.test.js +0 -277
  253. package/src/@claude-flow/memory/dist/cache-manager.d.ts +0 -134
  254. package/src/@claude-flow/memory/dist/cache-manager.js +0 -407
  255. package/src/@claude-flow/memory/dist/controller-registry.d.ts +0 -216
  256. package/src/@claude-flow/memory/dist/controller-registry.js +0 -893
  257. package/src/@claude-flow/memory/dist/controller-registry.test.d.ts +0 -14
  258. package/src/@claude-flow/memory/dist/controller-registry.test.js +0 -636
  259. package/src/@claude-flow/memory/dist/database-provider.d.ts +0 -87
  260. package/src/@claude-flow/memory/dist/database-provider.js +0 -375
  261. package/src/@claude-flow/memory/dist/database-provider.test.d.ts +0 -7
  262. package/src/@claude-flow/memory/dist/database-provider.test.js +0 -285
  263. package/src/@claude-flow/memory/dist/domain/entities/memory-entry.d.ts +0 -143
  264. package/src/@claude-flow/memory/dist/domain/entities/memory-entry.js +0 -226
  265. package/src/@claude-flow/memory/dist/domain/index.d.ts +0 -11
  266. package/src/@claude-flow/memory/dist/domain/index.js +0 -12
  267. package/src/@claude-flow/memory/dist/domain/repositories/memory-repository.interface.d.ts +0 -102
  268. package/src/@claude-flow/memory/dist/domain/repositories/memory-repository.interface.js +0 -11
  269. package/src/@claude-flow/memory/dist/domain/services/memory-domain-service.d.ts +0 -105
  270. package/src/@claude-flow/memory/dist/domain/services/memory-domain-service.js +0 -297
  271. package/src/@claude-flow/memory/dist/hnsw-index.d.ts +0 -111
  272. package/src/@claude-flow/memory/dist/hnsw-index.js +0 -781
  273. package/src/@claude-flow/memory/dist/hnsw-lite.d.ts +0 -23
  274. package/src/@claude-flow/memory/dist/hnsw-lite.js +0 -168
  275. package/src/@claude-flow/memory/dist/hybrid-backend.d.ts +0 -245
  276. package/src/@claude-flow/memory/dist/hybrid-backend.js +0 -569
  277. package/src/@claude-flow/memory/dist/hybrid-backend.test.d.ts +0 -8
  278. package/src/@claude-flow/memory/dist/hybrid-backend.test.js +0 -320
  279. package/src/@claude-flow/memory/dist/index.d.ts +0 -207
  280. package/src/@claude-flow/memory/dist/index.js +0 -361
  281. package/src/@claude-flow/memory/dist/infrastructure/index.d.ts +0 -17
  282. package/src/@claude-flow/memory/dist/infrastructure/index.js +0 -16
  283. package/src/@claude-flow/memory/dist/infrastructure/repositories/hybrid-memory-repository.d.ts +0 -66
  284. package/src/@claude-flow/memory/dist/infrastructure/repositories/hybrid-memory-repository.js +0 -409
  285. package/src/@claude-flow/memory/dist/learning-bridge.d.ts +0 -137
  286. package/src/@claude-flow/memory/dist/learning-bridge.js +0 -335
  287. package/src/@claude-flow/memory/dist/learning-bridge.test.d.ts +0 -8
  288. package/src/@claude-flow/memory/dist/learning-bridge.test.js +0 -578
  289. package/src/@claude-flow/memory/dist/memory-graph.d.ts +0 -100
  290. package/src/@claude-flow/memory/dist/memory-graph.js +0 -333
  291. package/src/@claude-flow/memory/dist/memory-graph.test.d.ts +0 -8
  292. package/src/@claude-flow/memory/dist/memory-graph.test.js +0 -609
  293. package/src/@claude-flow/memory/dist/migration.d.ts +0 -68
  294. package/src/@claude-flow/memory/dist/migration.js +0 -513
  295. package/src/@claude-flow/memory/dist/persistent-sona.d.ts +0 -144
  296. package/src/@claude-flow/memory/dist/persistent-sona.js +0 -332
  297. package/src/@claude-flow/memory/dist/query-builder.d.ts +0 -211
  298. package/src/@claude-flow/memory/dist/query-builder.js +0 -438
  299. package/src/@claude-flow/memory/dist/rvf-backend.d.ts +0 -51
  300. package/src/@claude-flow/memory/dist/rvf-backend.js +0 -481
  301. package/src/@claude-flow/memory/dist/rvf-learning-store.d.ts +0 -139
  302. package/src/@claude-flow/memory/dist/rvf-learning-store.js +0 -295
  303. package/src/@claude-flow/memory/dist/rvf-migration.d.ts +0 -45
  304. package/src/@claude-flow/memory/dist/rvf-migration.js +0 -234
  305. package/src/@claude-flow/memory/dist/sqlite-backend.d.ts +0 -121
  306. package/src/@claude-flow/memory/dist/sqlite-backend.js +0 -572
  307. package/src/@claude-flow/memory/dist/sqljs-backend.d.ts +0 -128
  308. package/src/@claude-flow/memory/dist/sqljs-backend.js +0 -601
  309. package/src/@claude-flow/memory/dist/types.d.ts +0 -484
  310. package/src/@claude-flow/memory/dist/types.js +0 -58
  311. package/src/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
  312. package/src/@claude-flow/shared/dist/core/config/defaults.js +0 -186
  313. package/src/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
  314. package/src/@claude-flow/shared/dist/core/config/index.js +0 -12
  315. package/src/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
  316. package/src/@claude-flow/shared/dist/core/config/loader.js +0 -222
  317. package/src/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
  318. package/src/@claude-flow/shared/dist/core/config/schema.js +0 -158
  319. package/src/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
  320. package/src/@claude-flow/shared/dist/core/config/validator.js +0 -147
  321. package/src/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
  322. package/src/@claude-flow/shared/dist/core/event-bus.js +0 -197
  323. package/src/@claude-flow/shared/dist/core/index.d.ts +0 -15
  324. package/src/@claude-flow/shared/dist/core/index.js +0 -19
  325. package/src/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
  326. package/src/@claude-flow/shared/dist/core/interfaces/agent.interface.js +0 -6
  327. package/src/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
  328. package/src/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js +0 -7
  329. package/src/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
  330. package/src/@claude-flow/shared/dist/core/interfaces/event.interface.js +0 -46
  331. package/src/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
  332. package/src/@claude-flow/shared/dist/core/interfaces/index.js +0 -15
  333. package/src/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
  334. package/src/@claude-flow/shared/dist/core/interfaces/memory.interface.js +0 -7
  335. package/src/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
  336. package/src/@claude-flow/shared/dist/core/interfaces/task.interface.js +0 -6
  337. package/src/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
  338. package/src/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js +0 -101
  339. package/src/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
  340. package/src/@claude-flow/shared/dist/core/orchestrator/health-monitor.js +0 -166
  341. package/src/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
  342. package/src/@claude-flow/shared/dist/core/orchestrator/index.js +0 -64
  343. package/src/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
  344. package/src/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js +0 -195
  345. package/src/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
  346. package/src/@claude-flow/shared/dist/core/orchestrator/session-manager.js +0 -193
  347. package/src/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
  348. package/src/@claude-flow/shared/dist/core/orchestrator/task-manager.js +0 -253
  349. package/src/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
  350. package/src/@claude-flow/shared/dist/events/domain-events.js +0 -165
  351. package/src/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
  352. package/src/@claude-flow/shared/dist/events/event-store.js +0 -416
  353. package/src/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
  354. package/src/@claude-flow/shared/dist/events/event-store.test.js +0 -293
  355. package/src/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
  356. package/src/@claude-flow/shared/dist/events/example-usage.js +0 -193
  357. package/src/@claude-flow/shared/dist/events/index.d.ts +0 -21
  358. package/src/@claude-flow/shared/dist/events/index.js +0 -22
  359. package/src/@claude-flow/shared/dist/events/projections.d.ts +0 -177
  360. package/src/@claude-flow/shared/dist/events/projections.js +0 -421
  361. package/src/@claude-flow/shared/dist/events/rvf-event-log.d.ts +0 -82
  362. package/src/@claude-flow/shared/dist/events/rvf-event-log.js +0 -340
  363. package/src/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
  364. package/src/@claude-flow/shared/dist/events/state-reconstructor.js +0 -263
  365. package/src/@claude-flow/shared/dist/events.d.ts +0 -80
  366. package/src/@claude-flow/shared/dist/events.js +0 -249
  367. package/src/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
  368. package/src/@claude-flow/shared/dist/hooks/example-usage.js +0 -351
  369. package/src/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
  370. package/src/@claude-flow/shared/dist/hooks/executor.js +0 -264
  371. package/src/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
  372. package/src/@claude-flow/shared/dist/hooks/hooks.test.js +0 -322
  373. package/src/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
  374. package/src/@claude-flow/shared/dist/hooks/index.js +0 -51
  375. package/src/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
  376. package/src/@claude-flow/shared/dist/hooks/registry.js +0 -277
  377. package/src/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
  378. package/src/@claude-flow/shared/dist/hooks/safety/bash-safety.js +0 -481
  379. package/src/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
  380. package/src/@claude-flow/shared/dist/hooks/safety/file-organization.js +0 -328
  381. package/src/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
  382. package/src/@claude-flow/shared/dist/hooks/safety/git-commit.js +0 -450
  383. package/src/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
  384. package/src/@claude-flow/shared/dist/hooks/safety/index.js +0 -17
  385. package/src/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
  386. package/src/@claude-flow/shared/dist/hooks/session-hooks.js +0 -334
  387. package/src/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
  388. package/src/@claude-flow/shared/dist/hooks/task-hooks.js +0 -326
  389. package/src/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
  390. package/src/@claude-flow/shared/dist/hooks/types.js +0 -62
  391. package/src/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
  392. package/src/@claude-flow/shared/dist/hooks/verify-exports.test.js +0 -93
  393. package/src/@claude-flow/shared/dist/index.d.ts +0 -20
  394. package/src/@claude-flow/shared/dist/index.js +0 -50
  395. package/src/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
  396. package/src/@claude-flow/shared/dist/mcp/connection-pool.js +0 -364
  397. package/src/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
  398. package/src/@claude-flow/shared/dist/mcp/index.js +0 -84
  399. package/src/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
  400. package/src/@claude-flow/shared/dist/mcp/server.js +0 -593
  401. package/src/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
  402. package/src/@claude-flow/shared/dist/mcp/session-manager.js +0 -335
  403. package/src/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
  404. package/src/@claude-flow/shared/dist/mcp/tool-registry.js +0 -439
  405. package/src/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
  406. package/src/@claude-flow/shared/dist/mcp/transport/http.js +0 -476
  407. package/src/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
  408. package/src/@claude-flow/shared/dist/mcp/transport/index.js +0 -238
  409. package/src/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
  410. package/src/@claude-flow/shared/dist/mcp/transport/stdio.js +0 -263
  411. package/src/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
  412. package/src/@claude-flow/shared/dist/mcp/transport/websocket.js +0 -396
  413. package/src/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
  414. package/src/@claude-flow/shared/dist/mcp/types.js +0 -54
  415. package/src/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
  416. package/src/@claude-flow/shared/dist/plugin-interface.js +0 -23
  417. package/src/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
  418. package/src/@claude-flow/shared/dist/plugin-loader.js +0 -434
  419. package/src/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
  420. package/src/@claude-flow/shared/dist/plugin-registry.js +0 -457
  421. package/src/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
  422. package/src/@claude-flow/shared/dist/plugins/index.js +0 -10
  423. package/src/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
  424. package/src/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js +0 -241
  425. package/src/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
  426. package/src/@claude-flow/shared/dist/plugins/official/index.js +0 -10
  427. package/src/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
  428. package/src/@claude-flow/shared/dist/plugins/official/maestro-plugin.js +0 -355
  429. package/src/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
  430. package/src/@claude-flow/shared/dist/plugins/types.js +0 -9
  431. package/src/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
  432. package/src/@claude-flow/shared/dist/resilience/bulkhead.js +0 -206
  433. package/src/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
  434. package/src/@claude-flow/shared/dist/resilience/circuit-breaker.js +0 -233
  435. package/src/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
  436. package/src/@claude-flow/shared/dist/resilience/index.js +0 -19
  437. package/src/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
  438. package/src/@claude-flow/shared/dist/resilience/rate-limiter.js +0 -314
  439. package/src/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
  440. package/src/@claude-flow/shared/dist/resilience/retry.js +0 -159
  441. package/src/@claude-flow/shared/dist/security/index.d.ts +0 -10
  442. package/src/@claude-flow/shared/dist/security/index.js +0 -12
  443. package/src/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
  444. package/src/@claude-flow/shared/dist/security/input-validation.js +0 -201
  445. package/src/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
  446. package/src/@claude-flow/shared/dist/security/secure-random.js +0 -142
  447. package/src/@claude-flow/shared/dist/services/index.d.ts +0 -7
  448. package/src/@claude-flow/shared/dist/services/index.js +0 -7
  449. package/src/@claude-flow/shared/dist/services/v3-progress.service.d.ts +0 -124
  450. package/src/@claude-flow/shared/dist/services/v3-progress.service.js +0 -402
  451. package/src/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
  452. package/src/@claude-flow/shared/dist/types/agent.types.js +0 -6
  453. package/src/@claude-flow/shared/dist/types/index.d.ts +0 -11
  454. package/src/@claude-flow/shared/dist/types/index.js +0 -17
  455. package/src/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
  456. package/src/@claude-flow/shared/dist/types/mcp.types.js +0 -7
  457. package/src/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
  458. package/src/@claude-flow/shared/dist/types/memory.types.js +0 -7
  459. package/src/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
  460. package/src/@claude-flow/shared/dist/types/swarm.types.js +0 -65
  461. package/src/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
  462. package/src/@claude-flow/shared/dist/types/task.types.js +0 -32
  463. package/src/@claude-flow/shared/dist/types.d.ts +0 -197
  464. package/src/@claude-flow/shared/dist/types.js +0 -21
  465. package/src/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
  466. package/src/@claude-flow/shared/dist/utils/secure-logger.js +0 -208
@@ -1,1065 +1,1065 @@
1
- ---
2
- name: github-workflow-automation
3
- version: 1.0.0
4
- category: github
5
- description: Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
6
- tags:
7
- - github
8
- - github-actions
9
- - ci-cd
10
- - workflow-automation
11
- - swarm-coordination
12
- - deployment
13
- - security
14
- authors:
15
- - claude-flow
16
- requires:
17
- - gh (GitHub CLI)
18
- - git
19
- - claude-flow@alpha
20
- - node (v16+)
21
- priority: high
22
- progressive_disclosure: true
23
- ---
24
-
25
- # GitHub Workflow Automation Skill
26
-
27
- ## Overview
28
-
29
- This skill provides comprehensive GitHub Actions automation with AI swarm coordination. It integrates intelligent CI/CD pipelines, workflow orchestration, and repository management to create self-organizing, adaptive GitHub workflows.
30
-
31
- ## Quick Start
32
-
33
- <details>
34
- <summary>💡 Basic Usage - Click to expand</summary>
35
-
36
- ### Initialize GitHub Workflow Automation
37
- ```bash
38
- # Start with a simple workflow
39
- npx ruv-swarm actions generate-workflow \
40
- --analyze-codebase \
41
- --detect-languages \
42
- --create-optimal-pipeline
43
- ```
44
-
45
- ### Common Commands
46
- ```bash
47
- # Optimize existing workflow
48
- npx ruv-swarm actions optimize \
49
- --workflow ".github/workflows/ci.yml" \
50
- --suggest-parallelization
51
-
52
- # Analyze failed runs
53
- gh run view <run-id> --json jobs,conclusion | \
54
- npx ruv-swarm actions analyze-failure \
55
- --suggest-fixes
56
- ```
57
-
58
- </details>
59
-
60
- ## Core Capabilities
61
-
62
- ### 🤖 Swarm-Powered GitHub Modes
63
-
64
- <details>
65
- <summary>Available GitHub Integration Modes</summary>
66
-
67
- #### 1. gh-coordinator
68
- **GitHub workflow orchestration and coordination**
69
- - **Coordination Mode**: Hierarchical
70
- - **Max Parallel Operations**: 10
71
- - **Batch Optimized**: Yes
72
- - **Best For**: Complex GitHub workflows, multi-repo coordination
73
-
74
- ```bash
75
- # Usage example
76
- npx claude-flow@alpha github gh-coordinator \
77
- "Coordinate multi-repo release across 5 repositories"
78
- ```
79
-
80
- #### 2. pr-manager
81
- **Pull request management and review coordination**
82
- - **Review Mode**: Automated
83
- - **Multi-reviewer**: Yes
84
- - **Conflict Resolution**: Intelligent
85
-
86
- ```bash
87
- # Create PR with automated review
88
- gh pr create --title "Feature: New capability" \
89
- --body "Automated PR with swarm review" | \
90
- npx ruv-swarm actions pr-validate \
91
- --spawn-agents "linter,tester,security,docs"
92
- ```
93
-
94
- #### 3. issue-tracker
95
- **Issue management and project coordination**
96
- - **Issue Workflow**: Automated
97
- - **Label Management**: Smart
98
- - **Progress Tracking**: Real-time
99
-
100
- ```bash
101
- # Create coordinated issue workflow
102
- npx claude-flow@alpha github issue-tracker \
103
- "Manage sprint issues with automated tracking"
104
- ```
105
-
106
- #### 4. release-manager
107
- **Release coordination and deployment**
108
- - **Release Pipeline**: Automated
109
- - **Versioning**: Semantic
110
- - **Deployment**: Multi-stage
111
-
112
- ```bash
113
- # Automated release management
114
- npx claude-flow@alpha github release-manager \
115
- "Create v2.0.0 release with changelog and deployment"
116
- ```
117
-
118
- #### 5. repo-architect
119
- **Repository structure and organization**
120
- - **Structure Optimization**: Yes
121
- - **Multi-repo Support**: Yes
122
- - **Template Management**: Advanced
123
-
124
- ```bash
125
- # Optimize repository structure
126
- npx claude-flow@alpha github repo-architect \
127
- "Restructure monorepo with optimal organization"
128
- ```
129
-
130
- #### 6. code-reviewer
131
- **Automated code review and quality assurance**
132
- - **Review Quality**: Deep
133
- - **Security Analysis**: Yes
134
- - **Performance Check**: Automated
135
-
136
- ```bash
137
- # Automated code review
138
- gh pr view 123 --json files | \
139
- npx ruv-swarm actions pr-validate \
140
- --deep-review \
141
- --security-scan
142
- ```
143
-
144
- #### 7. ci-orchestrator
145
- **CI/CD pipeline coordination**
146
- - **Pipeline Management**: Advanced
147
- - **Test Coordination**: Parallel
148
- - **Deployment**: Automated
149
-
150
- ```bash
151
- # Orchestrate CI/CD pipeline
152
- npx claude-flow@alpha github ci-orchestrator \
153
- "Setup parallel test execution with smart caching"
154
- ```
155
-
156
- #### 8. security-guardian
157
- **Security and compliance management**
158
- - **Security Scan**: Automated
159
- - **Compliance Check**: Continuous
160
- - **Vulnerability Management**: Proactive
161
-
162
- ```bash
163
- # Security audit
164
- npx ruv-swarm actions security \
165
- --deep-scan \
166
- --compliance-check \
167
- --create-issues
168
- ```
169
-
170
- </details>
171
-
172
- ### 🔧 Workflow Templates
173
-
174
- <details>
175
- <summary>Production-Ready GitHub Actions Templates</summary>
176
-
177
- #### 1. Intelligent CI with Swarms
178
- ```yaml
179
- # .github/workflows/swarm-ci.yml
180
- name: Intelligent CI with Swarms
181
- on: [push, pull_request]
182
-
183
- jobs:
184
- swarm-analysis:
185
- runs-on: ubuntu-latest
186
- steps:
187
- - uses: actions/checkout@v3
188
-
189
- - name: Initialize Swarm
190
- uses: ruvnet/swarm-action@v1
191
- with:
192
- topology: mesh
193
- max-agents: 6
194
-
195
- - name: Analyze Changes
196
- run: |
197
- npx ruv-swarm actions analyze \
198
- --commit ${{ github.sha }} \
199
- --suggest-tests \
200
- --optimize-pipeline
201
- ```
202
-
203
- #### 2. Multi-Language Detection
204
- ```yaml
205
- # .github/workflows/polyglot-swarm.yml
206
- name: Polyglot Project Handler
207
- on: push
208
-
209
- jobs:
210
- detect-and-build:
211
- runs-on: ubuntu-latest
212
- steps:
213
- - uses: actions/checkout@v3
214
-
215
- - name: Detect Languages
216
- id: detect
217
- run: |
218
- npx ruv-swarm actions detect-stack \
219
- --output json > stack.json
220
-
221
- - name: Dynamic Build Matrix
222
- run: |
223
- npx ruv-swarm actions create-matrix \
224
- --from stack.json \
225
- --parallel-builds
226
- ```
227
-
228
- #### 3. Adaptive Security Scanning
229
- ```yaml
230
- # .github/workflows/security-swarm.yml
231
- name: Intelligent Security Scan
232
- on:
233
- schedule:
234
- - cron: '0 0 * * *'
235
- workflow_dispatch:
236
-
237
- jobs:
238
- security-swarm:
239
- runs-on: ubuntu-latest
240
- steps:
241
- - name: Security Analysis Swarm
242
- run: |
243
- SECURITY_ISSUES=$(npx ruv-swarm actions security \
244
- --deep-scan \
245
- --format json)
246
-
247
- echo "$SECURITY_ISSUES" | jq -r '.issues[]? | @base64' | while read -r issue; do
248
- _jq() {
249
- echo ${issue} | base64 --decode | jq -r ${1}
250
- }
251
- gh issue create \
252
- --title "$(_jq '.title')" \
253
- --body "$(_jq '.body')" \
254
- --label "security,critical"
255
- done
256
- ```
257
-
258
- #### 4. Self-Healing Pipeline
259
- ```yaml
260
- # .github/workflows/self-healing.yml
261
- name: Self-Healing Pipeline
262
- on: workflow_run
263
-
264
- jobs:
265
- heal-pipeline:
266
- if: ${{ github.event.workflow_run.conclusion == 'failure' }}
267
- runs-on: ubuntu-latest
268
- steps:
269
- - name: Diagnose and Fix
270
- run: |
271
- npx ruv-swarm actions self-heal \
272
- --run-id ${{ github.event.workflow_run.id }} \
273
- --auto-fix-common \
274
- --create-pr-complex
275
- ```
276
-
277
- #### 5. Progressive Deployment
278
- ```yaml
279
- # .github/workflows/smart-deployment.yml
280
- name: Smart Deployment
281
- on:
282
- push:
283
- branches: [main]
284
-
285
- jobs:
286
- progressive-deploy:
287
- runs-on: ubuntu-latest
288
- steps:
289
- - name: Analyze Risk
290
- id: risk
291
- run: |
292
- npx ruv-swarm actions deploy-risk \
293
- --changes ${{ github.sha }} \
294
- --history 30d
295
-
296
- - name: Choose Strategy
297
- run: |
298
- npx ruv-swarm actions deploy-strategy \
299
- --risk ${{ steps.risk.outputs.level }} \
300
- --auto-execute
301
- ```
302
-
303
- #### 6. Performance Regression Detection
304
- ```yaml
305
- # .github/workflows/performance-guard.yml
306
- name: Performance Guard
307
- on: pull_request
308
-
309
- jobs:
310
- perf-swarm:
311
- runs-on: ubuntu-latest
312
- steps:
313
- - name: Performance Analysis
314
- run: |
315
- npx ruv-swarm actions perf-test \
316
- --baseline main \
317
- --threshold 10% \
318
- --auto-profile-regression
319
- ```
320
-
321
- #### 7. PR Validation Swarm
322
- ```yaml
323
- # .github/workflows/pr-validation.yml
324
- name: PR Validation Swarm
325
- on: pull_request
326
-
327
- jobs:
328
- validate:
329
- runs-on: ubuntu-latest
330
- steps:
331
- - name: Multi-Agent Validation
332
- run: |
333
- PR_DATA=$(gh pr view ${{ github.event.pull_request.number }} --json files,labels)
334
-
335
- RESULTS=$(npx ruv-swarm actions pr-validate \
336
- --spawn-agents "linter,tester,security,docs" \
337
- --parallel \
338
- --pr-data "$PR_DATA")
339
-
340
- gh pr comment ${{ github.event.pull_request.number }} \
341
- --body "$RESULTS"
342
- ```
343
-
344
- #### 8. Intelligent Release
345
- ```yaml
346
- # .github/workflows/intelligent-release.yml
347
- name: Intelligent Release
348
- on:
349
- push:
350
- tags: ['v*']
351
-
352
- jobs:
353
- release:
354
- runs-on: ubuntu-latest
355
- steps:
356
- - name: Release Swarm
357
- run: |
358
- npx ruv-swarm actions release \
359
- --analyze-changes \
360
- --generate-notes \
361
- --create-artifacts \
362
- --publish-smart
363
- ```
364
-
365
- </details>
366
-
367
- ### 📊 Monitoring & Analytics
368
-
369
- <details>
370
- <summary>Workflow Analysis & Optimization</summary>
371
-
372
- #### Workflow Analytics
373
- ```bash
374
- # Analyze workflow performance
375
- npx ruv-swarm actions analytics \
376
- --workflow "ci.yml" \
377
- --period 30d \
378
- --identify-bottlenecks \
379
- --suggest-improvements
380
- ```
381
-
382
- #### Cost Optimization
383
- ```bash
384
- # Optimize GitHub Actions costs
385
- npx ruv-swarm actions cost-optimize \
386
- --analyze-usage \
387
- --suggest-caching \
388
- --recommend-self-hosted
389
- ```
390
-
391
- #### Failure Pattern Analysis
392
- ```bash
393
- # Identify failure patterns
394
- npx ruv-swarm actions failure-patterns \
395
- --period 90d \
396
- --classify-failures \
397
- --suggest-preventions
398
- ```
399
-
400
- #### Resource Management
401
- ```bash
402
- # Optimize resource usage
403
- npx ruv-swarm actions resources \
404
- --analyze-usage \
405
- --suggest-runners \
406
- --cost-optimize
407
- ```
408
-
409
- </details>
410
-
411
- ## Advanced Features
412
-
413
- ### 🧪 Dynamic Test Strategies
414
-
415
- <details>
416
- <summary>Intelligent Test Selection & Execution</summary>
417
-
418
- #### Smart Test Selection
419
- ```yaml
420
- # Automatically select relevant tests
421
- - name: Swarm Test Selection
422
- run: |
423
- npx ruv-swarm actions smart-test \
424
- --changed-files ${{ steps.files.outputs.all }} \
425
- --impact-analysis \
426
- --parallel-safe
427
- ```
428
-
429
- #### Dynamic Test Matrix
430
- ```yaml
431
- # Generate test matrix from code analysis
432
- jobs:
433
- generate-matrix:
434
- outputs:
435
- matrix: ${{ steps.set-matrix.outputs.matrix }}
436
- steps:
437
- - id: set-matrix
438
- run: |
439
- MATRIX=$(npx ruv-swarm actions test-matrix \
440
- --detect-frameworks \
441
- --optimize-coverage)
442
- echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT
443
-
444
- test:
445
- needs: generate-matrix
446
- strategy:
447
- matrix: ${{fromJson(needs.generate-matrix.outputs.matrix)}}
448
- ```
449
-
450
- #### Intelligent Parallelization
451
- ```bash
452
- # Determine optimal parallelization
453
- npx ruv-swarm actions parallel-strategy \
454
- --analyze-dependencies \
455
- --time-estimates \
456
- --cost-aware
457
- ```
458
-
459
- </details>
460
-
461
- ### 🔮 Predictive Analysis
462
-
463
- <details>
464
- <summary>AI-Powered Workflow Predictions</summary>
465
-
466
- #### Predictive Failures
467
- ```bash
468
- # Predict potential failures
469
- npx ruv-swarm actions predict \
470
- --analyze-history \
471
- --identify-risks \
472
- --suggest-preventive
473
- ```
474
-
475
- #### Workflow Recommendations
476
- ```bash
477
- # Get workflow recommendations
478
- npx ruv-swarm actions recommend \
479
- --analyze-repo \
480
- --suggest-workflows \
481
- --industry-best-practices
482
- ```
483
-
484
- #### Automated Optimization
485
- ```bash
486
- # Continuously optimize workflows
487
- npx ruv-swarm actions auto-optimize \
488
- --monitor-performance \
489
- --apply-improvements \
490
- --track-savings
491
- ```
492
-
493
- </details>
494
-
495
- ### 🎯 Custom Actions Development
496
-
497
- <details>
498
- <summary>Build Your Own Swarm Actions</summary>
499
-
500
- #### Custom Swarm Action Template
501
- ```javascript
502
- // action.yml
503
- name: 'Swarm Custom Action'
504
- description: 'Custom swarm-powered action'
505
- inputs:
506
- task:
507
- description: 'Task for swarm'
508
- required: true
509
- runs:
510
- using: 'node16'
511
- main: 'dist/index.js'
512
-
513
- // index.js
514
- const { SwarmAction } = require('ruv-swarm');
515
-
516
- async function run() {
517
- const swarm = new SwarmAction({
518
- topology: 'mesh',
519
- agents: ['analyzer', 'optimizer']
520
- });
521
-
522
- await swarm.execute(core.getInput('task'));
523
- }
524
-
525
- run().catch(error => core.setFailed(error.message));
526
- ```
527
-
528
- </details>
529
-
530
- ## Integration with Claude-Flow
531
-
532
- ### 🔄 Swarm Coordination Patterns
533
-
534
- <details>
535
- <summary>MCP-Based GitHub Workflow Coordination</summary>
536
-
537
- #### Initialize GitHub Swarm
538
- ```javascript
539
- // Step 1: Initialize swarm coordination
540
- mcp__moflo__swarm_init {
541
- topology: "hierarchical",
542
- maxAgents: 8
543
- }
544
-
545
- // Step 2: Spawn specialized agents
546
- mcp__moflo__agent_spawn { type: "coordinator", name: "GitHub Coordinator" }
547
- mcp__moflo__agent_spawn { type: "reviewer", name: "Code Reviewer" }
548
- mcp__moflo__agent_spawn { type: "tester", name: "QA Agent" }
549
- mcp__moflo__agent_spawn { type: "analyst", name: "Security Analyst" }
550
-
551
- // Step 3: Orchestrate GitHub workflow
552
- mcp__moflo__task_orchestrate {
553
- task: "Complete PR review and merge workflow",
554
- strategy: "parallel",
555
- priority: "high"
556
- }
557
- ```
558
-
559
- #### GitHub Hooks Integration
560
- ```bash
561
- # Pre-task: Setup GitHub context
562
- npx claude-flow@alpha hooks pre-task \
563
- --description "PR review workflow" \
564
- --context "pr-123"
565
-
566
- # During task: Track progress
567
- npx claude-flow@alpha hooks notify \
568
- --message "Completed security scan" \
569
- --type "github-action"
570
-
571
- # Post-task: Export results
572
- npx claude-flow@alpha hooks post-task \
573
- --task-id "pr-review-123" \
574
- --export-github-summary
575
- ```
576
-
577
- </details>
578
-
579
- ### 📦 Batch Operations
580
-
581
- <details>
582
- <summary>Concurrent GitHub Operations</summary>
583
-
584
- #### Parallel GitHub CLI Commands
585
- ```javascript
586
- // Single message with all GitHub operations
587
- [Concurrent Execution]:
588
- Bash("gh issue create --title 'Feature A' --body 'Description A' --label 'enhancement'")
589
- Bash("gh issue create --title 'Feature B' --body 'Description B' --label 'enhancement'")
590
- Bash("gh pr create --title 'PR 1' --head 'feature-a' --base 'main'")
591
- Bash("gh pr create --title 'PR 2' --head 'feature-b' --base 'main'")
592
- Bash("gh pr checks 123 --watch")
593
- TodoWrite { todos: [
594
- {content: "Review security scan results", status: "pending"},
595
- {content: "Merge approved PRs", status: "pending"},
596
- {content: "Update changelog", status: "pending"}
597
- ]}
598
- ```
599
-
600
- </details>
601
-
602
- ## Best Practices
603
-
604
- ### 🏗️ Workflow Organization
605
-
606
- <details>
607
- <summary>Structure Your GitHub Workflows</summary>
608
-
609
- #### 1. Use Reusable Workflows
610
- ```yaml
611
- # .github/workflows/reusable-swarm.yml
612
- name: Reusable Swarm Workflow
613
- on:
614
- workflow_call:
615
- inputs:
616
- topology:
617
- required: true
618
- type: string
619
-
620
- jobs:
621
- swarm-task:
622
- runs-on: ubuntu-latest
623
- steps:
624
- - name: Initialize Swarm
625
- run: |
626
- npx ruv-swarm init --topology ${{ inputs.topology }}
627
- ```
628
-
629
- #### 2. Implement Proper Caching
630
- ```yaml
631
- - name: Cache Swarm Dependencies
632
- uses: actions/cache@v3
633
- with:
634
- path: ~/.npm
635
- key: ${{ runner.os }}-swarm-${{ hashFiles('**/package-lock.json') }}
636
- ```
637
-
638
- #### 3. Set Appropriate Timeouts
639
- ```yaml
640
- jobs:
641
- swarm-task:
642
- timeout-minutes: 30
643
- steps:
644
- - name: Swarm Operation
645
- timeout-minutes: 10
646
- ```
647
-
648
- #### 4. Use Workflow Dependencies
649
- ```yaml
650
- jobs:
651
- setup:
652
- runs-on: ubuntu-latest
653
-
654
- test:
655
- needs: setup
656
- runs-on: ubuntu-latest
657
-
658
- deploy:
659
- needs: [setup, test]
660
- runs-on: ubuntu-latest
661
- ```
662
-
663
- </details>
664
-
665
- ### 🔒 Security Best Practices
666
-
667
- <details>
668
- <summary>Secure Your GitHub Workflows</summary>
669
-
670
- #### 1. Store Configurations Securely
671
- ```yaml
672
- - name: Setup Swarm
673
- env:
674
- SWARM_CONFIG: ${{ secrets.SWARM_CONFIG }}
675
- API_KEY: ${{ secrets.API_KEY }}
676
- run: |
677
- npx ruv-swarm init --config "$SWARM_CONFIG"
678
- ```
679
-
680
- #### 2. Use OIDC Authentication
681
- ```yaml
682
- permissions:
683
- id-token: write
684
- contents: read
685
-
686
- - name: Configure AWS Credentials
687
- uses: aws-actions/configure-aws-credentials@v2
688
- with:
689
- role-to-assume: arn:aws:iam::123456789012:role/GitHubAction
690
- aws-region: us-east-1
691
- ```
692
-
693
- #### 3. Implement Least-Privilege
694
- ```yaml
695
- permissions:
696
- contents: read
697
- pull-requests: write
698
- issues: write
699
- ```
700
-
701
- #### 4. Audit Swarm Operations
702
- ```yaml
703
- - name: Audit Swarm Actions
704
- run: |
705
- npx ruv-swarm actions audit \
706
- --export-logs \
707
- --compliance-report
708
- ```
709
-
710
- </details>
711
-
712
- ### ⚡ Performance Optimization
713
-
714
- <details>
715
- <summary>Maximize Workflow Performance</summary>
716
-
717
- #### 1. Cache Swarm Dependencies
718
- ```yaml
719
- - uses: actions/cache@v3
720
- with:
721
- path: |
722
- ~/.npm
723
- node_modules
724
- key: ${{ runner.os }}-swarm-${{ hashFiles('**/package-lock.json') }}
725
- ```
726
-
727
- #### 2. Use Appropriate Runner Sizes
728
- ```yaml
729
- jobs:
730
- heavy-task:
731
- runs-on: ubuntu-latest-4-cores
732
- steps:
733
- - name: Intensive Swarm Operation
734
- ```
735
-
736
- #### 3. Implement Early Termination
737
- ```yaml
738
- - name: Quick Fail Check
739
- run: |
740
- if ! npx ruv-swarm actions pre-check; then
741
- echo "Pre-check failed, terminating early"
742
- exit 1
743
- fi
744
- ```
745
-
746
- #### 4. Optimize Parallel Execution
747
- ```yaml
748
- strategy:
749
- matrix:
750
- include:
751
- - runner: ubuntu-latest
752
- task: test
753
- - runner: ubuntu-latest
754
- task: lint
755
- - runner: ubuntu-latest
756
- task: security
757
- max-parallel: 3
758
- ```
759
-
760
- </details>
761
-
762
- ## Debugging & Troubleshooting
763
-
764
- ### 🐛 Debug Tools
765
-
766
- <details>
767
- <summary>Debug GitHub Workflow Issues</summary>
768
-
769
- #### Debug Mode
770
- ```yaml
771
- - name: Debug Swarm
772
- run: |
773
- npx ruv-swarm actions debug \
774
- --verbose \
775
- --trace-agents \
776
- --export-logs
777
- env:
778
- ACTIONS_STEP_DEBUG: true
779
- ```
780
-
781
- #### Performance Profiling
782
- ```bash
783
- # Profile workflow performance
784
- npx ruv-swarm actions profile \
785
- --workflow "ci.yml" \
786
- --identify-slow-steps \
787
- --suggest-optimizations
788
- ```
789
-
790
- #### Failure Analysis
791
- ```bash
792
- # Analyze failed runs
793
- gh run view <run-id> --json jobs,conclusion | \
794
- npx ruv-swarm actions analyze-failure \
795
- --suggest-fixes \
796
- --auto-retry-flaky
797
- ```
798
-
799
- #### Log Analysis
800
- ```bash
801
- # Download and analyze logs
802
- gh run download <run-id>
803
- npx ruv-swarm actions analyze-logs \
804
- --directory ./logs \
805
- --identify-errors
806
- ```
807
-
808
- </details>
809
-
810
- ## Real-World Examples
811
-
812
- ### 🚀 Complete Workflows
813
-
814
- <details>
815
- <summary>Production-Ready Integration Examples</summary>
816
-
817
- #### Example 1: Full-Stack Application CI/CD
818
- ```yaml
819
- name: Full-Stack CI/CD with Swarms
820
- on:
821
- push:
822
- branches: [main, develop]
823
- pull_request:
824
-
825
- jobs:
826
- initialize:
827
- runs-on: ubuntu-latest
828
- outputs:
829
- swarm-id: ${{ steps.init.outputs.swarm-id }}
830
- steps:
831
- - id: init
832
- run: |
833
- SWARM_ID=$(npx ruv-swarm init --topology mesh --output json | jq -r '.id')
834
- echo "swarm-id=${SWARM_ID}" >> $GITHUB_OUTPUT
835
-
836
- backend:
837
- needs: initialize
838
- runs-on: ubuntu-latest
839
- steps:
840
- - uses: actions/checkout@v3
841
- - name: Backend Tests
842
- run: |
843
- npx ruv-swarm agents spawn --type tester \
844
- --task "Run backend test suite" \
845
- --swarm-id ${{ needs.initialize.outputs.swarm-id }}
846
-
847
- frontend:
848
- needs: initialize
849
- runs-on: ubuntu-latest
850
- steps:
851
- - uses: actions/checkout@v3
852
- - name: Frontend Tests
853
- run: |
854
- npx ruv-swarm agents spawn --type tester \
855
- --task "Run frontend test suite" \
856
- --swarm-id ${{ needs.initialize.outputs.swarm-id }}
857
-
858
- security:
859
- needs: initialize
860
- runs-on: ubuntu-latest
861
- steps:
862
- - uses: actions/checkout@v3
863
- - name: Security Scan
864
- run: |
865
- npx ruv-swarm agents spawn --type security \
866
- --task "Security audit" \
867
- --swarm-id ${{ needs.initialize.outputs.swarm-id }}
868
-
869
- deploy:
870
- needs: [backend, frontend, security]
871
- if: github.ref == 'refs/heads/main'
872
- runs-on: ubuntu-latest
873
- steps:
874
- - name: Deploy
875
- run: |
876
- npx ruv-swarm actions deploy \
877
- --strategy progressive \
878
- --swarm-id ${{ needs.initialize.outputs.swarm-id }}
879
- ```
880
-
881
- #### Example 2: Monorepo Management
882
- ```yaml
883
- name: Monorepo Coordination
884
- on: push
885
-
886
- jobs:
887
- detect-changes:
888
- runs-on: ubuntu-latest
889
- outputs:
890
- packages: ${{ steps.detect.outputs.packages }}
891
- steps:
892
- - uses: actions/checkout@v3
893
- with:
894
- fetch-depth: 0
895
-
896
- - id: detect
897
- run: |
898
- PACKAGES=$(npx ruv-swarm actions detect-changes \
899
- --monorepo \
900
- --output json)
901
- echo "packages=${PACKAGES}" >> $GITHUB_OUTPUT
902
-
903
- build-packages:
904
- needs: detect-changes
905
- runs-on: ubuntu-latest
906
- strategy:
907
- matrix:
908
- package: ${{ fromJson(needs.detect-changes.outputs.packages) }}
909
- steps:
910
- - name: Build Package
911
- run: |
912
- npx ruv-swarm actions build \
913
- --package ${{ matrix.package }} \
914
- --parallel-deps
915
- ```
916
-
917
- #### Example 3: Multi-Repo Synchronization
918
- ```bash
919
- # Synchronize multiple repositories
920
- npx claude-flow@alpha github sync-coordinator \
921
- "Synchronize version updates across:
922
- - github.com/org/repo-a
923
- - github.com/org/repo-b
924
- - github.com/org/repo-c
925
-
926
- Update dependencies, align versions, create PRs"
927
- ```
928
-
929
- </details>
930
-
931
- ## Command Reference
932
-
933
- ### 📚 Quick Command Guide
934
-
935
- <details>
936
- <summary>All Available Commands</summary>
937
-
938
- #### Workflow Generation
939
- ```bash
940
- npx ruv-swarm actions generate-workflow [options]
941
- --analyze-codebase Analyze repository structure
942
- --detect-languages Detect programming languages
943
- --create-optimal-pipeline Generate optimized workflow
944
- ```
945
-
946
- #### Optimization
947
- ```bash
948
- npx ruv-swarm actions optimize [options]
949
- --workflow <path> Path to workflow file
950
- --suggest-parallelization Suggest parallel execution
951
- --reduce-redundancy Remove redundant steps
952
- --estimate-savings Estimate time/cost savings
953
- ```
954
-
955
- #### Analysis
956
- ```bash
957
- npx ruv-swarm actions analyze [options]
958
- --commit <sha> Analyze specific commit
959
- --suggest-tests Suggest test improvements
960
- --optimize-pipeline Optimize pipeline structure
961
- ```
962
-
963
- #### Testing
964
- ```bash
965
- npx ruv-swarm actions smart-test [options]
966
- --changed-files <files> Files that changed
967
- --impact-analysis Analyze test impact
968
- --parallel-safe Only parallel-safe tests
969
- ```
970
-
971
- #### Security
972
- ```bash
973
- npx ruv-swarm actions security [options]
974
- --deep-scan Deep security analysis
975
- --format <format> Output format (json/text)
976
- --create-issues Auto-create GitHub issues
977
- ```
978
-
979
- #### Deployment
980
- ```bash
981
- npx ruv-swarm actions deploy [options]
982
- --strategy <type> Deployment strategy
983
- --risk <level> Risk assessment level
984
- --auto-execute Execute automatically
985
- ```
986
-
987
- #### Monitoring
988
- ```bash
989
- npx ruv-swarm actions analytics [options]
990
- --workflow <name> Workflow to analyze
991
- --period <duration> Analysis period
992
- --identify-bottlenecks Find bottlenecks
993
- --suggest-improvements Improvement suggestions
994
- ```
995
-
996
- </details>
997
-
998
- ## Integration Checklist
999
-
1000
- ### ✅ Setup Verification
1001
-
1002
- <details>
1003
- <summary>Verify Your Setup</summary>
1004
-
1005
- - [ ] GitHub CLI (`gh`) installed and authenticated
1006
- - [ ] Git configured with user credentials
1007
- - [ ] Node.js v16+ installed
1008
- - [ ] `claude-flow@alpha` package available
1009
- - [ ] Repository has `.github/workflows` directory
1010
- - [ ] GitHub Actions enabled on repository
1011
- - [ ] Necessary secrets configured
1012
- - [ ] Runner permissions verified
1013
-
1014
- #### Quick Setup Script
1015
- ```bash
1016
- #!/bin/bash
1017
- # setup-github-automation.sh
1018
-
1019
- # Install dependencies
1020
- npm install -g claude-flow@alpha
1021
-
1022
- # Verify GitHub CLI
1023
- gh auth status || gh auth login
1024
-
1025
- # Create workflow directory
1026
- mkdir -p .github/workflows
1027
-
1028
- # Generate initial workflow
1029
- npx ruv-swarm actions generate-workflow \
1030
- --analyze-codebase \
1031
- --create-optimal-pipeline > .github/workflows/ci.yml
1032
-
1033
- echo "✅ GitHub workflow automation setup complete"
1034
- ```
1035
-
1036
- </details>
1037
-
1038
- ## Related Skills
1039
-
1040
- - `github-pr-enhancement` - Advanced PR management
1041
- - `release-coordination` - Release automation
1042
- - `swarm-coordination` - Multi-agent orchestration
1043
- - `ci-cd-optimization` - Pipeline optimization
1044
-
1045
- ## Support & Documentation
1046
-
1047
- - **GitHub CLI Docs**: https://cli.github.com/manual/
1048
- - **GitHub Actions**: https://docs.github.com/en/actions
1049
- - **Claude-Flow**: https://github.com/eric-cielo/moflo
1050
- - **Ruv-Swarm**: https://github.com/ruvnet/ruv-swarm
1051
-
1052
- ## Version History
1053
-
1054
- - **v1.0.0** (2025-01-19): Initial skill consolidation
1055
- - Merged workflow-automation.md (441 lines)
1056
- - Merged github-modes.md (146 lines)
1057
- - Added progressive disclosure
1058
- - Enhanced with swarm coordination patterns
1059
- - Added comprehensive examples and best practices
1060
-
1061
- ---
1062
-
1063
- **Skill Status**: ✅ Production Ready
1064
- **Last Updated**: 2025-01-19
1065
- **Maintainer**: claude-flow team
1
+ ---
2
+ name: github-workflow-automation
3
+ version: 1.0.0
4
+ category: github
5
+ description: Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
6
+ tags:
7
+ - github
8
+ - github-actions
9
+ - ci-cd
10
+ - workflow-automation
11
+ - swarm-coordination
12
+ - deployment
13
+ - security
14
+ authors:
15
+ - claude-flow
16
+ requires:
17
+ - gh (GitHub CLI)
18
+ - git
19
+ - claude-flow@alpha
20
+ - node (v16+)
21
+ priority: high
22
+ progressive_disclosure: true
23
+ ---
24
+
25
+ # GitHub Workflow Automation Skill
26
+
27
+ ## Overview
28
+
29
+ This skill provides comprehensive GitHub Actions automation with AI swarm coordination. It integrates intelligent CI/CD pipelines, workflow orchestration, and repository management to create self-organizing, adaptive GitHub workflows.
30
+
31
+ ## Quick Start
32
+
33
+ <details>
34
+ <summary>💡 Basic Usage - Click to expand</summary>
35
+
36
+ ### Initialize GitHub Workflow Automation
37
+ ```bash
38
+ # Start with a simple workflow
39
+ npx ruv-swarm actions generate-workflow \
40
+ --analyze-codebase \
41
+ --detect-languages \
42
+ --create-optimal-pipeline
43
+ ```
44
+
45
+ ### Common Commands
46
+ ```bash
47
+ # Optimize existing workflow
48
+ npx ruv-swarm actions optimize \
49
+ --workflow ".github/workflows/ci.yml" \
50
+ --suggest-parallelization
51
+
52
+ # Analyze failed runs
53
+ gh run view <run-id> --json jobs,conclusion | \
54
+ npx ruv-swarm actions analyze-failure \
55
+ --suggest-fixes
56
+ ```
57
+
58
+ </details>
59
+
60
+ ## Core Capabilities
61
+
62
+ ### 🤖 Swarm-Powered GitHub Modes
63
+
64
+ <details>
65
+ <summary>Available GitHub Integration Modes</summary>
66
+
67
+ #### 1. gh-coordinator
68
+ **GitHub workflow orchestration and coordination**
69
+ - **Coordination Mode**: Hierarchical
70
+ - **Max Parallel Operations**: 10
71
+ - **Batch Optimized**: Yes
72
+ - **Best For**: Complex GitHub workflows, multi-repo coordination
73
+
74
+ ```bash
75
+ # Usage example
76
+ npx claude-flow@alpha github gh-coordinator \
77
+ "Coordinate multi-repo release across 5 repositories"
78
+ ```
79
+
80
+ #### 2. pr-manager
81
+ **Pull request management and review coordination**
82
+ - **Review Mode**: Automated
83
+ - **Multi-reviewer**: Yes
84
+ - **Conflict Resolution**: Intelligent
85
+
86
+ ```bash
87
+ # Create PR with automated review
88
+ gh pr create --title "Feature: New capability" \
89
+ --body "Automated PR with swarm review" | \
90
+ npx ruv-swarm actions pr-validate \
91
+ --spawn-agents "linter,tester,security,docs"
92
+ ```
93
+
94
+ #### 3. issue-tracker
95
+ **Issue management and project coordination**
96
+ - **Issue Workflow**: Automated
97
+ - **Label Management**: Smart
98
+ - **Progress Tracking**: Real-time
99
+
100
+ ```bash
101
+ # Create coordinated issue workflow
102
+ npx claude-flow@alpha github issue-tracker \
103
+ "Manage sprint issues with automated tracking"
104
+ ```
105
+
106
+ #### 4. release-manager
107
+ **Release coordination and deployment**
108
+ - **Release Pipeline**: Automated
109
+ - **Versioning**: Semantic
110
+ - **Deployment**: Multi-stage
111
+
112
+ ```bash
113
+ # Automated release management
114
+ npx claude-flow@alpha github release-manager \
115
+ "Create v2.0.0 release with changelog and deployment"
116
+ ```
117
+
118
+ #### 5. repo-architect
119
+ **Repository structure and organization**
120
+ - **Structure Optimization**: Yes
121
+ - **Multi-repo Support**: Yes
122
+ - **Template Management**: Advanced
123
+
124
+ ```bash
125
+ # Optimize repository structure
126
+ npx claude-flow@alpha github repo-architect \
127
+ "Restructure monorepo with optimal organization"
128
+ ```
129
+
130
+ #### 6. code-reviewer
131
+ **Automated code review and quality assurance**
132
+ - **Review Quality**: Deep
133
+ - **Security Analysis**: Yes
134
+ - **Performance Check**: Automated
135
+
136
+ ```bash
137
+ # Automated code review
138
+ gh pr view 123 --json files | \
139
+ npx ruv-swarm actions pr-validate \
140
+ --deep-review \
141
+ --security-scan
142
+ ```
143
+
144
+ #### 7. ci-orchestrator
145
+ **CI/CD pipeline coordination**
146
+ - **Pipeline Management**: Advanced
147
+ - **Test Coordination**: Parallel
148
+ - **Deployment**: Automated
149
+
150
+ ```bash
151
+ # Orchestrate CI/CD pipeline
152
+ npx claude-flow@alpha github ci-orchestrator \
153
+ "Setup parallel test execution with smart caching"
154
+ ```
155
+
156
+ #### 8. security-guardian
157
+ **Security and compliance management**
158
+ - **Security Scan**: Automated
159
+ - **Compliance Check**: Continuous
160
+ - **Vulnerability Management**: Proactive
161
+
162
+ ```bash
163
+ # Security audit
164
+ npx ruv-swarm actions security \
165
+ --deep-scan \
166
+ --compliance-check \
167
+ --create-issues
168
+ ```
169
+
170
+ </details>
171
+
172
+ ### 🔧 Workflow Templates
173
+
174
+ <details>
175
+ <summary>Production-Ready GitHub Actions Templates</summary>
176
+
177
+ #### 1. Intelligent CI with Swarms
178
+ ```yaml
179
+ # .github/workflows/swarm-ci.yml
180
+ name: Intelligent CI with Swarms
181
+ on: [push, pull_request]
182
+
183
+ jobs:
184
+ swarm-analysis:
185
+ runs-on: ubuntu-latest
186
+ steps:
187
+ - uses: actions/checkout@v3
188
+
189
+ - name: Initialize Swarm
190
+ uses: ruvnet/swarm-action@v1
191
+ with:
192
+ topology: mesh
193
+ max-agents: 6
194
+
195
+ - name: Analyze Changes
196
+ run: |
197
+ npx ruv-swarm actions analyze \
198
+ --commit ${{ github.sha }} \
199
+ --suggest-tests \
200
+ --optimize-pipeline
201
+ ```
202
+
203
+ #### 2. Multi-Language Detection
204
+ ```yaml
205
+ # .github/workflows/polyglot-swarm.yml
206
+ name: Polyglot Project Handler
207
+ on: push
208
+
209
+ jobs:
210
+ detect-and-build:
211
+ runs-on: ubuntu-latest
212
+ steps:
213
+ - uses: actions/checkout@v3
214
+
215
+ - name: Detect Languages
216
+ id: detect
217
+ run: |
218
+ npx ruv-swarm actions detect-stack \
219
+ --output json > stack.json
220
+
221
+ - name: Dynamic Build Matrix
222
+ run: |
223
+ npx ruv-swarm actions create-matrix \
224
+ --from stack.json \
225
+ --parallel-builds
226
+ ```
227
+
228
+ #### 3. Adaptive Security Scanning
229
+ ```yaml
230
+ # .github/workflows/security-swarm.yml
231
+ name: Intelligent Security Scan
232
+ on:
233
+ schedule:
234
+ - cron: '0 0 * * *'
235
+ workflow_dispatch:
236
+
237
+ jobs:
238
+ security-swarm:
239
+ runs-on: ubuntu-latest
240
+ steps:
241
+ - name: Security Analysis Swarm
242
+ run: |
243
+ SECURITY_ISSUES=$(npx ruv-swarm actions security \
244
+ --deep-scan \
245
+ --format json)
246
+
247
+ echo "$SECURITY_ISSUES" | jq -r '.issues[]? | @base64' | while read -r issue; do
248
+ _jq() {
249
+ echo ${issue} | base64 --decode | jq -r ${1}
250
+ }
251
+ gh issue create \
252
+ --title "$(_jq '.title')" \
253
+ --body "$(_jq '.body')" \
254
+ --label "security,critical"
255
+ done
256
+ ```
257
+
258
+ #### 4. Self-Healing Pipeline
259
+ ```yaml
260
+ # .github/workflows/self-healing.yml
261
+ name: Self-Healing Pipeline
262
+ on: workflow_run
263
+
264
+ jobs:
265
+ heal-pipeline:
266
+ if: ${{ github.event.workflow_run.conclusion == 'failure' }}
267
+ runs-on: ubuntu-latest
268
+ steps:
269
+ - name: Diagnose and Fix
270
+ run: |
271
+ npx ruv-swarm actions self-heal \
272
+ --run-id ${{ github.event.workflow_run.id }} \
273
+ --auto-fix-common \
274
+ --create-pr-complex
275
+ ```
276
+
277
+ #### 5. Progressive Deployment
278
+ ```yaml
279
+ # .github/workflows/smart-deployment.yml
280
+ name: Smart Deployment
281
+ on:
282
+ push:
283
+ branches: [main]
284
+
285
+ jobs:
286
+ progressive-deploy:
287
+ runs-on: ubuntu-latest
288
+ steps:
289
+ - name: Analyze Risk
290
+ id: risk
291
+ run: |
292
+ npx ruv-swarm actions deploy-risk \
293
+ --changes ${{ github.sha }} \
294
+ --history 30d
295
+
296
+ - name: Choose Strategy
297
+ run: |
298
+ npx ruv-swarm actions deploy-strategy \
299
+ --risk ${{ steps.risk.outputs.level }} \
300
+ --auto-execute
301
+ ```
302
+
303
+ #### 6. Performance Regression Detection
304
+ ```yaml
305
+ # .github/workflows/performance-guard.yml
306
+ name: Performance Guard
307
+ on: pull_request
308
+
309
+ jobs:
310
+ perf-swarm:
311
+ runs-on: ubuntu-latest
312
+ steps:
313
+ - name: Performance Analysis
314
+ run: |
315
+ npx ruv-swarm actions perf-test \
316
+ --baseline main \
317
+ --threshold 10% \
318
+ --auto-profile-regression
319
+ ```
320
+
321
+ #### 7. PR Validation Swarm
322
+ ```yaml
323
+ # .github/workflows/pr-validation.yml
324
+ name: PR Validation Swarm
325
+ on: pull_request
326
+
327
+ jobs:
328
+ validate:
329
+ runs-on: ubuntu-latest
330
+ steps:
331
+ - name: Multi-Agent Validation
332
+ run: |
333
+ PR_DATA=$(gh pr view ${{ github.event.pull_request.number }} --json files,labels)
334
+
335
+ RESULTS=$(npx ruv-swarm actions pr-validate \
336
+ --spawn-agents "linter,tester,security,docs" \
337
+ --parallel \
338
+ --pr-data "$PR_DATA")
339
+
340
+ gh pr comment ${{ github.event.pull_request.number }} \
341
+ --body "$RESULTS"
342
+ ```
343
+
344
+ #### 8. Intelligent Release
345
+ ```yaml
346
+ # .github/workflows/intelligent-release.yml
347
+ name: Intelligent Release
348
+ on:
349
+ push:
350
+ tags: ['v*']
351
+
352
+ jobs:
353
+ release:
354
+ runs-on: ubuntu-latest
355
+ steps:
356
+ - name: Release Swarm
357
+ run: |
358
+ npx ruv-swarm actions release \
359
+ --analyze-changes \
360
+ --generate-notes \
361
+ --create-artifacts \
362
+ --publish-smart
363
+ ```
364
+
365
+ </details>
366
+
367
+ ### 📊 Monitoring & Analytics
368
+
369
+ <details>
370
+ <summary>Workflow Analysis & Optimization</summary>
371
+
372
+ #### Workflow Analytics
373
+ ```bash
374
+ # Analyze workflow performance
375
+ npx ruv-swarm actions analytics \
376
+ --workflow "ci.yml" \
377
+ --period 30d \
378
+ --identify-bottlenecks \
379
+ --suggest-improvements
380
+ ```
381
+
382
+ #### Cost Optimization
383
+ ```bash
384
+ # Optimize GitHub Actions costs
385
+ npx ruv-swarm actions cost-optimize \
386
+ --analyze-usage \
387
+ --suggest-caching \
388
+ --recommend-self-hosted
389
+ ```
390
+
391
+ #### Failure Pattern Analysis
392
+ ```bash
393
+ # Identify failure patterns
394
+ npx ruv-swarm actions failure-patterns \
395
+ --period 90d \
396
+ --classify-failures \
397
+ --suggest-preventions
398
+ ```
399
+
400
+ #### Resource Management
401
+ ```bash
402
+ # Optimize resource usage
403
+ npx ruv-swarm actions resources \
404
+ --analyze-usage \
405
+ --suggest-runners \
406
+ --cost-optimize
407
+ ```
408
+
409
+ </details>
410
+
411
+ ## Advanced Features
412
+
413
+ ### 🧪 Dynamic Test Strategies
414
+
415
+ <details>
416
+ <summary>Intelligent Test Selection & Execution</summary>
417
+
418
+ #### Smart Test Selection
419
+ ```yaml
420
+ # Automatically select relevant tests
421
+ - name: Swarm Test Selection
422
+ run: |
423
+ npx ruv-swarm actions smart-test \
424
+ --changed-files ${{ steps.files.outputs.all }} \
425
+ --impact-analysis \
426
+ --parallel-safe
427
+ ```
428
+
429
+ #### Dynamic Test Matrix
430
+ ```yaml
431
+ # Generate test matrix from code analysis
432
+ jobs:
433
+ generate-matrix:
434
+ outputs:
435
+ matrix: ${{ steps.set-matrix.outputs.matrix }}
436
+ steps:
437
+ - id: set-matrix
438
+ run: |
439
+ MATRIX=$(npx ruv-swarm actions test-matrix \
440
+ --detect-frameworks \
441
+ --optimize-coverage)
442
+ echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT
443
+
444
+ test:
445
+ needs: generate-matrix
446
+ strategy:
447
+ matrix: ${{fromJson(needs.generate-matrix.outputs.matrix)}}
448
+ ```
449
+
450
+ #### Intelligent Parallelization
451
+ ```bash
452
+ # Determine optimal parallelization
453
+ npx ruv-swarm actions parallel-strategy \
454
+ --analyze-dependencies \
455
+ --time-estimates \
456
+ --cost-aware
457
+ ```
458
+
459
+ </details>
460
+
461
+ ### 🔮 Predictive Analysis
462
+
463
+ <details>
464
+ <summary>AI-Powered Workflow Predictions</summary>
465
+
466
+ #### Predictive Failures
467
+ ```bash
468
+ # Predict potential failures
469
+ npx ruv-swarm actions predict \
470
+ --analyze-history \
471
+ --identify-risks \
472
+ --suggest-preventive
473
+ ```
474
+
475
+ #### Workflow Recommendations
476
+ ```bash
477
+ # Get workflow recommendations
478
+ npx ruv-swarm actions recommend \
479
+ --analyze-repo \
480
+ --suggest-workflows \
481
+ --industry-best-practices
482
+ ```
483
+
484
+ #### Automated Optimization
485
+ ```bash
486
+ # Continuously optimize workflows
487
+ npx ruv-swarm actions auto-optimize \
488
+ --monitor-performance \
489
+ --apply-improvements \
490
+ --track-savings
491
+ ```
492
+
493
+ </details>
494
+
495
+ ### 🎯 Custom Actions Development
496
+
497
+ <details>
498
+ <summary>Build Your Own Swarm Actions</summary>
499
+
500
+ #### Custom Swarm Action Template
501
+ ```javascript
502
+ // action.yml
503
+ name: 'Swarm Custom Action'
504
+ description: 'Custom swarm-powered action'
505
+ inputs:
506
+ task:
507
+ description: 'Task for swarm'
508
+ required: true
509
+ runs:
510
+ using: 'node16'
511
+ main: 'dist/index.js'
512
+
513
+ // index.js
514
+ const { SwarmAction } = require('ruv-swarm');
515
+
516
+ async function run() {
517
+ const swarm = new SwarmAction({
518
+ topology: 'mesh',
519
+ agents: ['analyzer', 'optimizer']
520
+ });
521
+
522
+ await swarm.execute(core.getInput('task'));
523
+ }
524
+
525
+ run().catch(error => core.setFailed(error.message));
526
+ ```
527
+
528
+ </details>
529
+
530
+ ## Integration with Claude-Flow
531
+
532
+ ### 🔄 Swarm Coordination Patterns
533
+
534
+ <details>
535
+ <summary>MCP-Based GitHub Workflow Coordination</summary>
536
+
537
+ #### Initialize GitHub Swarm
538
+ ```javascript
539
+ // Step 1: Initialize swarm coordination
540
+ mcp__moflo__swarm_init {
541
+ topology: "hierarchical",
542
+ maxAgents: 8
543
+ }
544
+
545
+ // Step 2: Spawn specialized agents
546
+ mcp__moflo__agent_spawn { type: "coordinator", name: "GitHub Coordinator" }
547
+ mcp__moflo__agent_spawn { type: "reviewer", name: "Code Reviewer" }
548
+ mcp__moflo__agent_spawn { type: "tester", name: "QA Agent" }
549
+ mcp__moflo__agent_spawn { type: "analyst", name: "Security Analyst" }
550
+
551
+ // Step 3: Orchestrate GitHub workflow
552
+ mcp__moflo__task_orchestrate {
553
+ task: "Complete PR review and merge workflow",
554
+ strategy: "parallel",
555
+ priority: "high"
556
+ }
557
+ ```
558
+
559
+ #### GitHub Hooks Integration
560
+ ```bash
561
+ # Pre-task: Setup GitHub context
562
+ npx claude-flow@alpha hooks pre-task \
563
+ --description "PR review workflow" \
564
+ --context "pr-123"
565
+
566
+ # During task: Track progress
567
+ npx claude-flow@alpha hooks notify \
568
+ --message "Completed security scan" \
569
+ --type "github-action"
570
+
571
+ # Post-task: Export results
572
+ npx claude-flow@alpha hooks post-task \
573
+ --task-id "pr-review-123" \
574
+ --export-github-summary
575
+ ```
576
+
577
+ </details>
578
+
579
+ ### 📦 Batch Operations
580
+
581
+ <details>
582
+ <summary>Concurrent GitHub Operations</summary>
583
+
584
+ #### Parallel GitHub CLI Commands
585
+ ```javascript
586
+ // Single message with all GitHub operations
587
+ [Concurrent Execution]:
588
+ Bash("gh issue create --title 'Feature A' --body 'Description A' --label 'enhancement'")
589
+ Bash("gh issue create --title 'Feature B' --body 'Description B' --label 'enhancement'")
590
+ Bash("gh pr create --title 'PR 1' --head 'feature-a' --base 'main'")
591
+ Bash("gh pr create --title 'PR 2' --head 'feature-b' --base 'main'")
592
+ Bash("gh pr checks 123 --watch")
593
+ TodoWrite { todos: [
594
+ {content: "Review security scan results", status: "pending"},
595
+ {content: "Merge approved PRs", status: "pending"},
596
+ {content: "Update changelog", status: "pending"}
597
+ ]}
598
+ ```
599
+
600
+ </details>
601
+
602
+ ## Best Practices
603
+
604
+ ### 🏗️ Workflow Organization
605
+
606
+ <details>
607
+ <summary>Structure Your GitHub Workflows</summary>
608
+
609
+ #### 1. Use Reusable Workflows
610
+ ```yaml
611
+ # .github/workflows/reusable-swarm.yml
612
+ name: Reusable Swarm Workflow
613
+ on:
614
+ workflow_call:
615
+ inputs:
616
+ topology:
617
+ required: true
618
+ type: string
619
+
620
+ jobs:
621
+ swarm-task:
622
+ runs-on: ubuntu-latest
623
+ steps:
624
+ - name: Initialize Swarm
625
+ run: |
626
+ npx ruv-swarm init --topology ${{ inputs.topology }}
627
+ ```
628
+
629
+ #### 2. Implement Proper Caching
630
+ ```yaml
631
+ - name: Cache Swarm Dependencies
632
+ uses: actions/cache@v3
633
+ with:
634
+ path: ~/.npm
635
+ key: ${{ runner.os }}-swarm-${{ hashFiles('**/package-lock.json') }}
636
+ ```
637
+
638
+ #### 3. Set Appropriate Timeouts
639
+ ```yaml
640
+ jobs:
641
+ swarm-task:
642
+ timeout-minutes: 30
643
+ steps:
644
+ - name: Swarm Operation
645
+ timeout-minutes: 10
646
+ ```
647
+
648
+ #### 4. Use Workflow Dependencies
649
+ ```yaml
650
+ jobs:
651
+ setup:
652
+ runs-on: ubuntu-latest
653
+
654
+ test:
655
+ needs: setup
656
+ runs-on: ubuntu-latest
657
+
658
+ deploy:
659
+ needs: [setup, test]
660
+ runs-on: ubuntu-latest
661
+ ```
662
+
663
+ </details>
664
+
665
+ ### 🔒 Security Best Practices
666
+
667
+ <details>
668
+ <summary>Secure Your GitHub Workflows</summary>
669
+
670
+ #### 1. Store Configurations Securely
671
+ ```yaml
672
+ - name: Setup Swarm
673
+ env:
674
+ SWARM_CONFIG: ${{ secrets.SWARM_CONFIG }}
675
+ API_KEY: ${{ secrets.API_KEY }}
676
+ run: |
677
+ npx ruv-swarm init --config "$SWARM_CONFIG"
678
+ ```
679
+
680
+ #### 2. Use OIDC Authentication
681
+ ```yaml
682
+ permissions:
683
+ id-token: write
684
+ contents: read
685
+
686
+ - name: Configure AWS Credentials
687
+ uses: aws-actions/configure-aws-credentials@v2
688
+ with:
689
+ role-to-assume: arn:aws:iam::123456789012:role/GitHubAction
690
+ aws-region: us-east-1
691
+ ```
692
+
693
+ #### 3. Implement Least-Privilege
694
+ ```yaml
695
+ permissions:
696
+ contents: read
697
+ pull-requests: write
698
+ issues: write
699
+ ```
700
+
701
+ #### 4. Audit Swarm Operations
702
+ ```yaml
703
+ - name: Audit Swarm Actions
704
+ run: |
705
+ npx ruv-swarm actions audit \
706
+ --export-logs \
707
+ --compliance-report
708
+ ```
709
+
710
+ </details>
711
+
712
+ ### ⚡ Performance Optimization
713
+
714
+ <details>
715
+ <summary>Maximize Workflow Performance</summary>
716
+
717
+ #### 1. Cache Swarm Dependencies
718
+ ```yaml
719
+ - uses: actions/cache@v3
720
+ with:
721
+ path: |
722
+ ~/.npm
723
+ node_modules
724
+ key: ${{ runner.os }}-swarm-${{ hashFiles('**/package-lock.json') }}
725
+ ```
726
+
727
+ #### 2. Use Appropriate Runner Sizes
728
+ ```yaml
729
+ jobs:
730
+ heavy-task:
731
+ runs-on: ubuntu-latest-4-cores
732
+ steps:
733
+ - name: Intensive Swarm Operation
734
+ ```
735
+
736
+ #### 3. Implement Early Termination
737
+ ```yaml
738
+ - name: Quick Fail Check
739
+ run: |
740
+ if ! npx ruv-swarm actions pre-check; then
741
+ echo "Pre-check failed, terminating early"
742
+ exit 1
743
+ fi
744
+ ```
745
+
746
+ #### 4. Optimize Parallel Execution
747
+ ```yaml
748
+ strategy:
749
+ matrix:
750
+ include:
751
+ - runner: ubuntu-latest
752
+ task: test
753
+ - runner: ubuntu-latest
754
+ task: lint
755
+ - runner: ubuntu-latest
756
+ task: security
757
+ max-parallel: 3
758
+ ```
759
+
760
+ </details>
761
+
762
+ ## Debugging & Troubleshooting
763
+
764
+ ### 🐛 Debug Tools
765
+
766
+ <details>
767
+ <summary>Debug GitHub Workflow Issues</summary>
768
+
769
+ #### Debug Mode
770
+ ```yaml
771
+ - name: Debug Swarm
772
+ run: |
773
+ npx ruv-swarm actions debug \
774
+ --verbose \
775
+ --trace-agents \
776
+ --export-logs
777
+ env:
778
+ ACTIONS_STEP_DEBUG: true
779
+ ```
780
+
781
+ #### Performance Profiling
782
+ ```bash
783
+ # Profile workflow performance
784
+ npx ruv-swarm actions profile \
785
+ --workflow "ci.yml" \
786
+ --identify-slow-steps \
787
+ --suggest-optimizations
788
+ ```
789
+
790
+ #### Failure Analysis
791
+ ```bash
792
+ # Analyze failed runs
793
+ gh run view <run-id> --json jobs,conclusion | \
794
+ npx ruv-swarm actions analyze-failure \
795
+ --suggest-fixes \
796
+ --auto-retry-flaky
797
+ ```
798
+
799
+ #### Log Analysis
800
+ ```bash
801
+ # Download and analyze logs
802
+ gh run download <run-id>
803
+ npx ruv-swarm actions analyze-logs \
804
+ --directory ./logs \
805
+ --identify-errors
806
+ ```
807
+
808
+ </details>
809
+
810
+ ## Real-World Examples
811
+
812
+ ### 🚀 Complete Workflows
813
+
814
+ <details>
815
+ <summary>Production-Ready Integration Examples</summary>
816
+
817
+ #### Example 1: Full-Stack Application CI/CD
818
+ ```yaml
819
+ name: Full-Stack CI/CD with Swarms
820
+ on:
821
+ push:
822
+ branches: [main, develop]
823
+ pull_request:
824
+
825
+ jobs:
826
+ initialize:
827
+ runs-on: ubuntu-latest
828
+ outputs:
829
+ swarm-id: ${{ steps.init.outputs.swarm-id }}
830
+ steps:
831
+ - id: init
832
+ run: |
833
+ SWARM_ID=$(npx ruv-swarm init --topology mesh --output json | jq -r '.id')
834
+ echo "swarm-id=${SWARM_ID}" >> $GITHUB_OUTPUT
835
+
836
+ backend:
837
+ needs: initialize
838
+ runs-on: ubuntu-latest
839
+ steps:
840
+ - uses: actions/checkout@v3
841
+ - name: Backend Tests
842
+ run: |
843
+ npx ruv-swarm agents spawn --type tester \
844
+ --task "Run backend test suite" \
845
+ --swarm-id ${{ needs.initialize.outputs.swarm-id }}
846
+
847
+ frontend:
848
+ needs: initialize
849
+ runs-on: ubuntu-latest
850
+ steps:
851
+ - uses: actions/checkout@v3
852
+ - name: Frontend Tests
853
+ run: |
854
+ npx ruv-swarm agents spawn --type tester \
855
+ --task "Run frontend test suite" \
856
+ --swarm-id ${{ needs.initialize.outputs.swarm-id }}
857
+
858
+ security:
859
+ needs: initialize
860
+ runs-on: ubuntu-latest
861
+ steps:
862
+ - uses: actions/checkout@v3
863
+ - name: Security Scan
864
+ run: |
865
+ npx ruv-swarm agents spawn --type security \
866
+ --task "Security audit" \
867
+ --swarm-id ${{ needs.initialize.outputs.swarm-id }}
868
+
869
+ deploy:
870
+ needs: [backend, frontend, security]
871
+ if: github.ref == 'refs/heads/main'
872
+ runs-on: ubuntu-latest
873
+ steps:
874
+ - name: Deploy
875
+ run: |
876
+ npx ruv-swarm actions deploy \
877
+ --strategy progressive \
878
+ --swarm-id ${{ needs.initialize.outputs.swarm-id }}
879
+ ```
880
+
881
+ #### Example 2: Monorepo Management
882
+ ```yaml
883
+ name: Monorepo Coordination
884
+ on: push
885
+
886
+ jobs:
887
+ detect-changes:
888
+ runs-on: ubuntu-latest
889
+ outputs:
890
+ packages: ${{ steps.detect.outputs.packages }}
891
+ steps:
892
+ - uses: actions/checkout@v3
893
+ with:
894
+ fetch-depth: 0
895
+
896
+ - id: detect
897
+ run: |
898
+ PACKAGES=$(npx ruv-swarm actions detect-changes \
899
+ --monorepo \
900
+ --output json)
901
+ echo "packages=${PACKAGES}" >> $GITHUB_OUTPUT
902
+
903
+ build-packages:
904
+ needs: detect-changes
905
+ runs-on: ubuntu-latest
906
+ strategy:
907
+ matrix:
908
+ package: ${{ fromJson(needs.detect-changes.outputs.packages) }}
909
+ steps:
910
+ - name: Build Package
911
+ run: |
912
+ npx ruv-swarm actions build \
913
+ --package ${{ matrix.package }} \
914
+ --parallel-deps
915
+ ```
916
+
917
+ #### Example 3: Multi-Repo Synchronization
918
+ ```bash
919
+ # Synchronize multiple repositories
920
+ npx claude-flow@alpha github sync-coordinator \
921
+ "Synchronize version updates across:
922
+ - github.com/org/repo-a
923
+ - github.com/org/repo-b
924
+ - github.com/org/repo-c
925
+
926
+ Update dependencies, align versions, create PRs"
927
+ ```
928
+
929
+ </details>
930
+
931
+ ## Command Reference
932
+
933
+ ### 📚 Quick Command Guide
934
+
935
+ <details>
936
+ <summary>All Available Commands</summary>
937
+
938
+ #### Workflow Generation
939
+ ```bash
940
+ npx ruv-swarm actions generate-workflow [options]
941
+ --analyze-codebase Analyze repository structure
942
+ --detect-languages Detect programming languages
943
+ --create-optimal-pipeline Generate optimized workflow
944
+ ```
945
+
946
+ #### Optimization
947
+ ```bash
948
+ npx ruv-swarm actions optimize [options]
949
+ --workflow <path> Path to workflow file
950
+ --suggest-parallelization Suggest parallel execution
951
+ --reduce-redundancy Remove redundant steps
952
+ --estimate-savings Estimate time/cost savings
953
+ ```
954
+
955
+ #### Analysis
956
+ ```bash
957
+ npx ruv-swarm actions analyze [options]
958
+ --commit <sha> Analyze specific commit
959
+ --suggest-tests Suggest test improvements
960
+ --optimize-pipeline Optimize pipeline structure
961
+ ```
962
+
963
+ #### Testing
964
+ ```bash
965
+ npx ruv-swarm actions smart-test [options]
966
+ --changed-files <files> Files that changed
967
+ --impact-analysis Analyze test impact
968
+ --parallel-safe Only parallel-safe tests
969
+ ```
970
+
971
+ #### Security
972
+ ```bash
973
+ npx ruv-swarm actions security [options]
974
+ --deep-scan Deep security analysis
975
+ --format <format> Output format (json/text)
976
+ --create-issues Auto-create GitHub issues
977
+ ```
978
+
979
+ #### Deployment
980
+ ```bash
981
+ npx ruv-swarm actions deploy [options]
982
+ --strategy <type> Deployment strategy
983
+ --risk <level> Risk assessment level
984
+ --auto-execute Execute automatically
985
+ ```
986
+
987
+ #### Monitoring
988
+ ```bash
989
+ npx ruv-swarm actions analytics [options]
990
+ --workflow <name> Workflow to analyze
991
+ --period <duration> Analysis period
992
+ --identify-bottlenecks Find bottlenecks
993
+ --suggest-improvements Improvement suggestions
994
+ ```
995
+
996
+ </details>
997
+
998
+ ## Integration Checklist
999
+
1000
+ ### ✅ Setup Verification
1001
+
1002
+ <details>
1003
+ <summary>Verify Your Setup</summary>
1004
+
1005
+ - [ ] GitHub CLI (`gh`) installed and authenticated
1006
+ - [ ] Git configured with user credentials
1007
+ - [ ] Node.js v16+ installed
1008
+ - [ ] `claude-flow@alpha` package available
1009
+ - [ ] Repository has `.github/workflows` directory
1010
+ - [ ] GitHub Actions enabled on repository
1011
+ - [ ] Necessary secrets configured
1012
+ - [ ] Runner permissions verified
1013
+
1014
+ #### Quick Setup Script
1015
+ ```bash
1016
+ #!/bin/bash
1017
+ # setup-github-automation.sh
1018
+
1019
+ # Install dependencies
1020
+ npm install -g claude-flow@alpha
1021
+
1022
+ # Verify GitHub CLI
1023
+ gh auth status || gh auth login
1024
+
1025
+ # Create workflow directory
1026
+ mkdir -p .github/workflows
1027
+
1028
+ # Generate initial workflow
1029
+ npx ruv-swarm actions generate-workflow \
1030
+ --analyze-codebase \
1031
+ --create-optimal-pipeline > .github/workflows/ci.yml
1032
+
1033
+ echo "✅ GitHub workflow automation setup complete"
1034
+ ```
1035
+
1036
+ </details>
1037
+
1038
+ ## Related Skills
1039
+
1040
+ - `github-pr-enhancement` - Advanced PR management
1041
+ - `release-coordination` - Release automation
1042
+ - `swarm-coordination` - Multi-agent orchestration
1043
+ - `ci-cd-optimization` - Pipeline optimization
1044
+
1045
+ ## Support & Documentation
1046
+
1047
+ - **GitHub CLI Docs**: https://cli.github.com/manual/
1048
+ - **GitHub Actions**: https://docs.github.com/en/actions
1049
+ - **Claude-Flow**: https://github.com/eric-cielo/moflo
1050
+ - **Ruv-Swarm**: https://github.com/ruvnet/ruv-swarm
1051
+
1052
+ ## Version History
1053
+
1054
+ - **v1.0.0** (2025-01-19): Initial skill consolidation
1055
+ - Merged workflow-automation.md (441 lines)
1056
+ - Merged github-modes.md (146 lines)
1057
+ - Added progressive disclosure
1058
+ - Enhanced with swarm coordination patterns
1059
+ - Added comprehensive examples and best practices
1060
+
1061
+ ---
1062
+
1063
+ **Skill Status**: ✅ Production Ready
1064
+ **Last Updated**: 2025-01-19
1065
+ **Maintainer**: claude-flow team