moflo 4.8.31 → 4.8.33

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 (415) hide show
  1. package/package.json +13 -10
  2. package/src/@claude-flow/cli/dist/src/commands/doctor.js +1298 -1107
  3. package/src/@claude-flow/cli/dist/src/memory/memory-initializer.js +4 -7
  4. package/src/@claude-flow/cli/package.json +106 -106
  5. package/src/@claude-flow/neural/README.md +260 -0
  6. package/src/@claude-flow/neural/dist/algorithms/a2c.js +361 -0
  7. package/src/@claude-flow/neural/dist/algorithms/curiosity.js +392 -0
  8. package/src/@claude-flow/neural/dist/algorithms/decision-transformer.js +415 -0
  9. package/src/@claude-flow/neural/dist/algorithms/dqn.js +303 -0
  10. package/src/@claude-flow/neural/dist/algorithms/index.js +74 -0
  11. package/src/@claude-flow/neural/dist/algorithms/ppo.js +331 -0
  12. package/src/@claude-flow/neural/dist/algorithms/q-learning.js +259 -0
  13. package/src/@claude-flow/neural/dist/algorithms/sarsa.js +297 -0
  14. package/src/@claude-flow/neural/dist/application/index.js +7 -0
  15. package/src/@claude-flow/neural/dist/application/services/neural-application-service.js +161 -0
  16. package/src/@claude-flow/neural/dist/domain/entities/pattern.js +134 -0
  17. package/src/@claude-flow/neural/dist/domain/index.js +8 -0
  18. package/src/@claude-flow/neural/dist/domain/services/learning-service.js +195 -0
  19. package/src/@claude-flow/neural/dist/index.js +201 -0
  20. package/src/@claude-flow/neural/dist/modes/balanced.js +234 -0
  21. package/src/@claude-flow/neural/dist/modes/base.js +77 -0
  22. package/src/@claude-flow/neural/dist/modes/batch.js +316 -0
  23. package/src/@claude-flow/neural/dist/modes/edge.js +310 -0
  24. package/src/@claude-flow/neural/dist/modes/index.js +13 -0
  25. package/src/@claude-flow/neural/dist/modes/real-time.js +196 -0
  26. package/src/@claude-flow/neural/dist/modes/research.js +389 -0
  27. package/src/@claude-flow/neural/dist/pattern-learner.js +603 -0
  28. package/src/@claude-flow/neural/dist/reasoning-bank.js +993 -0
  29. package/src/@claude-flow/neural/dist/reasoningbank-adapter.js +463 -0
  30. package/src/@claude-flow/neural/dist/sona-integration.js +316 -0
  31. package/src/@claude-flow/neural/dist/sona-manager.js +695 -0
  32. package/src/@claude-flow/neural/dist/types.js +11 -0
  33. package/src/@claude-flow/neural/package.json +26 -0
  34. package/.claude/agents/browser/browser-agent.yaml +0 -182
  35. package/.claude/agents/database-specialist.yaml +0 -21
  36. package/.claude/agents/index.yaml +0 -17
  37. package/.claude/agents/project-coordinator.yaml +0 -15
  38. package/.claude/agents/python-specialist.yaml +0 -21
  39. package/.claude/agents/security-auditor.yaml +0 -20
  40. package/.claude/agents/typescript-specialist.yaml +0 -21
  41. package/.claude/checkpoints/1767754460.json +0 -8
  42. package/.claude/config/v3-dependency-optimization.json +0 -266
  43. package/.claude/config/v3-performance-targets.json +0 -251
  44. package/.claude/guidance/moflo-bootstrap.md +0 -129
  45. package/.claude/mcp.json +0 -13
  46. package/.claude/settings.json +0 -351
  47. package/.claude/settings.local.json +0 -18
  48. package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
  49. package/.claude/skills/agentdb-learning/SKILL.md +0 -545
  50. package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
  51. package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
  52. package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
  53. package/.claude/skills/browser/SKILL.md +0 -204
  54. package/.claude/skills/fl/SKILL.md +0 -583
  55. package/.claude/skills/flo/SKILL.md +0 -583
  56. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  57. package/.claude/skills/github-multi-repo/SKILL.md +0 -874
  58. package/.claude/skills/github-project-management/SKILL.md +0 -1277
  59. package/.claude/skills/github-release-management/SKILL.md +0 -1081
  60. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
  61. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  62. package/.claude/skills/hooks-automation/SKILL.md +0 -1201
  63. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  64. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  65. package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
  66. package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
  67. package/.claude/skills/skill-builder/SKILL.md +0 -910
  68. package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
  69. package/.claude/skills/stream-chain/SKILL.md +0 -563
  70. package/.claude/skills/swarm-advanced/SKILL.md +0 -973
  71. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  72. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  73. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  74. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  75. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  76. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  77. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  78. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  79. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  80. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  81. package/.claude/skills/verification-quality/SKILL.md +0 -649
  82. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  83. package/.claude/skills/worker-integration/skill.md +0 -154
  84. package/.claude/workflow-state.json +0 -9
  85. package/src/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts +0 -91
  86. package/src/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts +0 -102
  87. package/src/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts +0 -44
  88. package/src/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts +0 -97
  89. package/src/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts +0 -111
  90. package/src/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts +0 -69
  91. package/src/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts +0 -123
  92. package/src/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -58
  93. package/src/@claude-flow/cli/dist/src/commands/agent.d.ts +0 -8
  94. package/src/@claude-flow/cli/dist/src/commands/analyze.d.ts +0 -19
  95. package/src/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts +0 -9
  96. package/src/@claude-flow/cli/dist/src/commands/appliance.d.ts +0 -8
  97. package/src/@claude-flow/cli/dist/src/commands/benchmark.d.ts +0 -10
  98. package/src/@claude-flow/cli/dist/src/commands/claims.d.ts +0 -10
  99. package/src/@claude-flow/cli/dist/src/commands/completions.d.ts +0 -10
  100. package/src/@claude-flow/cli/dist/src/commands/config.d.ts +0 -8
  101. package/src/@claude-flow/cli/dist/src/commands/daemon.d.ts +0 -8
  102. package/src/@claude-flow/cli/dist/src/commands/deployment.d.ts +0 -10
  103. package/src/@claude-flow/cli/dist/src/commands/diagnose.d.ts +0 -16
  104. package/src/@claude-flow/cli/dist/src/commands/doctor.d.ts +0 -10
  105. package/src/@claude-flow/cli/dist/src/commands/embeddings.d.ts +0 -18
  106. package/src/@claude-flow/cli/dist/src/commands/gate.d.ts +0 -23
  107. package/src/@claude-flow/cli/dist/src/commands/github.d.ts +0 -12
  108. package/src/@claude-flow/cli/dist/src/commands/guidance.d.ts +0 -8
  109. package/src/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +0 -11
  110. package/src/@claude-flow/cli/dist/src/commands/hooks.d.ts +0 -8
  111. package/src/@claude-flow/cli/dist/src/commands/index.d.ts +0 -115
  112. package/src/@claude-flow/cli/dist/src/commands/init.d.ts +0 -8
  113. package/src/@claude-flow/cli/dist/src/commands/issues.d.ts +0 -21
  114. package/src/@claude-flow/cli/dist/src/commands/mcp.d.ts +0 -11
  115. package/src/@claude-flow/cli/dist/src/commands/memory.d.ts +0 -8
  116. package/src/@claude-flow/cli/dist/src/commands/migrate.d.ts +0 -8
  117. package/src/@claude-flow/cli/dist/src/commands/neural.d.ts +0 -10
  118. package/src/@claude-flow/cli/dist/src/commands/orc.d.ts +0 -21
  119. package/src/@claude-flow/cli/dist/src/commands/performance.d.ts +0 -10
  120. package/src/@claude-flow/cli/dist/src/commands/plugins.d.ts +0 -11
  121. package/src/@claude-flow/cli/dist/src/commands/process.d.ts +0 -10
  122. package/src/@claude-flow/cli/dist/src/commands/progress.d.ts +0 -11
  123. package/src/@claude-flow/cli/dist/src/commands/providers.d.ts +0 -10
  124. package/src/@claude-flow/cli/dist/src/commands/route.d.ts +0 -16
  125. package/src/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts +0 -11
  126. package/src/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -11
  127. package/src/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts +0 -18
  128. package/src/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts +0 -29
  129. package/src/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts +0 -11
  130. package/src/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts +0 -11
  131. package/src/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts +0 -11
  132. package/src/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts +0 -18
  133. package/src/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts +0 -11
  134. package/src/@claude-flow/cli/dist/src/commands/security.d.ts +0 -10
  135. package/src/@claude-flow/cli/dist/src/commands/session.d.ts +0 -8
  136. package/src/@claude-flow/cli/dist/src/commands/start.d.ts +0 -8
  137. package/src/@claude-flow/cli/dist/src/commands/status.d.ts +0 -8
  138. package/src/@claude-flow/cli/dist/src/commands/swarm.d.ts +0 -8
  139. package/src/@claude-flow/cli/dist/src/commands/task.d.ts +0 -8
  140. package/src/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +0 -13
  141. package/src/@claude-flow/cli/dist/src/commands/update.d.ts +0 -8
  142. package/src/@claude-flow/cli/dist/src/commands/workflow.d.ts +0 -8
  143. package/src/@claude-flow/cli/dist/src/config/moflo-config.d.ts +0 -93
  144. package/src/@claude-flow/cli/dist/src/config-adapter.d.ts +0 -15
  145. package/src/@claude-flow/cli/dist/src/index.d.ts +0 -81
  146. package/src/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
  147. package/src/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +0 -30
  148. package/src/@claude-flow/cli/dist/src/init/executor.d.ts +0 -41
  149. package/src/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +0 -51
  150. package/src/@claude-flow/cli/dist/src/init/index.d.ts +0 -13
  151. package/src/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +0 -29
  152. package/src/@claude-flow/cli/dist/src/init/moflo-init.d.ts +0 -31
  153. package/src/@claude-flow/cli/dist/src/init/settings-generator.d.ts +0 -14
  154. package/src/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +0 -28
  155. package/src/@claude-flow/cli/dist/src/init/types.d.ts +0 -285
  156. package/src/@claude-flow/cli/dist/src/mcp-client.d.ts +0 -92
  157. package/src/@claude-flow/cli/dist/src/mcp-server.d.ts +0 -161
  158. package/src/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +0 -9
  159. package/src/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts +0 -30
  160. package/src/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +0 -38
  161. package/src/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts +0 -83
  162. package/src/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts +0 -13
  163. package/src/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts +0 -12
  164. package/src/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +0 -8
  165. package/src/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts +0 -13
  166. package/src/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts +0 -13
  167. package/src/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts +0 -9
  168. package/src/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts +0 -13
  169. package/src/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -8
  170. package/src/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +0 -44
  171. package/src/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +0 -23
  172. package/src/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +0 -14
  173. package/src/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts +0 -16
  174. package/src/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts +0 -16
  175. package/src/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +0 -14
  176. package/src/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts +0 -18
  177. package/src/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +0 -8
  178. package/src/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +0 -8
  179. package/src/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts +0 -13
  180. package/src/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +0 -8
  181. package/src/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts +0 -13
  182. package/src/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +0 -14
  183. package/src/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +0 -31
  184. package/src/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
  185. package/src/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +0 -271
  186. package/src/@claude-flow/cli/dist/src/memory/intelligence.d.ts +0 -285
  187. package/src/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +0 -413
  188. package/src/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +0 -405
  189. package/src/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts +0 -227
  190. package/src/@claude-flow/cli/dist/src/output.d.ts +0 -133
  191. package/src/@claude-flow/cli/dist/src/parser.d.ts +0 -51
  192. package/src/@claude-flow/cli/dist/src/plugins/manager.d.ts +0 -133
  193. package/src/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +0 -88
  194. package/src/@claude-flow/cli/dist/src/plugins/store/index.d.ts +0 -76
  195. package/src/@claude-flow/cli/dist/src/plugins/store/search.d.ts +0 -46
  196. package/src/@claude-flow/cli/dist/src/plugins/store/types.d.ts +0 -274
  197. package/src/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +0 -7
  198. package/src/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +0 -12
  199. package/src/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +0 -7
  200. package/src/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts +0 -101
  201. package/src/@claude-flow/cli/dist/src/production/error-handler.d.ts +0 -92
  202. package/src/@claude-flow/cli/dist/src/production/index.d.ts +0 -23
  203. package/src/@claude-flow/cli/dist/src/production/monitoring.d.ts +0 -161
  204. package/src/@claude-flow/cli/dist/src/production/rate-limiter.d.ts +0 -80
  205. package/src/@claude-flow/cli/dist/src/production/retry.d.ts +0 -48
  206. package/src/@claude-flow/cli/dist/src/prompt.d.ts +0 -44
  207. package/src/@claude-flow/cli/dist/src/runtime/headless.d.ts +0 -60
  208. package/src/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +0 -67
  209. package/src/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +0 -160
  210. package/src/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +0 -33
  211. package/src/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +0 -175
  212. package/src/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
  213. package/src/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts +0 -195
  214. package/src/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +0 -187
  215. package/src/@claude-flow/cli/dist/src/ruvector/index.d.ts +0 -34
  216. package/src/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts +0 -218
  217. package/src/@claude-flow/cli/dist/src/ruvector/model-router.d.ts +0 -220
  218. package/src/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts +0 -206
  219. package/src/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +0 -211
  220. package/src/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts +0 -77
  221. package/src/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +0 -69
  222. package/src/@claude-flow/cli/dist/src/services/agent-router.d.ts +0 -63
  223. package/src/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts +0 -50
  224. package/src/@claude-flow/cli/dist/src/services/claim-service.d.ts +0 -204
  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/daemon-lock.d.ts +0 -60
  227. package/src/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +0 -304
  228. package/src/@claude-flow/cli/dist/src/services/index.d.ts +0 -13
  229. package/src/@claude-flow/cli/dist/src/services/learning-service.d.ts +0 -161
  230. package/src/@claude-flow/cli/dist/src/services/moflo-require.d.ts +0 -34
  231. package/src/@claude-flow/cli/dist/src/services/registry-api.d.ts +0 -58
  232. package/src/@claude-flow/cli/dist/src/services/ruvector-training.d.ts +0 -214
  233. package/src/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +0 -225
  234. package/src/@claude-flow/cli/dist/src/services/worker-queue.d.ts +0 -194
  235. package/src/@claude-flow/cli/dist/src/services/workflow-gate.d.ts +0 -88
  236. package/src/@claude-flow/cli/dist/src/suggest.d.ts +0 -53
  237. package/src/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +0 -25
  238. package/src/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +0 -13
  239. package/src/@claude-flow/cli/dist/src/transfer/export.d.ts +0 -25
  240. package/src/@claude-flow/cli/dist/src/transfer/index.d.ts +0 -12
  241. package/src/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +0 -109
  242. package/src/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +0 -95
  243. package/src/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +0 -72
  244. package/src/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +0 -49
  245. package/src/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts +0 -82
  246. package/src/@claude-flow/cli/dist/src/transfer/storage/index.d.ts +0 -6
  247. package/src/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +0 -84
  248. package/src/@claude-flow/cli/dist/src/transfer/store/download.d.ts +0 -70
  249. package/src/@claude-flow/cli/dist/src/transfer/store/index.d.ts +0 -84
  250. package/src/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +0 -76
  251. package/src/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +0 -58
  252. package/src/@claude-flow/cli/dist/src/transfer/store/search.d.ts +0 -54
  253. package/src/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +0 -12
  254. package/src/@claude-flow/cli/dist/src/transfer/store/types.d.ts +0 -193
  255. package/src/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +0 -6
  256. package/src/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +0 -7
  257. package/src/@claude-flow/cli/dist/src/transfer/types.d.ts +0 -245
  258. package/src/@claude-flow/cli/dist/src/types.d.ts +0 -198
  259. package/src/@claude-flow/cli/dist/src/update/checker.d.ts +0 -34
  260. package/src/@claude-flow/cli/dist/src/update/executor.d.ts +0 -32
  261. package/src/@claude-flow/cli/dist/src/update/index.d.ts +0 -33
  262. package/src/@claude-flow/cli/dist/src/update/rate-limiter.d.ts +0 -20
  263. package/src/@claude-flow/cli/dist/src/update/validator.d.ts +0 -17
  264. package/src/@claude-flow/guidance/dist/adversarial.d.ts +0 -284
  265. package/src/@claude-flow/guidance/dist/analyzer.d.ts +0 -530
  266. package/src/@claude-flow/guidance/dist/artifacts.d.ts +0 -283
  267. package/src/@claude-flow/guidance/dist/authority.d.ts +0 -290
  268. package/src/@claude-flow/guidance/dist/capabilities.d.ts +0 -209
  269. package/src/@claude-flow/guidance/dist/coherence.d.ts +0 -233
  270. package/src/@claude-flow/guidance/dist/compiler.d.ts +0 -87
  271. package/src/@claude-flow/guidance/dist/conformance-kit.d.ts +0 -225
  272. package/src/@claude-flow/guidance/dist/continue-gate.d.ts +0 -214
  273. package/src/@claude-flow/guidance/dist/crypto-utils.d.ts +0 -17
  274. package/src/@claude-flow/guidance/dist/evolution.d.ts +0 -282
  275. package/src/@claude-flow/guidance/dist/gates.d.ts +0 -79
  276. package/src/@claude-flow/guidance/dist/gateway.d.ts +0 -206
  277. package/src/@claude-flow/guidance/dist/generators.d.ts +0 -153
  278. package/src/@claude-flow/guidance/dist/headless.d.ts +0 -177
  279. package/src/@claude-flow/guidance/dist/hooks.d.ts +0 -109
  280. package/src/@claude-flow/guidance/dist/index.d.ts +0 -205
  281. package/src/@claude-flow/guidance/dist/ledger.d.ts +0 -162
  282. package/src/@claude-flow/guidance/dist/manifest-validator.d.ts +0 -289
  283. package/src/@claude-flow/guidance/dist/memory-gate.d.ts +0 -222
  284. package/src/@claude-flow/guidance/dist/meta-governance.d.ts +0 -265
  285. package/src/@claude-flow/guidance/dist/optimizer.d.ts +0 -104
  286. package/src/@claude-flow/guidance/dist/persistence.d.ts +0 -189
  287. package/src/@claude-flow/guidance/dist/proof.d.ts +0 -185
  288. package/src/@claude-flow/guidance/dist/retriever.d.ts +0 -116
  289. package/src/@claude-flow/guidance/dist/ruvbot-integration.d.ts +0 -370
  290. package/src/@claude-flow/guidance/dist/temporal.d.ts +0 -426
  291. package/src/@claude-flow/guidance/dist/trust.d.ts +0 -283
  292. package/src/@claude-flow/guidance/dist/truth-anchors.d.ts +0 -276
  293. package/src/@claude-flow/guidance/dist/types.d.ts +0 -378
  294. package/src/@claude-flow/guidance/dist/uncertainty.d.ts +0 -372
  295. package/src/@claude-flow/guidance/dist/wasm-kernel.d.ts +0 -48
  296. package/src/@claude-flow/memory/dist/agent-memory-scope.d.ts +0 -131
  297. package/src/@claude-flow/memory/dist/agent-memory-scope.test.d.ts +0 -8
  298. package/src/@claude-flow/memory/dist/agentdb-adapter.d.ts +0 -165
  299. package/src/@claude-flow/memory/dist/agentdb-backend.d.ts +0 -212
  300. package/src/@claude-flow/memory/dist/agentdb-backend.test.d.ts +0 -7
  301. package/src/@claude-flow/memory/dist/application/commands/delete-memory.command.d.ts +0 -65
  302. package/src/@claude-flow/memory/dist/application/commands/store-memory.command.d.ts +0 -48
  303. package/src/@claude-flow/memory/dist/application/index.d.ts +0 -12
  304. package/src/@claude-flow/memory/dist/application/queries/search-memory.query.d.ts +0 -72
  305. package/src/@claude-flow/memory/dist/application/services/memory-application-service.d.ts +0 -121
  306. package/src/@claude-flow/memory/dist/auto-memory-bridge.d.ts +0 -226
  307. package/src/@claude-flow/memory/dist/auto-memory-bridge.test.d.ts +0 -8
  308. package/src/@claude-flow/memory/dist/benchmark.test.d.ts +0 -2
  309. package/src/@claude-flow/memory/dist/cache-manager.d.ts +0 -134
  310. package/src/@claude-flow/memory/dist/controller-registry.d.ts +0 -216
  311. package/src/@claude-flow/memory/dist/controller-registry.test.d.ts +0 -14
  312. package/src/@claude-flow/memory/dist/database-provider.d.ts +0 -87
  313. package/src/@claude-flow/memory/dist/database-provider.test.d.ts +0 -7
  314. package/src/@claude-flow/memory/dist/domain/entities/memory-entry.d.ts +0 -143
  315. package/src/@claude-flow/memory/dist/domain/index.d.ts +0 -11
  316. package/src/@claude-flow/memory/dist/domain/repositories/memory-repository.interface.d.ts +0 -102
  317. package/src/@claude-flow/memory/dist/domain/services/memory-domain-service.d.ts +0 -105
  318. package/src/@claude-flow/memory/dist/hnsw-index.d.ts +0 -111
  319. package/src/@claude-flow/memory/dist/hnsw-lite.d.ts +0 -23
  320. package/src/@claude-flow/memory/dist/hybrid-backend.d.ts +0 -245
  321. package/src/@claude-flow/memory/dist/hybrid-backend.test.d.ts +0 -8
  322. package/src/@claude-flow/memory/dist/index.d.ts +0 -204
  323. package/src/@claude-flow/memory/dist/infrastructure/index.d.ts +0 -17
  324. package/src/@claude-flow/memory/dist/infrastructure/repositories/hybrid-memory-repository.d.ts +0 -66
  325. package/src/@claude-flow/memory/dist/learning-bridge.d.ts +0 -137
  326. package/src/@claude-flow/memory/dist/learning-bridge.test.d.ts +0 -8
  327. package/src/@claude-flow/memory/dist/memory-graph.d.ts +0 -100
  328. package/src/@claude-flow/memory/dist/memory-graph.test.d.ts +0 -8
  329. package/src/@claude-flow/memory/dist/migration.d.ts +0 -68
  330. package/src/@claude-flow/memory/dist/persistent-sona.d.ts +0 -144
  331. package/src/@claude-flow/memory/dist/query-builder.d.ts +0 -211
  332. package/src/@claude-flow/memory/dist/rvf-backend.d.ts +0 -51
  333. package/src/@claude-flow/memory/dist/rvf-learning-store.d.ts +0 -139
  334. package/src/@claude-flow/memory/dist/rvf-migration.d.ts +0 -45
  335. package/src/@claude-flow/memory/dist/sqlite-backend.d.ts +0 -121
  336. package/src/@claude-flow/memory/dist/sqljs-backend.d.ts +0 -127
  337. package/src/@claude-flow/memory/dist/types.d.ts +0 -484
  338. package/src/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
  339. package/src/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
  340. package/src/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
  341. package/src/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
  342. package/src/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
  343. package/src/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
  344. package/src/@claude-flow/shared/dist/core/index.d.ts +0 -15
  345. package/src/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
  346. package/src/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
  347. package/src/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
  348. package/src/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
  349. package/src/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
  350. package/src/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
  351. package/src/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
  352. package/src/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
  353. package/src/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
  354. package/src/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
  355. package/src/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
  356. package/src/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
  357. package/src/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
  358. package/src/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
  359. package/src/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
  360. package/src/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
  361. package/src/@claude-flow/shared/dist/events/index.d.ts +0 -21
  362. package/src/@claude-flow/shared/dist/events/projections.d.ts +0 -177
  363. package/src/@claude-flow/shared/dist/events/rvf-event-log.d.ts +0 -82
  364. package/src/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
  365. package/src/@claude-flow/shared/dist/events.d.ts +0 -80
  366. package/src/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
  367. package/src/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
  368. package/src/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
  369. package/src/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
  370. package/src/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
  371. package/src/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
  372. package/src/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
  373. package/src/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
  374. package/src/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
  375. package/src/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
  376. package/src/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
  377. package/src/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
  378. package/src/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
  379. package/src/@claude-flow/shared/dist/index.d.ts +0 -20
  380. package/src/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
  381. package/src/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
  382. package/src/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
  383. package/src/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
  384. package/src/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
  385. package/src/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
  386. package/src/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
  387. package/src/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
  388. package/src/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
  389. package/src/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
  390. package/src/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
  391. package/src/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
  392. package/src/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
  393. package/src/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
  394. package/src/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
  395. package/src/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
  396. package/src/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
  397. package/src/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
  398. package/src/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
  399. package/src/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
  400. package/src/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
  401. package/src/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
  402. package/src/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
  403. package/src/@claude-flow/shared/dist/security/index.d.ts +0 -10
  404. package/src/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
  405. package/src/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
  406. package/src/@claude-flow/shared/dist/services/index.d.ts +0 -7
  407. package/src/@claude-flow/shared/dist/services/v3-progress.service.d.ts +0 -124
  408. package/src/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
  409. package/src/@claude-flow/shared/dist/types/index.d.ts +0 -11
  410. package/src/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
  411. package/src/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
  412. package/src/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
  413. package/src/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
  414. package/src/@claude-flow/shared/dist/types.d.ts +0 -197
  415. package/src/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
