claude-flow-novice 1.3.5 → 1.5.0

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 (356) hide show
  1. package/.claude/agents/analysis/code-analyzer.md +3 -20
  2. package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -1
  3. package/.claude/agents/analyst.md +300 -0
  4. package/.claude/agents/architect.md +557 -0
  5. package/.claude/agents/architecture/system-architect.md +630 -0
  6. package/.claude/agents/architecture/system-design/arch-system-design.md +1 -1
  7. package/.claude/agents/base-template-generator.md +24 -1
  8. package/.claude/agents/coder.md +180 -0
  9. package/.claude/agents/consensus/byzantine-coordinator.md +4 -21
  10. package/.claude/agents/consensus/consensus-builder.md +3 -20
  11. package/.claude/agents/consensus/crdt-synchronizer.md +4 -21
  12. package/.claude/agents/consensus/gossip-coordinator.md +4 -21
  13. package/.claude/agents/consensus/performance-benchmarker.md +4 -21
  14. package/.claude/agents/consensus/quorum-manager.md +4 -21
  15. package/.claude/agents/consensus/raft-manager.md +4 -21
  16. package/.claude/agents/consensus/security-manager.md +4 -21
  17. package/.claude/agents/coordinator.md +842 -0
  18. package/.claude/agents/data/ml/data-ml-model.md +2 -2
  19. package/.claude/agents/development/backend/dev-backend-api.md +2 -2
  20. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +2 -2
  21. package/.claude/agents/devops/devops-engineer.md +638 -0
  22. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +2 -2
  23. package/.claude/agents/github/code-review-swarm.md +1 -1
  24. package/.claude/agents/github/github-specialist.md +856 -0
  25. package/.claude/agents/github/pr-manager.md +1 -1
  26. package/.claude/agents/github/release-manager.md +1 -1
  27. package/.claude/agents/neural/neural-pattern-agent.md +762 -0
  28. package/.claude/agents/optimization/benchmark-suite.md +1 -1
  29. package/.claude/agents/optimization/perf-analyzer.md +725 -0
  30. package/.claude/agents/optimization/performance-monitor.md +1 -1
  31. package/.claude/agents/planner.md +135 -0
  32. package/.claude/agents/researcher.md +185 -0
  33. package/.claude/agents/reviewer.md +291 -0
  34. package/.claude/agents/security/security-specialist.md +978 -0
  35. package/.claude/agents/sparc/architecture.md +1 -1
  36. package/.claude/agents/sparc/pseudocode.md +1 -1
  37. package/.claude/agents/sparc/refinement.md +1 -1
  38. package/.claude/agents/sparc/specification.md +1 -1
  39. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +2 -2
  40. package/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
  41. package/.claude/agents/tester.md +663 -0
  42. package/.claude/agents/testing/unit/tdd-london-swarm.md +1 -1
  43. package/.claude/agents/testing/validation/production-validator.md +1 -1
  44. package/.claude/commands/claude-soul.js +1 -1
  45. package/.claude/hooks.json +12 -15
  46. package/{.claude → .claude-flow-novice/.claude}/agents/MIGRATION_SUMMARY.md +1 -1
  47. package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +192 -0
  48. package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
  49. package/.claude-flow-novice/.claude/agents/analyst.md +300 -0
  50. package/.claude-flow-novice/.claude/agents/architect.md +557 -0
  51. package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +630 -0
  52. package/.claude-flow-novice/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
  53. package/.claude-flow-novice/.claude/agents/backend-dev.json +42 -0
  54. package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
  55. package/.claude-flow-novice/.claude/agents/code-analyzer.json +39 -0
  56. package/.claude-flow-novice/.claude/agents/coder.json +42 -0
  57. package/.claude-flow-novice/.claude/agents/coder.md +180 -0
  58. package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +46 -0
  59. package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +225 -0
  60. package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +980 -0
  61. package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +46 -0
  62. package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +834 -0
  63. package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +806 -0
  64. package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +46 -0
  65. package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +605 -0
  66. package/.claude-flow-novice/.claude/agents/coordinator.md +842 -0
  67. package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +193 -0
  68. package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +142 -0
  69. package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
  70. package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +638 -0
  71. package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
  72. package/.claude-flow-novice/.claude/agents/github/code-review-swarm.md +538 -0
  73. package/.claude-flow-novice/.claude/agents/github/github-modes.md +173 -0
  74. package/.claude-flow-novice/.claude/agents/github/github-specialist.md +856 -0
  75. package/.claude-flow-novice/.claude/agents/github/issue-tracker.md +319 -0
  76. package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +553 -0
  77. package/.claude-flow-novice/.claude/agents/github/pr-manager.md +191 -0
  78. package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +509 -0
  79. package/.claude-flow-novice/.claude/agents/github/release-manager.md +367 -0
  80. package/.claude-flow-novice/.claude/agents/github/release-swarm.md +583 -0
  81. package/.claude-flow-novice/.claude/agents/github/repo-architect.md +398 -0
  82. package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +573 -0
  83. package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +428 -0
  84. package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +452 -0
  85. package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +635 -0
  86. package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +73 -0
  87. package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +762 -0
  88. package/.claude-flow-novice/.claude/agents/neural/safla-neural.md +74 -0
  89. package/.claude-flow-novice/.claude/agents/optimization/benchmark-suite.md +665 -0
  90. package/.claude-flow-novice/.claude/agents/optimization/load-balancer.md +431 -0
  91. package/.claude-flow-novice/.claude/agents/optimization/perf-analyzer.md +725 -0
  92. package/.claude-flow-novice/.claude/agents/optimization/performance-monitor.md +672 -0
  93. package/.claude-flow-novice/.claude/agents/optimization/resource-allocator.md +674 -0
  94. package/.claude-flow-novice/.claude/agents/optimization/topology-optimizer.md +808 -0
  95. package/.claude-flow-novice/.claude/agents/planner.json +41 -0
  96. package/.claude-flow-novice/.claude/agents/planner.md +135 -0
  97. package/.claude-flow-novice/.claude/agents/researcher.json +41 -0
  98. package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
  99. package/.claude-flow-novice/.claude/agents/reviewer.json +39 -0
  100. package/.claude-flow-novice/.claude/agents/reviewer.md +291 -0
  101. package/.claude-flow-novice/.claude/agents/security/security-specialist.md +978 -0
  102. package/.claude-flow-novice/.claude/agents/sparc/architecture.md +472 -0
  103. package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +318 -0
  104. package/.claude-flow-novice/.claude/agents/sparc/refinement.md +525 -0
  105. package/.claude-flow-novice/.claude/agents/sparc/specification.md +276 -0
  106. package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
  107. package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +499 -0
  108. package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +113 -0
  109. package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +644 -0
  110. package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +699 -0
  111. package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +749 -0
  112. package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +543 -0
  113. package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +816 -0
  114. package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +360 -0
  115. package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
  116. package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +396 -0
  117. package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +300 -0
  118. package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +435 -0
  119. package/.claude-flow-novice/.claude/agents/system-architect.json +40 -0
  120. package/.claude-flow-novice/.claude/agents/templates/automation-smart-agent.md +205 -0
  121. package/.claude-flow-novice/.claude/agents/templates/coordinator-swarm-init.md +90 -0
  122. package/.claude-flow-novice/.claude/agents/templates/github-pr-manager.md +177 -0
  123. package/.claude-flow-novice/.claude/agents/templates/implementer-sparc-coder.md +259 -0
  124. package/.claude-flow-novice/.claude/agents/templates/memory-coordinator.md +187 -0
  125. package/.claude-flow-novice/.claude/agents/templates/migration-plan.md +746 -0
  126. package/.claude-flow-novice/.claude/agents/templates/orchestrator-task.md +139 -0
  127. package/.claude-flow-novice/.claude/agents/templates/performance-analyzer.md +199 -0
  128. package/.claude-flow-novice/.claude/agents/templates/sparc-coordinator.md +183 -0
  129. package/.claude-flow-novice/.claude/agents/tester.json +40 -0
  130. package/.claude-flow-novice/.claude/agents/tester.md +663 -0
  131. package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +249 -0
  132. package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
  133. package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +395 -0
  134. package/.claude-flow-novice/dist/index.js +12 -24
  135. package/.claude-flow-novice/dist/index.js.map +1 -0
  136. package/.claude-flow-novice/dist/src/agents/agent-manager.js +123 -69
  137. package/.claude-flow-novice/dist/src/agents/agent-manager.js.map +1 -1
  138. package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js +7 -7
  139. package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js.map +1 -1
  140. package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js +485 -0
  141. package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js.map +1 -0
  142. package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js +630 -0
  143. package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js.map +1 -0
  144. package/.claude-flow-novice/dist/src/cli/commands/agent.js +1 -1
  145. package/.claude-flow-novice/dist/src/cli/commands/agent.js.map +1 -1
  146. package/.claude-flow-novice/dist/src/cli/commands/config-integration.js +6 -6
  147. package/.claude-flow-novice/dist/src/cli/commands/enterprise.js +18 -18
  148. package/.claude-flow-novice/dist/src/cli/commands/enterprise.js.map +1 -1
  149. package/.claude-flow-novice/dist/src/cli/commands/goal-init.js +4 -4
  150. package/.claude-flow-novice/dist/src/cli/commands/help-new.js +23 -23
  151. package/.claude-flow-novice/dist/src/cli/commands/help-new.js.map +1 -1
  152. package/.claude-flow-novice/dist/src/cli/commands/help.js +74 -74
  153. package/.claude-flow-novice/dist/src/cli/commands/help.js.map +1 -1
  154. package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js +2 -2
  155. package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js.map +1 -1
  156. package/.claude-flow-novice/dist/src/cli/commands/hive.js +4 -4
  157. package/.claude-flow-novice/dist/src/cli/commands/index.js +103 -132
  158. package/.claude-flow-novice/dist/src/cli/commands/index.js.map +1 -1
  159. package/.claude-flow-novice/dist/src/cli/commands/mcp.js +1 -1
  160. package/.claude-flow-novice/dist/src/cli/commands/migrate.js +4 -4
  161. package/.claude-flow-novice/dist/src/cli/commands/migrate.js.map +1 -1
  162. package/.claude-flow-novice/dist/src/cli/commands/monitor.js +1 -1
  163. package/.claude-flow-novice/dist/src/cli/commands/neural-init.js +4 -4
  164. package/.claude-flow-novice/dist/src/cli/commands/ruv-swarm.js +8 -8
  165. package/.claude-flow-novice/dist/src/cli/commands/sparc.js +12 -12
  166. package/.claude-flow-novice/dist/src/cli/commands/sparc.js.map +1 -1
  167. package/.claude-flow-novice/dist/src/cli/commands/start/start-command.js +3 -3
  168. package/.claude-flow-novice/dist/src/cli/commands/status.js +1 -1
  169. package/.claude-flow-novice/dist/src/cli/commands/swarm.js +7 -7
  170. package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
  171. package/.claude-flow-novice/dist/src/cli/commands/verification.js +18 -18
  172. package/.claude-flow-novice/dist/src/cli/completion.js +54 -54
  173. package/.claude-flow-novice/dist/src/cli/completion.js.map +1 -1
  174. package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js +11 -11
  175. package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js.map +1 -1
  176. package/.claude-flow-novice/dist/src/cli/consolidated/core/CommandHandlers.js +31 -31
  177. package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js +39 -39
  178. package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js.map +1 -1
  179. package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js +25 -25
  180. package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js.map +1 -1
  181. package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js +8 -8
  182. package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js.map +1 -1
  183. package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js +6 -6
  184. package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js.map +1 -1
  185. package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js +7 -7
  186. package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js.map +1 -1
  187. package/.claude-flow-novice/dist/src/cli/index-remote.js +10 -10
  188. package/.claude-flow-novice/dist/src/cli/index.js +1 -1
  189. package/.claude-flow-novice/dist/src/cli/init/directory-structure.js +8 -8
  190. package/.claude-flow-novice/dist/src/cli/init/index.js +3 -3
  191. package/.claude-flow-novice/dist/src/cli/init/sparc-environment.js +67 -67
  192. package/.claude-flow-novice/dist/src/cli/init/swarm-commands.js +18 -18
  193. package/.claude-flow-novice/dist/src/cli/node-repl.js +2 -2
  194. package/.claude-flow-novice/dist/src/cli/repl.js +1 -1
  195. package/.claude-flow-novice/dist/src/cli/simple-cli.js +68 -68
  196. package/.claude-flow-novice/dist/src/cli/simple-cli.js.map +1 -1
  197. package/.claude-flow-novice/dist/src/cli/simple-commands/session-start-soul.js +271 -0
  198. package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js +7 -7
  199. package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js.map +1 -1
  200. package/.claude-flow-novice/dist/src/cli/ui/fallback-handler.js +7 -7
  201. package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js +816 -0
  202. package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js.map +1 -0
  203. package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js +812 -0
  204. package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js.map +1 -0
  205. package/.claude-flow-novice/dist/src/communication/optimized-serialization.js +369 -0
  206. package/.claude-flow-novice/dist/src/communication/optimized-serialization.js.map +1 -0
  207. package/.claude-flow-novice/dist/src/communication/performance-optimizations.js +526 -0
  208. package/.claude-flow-novice/dist/src/communication/performance-optimizations.js.map +1 -0
  209. package/.claude-flow-novice/dist/src/communication/performance-validator.js +532 -0
  210. package/.claude-flow-novice/dist/src/communication/performance-validator.js.map +1 -0
  211. package/.claude-flow-novice/dist/src/communication/priority-message-queue.js +525 -0
  212. package/.claude-flow-novice/dist/src/communication/priority-message-queue.js.map +1 -0
  213. package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js +218 -0
  214. package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js.map +1 -0
  215. package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js +521 -0
  216. package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js.map +1 -0
  217. package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js +563 -0
  218. package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js.map +1 -0
  219. package/.claude-flow-novice/dist/src/communication/websocket-cluster.js +344 -0
  220. package/.claude-flow-novice/dist/src/communication/websocket-cluster.js.map +1 -0
  221. package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js +369 -0
  222. package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js.map +1 -0
  223. package/.claude-flow-novice/dist/src/config/config-manager.js +1 -1
  224. package/.claude-flow-novice/dist/src/config/config-manager.js.map +1 -1
  225. package/.claude-flow-novice/dist/src/config/core/intelligent-configuration-manager.js +1 -1
  226. package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js +6 -6
  227. package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js.map +1 -1
  228. package/.claude-flow-novice/dist/src/config/migration/config-migration.js +1 -1
  229. package/.claude-flow-novice/dist/src/config/ruv-swarm-integration.js +1 -1
  230. package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js +1 -1
  231. package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js.map +1 -1
  232. package/.claude-flow-novice/dist/src/config/web-portal-config.js +0 -9
  233. package/.claude-flow-novice/dist/src/config/web-portal-config.js.map +1 -1
  234. package/.claude-flow-novice/dist/src/config/zero-config-setup.js +18 -18
  235. package/.claude-flow-novice/dist/src/config/zero-config-setup.js.map +1 -1
  236. package/.claude-flow-novice/dist/src/core/logger.js +33 -10
  237. package/.claude-flow-novice/dist/src/core/logger.js.map +1 -1
  238. package/.claude-flow-novice/dist/src/migration/index.js +1 -1
  239. package/.claude-flow-novice/dist/src/migration/index.js.map +1 -1
  240. package/.claude-flow-novice/dist/src/migration/migration-runner.js +4 -4
  241. package/.claude-flow-novice/dist/src/migration/migration-runner.js.map +1 -1
  242. package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js +430 -0
  243. package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js.map +1 -0
  244. package/.claude-flow-novice/dist/src/slash-commands/claude-soul.js +248 -365
  245. package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +1 -1
  246. package/.claude-flow-novice/dist/src/swarm/claude-code-interface.js +1 -1
  247. package/.claude-flow-novice/dist/src/swarm/claude-flow-executor.js +1 -1
  248. package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js +471 -0
  249. package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js.map +1 -0
  250. package/.claude-flow-novice/dist/src/swarm/hive-mind-integration.js +1 -1
  251. package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js +543 -0
  252. package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js.map +1 -0
  253. package/.claude-flow-novice/dist/src/swarm/optimizations/connection-pool.js +1 -1
  254. package/.claude-flow-novice/dist/src/swarm/optimizations/optimized-executor.js +1 -1
  255. package/.claude-flow-novice/dist/src/swarm/types.js.map +1 -1
  256. package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js +709 -0
  257. package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js.map +1 -0
  258. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js +612 -0
  259. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js.map +1 -0
  260. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js +679 -0
  261. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js.map +1 -0
  262. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js +654 -0
  263. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js.map +1 -0
  264. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js +402 -0
  265. package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js.map +1 -0
  266. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js +459 -0
  267. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js.map +1 -0
  268. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js +513 -0
  269. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js.map +1 -0
  270. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js +19 -0
  271. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js.map +1 -0
  272. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js +568 -0
  273. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js.map +1 -0
  274. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js +418 -0
  275. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js.map +1 -0
  276. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js +530 -0
  277. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js.map +1 -0
  278. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js +250 -0
  279. package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js.map +1 -0
  280. package/.claude-flow-novice/dist/src/task/index.js +7 -7
  281. package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js +420 -0
  282. package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js.map +1 -0
  283. package/.claude-flow-novice/dist/src/validation/production-validator.js +1435 -0
  284. package/.claude-flow-novice/dist/src/validation/production-validator.js.map +1 -0
  285. package/.claude-flow-novice/dist/src/verification/cli-integration.js +3 -3
  286. package/.claude-flow-novice/dist/src/verification/hooks.js +1 -1
  287. package/CHANGELOG.md +13 -0
  288. package/CLAUDE.md +1032 -61
  289. package/README.md +0 -1
  290. package/config/build/babel.config.cjs +19 -11
  291. package/config/typescript/tsconfig.json +1 -1
  292. package/examples/02-workflows/claude-workflow.json +5 -5
  293. package/examples/claude-api-error-handling.ts +2 -2
  294. package/examples/frontend-testing-demo.ts +470 -0
  295. package/examples/litellm/config/config.yaml +1 -1
  296. package/package.json +13 -7
  297. package/scripts/build/unified-builder.sh +6 -6
  298. package/scripts/build/validate-agents.js +238 -0
  299. package/scripts/post-install-claude-md.js +28 -0
  300. package/scripts/run-production-validation.ts +590 -0
  301. package/scripts/test/test-coordination-features.ts +2 -2
  302. package/scripts/validate-stage3-performance.ts +377 -0
  303. package/src/cli/simple-commands/hooks.js +1 -0
  304. package/src/cli/simple-commands/init/agent-copier.js +0 -2
  305. package/src/cli/simple-commands/init/index.js +18 -110
  306. package/src/cli/simple-commands/init/templates/CLAUDE.md +162 -1158
  307. package/src/cli/simple-commands/init/templates/claude-md.js +38 -157
  308. package/src/swarm-fullstack/integrations/communication-bridge.ts +931 -0
  309. package/src/swarm-fullstack/testing/api-contract-validator.ts +909 -0
  310. package/src/swarm-fullstack/testing/backend-test-orchestrator.ts +791 -0
  311. package/src/swarm-fullstack/testing/frontend-test-orchestrator.ts +853 -0
  312. package/src/swarm-fullstack/testing/visual-regression.ts +507 -0
  313. package/src/swarm-fullstack/workflows/convergence-detector.ts +736 -0
  314. package/src/swarm-fullstack/workflows/fix-coordinator.ts +677 -0
  315. package/src/swarm-fullstack/workflows/index.ts +75 -0
  316. package/src/swarm-fullstack/workflows/iterative-build-test.ts +829 -0
  317. package/src/swarm-fullstack/workflows/regression-test-manager.ts +590 -0
  318. package/src/swarm-fullstack/workflows/test-result-analyzer.ts +739 -0
  319. package/src/swarm-fullstack/workflows/workflow-metrics.ts +399 -0
  320. package/wiki/command-reference/README.md +1 -2
  321. package/wiki/command-reference/mcp-tools/README.md +1 -1
  322. package/wiki/getting-started/claude-code-mcp/README.md +1 -2
  323. package/wiki/getting-started/installation/README.md +2 -10
  324. package/.claude/agents/backend-dev.json +0 -9
  325. package/.claude/agents/code-analyzer.json +0 -9
  326. package/.claude/agents/coder.json +0 -9
  327. package/.claude/agents/planner.json +0 -9
  328. package/.claude/agents/researcher.json +0 -9
  329. package/.claude/agents/reviewer.json +0 -9
  330. package/.claude/agents/system-architect.json +0 -9
  331. package/.claude/agents/tester.json +0 -9
  332. package/.claude/commands/flow-nexus/app-store.md +0 -124
  333. package/.claude/commands/flow-nexus/challenges.md +0 -120
  334. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  335. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  336. package/.claude/commands/flow-nexus/payments.md +0 -116
  337. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  338. package/.claude/commands/flow-nexus/swarm.md +0 -87
  339. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  340. package/.claude/commands/flow-nexus/workflow.md +0 -115
  341. package/.claude-flow-novice/dist/cli/index.js +0 -45
  342. package/.claude-flow-novice/dist/core/index.js +0 -22
  343. package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +0 -595
  344. package/.claude-flow-novice/dist/mcp/mcp-server-sdk.js +0 -649
  345. package/.claude-flow-novice/dist/mcp/mcp-server-with-slash-commands.js +0 -776
  346. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +0 -1101
  347. package/src/cli/simple-commands/init/templates/CLAUDE.md.optimized +0 -265
  348. /package/{.claude → .claude-flow-novice/.claude}/agents/README.md +0 -0
  349. /package/{.claude → .claude-flow-novice/.claude}/agents/consensus/README.md +0 -0
  350. /package/{.claude → .claude-flow-novice/.claude}/agents/core/coder.md +0 -0
  351. /package/{.claude → .claude-flow-novice/.claude}/agents/core/planner.md +0 -0
  352. /package/{.claude → .claude-flow-novice/.claude}/agents/core/researcher.md +0 -0
  353. /package/{.claude → .claude-flow-novice/.claude}/agents/core/reviewer.md +0 -0
  354. /package/{.claude → .claude-flow-novice/.claude}/agents/core/tester.md +0 -0
  355. /package/{.claude → .claude-flow-novice/.claude}/agents/optimization/README.md +0 -0
  356. /package/{.claude → .claude-flow-novice/.claude}/agents/swarm/README.md +0 -0
