moflo 4.8.31 → 4.8.32

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 (388) hide show
  1. package/bin/generate-code-map.mjs +1 -1
  2. package/bin/index-guidance.mjs +1 -1
  3. package/bin/index-tests.mjs +1 -1
  4. package/bin/setup-project.mjs +1 -1
  5. package/package.json +6 -7
  6. package/src/@claude-flow/cli/package.json +106 -106
  7. package/.claude/agents/browser/browser-agent.yaml +0 -182
  8. package/.claude/agents/database-specialist.yaml +0 -21
  9. package/.claude/agents/index.yaml +0 -17
  10. package/.claude/agents/project-coordinator.yaml +0 -15
  11. package/.claude/agents/python-specialist.yaml +0 -21
  12. package/.claude/agents/security-auditor.yaml +0 -20
  13. package/.claude/agents/typescript-specialist.yaml +0 -21
  14. package/.claude/checkpoints/1767754460.json +0 -8
  15. package/.claude/config/v3-dependency-optimization.json +0 -266
  16. package/.claude/config/v3-performance-targets.json +0 -251
  17. package/.claude/guidance/moflo-bootstrap.md +0 -129
  18. package/.claude/mcp.json +0 -13
  19. package/.claude/settings.json +0 -351
  20. package/.claude/settings.local.json +0 -18
  21. package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
  22. package/.claude/skills/agentdb-learning/SKILL.md +0 -545
  23. package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
  24. package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
  25. package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
  26. package/.claude/skills/browser/SKILL.md +0 -204
  27. package/.claude/skills/fl/SKILL.md +0 -583
  28. package/.claude/skills/flo/SKILL.md +0 -583
  29. package/.claude/skills/github-code-review/SKILL.md +0 -1140
  30. package/.claude/skills/github-multi-repo/SKILL.md +0 -874
  31. package/.claude/skills/github-project-management/SKILL.md +0 -1277
  32. package/.claude/skills/github-release-management/SKILL.md +0 -1081
  33. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
  34. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  35. package/.claude/skills/hooks-automation/SKILL.md +0 -1201
  36. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  37. package/.claude/skills/performance-analysis/SKILL.md +0 -563
  38. package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
  39. package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
  40. package/.claude/skills/skill-builder/SKILL.md +0 -910
  41. package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
  42. package/.claude/skills/stream-chain/SKILL.md +0 -563
  43. package/.claude/skills/swarm-advanced/SKILL.md +0 -973
  44. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  45. package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
  46. package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
  47. package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
  48. package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
  49. package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
  50. package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
  51. package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
  52. package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
  53. package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
  54. package/.claude/skills/verification-quality/SKILL.md +0 -649
  55. package/.claude/skills/worker-benchmarks/skill.md +0 -135
  56. package/.claude/skills/worker-integration/skill.md +0 -154
  57. package/.claude/workflow-state.json +0 -9
  58. package/src/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts +0 -91
  59. package/src/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts +0 -102
  60. package/src/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts +0 -44
  61. package/src/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts +0 -97
  62. package/src/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts +0 -111
  63. package/src/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts +0 -69
  64. package/src/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts +0 -123
  65. package/src/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -58
  66. package/src/@claude-flow/cli/dist/src/commands/agent.d.ts +0 -8
  67. package/src/@claude-flow/cli/dist/src/commands/analyze.d.ts +0 -19
  68. package/src/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts +0 -9
  69. package/src/@claude-flow/cli/dist/src/commands/appliance.d.ts +0 -8
  70. package/src/@claude-flow/cli/dist/src/commands/benchmark.d.ts +0 -10
  71. package/src/@claude-flow/cli/dist/src/commands/claims.d.ts +0 -10
  72. package/src/@claude-flow/cli/dist/src/commands/completions.d.ts +0 -10
  73. package/src/@claude-flow/cli/dist/src/commands/config.d.ts +0 -8
  74. package/src/@claude-flow/cli/dist/src/commands/daemon.d.ts +0 -8
  75. package/src/@claude-flow/cli/dist/src/commands/deployment.d.ts +0 -10
  76. package/src/@claude-flow/cli/dist/src/commands/diagnose.d.ts +0 -16
  77. package/src/@claude-flow/cli/dist/src/commands/doctor.d.ts +0 -10
  78. package/src/@claude-flow/cli/dist/src/commands/embeddings.d.ts +0 -18
  79. package/src/@claude-flow/cli/dist/src/commands/gate.d.ts +0 -23
  80. package/src/@claude-flow/cli/dist/src/commands/github.d.ts +0 -12
  81. package/src/@claude-flow/cli/dist/src/commands/guidance.d.ts +0 -8
  82. package/src/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +0 -11
  83. package/src/@claude-flow/cli/dist/src/commands/hooks.d.ts +0 -8
  84. package/src/@claude-flow/cli/dist/src/commands/index.d.ts +0 -115
  85. package/src/@claude-flow/cli/dist/src/commands/init.d.ts +0 -8
  86. package/src/@claude-flow/cli/dist/src/commands/issues.d.ts +0 -21
  87. package/src/@claude-flow/cli/dist/src/commands/mcp.d.ts +0 -11
  88. package/src/@claude-flow/cli/dist/src/commands/memory.d.ts +0 -8
  89. package/src/@claude-flow/cli/dist/src/commands/migrate.d.ts +0 -8
  90. package/src/@claude-flow/cli/dist/src/commands/neural.d.ts +0 -10
  91. package/src/@claude-flow/cli/dist/src/commands/orc.d.ts +0 -21
  92. package/src/@claude-flow/cli/dist/src/commands/performance.d.ts +0 -10
  93. package/src/@claude-flow/cli/dist/src/commands/plugins.d.ts +0 -11
  94. package/src/@claude-flow/cli/dist/src/commands/process.d.ts +0 -10
  95. package/src/@claude-flow/cli/dist/src/commands/progress.d.ts +0 -11
  96. package/src/@claude-flow/cli/dist/src/commands/providers.d.ts +0 -10
  97. package/src/@claude-flow/cli/dist/src/commands/route.d.ts +0 -16
  98. package/src/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts +0 -11
  99. package/src/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -11
  100. package/src/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts +0 -18
  101. package/src/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts +0 -29
  102. package/src/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts +0 -11
  103. package/src/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts +0 -11
  104. package/src/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts +0 -11
  105. package/src/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts +0 -18
  106. package/src/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts +0 -11
  107. package/src/@claude-flow/cli/dist/src/commands/security.d.ts +0 -10
  108. package/src/@claude-flow/cli/dist/src/commands/session.d.ts +0 -8
  109. package/src/@claude-flow/cli/dist/src/commands/start.d.ts +0 -8
  110. package/src/@claude-flow/cli/dist/src/commands/status.d.ts +0 -8
  111. package/src/@claude-flow/cli/dist/src/commands/swarm.d.ts +0 -8
  112. package/src/@claude-flow/cli/dist/src/commands/task.d.ts +0 -8
  113. package/src/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +0 -13
  114. package/src/@claude-flow/cli/dist/src/commands/update.d.ts +0 -8
  115. package/src/@claude-flow/cli/dist/src/commands/workflow.d.ts +0 -8
  116. package/src/@claude-flow/cli/dist/src/config/moflo-config.d.ts +0 -93
  117. package/src/@claude-flow/cli/dist/src/config-adapter.d.ts +0 -15
  118. package/src/@claude-flow/cli/dist/src/index.d.ts +0 -81
  119. package/src/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
  120. package/src/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +0 -30
  121. package/src/@claude-flow/cli/dist/src/init/executor.d.ts +0 -41
  122. package/src/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +0 -51
  123. package/src/@claude-flow/cli/dist/src/init/index.d.ts +0 -13
  124. package/src/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +0 -29
  125. package/src/@claude-flow/cli/dist/src/init/moflo-init.d.ts +0 -31
  126. package/src/@claude-flow/cli/dist/src/init/settings-generator.d.ts +0 -14
  127. package/src/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +0 -28
  128. package/src/@claude-flow/cli/dist/src/init/types.d.ts +0 -285
  129. package/src/@claude-flow/cli/dist/src/mcp-client.d.ts +0 -92
  130. package/src/@claude-flow/cli/dist/src/mcp-server.d.ts +0 -161
  131. package/src/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +0 -9
  132. package/src/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts +0 -30
  133. package/src/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +0 -38
  134. package/src/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts +0 -83
  135. package/src/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts +0 -13
  136. package/src/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts +0 -12
  137. package/src/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +0 -8
  138. package/src/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts +0 -13
  139. package/src/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts +0 -13
  140. package/src/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts +0 -9
  141. package/src/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts +0 -13
  142. package/src/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -8
  143. package/src/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +0 -44
  144. package/src/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +0 -23
  145. package/src/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +0 -14
  146. package/src/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts +0 -16
  147. package/src/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts +0 -16
  148. package/src/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +0 -14
  149. package/src/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts +0 -18
  150. package/src/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +0 -8
  151. package/src/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +0 -8
  152. package/src/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts +0 -13
  153. package/src/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +0 -8
  154. package/src/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts +0 -13
  155. package/src/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +0 -14
  156. package/src/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +0 -31
  157. package/src/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
  158. package/src/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +0 -271
  159. package/src/@claude-flow/cli/dist/src/memory/intelligence.d.ts +0 -285
  160. package/src/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +0 -413
  161. package/src/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +0 -405
  162. package/src/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts +0 -227
  163. package/src/@claude-flow/cli/dist/src/output.d.ts +0 -133
  164. package/src/@claude-flow/cli/dist/src/parser.d.ts +0 -51
  165. package/src/@claude-flow/cli/dist/src/plugins/manager.d.ts +0 -133
  166. package/src/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +0 -88
  167. package/src/@claude-flow/cli/dist/src/plugins/store/index.d.ts +0 -76
  168. package/src/@claude-flow/cli/dist/src/plugins/store/search.d.ts +0 -46
  169. package/src/@claude-flow/cli/dist/src/plugins/store/types.d.ts +0 -274
  170. package/src/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +0 -7
  171. package/src/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +0 -12
  172. package/src/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +0 -7
  173. package/src/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts +0 -101
  174. package/src/@claude-flow/cli/dist/src/production/error-handler.d.ts +0 -92
  175. package/src/@claude-flow/cli/dist/src/production/index.d.ts +0 -23
  176. package/src/@claude-flow/cli/dist/src/production/monitoring.d.ts +0 -161
  177. package/src/@claude-flow/cli/dist/src/production/rate-limiter.d.ts +0 -80
  178. package/src/@claude-flow/cli/dist/src/production/retry.d.ts +0 -48
  179. package/src/@claude-flow/cli/dist/src/prompt.d.ts +0 -44
  180. package/src/@claude-flow/cli/dist/src/runtime/headless.d.ts +0 -60
  181. package/src/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +0 -67
  182. package/src/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +0 -160
  183. package/src/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +0 -33
  184. package/src/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +0 -175
  185. package/src/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
  186. package/src/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts +0 -195
  187. package/src/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +0 -187
  188. package/src/@claude-flow/cli/dist/src/ruvector/index.d.ts +0 -34
  189. package/src/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts +0 -218
  190. package/src/@claude-flow/cli/dist/src/ruvector/model-router.d.ts +0 -220
  191. package/src/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts +0 -206
  192. package/src/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +0 -211
  193. package/src/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts +0 -77
  194. package/src/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +0 -69
  195. package/src/@claude-flow/cli/dist/src/services/agent-router.d.ts +0 -63
  196. package/src/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts +0 -50
  197. package/src/@claude-flow/cli/dist/src/services/claim-service.d.ts +0 -204
  198. package/src/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +0 -197
  199. package/src/@claude-flow/cli/dist/src/services/daemon-lock.d.ts +0 -60
  200. package/src/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +0 -304
  201. package/src/@claude-flow/cli/dist/src/services/index.d.ts +0 -13
  202. package/src/@claude-flow/cli/dist/src/services/learning-service.d.ts +0 -161
  203. package/src/@claude-flow/cli/dist/src/services/moflo-require.d.ts +0 -34
  204. package/src/@claude-flow/cli/dist/src/services/registry-api.d.ts +0 -58
  205. package/src/@claude-flow/cli/dist/src/services/ruvector-training.d.ts +0 -214
  206. package/src/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +0 -225
  207. package/src/@claude-flow/cli/dist/src/services/worker-queue.d.ts +0 -194
  208. package/src/@claude-flow/cli/dist/src/services/workflow-gate.d.ts +0 -88
  209. package/src/@claude-flow/cli/dist/src/suggest.d.ts +0 -53
  210. package/src/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +0 -25
  211. package/src/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +0 -13
  212. package/src/@claude-flow/cli/dist/src/transfer/export.d.ts +0 -25
  213. package/src/@claude-flow/cli/dist/src/transfer/index.d.ts +0 -12
  214. package/src/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +0 -109
  215. package/src/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +0 -95
  216. package/src/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +0 -72
  217. package/src/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +0 -49
  218. package/src/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts +0 -82
  219. package/src/@claude-flow/cli/dist/src/transfer/storage/index.d.ts +0 -6
  220. package/src/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +0 -84
  221. package/src/@claude-flow/cli/dist/src/transfer/store/download.d.ts +0 -70
  222. package/src/@claude-flow/cli/dist/src/transfer/store/index.d.ts +0 -84
  223. package/src/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +0 -76
  224. package/src/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +0 -58
  225. package/src/@claude-flow/cli/dist/src/transfer/store/search.d.ts +0 -54
  226. package/src/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +0 -12
  227. package/src/@claude-flow/cli/dist/src/transfer/store/types.d.ts +0 -193
  228. package/src/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +0 -6
  229. package/src/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +0 -7
  230. package/src/@claude-flow/cli/dist/src/transfer/types.d.ts +0 -245
  231. package/src/@claude-flow/cli/dist/src/types.d.ts +0 -198
  232. package/src/@claude-flow/cli/dist/src/update/checker.d.ts +0 -34
  233. package/src/@claude-flow/cli/dist/src/update/executor.d.ts +0 -32
  234. package/src/@claude-flow/cli/dist/src/update/index.d.ts +0 -33
  235. package/src/@claude-flow/cli/dist/src/update/rate-limiter.d.ts +0 -20
  236. package/src/@claude-flow/cli/dist/src/update/validator.d.ts +0 -17
  237. package/src/@claude-flow/guidance/dist/adversarial.d.ts +0 -284
  238. package/src/@claude-flow/guidance/dist/analyzer.d.ts +0 -530
  239. package/src/@claude-flow/guidance/dist/artifacts.d.ts +0 -283
  240. package/src/@claude-flow/guidance/dist/authority.d.ts +0 -290
  241. package/src/@claude-flow/guidance/dist/capabilities.d.ts +0 -209
  242. package/src/@claude-flow/guidance/dist/coherence.d.ts +0 -233
  243. package/src/@claude-flow/guidance/dist/compiler.d.ts +0 -87
  244. package/src/@claude-flow/guidance/dist/conformance-kit.d.ts +0 -225
  245. package/src/@claude-flow/guidance/dist/continue-gate.d.ts +0 -214
  246. package/src/@claude-flow/guidance/dist/crypto-utils.d.ts +0 -17
  247. package/src/@claude-flow/guidance/dist/evolution.d.ts +0 -282
  248. package/src/@claude-flow/guidance/dist/gates.d.ts +0 -79
  249. package/src/@claude-flow/guidance/dist/gateway.d.ts +0 -206
  250. package/src/@claude-flow/guidance/dist/generators.d.ts +0 -153
  251. package/src/@claude-flow/guidance/dist/headless.d.ts +0 -177
  252. package/src/@claude-flow/guidance/dist/hooks.d.ts +0 -109
  253. package/src/@claude-flow/guidance/dist/index.d.ts +0 -205
  254. package/src/@claude-flow/guidance/dist/ledger.d.ts +0 -162
  255. package/src/@claude-flow/guidance/dist/manifest-validator.d.ts +0 -289
  256. package/src/@claude-flow/guidance/dist/memory-gate.d.ts +0 -222
  257. package/src/@claude-flow/guidance/dist/meta-governance.d.ts +0 -265
  258. package/src/@claude-flow/guidance/dist/optimizer.d.ts +0 -104
  259. package/src/@claude-flow/guidance/dist/persistence.d.ts +0 -189
  260. package/src/@claude-flow/guidance/dist/proof.d.ts +0 -185
  261. package/src/@claude-flow/guidance/dist/retriever.d.ts +0 -116
  262. package/src/@claude-flow/guidance/dist/ruvbot-integration.d.ts +0 -370
  263. package/src/@claude-flow/guidance/dist/temporal.d.ts +0 -426
  264. package/src/@claude-flow/guidance/dist/trust.d.ts +0 -283
  265. package/src/@claude-flow/guidance/dist/truth-anchors.d.ts +0 -276
  266. package/src/@claude-flow/guidance/dist/types.d.ts +0 -378
  267. package/src/@claude-flow/guidance/dist/uncertainty.d.ts +0 -372
  268. package/src/@claude-flow/guidance/dist/wasm-kernel.d.ts +0 -48
  269. package/src/@claude-flow/memory/dist/agent-memory-scope.d.ts +0 -131
  270. package/src/@claude-flow/memory/dist/agent-memory-scope.test.d.ts +0 -8
  271. package/src/@claude-flow/memory/dist/agentdb-adapter.d.ts +0 -165
  272. package/src/@claude-flow/memory/dist/agentdb-backend.d.ts +0 -212
  273. package/src/@claude-flow/memory/dist/agentdb-backend.test.d.ts +0 -7
  274. package/src/@claude-flow/memory/dist/application/commands/delete-memory.command.d.ts +0 -65
  275. package/src/@claude-flow/memory/dist/application/commands/store-memory.command.d.ts +0 -48
  276. package/src/@claude-flow/memory/dist/application/index.d.ts +0 -12
  277. package/src/@claude-flow/memory/dist/application/queries/search-memory.query.d.ts +0 -72
  278. package/src/@claude-flow/memory/dist/application/services/memory-application-service.d.ts +0 -121
  279. package/src/@claude-flow/memory/dist/auto-memory-bridge.d.ts +0 -226
  280. package/src/@claude-flow/memory/dist/auto-memory-bridge.test.d.ts +0 -8
  281. package/src/@claude-flow/memory/dist/benchmark.test.d.ts +0 -2
  282. package/src/@claude-flow/memory/dist/cache-manager.d.ts +0 -134
  283. package/src/@claude-flow/memory/dist/controller-registry.d.ts +0 -216
  284. package/src/@claude-flow/memory/dist/controller-registry.test.d.ts +0 -14
  285. package/src/@claude-flow/memory/dist/database-provider.d.ts +0 -87
  286. package/src/@claude-flow/memory/dist/database-provider.test.d.ts +0 -7
  287. package/src/@claude-flow/memory/dist/domain/entities/memory-entry.d.ts +0 -143
  288. package/src/@claude-flow/memory/dist/domain/index.d.ts +0 -11
  289. package/src/@claude-flow/memory/dist/domain/repositories/memory-repository.interface.d.ts +0 -102
  290. package/src/@claude-flow/memory/dist/domain/services/memory-domain-service.d.ts +0 -105
  291. package/src/@claude-flow/memory/dist/hnsw-index.d.ts +0 -111
  292. package/src/@claude-flow/memory/dist/hnsw-lite.d.ts +0 -23
  293. package/src/@claude-flow/memory/dist/hybrid-backend.d.ts +0 -245
  294. package/src/@claude-flow/memory/dist/hybrid-backend.test.d.ts +0 -8
  295. package/src/@claude-flow/memory/dist/index.d.ts +0 -204
  296. package/src/@claude-flow/memory/dist/infrastructure/index.d.ts +0 -17
  297. package/src/@claude-flow/memory/dist/infrastructure/repositories/hybrid-memory-repository.d.ts +0 -66
  298. package/src/@claude-flow/memory/dist/learning-bridge.d.ts +0 -137
  299. package/src/@claude-flow/memory/dist/learning-bridge.test.d.ts +0 -8
  300. package/src/@claude-flow/memory/dist/memory-graph.d.ts +0 -100
  301. package/src/@claude-flow/memory/dist/memory-graph.test.d.ts +0 -8
  302. package/src/@claude-flow/memory/dist/migration.d.ts +0 -68
  303. package/src/@claude-flow/memory/dist/persistent-sona.d.ts +0 -144
  304. package/src/@claude-flow/memory/dist/query-builder.d.ts +0 -211
  305. package/src/@claude-flow/memory/dist/rvf-backend.d.ts +0 -51
  306. package/src/@claude-flow/memory/dist/rvf-learning-store.d.ts +0 -139
  307. package/src/@claude-flow/memory/dist/rvf-migration.d.ts +0 -45
  308. package/src/@claude-flow/memory/dist/sqlite-backend.d.ts +0 -121
  309. package/src/@claude-flow/memory/dist/sqljs-backend.d.ts +0 -127
  310. package/src/@claude-flow/memory/dist/types.d.ts +0 -484
  311. package/src/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
  312. package/src/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
  313. package/src/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
  314. package/src/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
  315. package/src/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
  316. package/src/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
  317. package/src/@claude-flow/shared/dist/core/index.d.ts +0 -15
  318. package/src/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
  319. package/src/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
  320. package/src/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
  321. package/src/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
  322. package/src/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
  323. package/src/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
  324. package/src/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
  325. package/src/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
  326. package/src/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
  327. package/src/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
  328. package/src/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
  329. package/src/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
  330. package/src/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
  331. package/src/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
  332. package/src/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
  333. package/src/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
  334. package/src/@claude-flow/shared/dist/events/index.d.ts +0 -21
  335. package/src/@claude-flow/shared/dist/events/projections.d.ts +0 -177
  336. package/src/@claude-flow/shared/dist/events/rvf-event-log.d.ts +0 -82
  337. package/src/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
  338. package/src/@claude-flow/shared/dist/events.d.ts +0 -80
  339. package/src/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
  340. package/src/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
  341. package/src/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
  342. package/src/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
  343. package/src/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
  344. package/src/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
  345. package/src/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
  346. package/src/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
  347. package/src/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
  348. package/src/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
  349. package/src/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
  350. package/src/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
  351. package/src/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
  352. package/src/@claude-flow/shared/dist/index.d.ts +0 -20
  353. package/src/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
  354. package/src/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
  355. package/src/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
  356. package/src/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
  357. package/src/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
  358. package/src/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
  359. package/src/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
  360. package/src/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
  361. package/src/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
  362. package/src/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
  363. package/src/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
  364. package/src/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
  365. package/src/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
  366. package/src/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
  367. package/src/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
  368. package/src/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
  369. package/src/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
  370. package/src/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
  371. package/src/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
  372. package/src/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
  373. package/src/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
  374. package/src/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
  375. package/src/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
  376. package/src/@claude-flow/shared/dist/security/index.d.ts +0 -10
  377. package/src/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
  378. package/src/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
  379. package/src/@claude-flow/shared/dist/services/index.d.ts +0 -7
  380. package/src/@claude-flow/shared/dist/services/v3-progress.service.d.ts +0 -124
  381. package/src/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
  382. package/src/@claude-flow/shared/dist/types/index.d.ts +0 -11
  383. package/src/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
  384. package/src/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
  385. package/src/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
  386. package/src/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
  387. package/src/@claude-flow/shared/dist/types.d.ts +0 -197
  388. 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