@@ -1,583 +0,0 @@
1
- ---
2
- name: flo
3
- description: MoFlo ticket workflow - analyze and execute GitHub issues
4
- arguments: "[options] <issue-number | title>"
5
- ---
6
-
7
- # /flo - MoFlo Ticket Workflow
8
-
9
- Research, create tickets for, and execute GitHub issues automatically.
10
-
11
- **Arguments:** $ARGUMENTS
12
-
13
- ## Usage
14
-
15
- ```
16
- /flo <issue-number> # Full workflow in NORMAL mode (default)
17
- /flo -t <issue-number> # Ticket only: research and update ticket, then STOP
18
- /flo -t <title> # Create a NEW ticket with description, acceptance criteria, test cases
19
- /flo --ticket <issue-number|title> # Same as -t
20
- /flo -r <issue-number> # Research only: analyze issue, output findings
21
- /flo --research <issue-number> # Same as -r
22
- ```
23
-
24
- Also available as `/fl` (shorthand alias).
25
-
26
- ### Execution Mode (how work is done)
27
-
28
- ```
29
- /flo 123 # NORMAL mode (default) - single-agent execution
30
- /flo -s 123 # SWARM mode - multi-agent coordination
31
- /flo --swarm 123 # Same as -s
32
- /flo -h 123 # HIVE-MIND mode - consensus-based coordination
33
- /flo --hive 123 # Same as -h
34
- /flo -n 123 # NORMAL mode - single Claude, no agents
35
- /flo --normal 123 # Same as -n
36
- ```
37
-
38
- ### Epic Handling
39
-
40
- ```
41
- /flo 42 # If #42 is an epic, processes all stories sequentially
42
- ```
43
-
44
- **Epic Detection:** An issue is automatically detected as an epic if ANY of these are true:
45
- - Has a label matching: `epic`, `tracking`, `parent`, or `umbrella` (case-insensitive)
46
- - Body contains `## Stories` or `## Tasks` sections
47
- - Body has checklist-linked issues: `- [ ] #123`
48
- - Body has numbered issue references: `1. #123`
49
- - The issue has GitHub sub-issues (via `subIssues` API field)
50
-
51
- **Sequential Processing:** When an epic is selected:
52
- 1. List all child stories/tasks (from checklist or linked issues)
53
- 2. Process each story **one at a time** in order
54
- 3. Each story goes through the full workflow (research -> ticket -> implement -> test -> PR)
55
- 4. After each story's PR is created, move to the next story
56
- 5. Continue until all stories are complete
57
-
58
- ### Combined Examples
59
-
60
- ```
61
- /flo 123 # Normal + full workflow (default) - includes ALL tests
62
- /flo 42 # If #42 is epic, processes stories sequentially
63
- /flo -s 123 # Swarm + full workflow (multi-agent coordination)
64
- /flo -t 123 # Normal + ticket only (no implementation)
65
- /flo -h -t 123 # Hive-mind + ticket only
66
- /flo -s -r 123 # Swarm + research only
67
- /flo --swarm --ticket 123 # Explicit swarm + ticket only
68
- /flo -n 123 # Normal (explicit, same as default)
69
- ```
70
-
71
- ## NORMAL MODE IS THE DEFAULT
72
-
73
- By default, /flo runs in NORMAL mode — single-agent execution without
74
- spawning sub-agents. This is efficient for most tasks.
75
-
76
- Use `-s`/`--swarm` for multi-agent coordination when the task warrants it.
77
- Use `-h`/`--hive` for consensus-based coordination on architecture decisions.
78
-
79
- POST-TASK NEURAL LEARNING ALWAYS RUNS regardless of execution mode.
80
- The hooks system collects learnings after every task completion — normal,
81
- swarm, or hive-mind.
82
-
83
- ## COMPREHENSIVE TESTING REQUIREMENT
84
-
85
- ALL tests MUST pass BEFORE PR creation - NO EXCEPTIONS.
86
- - Unit Tests: MANDATORY for all new/modified code
87
- - Integration Tests: MANDATORY for API endpoints and services
88
- - E2E Tests: MANDATORY for user-facing features
89
- PR CANNOT BE CREATED until all relevant tests pass.
90
-
91
- ## Workflow Overview
92
-
93
- ```
94
- Research -> Ticket -> Execute -> Testing -> Simplify -> PR+Done
95
-
96
- Research: Fetch issue, search memory, read guidance, find files
97
- Ticket: Create or update GitHub issue with description, acceptance criteria, test cases
98
- Execute: Assign self, create branch, implement changes
99
- Testing: Unit + Integration + E2E tests (ALL MUST PASS - gate)
100
- Simplify: Run /simplify on changed code (gate - must run before PR)
101
- PR+Done: Create PR, update issue status, store learnings
102
- ```
103
-
104
- ### Workflow Gates
105
-
106
- | Gate | Requirement | Blocked Action |
107
- |------|-------------|----------------|
108
- | **Testing Gate** | Unit + Integration + E2E must pass | PR creation |
109
- | **Simplification Gate** | /simplify must run on changed files | PR creation |
110
-
111
- ### Execution Mode (applies to all phases)
112
-
113
- | Mode | Description |
114
- |------|-------------|
115
- | **NORMAL** (default) | Single Claude execution. Efficient for most tasks. |
116
- | **SWARM** (-s) | Multi-agent via Task tool: researcher, coder, tester, reviewer |
117
- | **HIVE-MIND** (-h) | Consensus-based coordination for architecture decisions |
118
-
119
- ## Phase 1: Research (-r or default first step)
120
-
121
- ### 1.1 Fetch Issue Details
122
- ```bash
123
- gh issue view <issue-number> --json number,title,body,labels,state,assignees,comments,milestone
124
- ```
125
-
126
- ### 1.2 Check Ticket Status
127
- Look for `## Acceptance Criteria` marker in issue body.
128
- - **If present**: Ticket already enhanced, skip to execute or confirm
129
- - **If absent**: Proceed with research and ticket update
130
-
131
- ### 1.3 Search Memory FIRST
132
- ALWAYS search memory BEFORE reading guidance or docs files.
133
- Memory has file paths, context, and patterns - often all you need.
134
- Only read guidance files if memory search returns zero relevant results.
135
-
136
- ```bash
137
- npx flo memory search --query "<issue title keywords>" --namespace patterns
138
- npx flo memory search --query "<domain keywords>" --namespace guidance
139
- ```
140
-
141
- Or via MCP: `mcp__moflo__memory_search`
142
-
143
- ### 1.4 Read Guidance Docs (ONLY if memory insufficient)
144
- **Only if memory search returned < 3 relevant results**, read guidance files:
145
- - Bug -> testing patterns, error handling
146
- - Feature -> domain model, architecture
147
- - UI -> frontend patterns, components
148
-
149
- ### 1.5 Research Codebase
150
- Use Task tool with Explore agent to find:
151
- - Affected files and their current state
152
- - Related code and dependencies
153
- - Existing patterns to follow
154
- - Test coverage gaps
155
-
156
- ## Phase 2: Ticket (-t creates or updates a ticket)
157
-
158
- When given an issue number, `-t` enhances the existing ticket. When given a title (non-numeric argument), `-t` creates a new GitHub issue. Either way, the ticket MUST include all three of the following sections.
159
-
160
- ### 2.0 Complexity Assessment (MANDATORY before building ticket)
161
-
162
- After research, assess the complexity of the work. This determines whether the issue stays as a single ticket or gets promoted to an epic with sub-issues.
163
-
164
- **Complexity Signals — count how many apply:**
165
-
166
- | Signal | Weight | Example |
167
- |--------|--------|---------|
168
- | Multiple files changed (5+) | +2 | Touches models, API, tests, docs, config |
169
- | New module or package | +2 | Requires new directory structure |
170
- | Cross-cutting concern | +2 | Auth, logging, error handling across layers |
171
- | Database/schema changes | +2 | Migrations, new tables, index changes |
172
- | Multiple independent work streams | +3 | Frontend + backend + infra changes |
173
- | External API integration | +1 | Third-party service, webhook, OAuth |
174
- | Breaking change / migration | +2 | Requires deprecation, data migration |
175
- | Significant test surface | +1 | Needs 10+ new test cases across categories |
176
- | Security implications | +1 | Authentication, authorization, input validation |
177
- | UI + backend changes together | +2 | Full-stack feature spanning layers |
178
-
179
- **Complexity Thresholds:**
180
-
181
- | Score | Classification | Action |
182
- |-------|---------------|--------|
183
- | 0–3 | **Simple** | Single ticket — proceed normally |
184
- | 4–6 | **Moderate** | Single ticket — flag in description that it may benefit from splitting |
185
- | 7+ | **Complex** | **PROMOTE TO EPIC** — decompose into sub-issues |
186
-
187
- **When promoting to epic:**
188
-
189
- 1. Decompose the work into 2–6 independent, shippable stories
190
- 2. Each story should be completable in a single PR
191
- 3. Stories should have clear boundaries (one concern per story)
192
- 4. Order stories by dependency (independent ones first)
193
- 5. Create each story as a GitHub issue with its own Description, Acceptance Criteria, and Test Cases
194
- 6. Create or convert the parent issue into an epic with a `## Stories` checklist
195
-
196
- ```javascript
197
- // Complexity assessment pseudocode
198
- function assessComplexity(research) {
199
- let score = 0;
200
- if (research.affectedFiles.length >= 5) score += 2;
201
- if (research.requiresNewModule) score += 2;
202
- if (research.crossCutting) score += 2;
203
- if (research.schemaChanges) score += 2;
204
- if (research.independentWorkStreams >= 2) score += 3;
205
- if (research.externalAPIs) score += 1;
206
- if (research.breakingChanges) score += 2;
207
- if (research.estimatedTestCases >= 10) score += 1;
208
- if (research.securityImplications) score += 1;
209
- if (research.fullStack) score += 2;
210
- return score;
211
- }
212
- ```
213
-
214
- ### 2.0.1 Epic Decomposition (when score >= 7)
215
-
216
- When complexity warrants an epic, decompose into stories:
217
-
218
- ```bash
219
- # Step 1: Create each sub-issue
220
- gh issue create --title "Story: <story-title>" --body "<## Description + ## Acceptance Criteria + ## Suggested Test Cases>" --label "story"
221
- # Capture the new issue number from output
222
-
223
- # Step 2: Repeat for all stories (2-6 stories typically)
224
-
225
- # Step 3: Build the epic body with checklist referencing ALL story issue numbers
226
- # Step 4: If updating an existing issue, convert it to epic:
227
- gh issue edit <parent-number> --add-label "epic" --body "<epic body with ## Stories checklist>"
228
-
229
- # Step 5: If creating new, create the epic:
230
- gh issue create --title "Epic: <title>" --label "epic" --body "<epic body>"
231
- ```
232
-
233
- **Epic body format (MANDATORY — this is how tracking works):**
234
-
235
- ```markdown
236
- ## Overview
237
- <High-level description of the epic goal>
238
-
239
- ## Stories
240
-
241
- - [ ] #<story-1-number> <story-1-title>
242
- - [ ] #<story-2-number> <story-2-title>
243
- - [ ] #<story-3-number> <story-3-title>
244
-
245
- ## Complexity Assessment
246
- Score: <N>/20 — <Simple|Moderate|Complex>
247
- Signals: <list of signals that triggered>
248
- ```
249
-
250
- The `## Stories` checklist with `- [ ] #<number>` format is **mandatory** — this is what enables:
251
- - Epic detection by the `/flo` skill
252
- - Story extraction for sequential processing
253
- - Progress tracking via checked/unchecked items
254
-
255
- ### 2.1 Build Ticket Content
256
- Compile research into a well-structured ticket. The issue MUST include all three of the following sections:
257
-
258
- **Detailed Description** — Clear, thorough explanation of what needs to be done and why. Include:
259
- - Root cause analysis (bugs) or approach rationale (features)
260
- - Impact and risk factors
261
- - Affected files (with line numbers), new files, deletions
262
- - Implementation plan: numbered steps with clear actions, dependencies, decision points
263
-
264
- **Acceptance Criteria** — Specific, testable conditions that must be true for this issue to be considered complete. Write as a checklist:
265
- - [ ] Criterion 1 (e.g., "API returns 200 with valid token")
266
- - [ ] Criterion 2 (e.g., "Error message shown when input exceeds 255 chars")
267
- - [ ] ...each criterion must be independently verifiable
268
-
269
- **Suggested Test Cases** — Concrete test scenarios covering happy path, edge cases, and error conditions:
270
- - Test case 1: description, input, expected output
271
- - Test case 2: description, input, expected output
272
- - Include unit, integration, and E2E test suggestions as appropriate
273
-
274
- ### 2.2 Create or Update GitHub Issue
275
-
276
- **If issue number was given** (update existing):
277
- ```bash
278
- gh issue edit <issue-number> --body "<original body + ## Description + ## Acceptance Criteria + ## Suggested Test Cases>"
279
- gh issue comment <issue-number> --body "Ticket enhanced with description, acceptance criteria, and test cases. Ready for execution."
280
- ```
281
-
282
- **If title was given** (create new):
283
- ```bash
284
- gh issue create --title "<title>" --body "<## Description + ## Acceptance Criteria + ## Suggested Test Cases>"
285
- ```
286
- Print the new issue URL so the user can see it.
287
-
288
- ## Phase 3: Execute (default, runs automatically after ticket)
289
-
290
- ### 3.1 Assign Issue and Update Status
291
- ```bash
292
- gh issue edit <issue-number> --add-assignee @me
293
- gh issue edit <issue-number> --add-label "in-progress"
294
- ```
295
-
296
- ### 3.2 Create Branch
297
- ```bash
298
- git checkout main && git pull origin main
299
- git checkout -b <type>/<issue-number>-<short-desc>
300
- ```
301
- Types: `feature/`, `fix/`, `refactor/`, `docs/`
302
-
303
- ### 3.3 Implement
304
- Follow the implementation plan from the ticket. No prompts - execute all steps.
305
-
306
- ## Phase 4: Testing (MANDATORY GATE)
307
-
308
- This is NOT optional. ALL applicable test types must pass for the change type.
309
- WORKFLOW STOPS HERE until tests pass. No shortcuts. No exceptions.
310
-
311
- ### 4.1 Write and Run Tests
312
- Write unit, integration, and E2E tests as appropriate for the change type.
313
- Follow the project's established test style, runner, and patterns. If no existing tests or test guidance is present, choose the best options for the project's language and stack, taking compatibility with existing dependencies into account.
314
-
315
- ### 4.2 Test Auto-Fix Loop
316
- If any tests fail, enter the auto-fix loop (max 3 retries OR 10 minutes):
317
- 1. Run all tests
318
- 2. If ALL pass -> proceed to simplification
319
- 3. If ANY fail: analyze failure, fix test or implementation code, retry
320
- 4. If retries exhausted -> STOP and report to user
321
-
322
- ## Phase 4.5: Code Simplification (MANDATORY)
323
-
324
- The built-in /simplify command reviews ALL changed code for:
325
- - Reuse opportunities and code quality
326
- - Efficiency improvements
327
- - Consistency with existing codebase patterns
328
- - Preserves ALL functionality - no behavior changes
329
-
330
- If /simplify makes changes -> re-run tests to confirm nothing broke.
331
- If re-tests fail -> revert changes, proceed with original code.
332
-
333
- ## Phase 5: Commit and PR (only after tests pass)
334
-
335
- ### 5.1 Commit
336
- ```bash
337
- git add <specific files>
338
- git commit -m "type(scope): description
339
-
340
- Closes #<issue-number>
341
-
342
- Co-Authored-By: Claude <noreply@anthropic.com>"
343
- ```
344
-
345
- ### 5.2 Create PR
346
- ```bash
347
- git push -u origin <branch-name>
348
- gh pr create --title "type(scope): description" --body "## Summary
349
- <brief description>
350
-
351
- ## Changes
352
- <bullet list>
353
-
354
- ## Testing
355
- - [x] Unit tests pass
356
- - [x] Integration tests pass
357
- - [x] E2E tests pass
358
- - [ ] Manual testing done
359
-
360
- Closes #<issue-number>"
361
- ```
362
-
363
- ### 5.3 Update Issue Status
364
- ```bash
365
- gh issue edit <issue-number> --remove-label "in-progress" --add-label "ready-for-review"
366
- gh issue comment <issue-number> --body "PR created: <pr-url>"
367
- ```
368
-
369
- ## Epic Handling
370
-
371
- ### Detecting Epics
372
-
373
- An issue is an **epic** if:
374
- 1. It has the `epic` label, OR
375
- 2. Its body contains `## Stories` or `## Tasks` sections, OR
376
- 3. It has linked child issues (via `- [ ] #123` checklist format)
377
-
378
- ### Epic Processing Flow
379
-
380
- 1. DETECT EPIC - Check labels, parse body for ## Stories / ## Tasks, extract issue references
381
- 2. LIST ALL STORIES - Extract from checklist, order top-to-bottom as listed
382
- 3. SEQUENTIAL PROCESSING - For each story:
383
- a. Run full /flo workflow (research -> ticket -> implement -> test -> PR)
384
- b. After PR is created, **check off the story** in the epic body
385
- c. Move to the next unchecked story
386
- 4. COMPLETION - All stories checked off, epic marked as ready-for-review
387
-
388
- ONE STORY AT A TIME - NO PARALLEL STORY EXECUTION.
389
- Each story must complete (PR created) before starting next.
390
-
391
- ### Epic Checklist Tracking (MANDATORY)
392
-
393
- After each story's PR is created, update the epic body to check off that story:
394
-
395
- ```bash
396
- # 1. Fetch current epic body
397
- EPIC_BODY=$(gh issue view <epic-number> --json body -q '.body')
398
-
399
- # 2. Replace "- [ ] #<story-number>" with "- [x] #<story-number>"
400
- UPDATED_BODY=$(echo "$EPIC_BODY" | sed 's/- \[ \] #<story-number>/- [x] #<story-number>/')
401
-
402
- # 3. Update the epic
403
- gh issue edit <epic-number> --body "$UPDATED_BODY"
404
-
405
- # 4. Comment on the epic with progress
406
- gh issue comment <epic-number> --body "✅ Story #<story-number> completed — PR: <pr-url>"
407
- ```
408
-
409
- This applies to ALL epics, regardless of how they were created:
410
- - Epics created by `/flo -t` complexity promotion
411
- - Epics created manually by users
412
- - Epics detected from existing issues
413
-
414
- The checklist state (`[ ]` vs `[x]`) is the **single source of truth** for epic progress.
415
-
416
- ### Epic Detection Code
417
-
418
- ```javascript
419
- function isEpic(issue) {
420
- // Label-based detection (case-insensitive)
421
- const epicLabels = ['epic', 'tracking', 'parent', 'umbrella'];
422
- if (issue.labels?.some(l => epicLabels.includes(l.name.toLowerCase()))) return true;
423
- // Section-based detection
424
- if (issue.body?.includes('## Stories') || issue.body?.includes('## Tasks')) return true;
425
- // Checklist-linked issues: - [ ] #123 or - [x] #123
426
- if (/- \[[ x]\] #\d+/.test(issue.body)) return true;
427
- // Numbered issue references: 1. #123
428
- if (/\d+\.\s+#\d+/.test(issue.body)) return true;
429
- // GitHub sub-issues API
430
- if (issue.subIssues?.length > 0) return true;
431
- return false;
432
- }
433
-
434
- function extractStories(epicBody) {
435
- const stories = [];
436
- // Checklist format: - [ ] #123
437
- const checklistPattern = /- \[[ ]\] #(\d+)/g;
438
- let match;
439
- while ((match = checklistPattern.exec(epicBody)) !== null) {
440
- stories.push(parseInt(match[1]));
441
- }
442
- // Numbered format: 1. #123
443
- if (stories.length === 0) {
444
- const numberedPattern = /\d+\.\s+#(\d+)/g;
445
- while ((match = numberedPattern.exec(epicBody)) !== null) {
446
- stories.push(parseInt(match[1]));
447
- }
448
- }
449
- return stories;
450
- }
451
- ```
452
-
453
- ## Parse Arguments
454
-
455
- ```javascript
456
- const args = "$ARGUMENTS".trim().split(/\s+/);
457
- let workflowMode = "full"; // full, ticket, research
458
- let execMode = "normal"; // normal (default), swarm, hive
459
- let issueNumber = null;
460
- let titleWords = [];
461
-
462
- for (let i = 0; i < args.length; i++) {
463
- const arg = args[i];
464
-
465
- // Workflow mode (what to do)
466
- if (arg === "-t" || arg === "--ticket") {
467
- workflowMode = "ticket";
468
- } else if (arg === "-r" || arg === "--research") {
469
- workflowMode = "research";
470
- }
471
-
472
- // Execution mode (how to do it)
473
- else if (arg === "-s" || arg === "--swarm") {
474
- execMode = "swarm";
475
- } else if (arg === "-h" || arg === "--hive") {
476
- execMode = "hive";
477
- } else if (arg === "-n" || arg === "--normal") {
478
- execMode = "normal";
479
- }
480
-
481
- // Issue number or title text
482
- else if (/^\d+$/.test(arg)) {
483
- issueNumber = arg;
484
- } else {
485
- // Non-flag, non-numeric argument — collect as title words
486
- titleWords.push(arg);
487
- }
488
- }
489
-
490
- // In ticket mode, a title can be given instead of an issue number
491
- let ticketTitle = titleWords.join(" ");
492
- if (!issueNumber && !ticketTitle) {
493
- throw new Error("Issue number or title required. Usage: /flo <issue-number | title>");
494
- }
495
- if (!issueNumber && workflowMode !== "ticket") {
496
- throw new Error("Issue number required for full/research mode. Use -t for new tickets.");
497
- }
498
-
499
- // Log execution mode to prevent silent skipping
500
- console.log("Execution mode: " + execMode.toUpperCase());
501
- if (execMode === "swarm") {
502
- console.log("SWARM MODE: Will spawn agents via Task tool. Do NOT skip this.");
503
- }
504
- console.log("TESTING: Unit + Integration + E2E tests REQUIRED before PR.");
505
- console.log("SIMPLIFY: /simplify command runs on changed code before PR.");
506
- ```
507
-
508
- ## Execution Flow
509
-
510
- ### Workflow Modes (what to do)
511
-
512
- | Mode | Command | Steps | Stops After |
513
- |------|---------|-------|-------------|
514
- | **Full** (default) | `/flo 123` | Research -> Ticket -> Implement -> Test -> Simplify -> PR | PR created |
515
- | **Epic** | `/flo 42` (epic) | For each story: Full workflow sequentially | All story PRs created |
516
- | **Ticket** | `/flo -t 123` | Research -> Ticket | Issue updated |
517
- | **Research** | `/flo -r 123` | Research | Findings output |
518
-
519
- ### Execution Modes (how to do it)
520
-
521
- | Mode | Flag | Description | When to Use |
522
- |------|------|-------------|-------------|
523
- | **Normal** (DEFAULT) | `-n`, `--normal` | Single Claude, no agents | Default for most tasks |
524
- | **Swarm** | `-s`, `--swarm` | Multi-agent via Task tool | Complex multi-file changes |
525
- | **Hive-Mind** | `-h`, `--hive` | Consensus-based coordination | Architecture decisions, tradeoffs |
526
-
527
- ## Execution Mode Details
528
-
529
- ### SWARM Mode (-s, --swarm)
530
-
531
- When swarm is requested, you MUST use the Task tool to spawn agents. No exceptions.
532
-
533
- **Swarm spawns these agents via Task tool:**
534
- - `researcher` - Analyzes issue, searches memory, finds patterns
535
- - `coder` - Implements changes following plan
536
- - `tester` - Writes and runs tests
537
- - `/simplify` - Built-in command that reviews changed code before PR
538
- - `reviewer` - Reviews code before PR
539
-
540
- **Swarm execution pattern:**
541
- ```javascript
542
- // 1. Create task list FIRST
543
- TaskCreate({ subject: "Research issue #123", ... })
544
- TaskCreate({ subject: "Implement changes", ... })
545
- TaskCreate({ subject: "Test implementation", ... })
546
- TaskCreate({ subject: "Run /simplify on changed files", ... })
547
- TaskCreate({ subject: "Review and PR", ... })
548
-
549
- // 2. Init swarm
550
- Bash("npx flo swarm init --topology hierarchical --max-agents 8 --strategy specialized")
551
-
552
- // 3. Spawn agents with Task tool (run_in_background: true)
553
- Task({ prompt: "...", subagent_type: "researcher", run_in_background: true })
554
- Task({ prompt: "...", subagent_type: "coder", run_in_background: true })
555
-
556
- // 4. Wait for results, synthesize, continue
557
- ```
558
-
559
- ### HIVE-MIND Mode (-h, --hive)
560
-
561
- Use for consensus-based decisions:
562
- - Architecture choices
563
- - Approach tradeoffs
564
- - Design decisions with multiple valid options
565
-
566
- ### NORMAL Mode (Default)
567
-
568
- Single Claude execution without spawning sub-agents.
569
- - Still uses Task tool for tracking
570
- - Still creates tasks for visibility
571
- - Post-task neural learning hooks still fire
572
- - Just doesn't spawn multiple agents
573
-
574
- ---
575
-
576
- **Full mode executes without prompts.** It will:
577
- 1. Research the issue and codebase
578
- 2. Enhance the GitHub issue with implementation plan
579
- 3. Assign issue to self, add "in-progress" label
580
- 4. Create branch, implement, test
581
- 5. Run /simplify on changed code, re-test if changes made
582
- 6. Commit, create PR, update issue status
583
- 7. Store learnings