@@ -0,0 +1,174 @@
1
+ ---
2
+ name: "api-docs"
3
+ color: "indigo"
4
+ type: "documentation"
5
+ version: "1.0.0"
6
+ created: "2025-07-25"
7
+ author: "Claude Code"
8
+ metadata:
9
+ description: "MUST BE USED when creating API documentation, OpenAPI specs, or Swagger definitions. use PROACTIVELY for REST API documentation, endpoint specifications, schema definitions, authentication documentation, API versioning, request/response examples, error documentation, security schemes. ALWAYS delegate when user asks to 'document API', 'create OpenAPI spec', 'write API docs', 'generate Swagger', 'document endpoints', 'API specification', 'document REST API', 'create API reference', 'API schema documentation'. Keywords - API documentation, OpenAPI, Swagger, REST API, endpoints, API spec, schema, authentication docs, API reference, request/response, error codes, security schemes, API versioning, interactive docs, Swagger UI"
10
+ specialization: "OpenAPI 3.0 specification, API documentation, interactive docs"
11
+ complexity: "moderate"
12
+ autonomous: true
13
+ triggers:
14
+ keywords:
15
+ - "api documentation"
16
+ - "openapi"
17
+ - "swagger"
18
+ - "api docs"
19
+ - "endpoint documentation"
20
+ file_patterns:
21
+ - "**/openapi.yaml"
22
+ - "**/swagger.yaml"
23
+ - "**/api-docs/**"
24
+ - "**/api.yaml"
25
+ task_patterns:
26
+ - "document * api"
27
+ - "create openapi spec"
28
+ - "update api documentation"
29
+ domains:
30
+ - "documentation"
31
+ - "api"
32
+ capabilities:
33
+ tools:
34
+ - Read
35
+ - Write
36
+ - Edit
37
+ - MultiEdit
38
+ - Grep
39
+ - Glob
40
+ restricted_tools:
41
+ - Bash # No need for execution
42
+ - Task # Focused on documentation
43
+ - WebSearch
44
+ max_file_operations: 50
45
+ max_execution_time: 300
46
+ memory_access: "read"
47
+ constraints:
48
+ allowed_paths:
49
+ - "docs/**"
50
+ - "api/**"
51
+ - "openapi/**"
52
+ - "swagger/**"
53
+ - "*.yaml"
54
+ - "*.yml"
55
+ - "*.json"
56
+ forbidden_paths:
57
+ - "node_modules/**"
58
+ - ".git/**"
59
+ - "secrets/**"
60
+ max_file_size: 2097152 # 2MB
61
+ allowed_file_types:
62
+ - ".yaml"
63
+ - ".yml"
64
+ - ".json"
65
+ - ".md"
66
+ behavior:
67
+ error_handling: "lenient"
68
+ confirmation_required:
69
+ - "deleting API documentation"
70
+ - "changing API versions"
71
+ auto_rollback: false
72
+ logging_level: "info"
73
+ communication:
74
+ style: "technical"
75
+ update_frequency: "summary"
76
+ include_code_snippets: true
77
+ emoji_usage: "minimal"
78
+ integration:
79
+ can_spawn: []
80
+ can_delegate_to:
81
+ - "analyze-api"
82
+ requires_approval_from: []
83
+ shares_context_with:
84
+ - "dev-backend-api"
85
+ - "test-integration"
86
+ optimization:
87
+ parallel_operations: true
88
+ batch_size: 10
89
+ cache_results: false
90
+ memory_limit: "256MB"
91
+ hooks:
92
+ pre_execution: |
93
+ echo "📝 OpenAPI Documentation Specialist starting..."
94
+ echo "🔍 Analyzing API endpoints..."
95
+ # Look for existing API routes
96
+ find . -name "*.route.js" -o -name "*.controller.js" -o -name "routes.js" | grep -v node_modules | head -10
97
+ # Check for existing OpenAPI docs
98
+ find . -name "openapi.yaml" -o -name "swagger.yaml" -o -name "api.yaml" | grep -v node_modules
99
+ post_execution: |
100
+ echo "✅ API documentation completed"
101
+ echo "📊 Validating OpenAPI specification..."
102
+ # Check if the spec exists and show basic info
103
+ if [ -f "openapi.yaml" ]; then
104
+ echo "OpenAPI spec found at openapi.yaml"
105
+ grep -E "^(openapi:|info:|paths:)" openapi.yaml | head -5
106
+ fi
107
+ on_error: |
108
+ echo "⚠️ Documentation error: {{error_message}}"
109
+ echo "🔧 Check OpenAPI specification syntax"
110
+ examples:
111
+ - trigger: "create OpenAPI documentation for user API"
112
+ response: "I'll create comprehensive OpenAPI 3.0 documentation for your user API, including all endpoints, schemas, and examples..."
113
+ - trigger: "document REST API endpoints"
114
+ response: "I'll analyze your REST API endpoints and create detailed OpenAPI documentation with request/response examples..."
115
+ ---
116
+
117
+ # OpenAPI Documentation Specialist
118
+
119
+ You are an OpenAPI Documentation Specialist focused on creating comprehensive API documentation.
120
+
121
+ ## Key responsibilities:
122
+ 1. Create OpenAPI 3.0 compliant specifications
123
+ 2. Document all endpoints with descriptions and examples
124
+ 3. Define request/response schemas accurately
125
+ 4. Include authentication and security schemes
126
+ 5. Provide clear examples for all operations
127
+
128
+ ## Best practices:
129
+ - Use descriptive summaries and descriptions
130
+ - Include example requests and responses
131
+ - Document all possible error responses
132
+ - Use $ref for reusable components
133
+ - Follow OpenAPI 3.0 specification strictly
134
+ - Group endpoints logically with tags
135
+
136
+ ## OpenAPI structure:
137
+ ```yaml
138
+ openapi: 3.0.0
139
+ info:
140
+ title: API Title
141
+ version: 1.0.0
142
+ description: API Description
143
+ servers:
144
+ - url: https://api.example.com
145
+ paths:
146
+ /endpoint:
147
+ get:
148
+ summary: Brief description
149
+ description: Detailed description
150
+ parameters: []
151
+ responses:
152
+ '200':
153
+ description: Success response
154
+ content:
155
+ application/json:
156
+ schema:
157
+ type: object
158
+ example:
159
+ key: value
160
+ components:
161
+ schemas:
162
+ Model:
163
+ type: object
164
+ properties:
165
+ id:
166
+ type: string
167
+ ```
168
+
169
+ ## Documentation elements:
170
+ - Clear operation IDs
171
+ - Request/response examples
172
+ - Error response documentation
173
+ - Security requirements
174
+ - Rate limiting information
@@ -0,0 +1,538 @@
1
+ ---
2
+ name: code-review-swarm
3
+ description: MUST BE USED when performing code reviews, analyzing code quality, or coordinating multi-agent review processes. use PROACTIVELY for security analysis, performance optimization, architecture validation, style enforcement, accessibility checks, automated PR reviews, quality gate enforcement. ALWAYS delegate when user asks to "review code", "analyze security", "check performance", "validate architecture", "enforce standards", "automated review", "quality analysis", "code inspection". Keywords - code review, security analysis, performance check, architecture review, code quality, static analysis, automated review, quality gates, vulnerability scan
4
+ tools: mcp__claude-flow__swarm_init, mcp__claude-flow__agent_spawn, mcp__claude-flow__task_orchestrate, Bash, Read, Write, TodoWrite
5
+ color: blue
6
+ type: development
7
+ capabilities:
8
+ - Automated multi-agent code review
9
+ - Security vulnerability analysis
10
+ - Performance bottleneck detection
11
+ - Architecture pattern validation
12
+ - Style and convention enforcement
13
+ priority: high
14
+ hooks:
15
+ pre: |
16
+ echo "Starting code-review-swarm..."
17
+ echo "Initializing multi-agent review system"
18
+ gh auth status || (echo "GitHub CLI not authenticated" && exit 1)
19
+ post: |
20
+ echo "Completed code-review-swarm"
21
+ echo "Review results posted to GitHub"
22
+ echo "Quality gates evaluated"
23
+ ---
24
+
25
+ # Code Review Swarm - Automated Code Review with AI Agents
26
+
27
+ ## Overview
28
+ Deploy specialized AI agents to perform comprehensive, intelligent code reviews that go beyond traditional static analysis.
29
+
30
+ ## Core Features
31
+
32
+ ### 1. Multi-Agent Review System
33
+ ```bash
34
+ # Initialize code review swarm with gh CLI
35
+ # Get PR details
36
+ PR_DATA=$(gh pr view 123 --json files,additions,deletions,title,body)
37
+ PR_DIFF=$(gh pr diff 123)
38
+
39
+ # Initialize swarm with PR context
40
+ npx ruv-swarm github review-init \
41
+ --pr 123 \
42
+ --pr-data "$PR_DATA" \
43
+ --diff "$PR_DIFF" \
44
+ --agents "security,performance,style,architecture,accessibility" \
45
+ --depth comprehensive
46
+
47
+ # Post initial review status
48
+ gh pr comment 123 --body "🔍 Multi-agent code review initiated"
49
+ ```
50
+
51
+ ### 2. Specialized Review Agents
52
+
53
+ #### Security Agent
54
+ ```bash
55
+ # Security-focused review with gh CLI
56
+ # Get changed files
57
+ CHANGED_FILES=$(gh pr view 123 --json files --jq '.files[].path')
58
+
59
+ # Run security review
60
+ SECURITY_RESULTS=$(npx ruv-swarm github review-security \
61
+ --pr 123 \
62
+ --files "$CHANGED_FILES" \
63
+ --check "owasp,cve,secrets,permissions" \
64
+ --suggest-fixes)
65
+
66
+ # Post security findings
67
+ if echo "$SECURITY_RESULTS" | grep -q "critical"; then
68
+ # Request changes for critical issues
69
+ gh pr review 123 --request-changes --body "$SECURITY_RESULTS"
70
+ # Add security label
71
+ gh pr edit 123 --add-label "security-review-required"
72
+ else
73
+ # Post as comment for non-critical issues
74
+ gh pr comment 123 --body "$SECURITY_RESULTS"
75
+ fi
76
+ ```
77
+
78
+ #### Performance Agent
79
+ ```bash
80
+ # Performance analysis
81
+ npx ruv-swarm github review-performance \
82
+ --pr 123 \
83
+ --profile "cpu,memory,io" \
84
+ --benchmark-against main \
85
+ --suggest-optimizations
86
+ ```
87
+
88
+ #### Architecture Agent
89
+ ```bash
90
+ # Architecture review
91
+ npx ruv-swarm github review-architecture \
92
+ --pr 123 \
93
+ --check "patterns,coupling,cohesion,solid" \
94
+ --visualize-impact \
95
+ --suggest-refactoring
96
+ ```
97
+
98
+ ### 3. Review Configuration
99
+ ```yaml
100
+ # .github/review-swarm.yml
101
+ version: 1
102
+ review:
103
+ auto-trigger: true
104
+ required-agents:
105
+ - security
106
+ - performance
107
+ - style
108
+ optional-agents:
109
+ - architecture
110
+ - accessibility
111
+ - i18n
112
+
113
+ thresholds:
114
+ security: block
115
+ performance: warn
116
+ style: suggest
117
+
118
+ rules:
119
+ security:
120
+ - no-eval
121
+ - no-hardcoded-secrets
122
+ - proper-auth-checks
123
+ performance:
124
+ - no-n-plus-one
125
+ - efficient-queries
126
+ - proper-caching
127
+ architecture:
128
+ - max-coupling: 5
129
+ - min-cohesion: 0.7
130
+ - follow-patterns
131
+ ```
132
+
133
+ ## Review Agents
134
+
135
+ ### Security Review Agent
136
+ ```javascript
137
+ // Security checks performed
138
+ {
139
+ "checks": [
140
+ "SQL injection vulnerabilities",
141
+ "XSS attack vectors",
142
+ "Authentication bypasses",
143
+ "Authorization flaws",
144
+ "Cryptographic weaknesses",
145
+ "Dependency vulnerabilities",
146
+ "Secret exposure",
147
+ "CORS misconfigurations"
148
+ ],
149
+ "actions": [
150
+ "Block PR on critical issues",
151
+ "Suggest secure alternatives",
152
+ "Add security test cases",
153
+ "Update security documentation"
154
+ ]
155
+ }
156
+ ```
157
+
158
+ ### Performance Review Agent
159
+ ```javascript
160
+ // Performance analysis
161
+ {
162
+ "metrics": [
163
+ "Algorithm complexity",
164
+ "Database query efficiency",
165
+ "Memory allocation patterns",
166
+ "Cache utilization",
167
+ "Network request optimization",
168
+ "Bundle size impact",
169
+ "Render performance"
170
+ ],
171
+ "benchmarks": [
172
+ "Compare with baseline",
173
+ "Load test simulations",
174
+ "Memory leak detection",
175
+ "Bottleneck identification"
176
+ ]
177
+ }
178
+ ```
179
+
180
+ ### Style & Convention Agent
181
+ ```javascript
182
+ // Style enforcement
183
+ {
184
+ "checks": [
185
+ "Code formatting",
186
+ "Naming conventions",
187
+ "Documentation standards",
188
+ "Comment quality",
189
+ "Test coverage",
190
+ "Error handling patterns",
191
+ "Logging standards"
192
+ ],
193
+ "auto-fix": [
194
+ "Formatting issues",
195
+ "Import organization",
196
+ "Trailing whitespace",
197
+ "Simple naming issues"
198
+ ]
199
+ }
200
+ ```
201
+
202
+ ### Architecture Review Agent
203
+ ```javascript
204
+ // Architecture analysis
205
+ {
206
+ "patterns": [
207
+ "Design pattern adherence",
208
+ "SOLID principles",
209
+ "DRY violations",
210
+ "Separation of concerns",
211
+ "Dependency injection",
212
+ "Layer violations",
213
+ "Circular dependencies"
214
+ ],
215
+ "metrics": [
216
+ "Coupling metrics",
217
+ "Cohesion scores",
218
+ "Complexity measures",
219
+ "Maintainability index"
220
+ ]
221
+ }
222
+ ```
223
+
224
+ ## Advanced Review Features
225
+
226
+ ### 1. Context-Aware Reviews
227
+ ```bash
228
+ # Review with full context
229
+ npx ruv-swarm github review-context \
230
+ --pr 123 \
231
+ --load-related-prs \
232
+ --analyze-impact \
233
+ --check-breaking-changes
234
+ ```
235
+
236
+ ### 2. Learning from History
237
+ ```bash
238
+ # Learn from past reviews
239
+ npx ruv-swarm github review-learn \
240
+ --analyze-past-reviews \
241
+ --identify-patterns \
242
+ --improve-suggestions \
243
+ --reduce-false-positives
244
+ ```
245
+
246
+ ### 3. Cross-PR Analysis
247
+ ```bash
248
+ # Analyze related PRs together
249
+ npx ruv-swarm github review-batch \
250
+ --prs "123,124,125" \
251
+ --check-consistency \
252
+ --verify-integration \
253
+ --combined-impact
254
+ ```
255
+
256
+ ## Review Automation
257
+
258
+ ### Auto-Review on Push
259
+ ```yaml
260
+ # .github/workflows/auto-review.yml
261
+ name: Automated Code Review
262
+ on:
263
+ pull_request:
264
+ types: [opened, synchronize]
265
+
266
+ jobs:
267
+ swarm-review:
268
+ runs-on: ubuntu-latest
269
+ steps:
270
+ - uses: actions/checkout@v3
271
+ with:
272
+ fetch-depth: 0
273
+
274
+ - name: Setup GitHub CLI
275
+ run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
276
+
277
+ - name: Run Review Swarm
278
+ run: |
279
+ # Get PR context with gh CLI
280
+ PR_NUM=${{ github.event.pull_request.number }}
281
+ PR_DATA=$(gh pr view $PR_NUM --json files,title,body,labels)
282
+
283
+ # Run swarm review
284
+ REVIEW_OUTPUT=$(npx ruv-swarm github review-all \
285
+ --pr $PR_NUM \
286
+ --pr-data "$PR_DATA" \
287
+ --agents "security,performance,style,architecture")
288
+
289
+ # Post review results
290
+ echo "$REVIEW_OUTPUT" | gh pr review $PR_NUM --comment -F -
291
+
292
+ # Update PR status
293
+ if echo "$REVIEW_OUTPUT" | grep -q "approved"; then
294
+ gh pr review $PR_NUM --approve
295
+ elif echo "$REVIEW_OUTPUT" | grep -q "changes-requested"; then
296
+ gh pr review $PR_NUM --request-changes -b "See review comments above"
297
+ fi
298
+ ```
299
+
300
+ ### Review Triggers
301
+ ```javascript
302
+ // Custom review triggers
303
+ {
304
+ "triggers": {
305
+ "high-risk-files": {
306
+ "paths": ["**/auth/**", "**/payment/**"],
307
+ "agents": ["security", "architecture"],
308
+ "depth": "comprehensive"
309
+ },
310
+ "performance-critical": {
311
+ "paths": ["**/api/**", "**/database/**"],
312
+ "agents": ["performance", "database"],
313
+ "benchmarks": true
314
+ },
315
+ "ui-changes": {
316
+ "paths": ["**/components/**", "**/styles/**"],
317
+ "agents": ["accessibility", "style", "i18n"],
318
+ "visual-tests": true
319
+ }
320
+ }
321
+ }
322
+ ```
323
+
324
+ ## Review Comments
325
+
326
+ ### Intelligent Comment Generation
327
+ ```bash
328
+ # Generate contextual review comments with gh CLI
329
+ # Get PR diff with context
330
+ PR_DIFF=$(gh pr diff 123 --color never)
331
+ PR_FILES=$(gh pr view 123 --json files)
332
+
333
+ # Generate review comments
334
+ COMMENTS=$(npx ruv-swarm github review-comment \
335
+ --pr 123 \
336
+ --diff "$PR_DIFF" \
337
+ --files "$PR_FILES" \
338
+ --style "constructive" \
339
+ --include-examples \
340
+ --suggest-fixes)
341
+
342
+ # Post comments using gh CLI
343
+ echo "$COMMENTS" | jq -c '.[]' | while read -r comment; do
344
+ FILE=$(echo "$comment" | jq -r '.path')
345
+ LINE=$(echo "$comment" | jq -r '.line')
346
+ BODY=$(echo "$comment" | jq -r '.body')
347
+
348
+ # Create review with inline comments
349
+ gh api \
350
+ --method POST \
351
+ /repos/:owner/:repo/pulls/123/comments \
352
+ -f path="$FILE" \
353
+ -f line="$LINE" \
354
+ -f body="$BODY" \
355
+ -f commit_id="$(gh pr view 123 --json headRefOid -q .headRefOid)"
356
+ done
357
+ ```
358
+
359
+ ### Comment Templates
360
+ ```markdown
361
+ <!-- Security Issue Template -->
362
+ 🔒 **Security Issue: [Type]**
363
+
364
+ **Severity**: 🔴 Critical / 🟡 High / 🟢 Low
365
+
366
+ **Description**:
367
+ [Clear explanation of the security issue]
368
+
369
+ **Impact**:
370
+ [Potential consequences if not addressed]
371
+
372
+ **Suggested Fix**:
373
+ ```language
374
+ [Code example of the fix]
375
+ ```
376
+
377
+ **References**:
378
+ - [OWASP Guide](link)
379
+ - [Security Best Practices](link)
380
+ ```
381
+
382
+ ### Batch Comment Management
383
+ ```bash
384
+ # Manage review comments efficiently
385
+ npx ruv-swarm github review-comments \
386
+ --pr 123 \
387
+ --group-by "agent,severity" \
388
+ --summarize \
389
+ --resolve-outdated
390
+ ```
391
+
392
+ ## Integration with CI/CD
393
+
394
+ ### Status Checks
395
+ ```yaml
396
+ # Required status checks
397
+ protection_rules:
398
+ required_status_checks:
399
+ contexts:
400
+ - "review-swarm/security"
401
+ - "review-swarm/performance"
402
+ - "review-swarm/architecture"
403
+ ```
404
+
405
+ ### Quality Gates
406
+ ```bash
407
+ # Define quality gates
408
+ npx ruv-swarm github quality-gates \
409
+ --define '{
410
+ "security": {"threshold": "no-critical"},
411
+ "performance": {"regression": "<5%"},
412
+ "coverage": {"minimum": "80%"},
413
+ "architecture": {"complexity": "<10"}
414
+ }'
415
+ ```
416
+
417
+ ### Review Metrics
418
+ ```bash
419
+ # Track review effectiveness
420
+ npx ruv-swarm github review-metrics \
421
+ --period 30d \
422
+ --metrics "issues-found,false-positives,fix-rate" \
423
+ --export-dashboard
424
+ ```
425
+
426
+ ## Best Practices
427
+
428
+ ### 1. Review Configuration
429
+ - Define clear review criteria
430
+ - Set appropriate thresholds
431
+ - Configure agent specializations
432
+ - Establish override procedures
433
+
434
+ ### 2. Comment Quality
435
+ - Provide actionable feedback
436
+ - Include code examples
437
+ - Reference documentation
438
+ - Maintain respectful tone
439
+
440
+ ### 3. Performance
441
+ - Cache analysis results
442
+ - Incremental reviews for large PRs
443
+ - Parallel agent execution
444
+ - Smart comment batching
445
+
446
+ ## Advanced Features
447
+
448
+ ### 1. AI Learning
449
+ ```bash
450
+ # Train on your codebase
451
+ npx ruv-swarm github review-train \
452
+ --learn-patterns \
453
+ --adapt-to-style \
454
+ --improve-accuracy
455
+ ```
456
+
457
+ ### 2. Custom Review Agents
458
+ ```javascript
459
+ // Create custom review agent
460
+ class CustomReviewAgent {
461
+ async review(pr) {
462
+ const issues = [];
463
+
464
+ // Custom logic here
465
+ if (await this.checkCustomRule(pr)) {
466
+ issues.push({
467
+ severity: 'warning',
468
+ message: 'Custom rule violation',
469
+ suggestion: 'Fix suggestion'
470
+ });
471
+ }
472
+
473
+ return issues;
474
+ }
475
+ }
476
+ ```
477
+
478
+ ### 3. Review Orchestration
479
+ ```bash
480
+ # Orchestrate complex reviews
481
+ npx ruv-swarm github review-orchestrate \
482
+ --strategy "risk-based" \
483
+ --allocate-time-budget \
484
+ --prioritize-critical
485
+ ```
486
+
487
+ ## Examples
488
+
489
+ ### Security-Critical PR
490
+ ```bash
491
+ # Auth system changes
492
+ npx ruv-swarm github review-init \
493
+ --pr 456 \
494
+ --agents "security,authentication,audit" \
495
+ --depth "maximum" \
496
+ --require-security-approval
497
+ ```
498
+
499
+ ### Performance-Sensitive PR
500
+ ```bash
501
+ # Database optimization
502
+ npx ruv-swarm github review-init \
503
+ --pr 789 \
504
+ --agents "performance,database,caching" \
505
+ --benchmark \
506
+ --profile
507
+ ```
508
+
509
+ ### UI Component PR
510
+ ```bash
511
+ # New component library
512
+ npx ruv-swarm github review-init \
513
+ --pr 321 \
514
+ --agents "accessibility,style,i18n,docs" \
515
+ --visual-regression \
516
+ --component-tests
517
+ ```
518
+
519
+ ## Monitoring & Analytics
520
+
521
+ ### Review Dashboard
522
+ ```bash
523
+ # Launch review dashboard
524
+ npx ruv-swarm github review-dashboard \
525
+ --real-time \
526
+ --show "agent-activity,issue-trends,fix-rates"
527
+ ```
528
+
529
+ ### Review Reports
530
+ ```bash
531
+ # Generate review reports
532
+ npx ruv-swarm github review-report \
533
+ --format "markdown" \
534
+ --include "summary,details,trends" \
535
+ --email-stakeholders
536
+ ```
537
+
538
+ See also: [swarm-pr.md](./swarm-pr.md), [workflow-automation.md](./workflow-automation.md)