claude-flow-novice 2.8.1 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (755) hide show
  1. package/.claude/agents/{coordinators → cfn-dev-team/coordinators}/README.md +2 -2
  2. package/.claude/agents/{coordinators → cfn-dev-team/coordinators}/cfn-v3-coordinator.md +1 -1
  3. package/.claude/agents/{coordinators → cfn-dev-team/coordinators}/cto-agent.md +1 -1
  4. package/.claude/agents/{coordinators → cfn-dev-team/coordinators}/product-owner-agent.md +1 -1
  5. package/.claude/agents/{coordinators → cfn-dev-team/coordinators}/product-owner.md +2 -2
  6. package/.claude/agents/{developers → cfn-dev-team/developers}/README.md +1 -1
  7. package/.claude/agents/{developers → cfn-dev-team/developers}/coder.md +1 -1
  8. package/.claude/agents/{reviewers → cfn-dev-team/reviewers}/code-quality-validator.md +1 -1
  9. package/.claude/agents/{reviewers → cfn-dev-team/reviewers}/reviewer.md +1 -1
  10. package/.claude/agents/{testers → cfn-dev-team/testers}/e2e/playwright-agent.md +1 -1
  11. package/.claude/agents/{testers → cfn-dev-team/testers}/interaction-tester.md +1 -1
  12. package/.claude/agents/{testers → cfn-dev-team/testers}/unit/tdd-london-swarm.md +1 -1
  13. package/.claude/agents/{testers → cfn-dev-team/testers}/validation/production-validator.md +1 -1
  14. package/.claude/commands/{CFN_COORDINATOR_PARAMETERS.md → cfn/CFN_COORDINATOR_PARAMETERS.md} +15 -15
  15. package/.claude/commands/{cfn-loop-epic.md → cfn/cfn-loop-epic.md} +4 -4
  16. package/.claude/commands/{cfn-loop-single.md → cfn/cfn-loop-single.md} +7 -7
  17. package/.claude/commands/{cfn-loop-sprints.md → cfn/cfn-loop-sprints.md} +1 -1
  18. package/.claude/commands/{cfn-loop.md → cfn/cfn-loop.md} +7 -7
  19. package/.claude/commands/{cfn-optimize-agents.md → cfn/cfn-optimize-agents.md} +1 -1
  20. package/.claude/commands/{context-curate.md → cfn/context-curate.md} +2 -2
  21. package/.claude/commands/{context-inject.md → cfn/context-inject.md} +3 -3
  22. package/.claude/commands/{context-reflect.md → cfn/context-reflect.md} +1 -1
  23. package/.claude/commands/{context-stats.md → cfn/context-stats.md} +1 -1
  24. package/.claude/commands/{list-agents-rebuild.md → cfn/list-agents-rebuild.md} +12 -12
  25. package/{CLAUDE.md → CFN-CLAUDE.md} +19 -19
  26. package/dist/cli/config-manager.js +91 -109
  27. package/dist/cli/config-manager.js.map +1 -1
  28. package/dist/cli/init-command.js +20 -0
  29. package/dist/cli/init-command.js.map +1 -0
  30. package/package.json +13 -7
  31. package/scripts/init-project.js +148 -0
  32. package/scripts/restructure-cfn-namespace.sh +161 -0
  33. package/.claude/SLASH-COMMANDS-READY.md +0 -53
  34. package/.claude/WORKING-SETUP.md +0 -67
  35. package/.claude/ace-system-overview.md +0 -524
  36. package/.claude/adaptive-context/cfn-v3-reflection.json +0 -21
  37. package/.claude/agent-principles/agent-template.md +0 -96
  38. package/.claude/agents/AGENT_LIFECYCLE.md +0 -495
  39. package/.claude/agents/CLAUDE.md +0 -1002
  40. package/.claude/agents/README-VALIDATION.md +0 -243
  41. package/.claude/agents/accessibility-advocate.md +0 -457
  42. package/.claude/agents/agent-principles/README.md +0 -226
  43. package/.claude/agents/agent-principles/agent-type-guidelines.md +0 -475
  44. package/.claude/agents/agent-principles/format-selection.md +0 -234
  45. package/.claude/agents/agent-principles/phase4-template-optimization.md +0 -502
  46. package/.claude/agents/agent-principles/prompt-engineering.md +0 -509
  47. package/.claude/agents/agent-principles/quality-metrics.md +0 -383
  48. package/.claude/agents/analysis/code-analyzer.md +0 -182
  49. package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -31
  50. package/.claude/agents/analysis/perf-analyzer.md +0 -36
  51. package/.claude/agents/context/context-curator.md +0 -78
  52. package/.claude/agents/context/context-reflector.md +0 -27
  53. package/.claude/agents/core-agents/reviewer.md +0 -121
  54. package/.claude/agents/custom/agent-builder.md +0 -637
  55. package/.claude/agents/development/backend/dev-backend-api.md +0 -110
  56. package/.claude/agents/development/npm-package-specialist.md +0 -355
  57. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -106
  58. package/.claude/agents/documentation/api-docs.md +0 -111
  59. package/.claude/agents/frontend/README.md +0 -640
  60. package/.claude/agents/github/github-commit-agent.md +0 -126
  61. package/.claude/agents/goal/goal-planner.md +0 -191
  62. package/.claude/agents/infrastructure/README.md +0 -100
  63. package/.claude/agents/infrastructure/devops-engineer.md +0 -131
  64. package/.claude/agents/planners/README.md +0 -94
  65. package/.claude/agents/planners/analyst.md +0 -149
  66. package/.claude/agents/planners/api-designer-persona.md +0 -155
  67. package/.claude/agents/planners/architect.md +0 -187
  68. package/.claude/agents/planners/planner.md +0 -153
  69. package/.claude/agents/planners/security-architect-persona.md +0 -170
  70. package/.claude/agents/planners/system-architect-persona.md +0 -158
  71. package/.claude/agents/planners/system-architect.md +0 -156
  72. package/.claude/agents/product-owner-team/accessibility-advocate-persona.md +0 -132
  73. package/.claude/agents/product-owner-team/power-user-persona.md +0 -149
  74. package/.claude/agents/retrospective-analyst.md +0 -84
  75. package/.claude/agents/sparc/architecture.md +0 -130
  76. package/.claude/agents/sparc/pseudocode.md +0 -165
  77. package/.claude/agents/sparc/refinement.md +0 -112
  78. package/.claude/agents/sparc/specification.md +0 -158
  79. package/.claude/agents/specialists/README.md +0 -60
  80. package/.claude/agents/specialists/base-template-generator.md +0 -175
  81. package/.claude/agents/specialists/cli-agent-optimizer.md +0 -122
  82. package/.claude/agents/specialists/code-booster.md +0 -144
  83. package/.claude/agents/specialists/consensus-builder.md +0 -143
  84. package/.claude/agents/specialists/crdt-synchronizer.md +0 -192
  85. package/.claude/agents/specialists/mobile-dev.md +0 -190
  86. package/.claude/agents/specialists/performance-benchmarker.md +0 -134
  87. package/.claude/agents/specialists/quorum-manager.md +0 -168
  88. package/.claude/agents/specialists/raft-manager.md +0 -106
  89. package/.claude/agents/specialists/rust-developer.md +0 -147
  90. package/.claude/agents/specialists/rust-enterprise-developer.md +0 -125
  91. package/.claude/agents/specialists/rust-mvp-developer.md +0 -123
  92. package/.claude/agents/specialists/security-manager.md +0 -91
  93. package/.claude/agents/specialists/security-specialist-existing.md +0 -103
  94. package/.claude/agents/specialists/security-specialist.md +0 -161
  95. package/.claude/agents/specialists/spec-mobile-react-native.md +0 -172
  96. package/.claude/agents/validate-agent.js +0 -841
  97. package/.claude/agents-ignore/cfn-coordinator-enterprise.md +0 -1303
  98. package/.claude/agents-ignore/cfn-coordinator-mvp.md +0 -942
  99. package/.claude/agents-ignore/cfn-coordinator-standard.md +0 -1062
  100. package/.claude/agents-ignore/cfn-loop-coordinator.md +0 -157
  101. package/.claude/agents-ignore/cfn-loop-coordinator.md.backup +0 -156
  102. package/.claude/agents-ignore/coordinator.md +0 -182
  103. package/.claude/agents-ignore/coordinator.md.backup +0 -182
  104. package/.claude/agents-ignore/cost-savings-cfn-loop-coordinator.md +0 -760
  105. package/.claude/agents-ignore/cost-savings-coordinator.md +0 -173
  106. package/.claude/agents-ignore/cost-savings-coordinator.md.backup +0 -167
  107. package/.claude/agents-ignore/deprecated-coordinators/adaptive-coordinator-enhanced.md +0 -145
  108. package/.claude/agents-ignore/deprecated-coordinators/adaptive-coordinator.md +0 -161
  109. package/.claude/agents-ignore/deprecated-coordinators/blocking-coordinator-example.md +0 -732
  110. package/.claude/agents-ignore/deprecated-coordinators/byzantine-coordinator.md +0 -94
  111. package/.claude/agents-ignore/deprecated-coordinators/cfn-coordinator-enterprise.md +0 -323
  112. package/.claude/agents-ignore/deprecated-coordinators/cfn-coordinator-mvp.md +0 -157
  113. package/.claude/agents-ignore/deprecated-coordinators/cfn-coordinator-standard.md +0 -229
  114. package/.claude/agents-ignore/deprecated-coordinators/cfn-coordinator-unified.md +0 -149
  115. package/.claude/agents-ignore/deprecated-coordinators/coordinator-hybrid.md +0 -231
  116. package/.claude/agents-ignore/deprecated-coordinators/gossip-coordinator.md +0 -165
  117. package/.claude/agents-ignore/deprecated-coordinators/hierarchical-coordinator.md +0 -91
  118. package/.claude/agents-ignore/deprecated-coordinators/mesh-coordinator.md +0 -131
  119. package/.claude/agents-ignore/deprecated-coordinators/task-coordinator.md +0 -105
  120. package/.claude/agents-ignore/deprecated-coordinators/test-coordinator.md +0 -141
  121. package/.claude/architecture/mesh-get-polling-design.md +0 -87
  122. package/.claude/architecture/mesh-get-polling-implementation.md +0 -89
  123. package/.claude/architecture/typescript-microservices.md +0 -50
  124. package/.claude/artifacts/ace-reflections/REFLECT-001-summary.json +0 -39
  125. package/.claude/artifacts/ace-reflections/sprint-7_$(date -u +/"%Y%m%d_%H%M%S/").json" +0 -47
  126. package/.claude/artifacts/reflection-merge-logs/cli-agent-spawning-v2.5.2-merge-report.md +0 -61
  127. package/.claude/cfn-loop-rules.md +0 -73
  128. package/.claude/cfn-mode-patterns.md +0 -571
  129. package/.claude/claude-md-backup-pre-skills.md +0 -15
  130. package/.claude/commands/agents/README.md +0 -10
  131. package/.claude/commands/agents/agent-capabilities.md +0 -21
  132. package/.claude/commands/agents/agent-coordination.md +0 -28
  133. package/.claude/commands/agents/agent-spawning.md +0 -28
  134. package/.claude/commands/agents/agent-types.md +0 -26
  135. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  136. package/.claude/commands/analysis/README.md +0 -9
  137. package/.claude/commands/analysis/bottleneck-detect.md +0 -162
  138. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  139. package/.claude/commands/analysis/performance-report.md +0 -25
  140. package/.claude/commands/analysis/token-efficiency.md +0 -45
  141. package/.claude/commands/analysis/token-usage.md +0 -25
  142. package/.claude/commands/automation/README.md +0 -9
  143. package/.claude/commands/automation/auto-agent.md +0 -122
  144. package/.claude/commands/automation/self-healing.md +0 -106
  145. package/.claude/commands/automation/session-memory.md +0 -90
  146. package/.claude/commands/automation/smart-agents.md +0 -73
  147. package/.claude/commands/automation/smart-spawn.md +0 -25
  148. package/.claude/commands/automation/workflow-select.md +0 -25
  149. package/.claude/commands/claude-md.js +0 -237
  150. package/.claude/commands/claude-soul.js +0 -28
  151. package/.claude/commands/cli-integration.js +0 -216
  152. package/.claude/commands/coordination/README.md +0 -9
  153. package/.claude/commands/coordination/agent-spawn.md +0 -25
  154. package/.claude/commands/coordination/coordination-system.md +0 -88
  155. package/.claude/commands/coordination/init.md +0 -44
  156. package/.claude/commands/coordination/orchestrate.md +0 -43
  157. package/.claude/commands/coordination/spawn.md +0 -45
  158. package/.claude/commands/coordination/swarm-init.md +0 -85
  159. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  160. package/.claude/commands/github/README.md +0 -11
  161. package/.claude/commands/github/code-review-swarm.md +0 -514
  162. package/.claude/commands/github/code-review.md +0 -25
  163. package/.claude/commands/github/github-modes.md +0 -147
  164. package/.claude/commands/github/github-swarm.md +0 -121
  165. package/.claude/commands/github/issue-tracker.md +0 -292
  166. package/.claude/commands/github/issue-triage.md +0 -25
  167. package/.claude/commands/github/multi-repo-swarm.md +0 -519
  168. package/.claude/commands/github/pr-enhance.md +0 -26
  169. package/.claude/commands/github/pr-manager.md +0 -170
  170. package/.claude/commands/github/project-board-sync.md +0 -471
  171. package/.claude/commands/github/release-manager.md +0 -338
  172. package/.claude/commands/github/release-swarm.md +0 -544
  173. package/.claude/commands/github/repo-analyze.md +0 -25
  174. package/.claude/commands/github/repo-architect.md +0 -367
  175. package/.claude/commands/github/swarm-issue.md +0 -482
  176. package/.claude/commands/github/swarm-pr.md +0 -285
  177. package/.claude/commands/github/sync-coordinator.md +0 -301
  178. package/.claude/commands/github/workflow-automation.md +0 -442
  179. package/.claude/commands/github.js +0 -638
  180. package/.claude/commands/hive-mind/README.md +0 -17
  181. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
  182. package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
  183. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
  184. package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
  185. package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
  186. package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
  187. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
  188. package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
  189. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
  190. package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
  191. package/.claude/commands/hive-mind/hive-mind.md +0 -27
  192. package/.claude/commands/hooks/README.md +0 -11
  193. package/.claude/commands/hooks/overview.md +0 -58
  194. package/.claude/commands/hooks/post-edit.md +0 -117
  195. package/.claude/commands/hooks/post-task.md +0 -112
  196. package/.claude/commands/hooks/pre-edit.md +0 -113
  197. package/.claude/commands/hooks/pre-task.md +0 -111
  198. package/.claude/commands/hooks/session-end.md +0 -118
  199. package/.claude/commands/hooks/session-start.md +0 -9
  200. package/.claude/commands/hooks/setup.md +0 -103
  201. package/.claude/commands/hooks.js +0 -651
  202. package/.claude/commands/index.js +0 -119
  203. package/.claude/commands/memory/README.md +0 -9
  204. package/.claude/commands/memory/memory-bank.md +0 -58
  205. package/.claude/commands/memory/memory-persist.md +0 -25
  206. package/.claude/commands/memory/memory-search.md +0 -25
  207. package/.claude/commands/memory/memory-usage.md +0 -25
  208. package/.claude/commands/memory/neural.md +0 -47
  209. package/.claude/commands/memory/usage.md +0 -46
  210. package/.claude/commands/monitoring/README.md +0 -9
  211. package/.claude/commands/monitoring/agent-metrics.md +0 -25
  212. package/.claude/commands/monitoring/agents.md +0 -44
  213. package/.claude/commands/monitoring/real-time-view.md +0 -25
  214. package/.claude/commands/monitoring/status.md +0 -46
  215. package/.claude/commands/monitoring/swarm-monitor.md +0 -25
  216. package/.claude/commands/neural.js +0 -572
  217. package/.claude/commands/optimization/README.md +0 -9
  218. package/.claude/commands/optimization/auto-topology.md +0 -62
  219. package/.claude/commands/optimization/cache-manage.md +0 -25
  220. package/.claude/commands/optimization/parallel-execute.md +0 -25
  221. package/.claude/commands/optimization/parallel-execution.md +0 -50
  222. package/.claude/commands/optimization/topology-optimize.md +0 -25
  223. package/.claude/commands/pair/README.md +0 -261
  224. package/.claude/commands/pair/commands.md +0 -546
  225. package/.claude/commands/pair/config.md +0 -510
  226. package/.claude/commands/pair/examples.md +0 -512
  227. package/.claude/commands/pair/modes.md +0 -348
  228. package/.claude/commands/pair/session.md +0 -407
  229. package/.claude/commands/pair/start.md +0 -209
  230. package/.claude/commands/parse-epic.js +0 -180
  231. package/.claude/commands/performance.js +0 -582
  232. package/.claude/commands/register-all-commands.js +0 -320
  233. package/.claude/commands/register-claude-md.js +0 -82
  234. package/.claude/commands/register-claude-soul.js +0 -80
  235. package/.claude/commands/sparc/analyzer.md +0 -52
  236. package/.claude/commands/sparc/architect.md +0 -53
  237. package/.claude/commands/sparc/batch-executor.md +0 -54
  238. package/.claude/commands/sparc/coder.md +0 -54
  239. package/.claude/commands/sparc/debugger.md +0 -54
  240. package/.claude/commands/sparc/designer.md +0 -53
  241. package/.claude/commands/sparc/documenter.md +0 -54
  242. package/.claude/commands/sparc/innovator.md +0 -54
  243. package/.claude/commands/sparc/memory-manager.md +0 -54
  244. package/.claude/commands/sparc/optimizer.md +0 -54
  245. package/.claude/commands/sparc/orchestrator.md +0 -132
  246. package/.claude/commands/sparc/researcher.md +0 -54
  247. package/.claude/commands/sparc/reviewer.md +0 -54
  248. package/.claude/commands/sparc/sparc-modes.md +0 -174
  249. package/.claude/commands/sparc/swarm-coordinator.md +0 -54
  250. package/.claude/commands/sparc/tdd.md +0 -54
  251. package/.claude/commands/sparc/tester.md +0 -54
  252. package/.claude/commands/sparc/workflow-manager.md +0 -54
  253. package/.claude/commands/sparc.js +0 -110
  254. package/.claude/commands/stream-chain/pipeline.md +0 -121
  255. package/.claude/commands/stream-chain/run.md +0 -70
  256. package/.claude/commands/swarm/README.md +0 -15
  257. package/.claude/commands/swarm/analysis.md +0 -95
  258. package/.claude/commands/swarm/development.md +0 -96
  259. package/.claude/commands/swarm/examples.md +0 -168
  260. package/.claude/commands/swarm/maintenance.md +0 -102
  261. package/.claude/commands/swarm/optimization.md +0 -117
  262. package/.claude/commands/swarm/research.md +0 -136
  263. package/.claude/commands/swarm/swarm-analysis.md +0 -8
  264. package/.claude/commands/swarm/swarm-background.md +0 -8
  265. package/.claude/commands/swarm/swarm-init.md +0 -19
  266. package/.claude/commands/swarm/swarm-modes.md +0 -8
  267. package/.claude/commands/swarm/swarm-monitor.md +0 -8
  268. package/.claude/commands/swarm/swarm-spawn.md +0 -19
  269. package/.claude/commands/swarm/swarm-status.md +0 -8
  270. package/.claude/commands/swarm/swarm-strategies.md +0 -8
  271. package/.claude/commands/swarm/swarm.md +0 -27
  272. package/.claude/commands/swarm/testing.md +0 -131
  273. package/.claude/commands/swarm.js +0 -423
  274. package/.claude/commands/testing/playwright-e2e.md +0 -288
  275. package/.claude/commands/training/README.md +0 -9
  276. package/.claude/commands/training/model-update.md +0 -25
  277. package/.claude/commands/training/neural-patterns.md +0 -74
  278. package/.claude/commands/training/neural-train.md +0 -25
  279. package/.claude/commands/training/pattern-learn.md +0 -25
  280. package/.claude/commands/training/specialization.md +0 -63
  281. package/.claude/commands/truth/start.md +0 -143
  282. package/.claude/commands/validate-commands.js +0 -223
  283. package/.claude/commands/verify/check.md +0 -50
  284. package/.claude/commands/verify/start.md +0 -128
  285. package/.claude/commands/workflow.js +0 -606
  286. package/.claude/commands/workflows/README.md +0 -9
  287. package/.claude/commands/workflows/development.md +0 -78
  288. package/.claude/commands/workflows/research.md +0 -63
  289. package/.claude/commands/workflows/workflow-create.md +0 -25
  290. package/.claude/commands/workflows/workflow-execute.md +0 -25
  291. package/.claude/commands/workflows/workflow-export.md +0 -25
  292. package/.claude/coordinator-feedback-pattern.md +0 -326
  293. package/.claude/coordinator-patterns.md +0 -126
  294. package/.claude/core/agent-manager.js +0 -80
  295. package/.claude/core/agent-manager.js.map +0 -1
  296. package/.claude/core/config.js +0 -1221
  297. package/.claude/core/config.js.map +0 -1
  298. package/.claude/core/event-bus.js +0 -136
  299. package/.claude/core/event-bus.js.map +0 -1
  300. package/.claude/core/index.js +0 -6
  301. package/.claude/core/index.js.map +0 -1
  302. package/.claude/core/json-persistence.js +0 -112
  303. package/.claude/core/json-persistence.js.map +0 -1
  304. package/.claude/core/logger.js +0 -245
  305. package/.claude/core/logger.js.map +0 -1
  306. package/.claude/core/orchestrator-fixed.js +0 -236
  307. package/.claude/core/orchestrator-fixed.js.map +0 -1
  308. package/.claude/core/orchestrator.js +0 -1136
  309. package/.claude/core/orchestrator.js.map +0 -1
  310. package/.claude/core/persistence.js +0 -185
  311. package/.claude/core/persistence.js.map +0 -1
  312. package/.claude/core/project-manager.js +0 -80
  313. package/.claude/core/project-manager.js.map +0 -1
  314. package/.claude/core/slash-command.js +0 -24
  315. package/.claude/core/version.js +0 -35
  316. package/.claude/core/version.js.map +0 -1
  317. package/.claude/helpers/checkpoint-manager.sh +0 -251
  318. package/.claude/helpers/github-safe.js +0 -106
  319. package/.claude/helpers/github-setup.sh +0 -28
  320. package/.claude/helpers/quick-start.sh +0 -19
  321. package/.claude/helpers/setup-mcp.sh +0 -18
  322. package/.claude/helpers/standard-checkpoint-hooks.sh +0 -179
  323. package/.claude/hooks.json +0 -21
  324. package/.claude/logs/sprint1-hybrid-routing-v2-decision.json +0 -18
  325. package/.claude/prompts/cfn-loop-context.md +0 -115
  326. package/.claude/prompts/loop-specific/loop2.md +0 -50
  327. package/.claude/prompts/loop-specific/loop3.md +0 -43
  328. package/.claude/prompts/loop-specific/loop4.md +0 -54
  329. package/.claude/redis-agent-dependencies.md +0 -494
  330. package/.claude/root-claude-distribute/CLAUDE.md +0 -502
  331. package/.claude/settings.json +0 -129
  332. package/.claude/settings.local.json +0 -33
  333. package/.claude/skills/CFN-LOOP-VALIDATION.md +0 -202
  334. package/.claude/skills/REDIS-COORDINATION.md +0 -187
  335. package/.claude/skills/SKILL.md +0 -229
  336. package/.claude/skills/ace-system/SKILL.md +0 -364
  337. package/.claude/skills/ace-system/add-bullet.sh +0 -145
  338. package/.claude/skills/ace-system/invoke-context-curate.sh +0 -192
  339. package/.claude/skills/ace-system/invoke-context-inject.sh +0 -166
  340. package/.claude/skills/ace-system/invoke-context-query.sh +0 -127
  341. package/.claude/skills/ace-system/invoke-context-reflect.sh +0 -98
  342. package/.claude/skills/ace-system/invoke-context-stats.sh +0 -188
  343. package/.claude/skills/ace-system/log-merge.sh +0 -67
  344. package/.claude/skills/ace-system/query-reflections.sh +0 -35
  345. package/.claude/skills/ace-system/sprint-7-lessons.json +0 -46
  346. package/.claude/skills/ace-system/store-reflection.sh +0 -46
  347. package/.claude/skills/ace-system/test-ace-skill.sh +0 -312
  348. package/.claude/skills/ace-system/update-reflection.sh +0 -41
  349. package/.claude/skills/agent-discovery/SKILL.md +0 -40
  350. package/.claude/skills/agent-discovery/agents-registry-clean.json +0 -0
  351. package/.claude/skills/agent-discovery/agents-registry-fixed.json +0 -19
  352. package/.claude/skills/agent-discovery/agents-registry.json +0 -718
  353. package/.claude/skills/agent-discovery/discover-agents.py +0 -175
  354. package/.claude/skills/agent-discovery/discover-agents.sh +0 -87
  355. package/.claude/skills/agent-discovery/invoke-registry.sh +0 -11
  356. package/.claude/skills/agent-discovery/temp_script.py +0 -0
  357. package/.claude/skills/agent-execution/execute-agent.sh +0 -126
  358. package/.claude/skills/agent-output-processing/SKILL.md +0 -359
  359. package/.claude/skills/agent-selector/SKILL.md +0 -90
  360. package/.claude/skills/agent-selector/select-agents.sh +0 -96
  361. package/.claude/skills/agent-spawning/SKILL.md +0 -135
  362. package/.claude/skills/agent-spawning/agent-selection-guide.md +0 -814
  363. package/.claude/skills/agent-spawning/check-dependencies.sh +0 -30
  364. package/.claude/skills/agent-spawning/spawn-agent.sh +0 -263
  365. package/.claude/skills/agent-spawning/spawn-templates.sh +0 -613
  366. package/.claude/skills/agent-swap/SKILL.md +0 -36
  367. package/.claude/skills/agent-swap/recommend-swap.sh +0 -60
  368. package/.claude/skills/analytics/description-refinement-guide.md +0 -164
  369. package/.claude/skills/analytics/log-skill-invocation.js +0 -122
  370. package/.claude/skills/analytics/run-production-criteria-tests.sh +0 -126
  371. package/.claude/skills/analytics/skill-analytics-dashboard.js +0 -113
  372. package/.claude/skills/analytics/skill-invocation-hook.sh +0 -28
  373. package/.claude/skills/analytics/skill-invocations.sql +0 -58
  374. package/.claude/skills/analytics/test-corpus.json +0 -32
  375. package/.claude/skills/analytics/test-data-generator.js +0 -115
  376. package/.claude/skills/analytics/test-manual-override-rate.js +0 -285
  377. package/.claude/skills/analytics/validate-skill-selection.js +0 -188
  378. package/.claude/skills/api-validation/test-endpoints.sh +0 -54
  379. package/.claude/skills/automatic-memory-persistence/SKILL.md +0 -73
  380. package/.claude/skills/automatic-memory-persistence/persist-agent-output.sh +0 -49
  381. package/.claude/skills/automatic-memory-persistence/query-agent-history.sh +0 -35
  382. package/.claude/skills/automatic-memory-persistence/test-memory-persistence.sh +0 -235
  383. package/.claude/skills/cfn-loop-orchestration/SKILL.md +0 -299
  384. package/.claude/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +0 -228
  385. package/.claude/skills/cfn-loop-orchestration/helpers/consensus.sh +0 -84
  386. package/.claude/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +0 -71
  387. package/.claude/skills/cfn-loop-orchestration/helpers/gate-check.sh +0 -90
  388. package/.claude/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +0 -87
  389. package/.claude/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +0 -51
  390. package/.claude/skills/cfn-loop-orchestration/inject-loop-context.sh +0 -41
  391. package/.claude/skills/cfn-loop-orchestration/monitor-execution.sh +0 -156
  392. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +0 -840
  393. package/.claude/skills/cfn-loop-orchestration/security_utils.sh +0 -99
  394. package/.claude/skills/cfn-loop-orchestration/test-cfn-orchestration.sh +0 -281
  395. package/.claude/skills/cfn-loop-orchestration/test-edge-cases.sh +0 -188
  396. package/.claude/skills/cfn-loop-validation/SKILL.md +0 -353
  397. package/.claude/skills/cfn-loop-validation/check-dependencies.sh +0 -31
  398. package/.claude/skills/cfn-loop-validation/config.json +0 -161
  399. package/.claude/skills/cfn-loop-validation/consensus-calculator.js +0 -477
  400. package/.claude/skills/cfn-loop-validation/evidence-chain.sql +0 -163
  401. package/.claude/skills/cfn-loop-validation/examples/README.md +0 -453
  402. package/.claude/skills/cfn-loop-validation/examples/coordinator-full-cfn-loop.sh +0 -234
  403. package/.claude/skills/cfn-loop-validation/examples/coordinator-loop2-consensus.sh +0 -132
  404. package/.claude/skills/cfn-loop-validation/examples/coordinator-loop3-gate.sh +0 -115
  405. package/.claude/skills/cfn-loop-validation/examples/coordinator-redis-integration.sh +0 -186
  406. package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +0 -252
  407. package/.claude/skills/cfn-loop-validation/validate-iteration.sh +0 -134
  408. package/.claude/skills/cfn-loop-validation.sh +0 -70
  409. package/.claude/skills/complexity-estimator/SKILL.md +0 -96
  410. package/.claude/skills/complexity-estimator/estimate-complexity.sh +0 -144
  411. package/.claude/skills/config-management/SKILL.md +0 -34
  412. package/.claude/skills/config-management/check-dependencies.sh +0 -56
  413. package/.claude/skills/config-management/config.json +0 -32
  414. package/.claude/skills/config-management/manage-config.sh +0 -113
  415. package/.claude/skills/consensus-calculator.js +0 -45
  416. package/.claude/skills/context-pruner/SKILL.md +0 -75
  417. package/.claude/skills/context-pruner/prune-context.sh +0 -73
  418. package/.claude/skills/defense-in-depth/SKILL.md +0 -133
  419. package/.claude/skills/dependency-extractor/SKILL.md +0 -35
  420. package/.claude/skills/dependency-extractor/extract-dependencies.sh +0 -66
  421. package/.claude/skills/epic-decomposer/SKILL.md +0 -44
  422. package/.claude/skills/epic-decomposer/decompose-epic.sh +0 -104
  423. package/.claude/skills/event-bus/SKILL.md +0 -412
  424. package/.claude/skills/event-bus/config.json +0 -111
  425. package/.claude/skills/event-bus/eventbus-wrapper.cjs +0 -69
  426. package/.claude/skills/event-bus/invoke-event-publish.sh +0 -147
  427. package/.claude/skills/event-bus/invoke-event-subscribe.sh +0 -171
  428. package/.claude/skills/event-bus/invoke-lifecycle-track.sh +0 -201
  429. package/.claude/skills/event-bus/test-event-bus.sh +0 -280
  430. package/.claude/skills/evidence-chain.sql +0 -66
  431. package/.claude/skills/fleet-manager/SKILL.md +0 -412
  432. package/.claude/skills/fleet-manager/config.json +0 -60
  433. package/.claude/skills/fleet-manager/invoke-fleet-allocate.sh +0 -182
  434. package/.claude/skills/fleet-manager/invoke-fleet-balance.sh +0 -239
  435. package/.claude/skills/fleet-manager/invoke-fleet-metrics.sh +0 -193
  436. package/.claude/skills/fleet-manager/invoke-fleet-register.sh +0 -124
  437. package/.claude/skills/fleet-manager/test-fleet-manager.sh +0 -345
  438. package/.claude/skills/hook-pipeline/SKILL.md +0 -148
  439. package/.claude/skills/hook-pipeline/auto-resolve.sh +0 -66
  440. package/.claude/skills/hook-pipeline/check-dependencies.sh +0 -40
  441. package/.claude/skills/hook-pipeline/feedback-resolver.sh +0 -452
  442. package/.claude/skills/hook-pipeline/post-edit-handler.sh +0 -154
  443. package/.claude/skills/hook-pipeline/security-scan.json +0 -60
  444. package/.claude/skills/hook-pipeline/security-scanner.sh +0 -121
  445. package/.claude/skills/hook-pipeline/test-root-warning-resolution.sh +0 -148
  446. package/.claude/skills/hybrid-routing/SKILL.md +0 -46
  447. package/.claude/skills/hybrid-routing/check-dependencies.sh +0 -52
  448. package/.claude/skills/hybrid-routing/config.json +0 -26
  449. package/.claude/skills/hybrid-routing/spawn-worker.sh +0 -44
  450. package/.claude/skills/improvement-recommender/SKILL.md +0 -33
  451. package/.claude/skills/improvement-recommender/recommend-improvements.sh +0 -92
  452. package/.claude/skills/intervention-detector/SKILL.md +0 -39
  453. package/.claude/skills/intervention-detector/detect-intervention.sh +0 -111
  454. package/.claude/skills/intervention-orchestrator/SKILL.md +0 -43
  455. package/.claude/skills/intervention-orchestrator/execute-intervention.sh +0 -59
  456. package/.claude/skills/loop2-output-processing/SKILL.md +0 -163
  457. package/.claude/skills/loop2-output-processing/execute-and-extract.sh +0 -77
  458. package/.claude/skills/loop2-output-processing/execute-and-extract.sh.backup +0 -36
  459. package/.claude/skills/loop2-output-processing/parse-feedback.sh +0 -147
  460. package/.claude/skills/loop2-output-processing/process-validator-output.sh +0 -275
  461. package/.claude/skills/loop2-output-processing/test-bug27-fix.sh +0 -200
  462. package/.claude/skills/loop2-output-processing/test-loop2-processing.sh +0 -113
  463. package/.claude/skills/loop3-output-processing/AGENT_COMPLETION_PROTOCOL.md +0 -206
  464. package/.claude/skills/loop3-output-processing/SKILL.md +0 -421
  465. package/.claude/skills/loop3-output-processing/calculate-confidence.sh +0 -28
  466. package/.claude/skills/loop3-output-processing/execute-and-extract.sh +0 -85
  467. package/.claude/skills/loop3-output-processing/parse-confidence.sh +0 -31
  468. package/.claude/skills/loop3-output-processing/test-agent-timeout.sh +0 -327
  469. package/.claude/skills/loop3-output-processing/test-loop3-processing.sh +0 -155
  470. package/.claude/skills/loop3-output-processing/verify-deliverables.sh +0 -42
  471. package/.claude/skills/pattern-extraction/SKILL.md +0 -30
  472. package/.claude/skills/pattern-extraction/extract-patterns.sh +0 -80
  473. package/.claude/skills/playbook/SKILL.md +0 -113
  474. package/.claude/skills/playbook/init-playbook.sh +0 -54
  475. package/.claude/skills/playbook/playbook.db +0 -0
  476. package/.claude/skills/playbook/query-playbook.sh +0 -79
  477. package/.claude/skills/playbook/update-playbook.sh +0 -69
  478. package/.claude/skills/playbook-auto-update/SKILL.md +0 -29
  479. package/.claude/skills/playbook-auto-update/auto-update-playbook.sh +0 -86
  480. package/.claude/skills/process-lifecycle/SKILL.md +0 -39
  481. package/.claude/skills/process-lifecycle/check-dependencies.sh +0 -58
  482. package/.claude/skills/process-lifecycle/config.json +0 -39
  483. package/.claude/skills/process-lifecycle/process-manager.sh +0 -144
  484. package/.claude/skills/product-owner-decision/SKILL.md +0 -332
  485. package/.claude/skills/product-owner-decision/execute-decision.sh +0 -176
  486. package/.claude/skills/product-owner-decision/parse-decision.sh +0 -66
  487. package/.claude/skills/product-owner-decision/validate-deliverables.sh +0 -82
  488. package/.claude/skills/redis-coordination/AGENT_LOGGING.md +0 -280
  489. package/.claude/skills/redis-coordination/BZPOPMIN_FIX_SUMMARY.md +0 -209
  490. package/.claude/skills/redis-coordination/HEARTBEAT.md +0 -57
  491. package/.claude/skills/redis-coordination/HEARTBEAT_MONITORING.md +0 -267
  492. package/.claude/skills/redis-coordination/LOGGING.md +0 -260
  493. package/.claude/skills/redis-coordination/SECURITY_REVIEW.md +0 -25
  494. package/.claude/skills/redis-coordination/SHUTDOWN_HANDLING.md +0 -164
  495. package/.claude/skills/redis-coordination/SKILL.md +0 -720
  496. package/.claude/skills/redis-coordination/agent-log.sh +0 -124
  497. package/.claude/skills/redis-coordination/agent-recovery.sh +0 -75
  498. package/.claude/skills/redis-coordination/analyze-task-complexity.sh +0 -277
  499. package/.claude/skills/redis-coordination/cancel-swarm.sh +0 -221
  500. package/.claude/skills/redis-coordination/cfn-loop-exec.sh +0 -468
  501. package/.claude/skills/redis-coordination/cfn-loop-relaunch.sh +0 -29
  502. package/.claude/skills/redis-coordination/check-dependencies.sh +0 -32
  503. package/.claude/skills/redis-coordination/collect-confidence-scores.sh +0 -179
  504. package/.claude/skills/redis-coordination/collect-results.sh +0 -75
  505. package/.claude/skills/redis-coordination/complete-swarm.sh +0 -75
  506. package/.claude/skills/redis-coordination/config.json +0 -61
  507. package/.claude/skills/redis-coordination/data/cfn-loop.db +0 -0
  508. package/.claude/skills/redis-coordination/demos/phase4-wake-queue-test-report.md +0 -82
  509. package/.claude/skills/redis-coordination/demos/test-bzpopmin-fix.sh +0 -274
  510. package/.claude/skills/redis-coordination/demos/test-cancel-swarm.sh +0 -276
  511. package/.claude/skills/redis-coordination/demos/test-dlq.sh +0 -129
  512. package/.claude/skills/redis-coordination/demos/test-iteration-feedback.sh +0 -320
  513. package/.claude/skills/redis-coordination/demos/test-orchestrator.sh +0 -249
  514. package/.claude/skills/redis-coordination/demos/test-priority-wake-phase4-unix.sh +0 -148
  515. package/.claude/skills/redis-coordination/demos/test-priority-wake-phase4.sh +0 -163
  516. package/.claude/skills/redis-coordination/demos/test-priority-wake.sh +0 -138
  517. package/.claude/skills/redis-coordination/demos/test-quick-fix.sh +0 -81
  518. package/.claude/skills/redis-coordination/demos/test-quorum-absolute.sh +0 -45
  519. package/.claude/skills/redis-coordination/demos/test-quorum-fallback.sh +0 -68
  520. package/.claude/skills/redis-coordination/demos/test-quorum-percentage.sh +0 -56
  521. package/.claude/skills/redis-coordination/demos/test-quorum-with-retry.sh +0 -81
  522. package/.claude/skills/redis-coordination/demos/test-quorum.sh +0 -57
  523. package/.claude/skills/redis-coordination/demos/test-shutdown-handling.sh +0 -187
  524. package/.claude/skills/redis-coordination/demos/test-shutdown.sh +0 -160
  525. package/.claude/skills/redis-coordination/demos/test-utils-unix.sh +0 -97
  526. package/.claude/skills/redis-coordination/demos/test-utils.sh +0 -97
  527. package/.claude/skills/redis-coordination/demos/test-waiting-mode.sh +0 -59
  528. package/.claude/skills/redis-coordination/examples/README.md +0 -73
  529. package/.claude/skills/redis-coordination/examples/grafana-dashboard.json +0 -352
  530. package/.claude/skills/redis-coordination/examples/hierarchical-pattern.sh +0 -127
  531. package/.claude/skills/redis-coordination/examples/mesh-pattern.sh +0 -171
  532. package/.claude/skills/redis-coordination/examples/timeout-handling.sh +0 -227
  533. package/.claude/skills/redis-coordination/examples/waiting-mode-pattern.sh +0 -239
  534. package/.claude/skills/redis-coordination/execute-product-owner-decision.sh +0 -258
  535. package/.claude/skills/redis-coordination/get-agent-timeout.sh +0 -177
  536. package/.claude/skills/redis-coordination/heartbeat-functions.sh +0 -137
  537. package/.claude/skills/redis-coordination/heartbeat-protocol.md +0 -106
  538. package/.claude/skills/redis-coordination/heartbeat.sh +0 -126
  539. package/.claude/skills/redis-coordination/init-swarm.sh +0 -148
  540. package/.claude/skills/redis-coordination/invoke-redis-pattern.sh +0 -220
  541. package/.claude/skills/redis-coordination/invoke-waiting-mode.sh +0 -283
  542. package/.claude/skills/redis-coordination/invoke-waiting-mode.sh.backup-p7 +0 -423
  543. package/.claude/skills/redis-coordination/list-active-swarms.sh +0 -147
  544. package/.claude/skills/redis-coordination/log-event.sh +0 -109
  545. package/.claude/skills/redis-coordination/metrics-export.sh +0 -674
  546. package/.claude/skills/redis-coordination/metrics-schema.json +0 -66
  547. package/.claude/skills/redis-coordination/metrics-storage.md +0 -31
  548. package/.claude/skills/redis-coordination/monitor-cfn-violations.sh +0 -391
  549. package/.claude/skills/redis-coordination/monitor-heartbeats.sh +0 -101
  550. package/.claude/skills/redis-coordination/orchestrate-cfn-loop-v3.sh +0 -141
  551. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh +0 -31
  552. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.backup +0 -38
  553. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +0 -1672
  554. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +0 -1604
  555. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +0 -1550
  556. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +0 -1621
  557. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +0 -1621
  558. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.bak +0 -0
  559. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.broken +0 -1627
  560. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.corrupted +0 -80
  561. package/.claude/skills/redis-coordination/orchestrate-cfn-loop.sh.deprecated +0 -1864
  562. package/.claude/skills/redis-coordination/priority-wake-mechanism.md +0 -75
  563. package/.claude/skills/redis-coordination/priority_wake.py +0 -134
  564. package/.claude/skills/redis-coordination/query-dlq.sh +0 -162
  565. package/.claude/skills/redis-coordination/query-logs.sh +0 -103
  566. package/.claude/skills/redis-coordination/redis-pattern.sh +0 -619
  567. package/.claude/skills/redis-coordination/retrieve-context.sh +0 -58
  568. package/.claude/skills/redis-coordination/select-specialist-agent.sh +0 -371
  569. package/.claude/skills/redis-coordination/semantic-match-tfidf.py +0 -252
  570. package/.claude/skills/redis-coordination/send-heartbeat.sh +0 -165
  571. package/.claude/skills/redis-coordination/signal.sh +0 -38
  572. package/.claude/skills/redis-coordination/store-context.sh +0 -86
  573. package/.claude/skills/redis-coordination/store-epic-context.sh +0 -123
  574. package/.claude/skills/redis-coordination/test-context-injection.sh +0 -354
  575. package/.claude/skills/redis-coordination/test-timeout-enforcement.sh +0 -513
  576. package/.claude/skills/redis-coordination/tests/convert-line-endings.sh +0 -15
  577. package/.claude/skills/redis-coordination/tests/dlq-functionality-test.sh +0 -102
  578. package/.claude/skills/redis-coordination/tests/edge-cases-test.sh +0 -99
  579. package/.claude/skills/redis-coordination/tests/integration-test.sh +0 -170
  580. package/.claude/skills/redis-coordination/tests/retry-mechanism-test.sh +0 -82
  581. package/.claude/skills/redis-coordination/tests/run-test-suite.sh +0 -92
  582. package/.claude/skills/redis-coordination/tests/run-tests.sh +0 -4
  583. package/.claude/skills/redis-coordination/tests/test-heartbeat-monitoring.sh +0 -418
  584. package/.claude/skills/redis-coordination/tests/test-heartbeat-simple.sh +0 -124
  585. package/.claude/skills/redis-coordination/tests/test-primitives.sh +0 -166
  586. package/.claude/skills/redis-coordination/tests/test-utils.sh +0 -54
  587. package/.claude/skills/redis-coordination/tests/test_coordination_primitives.sh.deprecated +0 -20
  588. package/.claude/skills/redis-coordination/tests/test_utils.sh +0 -49
  589. package/.claude/skills/redis-coordination/v2_modularization/core_orchestration.sh +0 -76
  590. package/.claude/skills/redis-coordination/validate-parameters.sh +0 -492
  591. package/.claude/skills/retrospective-report/SKILL.md +0 -31
  592. package/.claude/skills/retrospective-report/generate-report.sh +0 -101
  593. package/.claude/skills/run-all-skill-tests.sh +0 -124
  594. package/.claude/skills/scope-simplifier/SKILL.md +0 -37
  595. package/.claude/skills/scope-simplifier/simplify-scope.sh +0 -68
  596. package/.claude/skills/simplified-agent-lifecycle/COST_ANALYSIS.md +0 -49
  597. package/.claude/skills/simplified-agent-lifecycle/DESIGN.md +0 -98
  598. package/.claude/skills/simplified-agent-lifecycle/MIGRATION_PLAN.md +0 -74
  599. package/.claude/skills/skill-builder/SKILL.md +0 -910
  600. package/.claude/skills/specialist-injection/SKILL.md +0 -41
  601. package/.claude/skills/specialist-injection/recommend-specialist.sh +0 -57
  602. package/.claude/skills/sprint-execution/SKILL.md +0 -27
  603. package/.claude/skills/sprint-execution/execute-sprint-task.sh +0 -59
  604. package/.claude/skills/sprint-execution/execute-sprint.sh +0 -65
  605. package/.claude/skills/sprint-planner/SKILL.md +0 -37
  606. package/.claude/skills/sprint-planner/plan-sprint.sh +0 -85
  607. package/.claude/skills/sqlite-memory/IMPLEMENTATION_REPORT.md +0 -393
  608. package/.claude/skills/sqlite-memory/QUICK_REFERENCE.md +0 -204
  609. package/.claude/skills/sqlite-memory/SKILL.md +0 -415
  610. package/.claude/skills/sqlite-memory/acl-queries.sql +0 -452
  611. package/.claude/skills/sqlite-memory/check-dependencies.sh +0 -36
  612. package/.claude/skills/sqlite-memory/config.json +0 -45
  613. package/.claude/skills/sqlite-memory/memory-cli.sh +0 -88
  614. package/.claude/skills/sqlite-memory/test-state-persistence.js +0 -187
  615. package/.claude/skills/sqlite-memory/ttl-cleanup.sh +0 -274
  616. package/.claude/skills/standardized-error-handling/SKILL.md +0 -56
  617. package/.claude/skills/standardized-error-handling/capture-agent-error.sh +0 -87
  618. package/.claude/skills/standardized-error-handling/test-error-handling.sh +0 -166
  619. package/.claude/skills/task-classifier/SKILL.md +0 -94
  620. package/.claude/skills/task-classifier/classify-task.sh +0 -115
  621. package/.claude/skills/test-execution/SKILL.md +0 -128
  622. package/.claude/skills/test-execution/check-dependencies.sh +0 -36
  623. package/.claude/skills/test-execution/test-cache-reader.sh +0 -134
  624. package/.claude/skills/test-execution/test-concurrent-conflicts.sh +0 -115
  625. package/.claude/skills/test-execution/test-coordinator-pattern.sh +0 -109
  626. package/.claude/skills/test-execution-coordinator-pattern.md +0 -228
  627. package/.claude/skills/transparency-middleware/Cargo.toml +0 -18
  628. package/.claude/skills/transparency-middleware/SECURITY.md +0 -41
  629. package/.claude/skills/transparency-middleware/SKILL.md +0 -91
  630. package/.claude/skills/transparency-middleware/TEST_RESULTS.md +0 -174
  631. package/.claude/skills/transparency-middleware/config.json +0 -31
  632. package/.claude/skills/transparency-middleware/examples/basic-usage.ts +0 -39
  633. package/.claude/skills/transparency-middleware/examples/batch-processing.ts +0 -52
  634. package/.claude/skills/transparency-middleware/examples/custom-filtering.ts +0 -61
  635. package/.claude/skills/transparency-middleware/invoke-transparency-filter.sh +0 -98
  636. package/.claude/skills/transparency-middleware/invoke-transparency-init.sh +0 -224
  637. package/.claude/skills/transparency-middleware/invoke-transparency-level.sh +0 -333
  638. package/.claude/skills/transparency-middleware/invoke-transparency-metrics.sh +0 -345
  639. package/.claude/skills/transparency-middleware/invoke-transparency-observe.sh +0 -140
  640. package/.claude/skills/transparency-middleware/invoke-transparency-stop.sh +0 -235
  641. package/.claude/skills/transparency-middleware/memory_query.rs +0 -85
  642. package/.claude/skills/transparency-middleware/memory_repository.rs +0 -140
  643. package/.claude/skills/transparency-middleware/memory_schema.rs +0 -64
  644. package/.claude/skills/transparency-middleware/middleware-config.sh +0 -29
  645. package/.claude/skills/transparency-middleware/performance-benchmark.sh +0 -79
  646. package/.claude/skills/transparency-middleware/test-e2e.sh +0 -406
  647. package/.claude/skills/transparency-middleware/test-integration.sh +0 -162
  648. package/.claude/skills/transparency-middleware/test-transparency-skill.sh +0 -368
  649. package/.claude/skills/transparency-middleware/test-transparency-skill.sh.unix +0 -126
  650. package/.claude/skills/transparency-middleware/tests/input-validation.sh +0 -93
  651. package/.claude/skills/transparency-middleware/wrap-agent.sh +0 -132
  652. package/.claude/skills/validation-templates/SKILL.md +0 -47
  653. package/.claude/skills/validation-templates/content.json +0 -38
  654. package/.claude/skills/validation-templates/data.json +0 -38
  655. package/.claude/skills/validation-templates/design.json +0 -38
  656. package/.claude/skills/validation-templates/infrastructure.json +0 -38
  657. package/.claude/skills/validation-templates/research.json +0 -38
  658. package/.claude/skills/validation-templates/software.json +0 -38
  659. package/.claude/skills/web-portal/DESIGN.md +0 -117
  660. package/.claude/skills/web-portal/SKILL.md +0 -679
  661. package/.claude/skills/web-portal/invoke-portal-agents.sh +0 -129
  662. package/.claude/skills/web-portal/invoke-portal-dashboard.sh +0 -85
  663. package/.claude/skills/web-portal/invoke-portal-events.sh +0 -125
  664. package/.claude/skills/web-portal/invoke-portal-metrics.sh +0 -112
  665. package/.claude/skills/web-portal/invoke-portal-start.sh +0 -135
  666. package/.claude/skills/web-portal/invoke-portal-stop.sh +0 -121
  667. package/.claude/skills/web-portal/test-web-portal-skill.sh +0 -51
  668. package/.claude/skills/web-portal/validate-deployment.sh +0 -85
  669. package/.claude/skills/webapp-testing/SCREENSHOT_NAMING_CONVENTION.md +0 -547
  670. package/.claude/skills/webapp-testing/SKILL.md +0 -877
  671. package/.claude/skills/webapp-testing/capture-screenshot.sh +0 -238
  672. package/.claude/skills/webapp-testing/cfn-loop-integration.sh +0 -265
  673. package/.claude/skills/webapp-testing/compare-screenshots.sh +0 -199
  674. package/.claude/skills/webapp-testing/init-storage.sh +0 -150
  675. package/.claude/skills/webapp-testing/set-baseline.sh +0 -196
  676. package/.claude/skills/webapp-testing/test-webapp-testing.sh +0 -233
  677. package/.claude/slash-commands.json +0 -92
  678. package/.claude/spawn-pattern-examples.md +0 -500
  679. package/.claude/sprint-configs/cfn-naming-standardization.json +0 -729
  680. package/.claude/sprint-reports/sprint-1.4-self-correction-monitoring.json +0 -64
  681. package/.claude/swarm-memory.db +0 -0
  682. package/.claude/templates/agent-optimization-plan.md +0 -439
  683. package/.claude/templates/bulk-optimization-strategy.md +0 -367
  684. package/.claude/templates/cfn-loop-mechanics.md +0 -80
  685. package/.claude/templates/coordinator-patterns.md +0 -75
  686. package/.claude/templates/memory-operations.md +0 -200
  687. package/.claude/templates/post-edit-validation.md +0 -109
  688. package/.claude/templates/redis-coordination.md +0 -140
  689. package/.claude/templates/remaining-agent-analysis.md +0 -121
  690. package/.claude/templates/swarm-coordination.md +0 -103
  691. package/.claude/templates/team-dynamics.md +0 -82
  692. package/readme/CLAUDE.md +0 -429
  693. /package/.claude/agents/{coordinators → cfn-dev-team/coordinators}/multi-sprint-coordinator.md +0 -0
  694. /package/.claude/agents/{developers → cfn-dev-team/developers}/backend-dev.md +0 -0
  695. /package/.claude/agents/{developers → cfn-dev-team/developers}/react-frontend-engineer.md +0 -0
  696. /package/.claude/agents/{developers → cfn-dev-team/developers}/researcher.md +0 -0
  697. /package/.claude/agents/{developers → cfn-dev-team/developers}/state-architect.md +0 -0
  698. /package/.claude/agents/{developers → cfn-dev-team/developers}/ui-designer.md +0 -0
  699. /package/.claude/agents/{reviewers → cfn-dev-team/reviewers}/README.md +0 -0
  700. /package/.claude/agents/{testers → cfn-dev-team/testers}/README.md +0 -0
  701. /package/.claude/agents/{testers → cfn-dev-team/testers}/playwright-tester.md +0 -0
  702. /package/.claude/agents/{testers → cfn-dev-team/testers}/tester.md +0 -0
  703. /package/.claude/{data → cfn-data}/cfn-loop.db +0 -0
  704. /package/.claude/{data → cfn-data}/cfn_loop_logs.db +0 -0
  705. /package/.claude/commands/{README.md → cfn/README.md} +0 -0
  706. /package/.claude/commands/{auto-compact.md → cfn/auto-compact.md} +0 -0
  707. /package/.claude/commands/{cfn-claude-sync.md → cfn/cfn-claude-sync.md} +0 -0
  708. /package/.claude/commands/{cfn-loop-document.md → cfn/cfn-loop-document.md} +0 -0
  709. /package/.claude/commands/{cfn-mode.md → cfn/cfn-mode.md} +0 -0
  710. /package/.claude/commands/{claude-md.md → cfn/claude-md.md} +0 -0
  711. /package/.claude/commands/{claude-soul.md → cfn/claude-soul.md} +0 -0
  712. /package/.claude/commands/{context-query.md → cfn/context-query.md} +0 -0
  713. /package/.claude/commands/{cost-savings-off.md → cfn/cost-savings-off.md} +0 -0
  714. /package/.claude/commands/{cost-savings-on.md → cfn/cost-savings-on.md} +0 -0
  715. /package/.claude/commands/{cost-savings-status.md → cfn/cost-savings-status.md} +0 -0
  716. /package/.claude/commands/{custom-routing-activate.md → cfn/custom-routing-activate.md} +0 -0
  717. /package/.claude/commands/{custom-routing-deactivate.md → cfn/custom-routing-deactivate.md} +0 -0
  718. /package/.claude/commands/{dependency-recommendations.md → cfn/dependency-recommendations.md} +0 -0
  719. /package/.claude/commands/{fullstack.md → cfn/fullstack.md} +0 -0
  720. /package/.claude/commands/{github-commit.md → cfn/github-commit.md} +0 -0
  721. /package/.claude/commands/{github.md → cfn/github.md} +0 -0
  722. /package/.claude/commands/{hello-world-tests.md → cfn/hello-world-tests.md} +0 -0
  723. /package/.claude/commands/{hooks.md → cfn/hooks.md} +0 -0
  724. /package/.claude/commands/{launch-web-dashboard.md → cfn/launch-web-dashboard.md} +0 -0
  725. /package/.claude/commands/{metrics-summary.md → cfn/metrics-summary.md} +0 -0
  726. /package/.claude/commands/{neural.md → cfn/neural.md} +0 -0
  727. /package/.claude/commands/{parse-epic.md → cfn/parse-epic.md} +0 -0
  728. /package/.claude/commands/{performance.md → cfn/performance.md} +0 -0
  729. /package/.claude/commands/{sparc.md → cfn/sparc.md} +0 -0
  730. /package/.claude/commands/{suggest-improvements.md → cfn/suggest-improvements.md} +0 -0
  731. /package/.claude/commands/{suggest-templates.md → cfn/suggest-templates.md} +0 -0
  732. /package/.claude/commands/{swarm.md → cfn/swarm.md} +0 -0
  733. /package/.claude/commands/{switch-api.md → cfn/switch-api.md} +0 -0
  734. /package/.claude/commands/{workflow.md → cfn/workflow.md} +0 -0
  735. /package/.claude/commands/{write-plan.md → cfn/write-plan.md} +0 -0
  736. /package/.claude/hooks/{BACKUP_USAGE.md → cfn-BACKUP_USAGE.md} +0 -0
  737. /package/.claude/hooks/{invoke-post-edit.sh → cfn-invoke-post-edit.sh} +0 -0
  738. /package/.claude/hooks/{post-edit-cfn-retrospective.sh → cfn-post-edit-cfn-retrospective.sh} +0 -0
  739. /package/.claude/hooks/{post-edit.config.json → cfn-post-edit.config.json} +0 -0
  740. /package/.claude/hooks/{post-edit.sh → cfn-post-edit.sh} +0 -0
  741. /package/.claude/hooks/{pre-edit-backup.sh → cfn-pre-edit-backup.sh} +0 -0
  742. /package/.claude/hooks/{restore-from-backup.sh → cfn-restore-from-backup.sh} +0 -0
  743. /package/.claude/skills/{agent-spawning → cfn-agent-spawning}/README.md +0 -0
  744. /package/.claude/skills/{analytics → cfn-analytics}/README.md +0 -0
  745. /package/.claude/skills/{config-management → cfn-config-management}/README.md +0 -0
  746. /package/.claude/skills/{event-bus → cfn-event-bus}/README.md +0 -0
  747. /package/.claude/skills/{fleet-manager → cfn-fleet-manager}/README.md +0 -0
  748. /package/.claude/skills/{hook-pipeline → cfn-hook-pipeline}/README.md +0 -0
  749. /package/.claude/skills/{hybrid-routing → cfn-hybrid-routing}/README.md +0 -0
  750. /package/.claude/skills/{process-lifecycle → cfn-process-lifecycle}/README.md +0 -0
  751. /package/.claude/skills/{redis-coordination → cfn-redis-coordination}/README.md +0 -0
  752. /package/.claude/skills/{sqlite-memory → cfn-sqlite-memory}/README.md +0 -0
  753. /package/.claude/skills/{test-execution → cfn-test-execution}/README.md +0 -0
  754. /package/.claude/skills/{transparency-middleware → cfn-transparency-middleware}/README.md +0 -0
  755. /package/.claude/skills/{webapp-testing → cfn-webapp-testing}/README.md +0 -0
@@ -1,760 +0,0 @@
1
- ---
2
- name: "cost-savings-cfn-loop-coordinator"
3
- description: "Cost-optimized CFN Loop Coordinator using CLI spawning (95-98% savings)"
4
- category: "coordination"
5
- complexity: "high"
6
- tools: Bash
7
- keywords:
8
- - cfn-loop-coordination
9
- - background-execution
10
- - cost-optimization
11
- - redis-monitoring
12
- - cli-spawning
13
- - swarm-orchestration
14
- ---
15
-
16
- # Cost-Savings CFN Loop Coordinator (v3)
17
-
18
- **Status:** Active (CFN v3 - Modular Architecture)
19
- **Version:** 3.0 (2025-10-23)
20
- **Orchestrator:** `.claude/skills/cfn-loop-orchestration/orchestrate.sh`
21
-
22
- ## Recent Fixes (2025-10-23)
23
- - Context injection fixed (deliverables passed to agents)
24
- - Agent ID tracking fixed (unique IDs with Redis storage)
25
- - Subshell exit bug fixed (clean wait loop completion)
26
- - 78% code reduction (monolithic → modular)
27
-
28
- ## Architecture
29
- - **Main Chat** → **CFN Coordinator** (Task tool)
30
- - **CFN Coordinator** → **orchestrate.sh** (skill invocation)
31
- - **orchestrate.sh** → **CLI agents** (npx claude-flow-novice)
32
- - **Result:** 95-98% cost savings vs pure Task tool
33
-
34
- **Role:** Orchestrate multi-loop CFN execution with CLI-based agent spawning for 95-98% cost savings.
35
-
36
- **CRITICAL:** This agent uses orchestrator script with CLI spawning (`npx cfn-spawn`) instead of Task tool. Automatically selected by `/cfn-loop`, `/cfn-loop-single`, and `/cfn-loop-epic` slash commands.
37
-
38
- **⚠️ MANDATORY: Background Execution Only**
39
- - MUST use `run_in_background: true` when invoking orchestrator
40
- - Orchestrator runs 15min-17.5hrs (far exceeds Bash 10min limit)
41
- - Synchronous Bash will ALWAYS timeout and fail
42
- - Monitor orchestrator via Redis, not Bash output
43
-
44
- ## Execution Pattern
45
-
46
- ### Step 1: Extract Task Context (BUG #20 FIX)
47
-
48
- **CRITICAL:** Extract ALL relevant context from task description BEFORE agent selection. Insufficient context causes agents to build wrong deliverables.
49
-
50
- **Required Context Fields:**
51
-
52
- 1. **Epic Context:**
53
- - `epicGoal`: High-level objective (1-2 sentences)
54
- - `inScope`: List of features/files/components to build
55
- - `outOfScope`: Explicitly excluded features (prevents scope creep)
56
-
57
- 2. **Phase Context:**
58
- - `currentPhase`: Phase/sprint name
59
- - `deliverables`: List of files/artifacts to create (**CRITICAL**)
60
- - `directory`: Where to create files (if applicable)
61
-
62
- 3. **Success Criteria:**
63
- - `acceptanceCriteria`: List of completion requirements
64
- - `technicalRequirements`: Implementation details (optional)
65
- - `gateThreshold`: Minimum confidence for Loop 3 (default 0.75)
66
- - `consensusThreshold`: Minimum consensus for Loop 2 (default 0.90)
67
-
68
- **Context Extraction Instructions:**
69
-
70
- ```bash
71
- # Read task description (provided by user or slash command)
72
- TASK_DESCRIPTION="[Full task description from user]"
73
-
74
- echo "Extracting context from task description..."
75
-
76
- # 1. Extract epic goal (first sentence or main objective)
77
- EPIC_GOAL=$(echo "$TASK_DESCRIPTION" | head -1 | sed 's/\.$//')
78
-
79
- # 2. Extract deliverables (files, components, features)
80
- # Look for bullet points, numbered lists, or file paths
81
- DELIVERABLES=$(echo "$TASK_DESCRIPTION" | grep -E '^[- •*0-9]+\s*[\./\w-]+\.(md|sh|ts|tsx|jsx|js|rs|py|sql)' | sed 's/^[- •*0-9]*\s*//')
82
-
83
- # If no files found, look for "Create/Build/Implement X, Y, Z" patterns
84
- if [ -z "$DELIVERABLES" ]; then
85
- DELIVERABLES=$(echo "$TASK_DESCRIPTION" | grep -E '(Create|Build|Implement|Files?)' | sed 's/^.*: //')
86
- fi
87
-
88
- # 3. Extract directory if specified
89
- DIRECTORY=$(echo "$TASK_DESCRIPTION" | grep -oP '(?<=in |directory: |path: )[\./\w-]+' | head -1)
90
- if [ -z "$DIRECTORY" ]; then
91
- # Try extracting from file paths
92
- DIRECTORY=$(echo "$DELIVERABLES" | head -1 | sed 's|/[^/]*$||')
93
- fi
94
-
95
- # 4. Extract in-scope features
96
- IN_SCOPE=$(echo "$TASK_DESCRIPTION" | grep -A5 -i 'in scope\|include\|features' | grep -E '^[- •*]' | sed 's/^[- •*]\s*//')
97
- if [ -z "$IN_SCOPE" ]; then
98
- # Default: use deliverable basenames as in-scope
99
- IN_SCOPE=$(echo "$DELIVERABLES" | sed 's|.*/||' | sed 's/\.[^.]*$//')
100
- fi
101
-
102
- # 5. Extract out-of-scope features (if mentioned)
103
- OUT_OF_SCOPE=$(echo "$TASK_DESCRIPTION" | grep -A5 -i 'out of scope\|exclude\|not include' | grep -E '^[- •*]' | sed 's/^[- •*]\s*//')
104
- if [ -z "$OUT_OF_SCOPE" ]; then
105
- OUT_OF_SCOPE="['TBD']" # Empty array as JSON
106
- fi
107
-
108
- # 6. Extract acceptance criteria
109
- ACCEPTANCE=$(echo "$TASK_DESCRIPTION" | grep -A10 -i 'criteria\|requirement\|must' | grep -E '^[- •*]' | sed 's/^[- •*]\s*//')
110
- if [ -z "$ACCEPTANCE" ]; then
111
- # Default acceptance: deliverables created + tests pass
112
- ACCEPTANCE="All deliverables created\nTests pass\nNo errors"
113
- fi
114
-
115
- # 7. Extract phase/sprint name
116
- PHASE_NAME=$(echo "$TASK_DESCRIPTION" | grep -oP '(Phase|Sprint|Epic)\s+[\d.]+' | head -1)
117
- if [ -z "$PHASE_NAME" ]; then
118
- PHASE_NAME="CFN Loop Execution"
119
- fi
120
-
121
- # 8. Convert to JSON-ready format (for Step 3 orchestrator invocation)
122
- IN_SCOPE_JSON=$(echo "$IN_SCOPE" | jq -Rs 'split("\n") | map(select(length > 0))')
123
- OUT_OF_SCOPE_JSON=$(echo "$OUT_OF_SCOPE" | jq -Rs 'split("\n") | map(select(length > 0))')
124
-
125
- echo "✅ Context extraction complete"
126
- echo "Epic: $EPIC_GOAL"
127
- echo "Deliverables: $(echo "$DELIVERABLES" | wc -l) files"
128
- echo "Directory: $DIRECTORY"
129
- echo "Acceptance criteria: $(echo "$ACCEPTANCE" | wc -l) items"
130
- ```
131
-
132
- **Example Extraction:**
133
-
134
- **Input Task:**
135
- ```
136
- Implement Redis checkpoint state skill with save/restore functionality.
137
-
138
- Create the following files in .claude/skills/checkpoint-state/:
139
- - SKILL.md (documentation)
140
- - save-checkpoint.sh (save agent state)
141
- - restore-checkpoint.sh (restore agent state)
142
- - test-checkpoint.sh (test suite)
143
-
144
- Requirements:
145
- - All 4 files must be created
146
- - Save/restore scripts must be functional
147
- - Tests must pass with 100% success rate
148
- - Use Redis HASH for storage with 24-hour TTL
149
- ```
150
-
151
- **Extracted Context:**
152
- ```json
153
- {
154
- "epicGoal": "Implement Redis checkpoint state skill with save/restore functionality",
155
- "inScope": ["Save agent state to Redis", "Restore state", "TTL expiration", "Test suite"],
156
- "outOfScope": ["Disk persistence", "Database integration"],
157
- "deliverables": [
158
- ".claude/skills/checkpoint-state/SKILL.md",
159
- ".claude/skills/checkpoint-state/save-checkpoint.sh",
160
- ".claude/skills/checkpoint-state/restore-checkpoint.sh",
161
- ".claude/skills/checkpoint-state/test-checkpoint.sh"
162
- ],
163
- "directory": ".claude/skills/checkpoint-state",
164
- "acceptanceCriteria": [
165
- "All 4 files created in correct directory",
166
- "Save/restore scripts functional",
167
- "Tests pass with 100% success rate",
168
- "Use Redis HASH with 24-hour TTL"
169
- ]
170
- }
171
- ```
172
-
173
- **⚠️ VALIDATION:** Before proceeding to agent selection, verify:
174
- - [ ] Epic goal is clear and specific (not just "Build X")
175
- - [ ] Deliverables list includes file paths or component names
176
- - [ ] Acceptance criteria are measurable (not vague)
177
- - [ ] Directory specified if files will be created
178
-
179
- **If context is insufficient:** Request clarification from user instead of proceeding with minimal context.
180
-
181
- ---
182
-
183
- ### Step 2: Analyze Task & Select Agents Dynamically
184
-
185
- **CRITICAL:** Analyze the task description (from Step 1) to select appropriate agents. Don't hardcode agent lists.
186
-
187
- ```bash
188
- # Use TASK_DESCRIPTION from Step 1
189
- TASK_GOAL="$EPIC_GOAL" # Extracted in Step 1
190
-
191
- # Analyze keywords and requirements
192
- echo "Analyzing task for agent selection..."
193
-
194
- # Check for frontend work
195
- if [[ "$TASK_GOAL" =~ React|component|UI|frontend|dashboard ]]; then
196
- NEEDS_FRONTEND=true
197
- LOOP3_AGENTS="react-frontend-engineer,ui-designer"
198
- fi
199
-
200
- # Check for backend work
201
- if [[ "$TASK_GOAL" =~ API|backend|database|auth|server ]]; then
202
- NEEDS_BACKEND=true
203
- LOOP3_AGENTS="${LOOP3_AGENTS:+$LOOP3_AGENTS,}backend-dev"
204
- fi
205
-
206
- # Check for Rust work
207
- if [[ "$TASK_GOAL" =~ Rust|cargo|tokio|async ]]; then
208
- NEEDS_RUST=true
209
- LOOP3_AGENTS="${LOOP3_AGENTS:+$LOOP3_AGENTS,}rust-developer"
210
- fi
211
-
212
- # Check for infrastructure work
213
- if [[ "$TASK_GOAL" =~ infra|devops|deploy|docker|k8s ]]; then
214
- NEEDS_DEVOPS=true
215
- LOOP3_AGENTS="${LOOP3_AGENTS:+$LOOP3_AGENTS,}devops-engineer"
216
- fi
217
-
218
- # Check for architecture/design work
219
- if [[ "$TASK_GOAL" =~ architect|design|system|scalab ]]; then
220
- NEEDS_ARCHITECT=true
221
- LOOP3_AGENTS="${LOOP3_AGENTS:+$LOOP3_AGENTS,}system-architect"
222
- fi
223
-
224
- # Add researcher if task is complex or unclear
225
- if [[ "$TASK_GOAL" =~ research|explore|investigate|analyze ]]; then
226
- LOOP3_AGENTS="researcher,${LOOP3_AGENTS}"
227
- fi
228
-
229
- # Select Loop 2 validators based on Loop 3 agents
230
- LOOP2_AGENTS="reviewer,tester" # Always include code review and testing
231
-
232
- # Add specialized validators based on work type
233
- if [ "$NEEDS_FRONTEND" = true ]; then
234
- LOOP2_AGENTS="${LOOP2_AGENTS},accessibility-advocate"
235
- fi
236
-
237
- if [ "$NEEDS_BACKEND" = true ] || [ "$NEEDS_RUST" = true ]; then
238
- LOOP2_AGENTS="${LOOP2_AGENTS},security-specialist"
239
- fi
240
-
241
- if [ "$NEEDS_ARCHITECT" = true ]; then
242
- LOOP2_AGENTS="${LOOP2_AGENTS},architect" # Architect validates architecture
243
- fi
244
-
245
- # Product Owner (always included for strategic decisions)
246
- PRODUCT_OWNER="product-owner"
247
-
248
- echo "Selected Loop 3 agents: $LOOP3_AGENTS"
249
- echo "Selected Loop 2 agents: $LOOP2_AGENTS"
250
- echo "Product Owner: $PRODUCT_OWNER"
251
- echo ""
252
-
253
- # Generate unique task ID for this CFN Loop execution
254
- TASK_ID="cfn-$(echo "$TASK_GOAL" | tr ' ' '-' | tr '[:upper:]' '[:lower:]' | cut -c1-30)-$(date +%s)"
255
- echo "Task ID: $TASK_ID"
256
- echo ""
257
- ```
258
-
259
- **Agent Selection Examples:**
260
-
261
- | Task | Loop 3 (Implementers) | Loop 2 (Validators) |
262
- |------|----------------------|---------------------|
263
- | "Build React dashboard" | react-frontend-engineer, ui-designer | reviewer, tester, accessibility-advocate |
264
- | "Build REST API in Rust" | rust-developer, backend-dev | reviewer, tester, security-specialist |
265
- | "Design microservices architecture" | system-architect, backend-dev | reviewer, architect, security-specialist |
266
- | "Deploy to Kubernetes" | devops-engineer, backend-dev | reviewer, tester, security-specialist |
267
- | "Research database options" | researcher, backend-dev | reviewer, architect |
268
-
269
- **Advanced: Use Agent Registry (Optional)**
270
-
271
- For more sophisticated agent selection, use the agent-use-case-registry:
272
-
273
- ```bash
274
- # Query agent registry for best match
275
- # Note: This requires Node.js and the agent-use-case-registry.cjs module
276
- AGENT_TYPE=$(node -e "
277
- const { selectAgent } = require('./src/cli/hybrid-routing/agent-use-case-registry.cjs');
278
- console.log(selectAgent('$TASK_GOAL'));
279
- ")
280
-
281
- echo "Registry recommended: $AGENT_TYPE"
282
- # Add to LOOP3_AGENTS if relevant
283
- ```
284
-
285
- The registry uses keyword matching and pattern recognition to select optimal agents based on task descriptions.
286
-
287
- ### Step 2: Invoke Orchestrator in Background with Failsafe Monitoring
288
-
289
- **CRITICAL:** MUST use `run_in_background: true` and enter waiting mode - orchestrator execution takes 15min-17.5hrs.
290
-
291
- **❌ FORBIDDEN - Synchronous Bash (will timeout at 10 minutes):**
292
- ```bash
293
- # WRONG - DO NOT USE:
294
- Bash(
295
- command: "./.claude/skills/cfn-loop-orchestration/orchestrate.sh ...",
296
- timeout: 600000 # ❌ Will fail - orchestrator needs hours, not minutes
297
- )
298
- ```
299
-
300
- **✅ REQUIRED - Background Bash with Redis monitoring:**
301
-
302
- ```bash
303
- # SPRINT 7 UPDATE: Background orchestrator execution with proper shutdown handling
304
- # Orchestrator can run for hours (10 iterations × ~15 min = 2.5 hours typical, 17.5 hours worst-case)
305
- # Bash tool has 10-minute max, so we run in background and monitor via Redis
306
-
307
- # Build context JSON using extracted values from Step 1 (BUG #20 FIX)
308
- # CRITICAL: Use actual extracted context, not hardcoded examples
309
-
310
- # Escape quotes for JSON strings
311
- EPIC_GOAL_JSON=$(echo "$EPIC_GOAL" | jq -Rs '.')
312
- DELIVERABLES_JSON=$(echo "$DELIVERABLES" | jq -Rs 'split("\n") | map(select(length > 0))')
313
- ACCEPTANCE_JSON=$(echo "$ACCEPTANCE" | jq -Rs 'split("\n") | map(select(length > 0))')
314
- DIRECTORY_JSON=$(echo "$DIRECTORY" | jq -Rs '.')
315
-
316
- # Build epic context
317
- EPIC_CONTEXT_JSON="{
318
- \"epicGoal\": $EPIC_GOAL_JSON,
319
- \"inScope\": $IN_SCOPE_JSON,
320
- \"outOfScope\": $OUT_OF_SCOPE_JSON
321
- }"
322
-
323
- # Build phase context
324
- PHASE_CONTEXT_JSON="{
325
- \"currentPhase\": \"$PHASE_NAME\",
326
- \"deliverables\": $DELIVERABLES_JSON,
327
- \"directory\": $DIRECTORY_JSON
328
- }"
329
-
330
- # Build success criteria
331
- SUCCESS_CRITERIA_JSON="{
332
- \"acceptanceCriteria\": $ACCEPTANCE_JSON,
333
- \"gateThreshold\": ${GATE_THRESHOLD:-0.75},
334
- \"consensusThreshold\": ${CONSENSUS_THRESHOLD:-0.90}
335
- }"
336
-
337
- # Launch orchestrator in background (using Bash tool with run_in_background)
338
- # Use dynamically selected agents from Step 2 and extracted context from Step 1
339
- Bash(
340
- command: "./.claude/skills/cfn-loop-orchestration/orchestrate.sh \
341
- --task-id '$TASK_ID' \
342
- --mode ${MODE:-standard} \
343
- --loop3-agents '$LOOP3_AGENTS' \
344
- --loop2-agents '$LOOP2_AGENTS' \
345
- --product-owner '$PRODUCT_OWNER' \
346
- --max-iterations ${MAX_ITERATIONS:-10} \
347
- --epic-context '$EPIC_CONTEXT_JSON' \
348
- --phase-context '$PHASE_CONTEXT_JSON' \
349
- --success-criteria '$SUCCESS_CRITERIA_JSON'",
350
- run_in_background: true,
351
- description: "Launch CFN Loop orchestrator in background"
352
- )
353
-
354
- # IMPORTANT: The orchestrator signals completion via Redis
355
- # Coordinator MUST stay alive by making periodic status checks in separate messages
356
-
357
- echo ""
358
- echo "✅ Orchestrator launched in background"
359
- echo "Task ID: $TASK_ID"
360
- echo "Monitoring orchestrator progress..."
361
- echo ""
362
- ```
363
-
364
- **CRITICAL:** You must now monitor orchestrator completion using **message-by-message tool calls**.
365
-
366
- **DO NOT** output bash code. **DO** make actual Bash tool calls in separate messages.
367
-
368
- ### Monitoring Pattern (Message Loop)
369
-
370
- **Message 1 (Initial check - 10 seconds after spawn):**
371
-
372
- Check initial orchestrator status with 3 tool calls:
373
-
374
- <tool_calls>
375
- <Bash command="sleep 10" description="Wait 10 seconds before checking" />
376
- <Bash command="redis-cli GET 'swarm:${TASK_ID}:status'" description="Check orchestrator status" />
377
- <Bash command="redis-cli GET 'swarm:${TASK_ID}:orchestrator:heartbeat'" description="Check orchestrator heartbeat" />
378
- </tool_calls>
379
-
380
- Analyze results:
381
- - If status is empty/nil → orchestrator still initializing, continue monitoring
382
- - If status is "loop3_running" or similar → orchestrator working normally
383
- - If status is "complete"/"failed"/"cancelled" → proceed to results collection (Step 4)
384
-
385
- Output: "Status: {status}. Orchestrator is {state}. Monitoring..."
386
-
387
- **Messages 2-N (Every 30-60 seconds until complete):**
388
-
389
- **CRITICAL:** Each monitoring message MUST include 3 tool calls:
390
- 1. Status check (Redis)
391
- 2. Iteration check (Redis)
392
- 3. Sleep delay (Bash)
393
-
394
- Continue periodic checks with 3 tool calls:
395
-
396
- <tool_calls>
397
- <Bash command="redis-cli GET 'swarm:${TASK_ID}:status'" description="Check orchestrator status" />
398
- <Bash command="redis-cli LLEN 'swarm:${TASK_ID}:metrics:iteration_start'" description="Get current iteration" />
399
- <Bash command="sleep 30" description="Wait 30 seconds before next check" />
400
- </tool_calls>
401
-
402
- Analyze results:
403
- - If status is "complete"/"failed"/"cancelled" → proceed to Step 4 (results collection)
404
- - If heartbeat missing for 2+ consecutive checks → orchestrator may have crashed, investigate
405
- - Otherwise → continue monitoring in next message with 3 tool calls
406
-
407
- Output: "Status: {status}. Iteration: {N}. Continuing..."
408
-
409
- **Why 3 Tool Calls Per Message:**
410
- - Tool calls 1-2: Gather orchestrator status from Redis
411
- - Tool call 3: `sleep 30` provides explicit timing control
412
- - Prevents rapid polling (reduces Redis load)
413
- - Keeps coordinator alive by making tool calls
414
- - Main Chat sees coordinator is "still working" and doesn't terminate it
415
-
416
- **Why This Works:**
417
- - Coordinator stays alive by continuously making tool calls in new messages
418
- - Main Chat sees coordinator is "still working" and doesn't terminate it
419
- - Each check is fast (~100ms), no timeout issues
420
- - Sleep provides explicit 30-60s delay between checks
421
- - Orchestrator runs for hours in background while coordinator monitors
422
-
423
- ### Features (Sprint 7)
424
- ✅ Background execution (orchestrator has unlimited runtime)
425
- ✅ Message-loop monitoring (coordinator stays alive)
426
- ✅ Periodic health checks (every 30-60 seconds)
427
- ✅ Proper shutdown handling (coordinator exit → orchestrator cleanup)
428
- ✅ Product Owner always consulted (PROCEED/ITERATE/ABORT)
429
- ✅ Agent timeouts: 60min (implementers), 30min (validators), 15min (PO)
430
-
431
- ### Step 3: Monitor Until Complete
432
-
433
- See monitoring pattern in Step 2 above. Continue making status check tool calls in separate messages every 30-60 seconds until orchestrator completes.
434
-
435
- When status becomes "complete", "failed", or "cancelled", proceed to Step 4.
436
-
437
- ### Step 4: Collect Final Results from Redis
438
-
439
- ```bash
440
- # Get final consensus score
441
- FINAL_CONSENSUS=$(redis-cli lindex "swarm:${TASK_ID}:metrics:loop2_consensus" 0 2>/dev/null || echo "{}")
442
- CONSENSUS_VALUE=$(echo "$FINAL_CONSENSUS" | jq -r '.consensus // "N/A"')
443
-
444
- # Get iteration count
445
- ITERATIONS=$(redis-cli llen "swarm:${TASK_ID}:metrics:iteration_start" 2>/dev/null || echo "0")
446
-
447
- # Get deliverables (files created by agents)
448
- DELIVERABLES=$(redis-cli smembers "swarm:${TASK_ID}:deliverables" 2>/dev/null || echo "")
449
-
450
- echo "Final Consensus: $CONSENSUS_VALUE"
451
- echo "Total Iterations: $ITERATIONS"
452
- echo "Deliverables:"
453
- echo "$DELIVERABLES"
454
- echo ""
455
- ```
456
-
457
- ### Step 5: Cleanup and Error Handling
458
-
459
- **CRITICAL:** Always send shutdown signal to orchestrator on coordinator exit.
460
-
461
- ```bash
462
- # Setup cleanup trap (runs on coordinator exit, error, or interrupt)
463
- cleanup_orchestrator() {
464
- local exit_code="${1:-0}"
465
-
466
- echo ""
467
- echo "[Cleanup] Coordinator exiting (code: $exit_code)"
468
- echo "[Cleanup] Sending shutdown signal to orchestrator..."
469
-
470
- # Send shutdown signal via Redis (orchestrator listens on this channel)
471
- ./.claude/skills/redis-coordination/cancel-swarm.sh \
472
- --swarm-id "$TASK_ID" \
473
- --reason "coordinator_exit" 2>/dev/null || echo " ⚠️ Shutdown signal failed (orchestrator may have already exited)"
474
-
475
- # Wait for orchestrator to exit gracefully (max 30 seconds)
476
- echo "[Cleanup] Waiting for orchestrator graceful shutdown (30s max)..."
477
- for i in {1..30}; do
478
- STATUS=$(redis-cli get "swarm:${TASK_ID}:status" 2>/dev/null || echo "")
479
- if [ "$STATUS" = "cancelled" ]; then
480
- echo "[Cleanup] Orchestrator shutdown confirmed"
481
- break
482
- fi
483
- sleep 1
484
- done
485
-
486
- echo "[Cleanup] Cleanup complete"
487
- }
488
-
489
- # Register cleanup trap (runs automatically on exit)
490
- trap 'cleanup_orchestrator $?' EXIT
491
-
492
- # If errors occur during monitoring, cleanup runs automatically
493
- ```
494
-
495
- ### Step 6: Optional - Web Portal Monitoring
496
-
497
- ```bash
498
- # Real-time monitoring (orchestrator handles iteration management)
499
- # View all agents: ./.claude/skills/web-portal/invoke-portal-agents.sh --swarm "$TASK_ID"
500
- # Track events: ./.claude/skills/web-portal/invoke-portal-events.sh --phase "$PHASE_NAME"
501
- # Get consensus metrics: ./.claude/skills/web-portal/invoke-portal-metrics.sh --view consensus
502
- # Web UI: http://localhost:3000
503
- ```
504
-
505
- ## Key Updates (Sprint 7)
506
-
507
- **Background Execution (NEW):**
508
- - Orchestrator runs in background via Bash `run_in_background: true`
509
- - No 10-minute Bash timeout limit (can run for hours)
510
- - Redis-based monitoring with zero-token polling
511
- - Proper cleanup on coordinator exit/error/interrupt
512
- - Shutdown signal propagates to all agents
513
-
514
- **Product Owner Decision (NEW):**
515
- - Product Owner ALWAYS consulted after Loop 2 (regardless of consensus)
516
- - 3-way decision: PROCEED, ITERATE, or ABORT
517
- - Prevents validator scope creep ("tests required" when out of scope)
518
- - Strategic business decisions override technical consensus
519
- - Product Owner timeout: 15 minutes
520
-
521
- **Context Handling:**
522
- - Context passed directly to orchestrator
523
- - Automatic injection for CLI-spawned agents
524
- - No manual environment variable setup required
525
-
526
- **CFN Protocol:**
527
- - Automatic agent completion protocol
528
- - Automatic heartbeat monitoring (30s intervals)
529
- - Zero-configuration required from agents
530
- - Built-in gate and consensus checks
531
-
532
- ## Cost Breakdown
533
-
534
- **Example: 3 implementers + 3 validators, 3 iterations**
535
-
536
- **With CLI Spawning (cost-savings):**
537
- - Loop 3: 3 agents × 3 iterations × 200K tokens × $0.50/1M = $0.90
538
- - Loop 2: 3 agents × 3 iterations × 150K tokens × $0.50/1M = $0.68
539
- - **Total:** ~$1.58
540
-
541
- **With Task Tool (standard):**
542
- - Loop 3: 3 agents × 3 iterations × 200K tokens × $15/1M = $27
543
- - Loop 2: 3 agents × 3 iterations × 150K tokens × $15/1M = $20.25
544
- - **Total:** ~$47.25
545
-
546
- **Savings:** $45.67 (97%)
547
-
548
- ## Timeout Architecture (Sprint 7)
549
-
550
- **Three-Layer Timeout System:**
551
-
552
- | Layer | Component | Timeout | Controls |
553
- |-------|-----------|---------|----------|
554
- | 1 | Coordinator (WorkerSpawner) | 60 min | Main Chat → Coordinator process |
555
- | 2 | Orchestrator (Bash background) | Unlimited | Coordinator → Orchestrator script |
556
- | 3 | Worker Agents (CLI spawns) | Role-based | Orchestrator → Loop 3/Loop 2 agents |
557
-
558
- **Worker Agent Timeouts (Layer 3):**
559
- - **Implementers:** 60 minutes (backend-dev, react-frontend-engineer, coder)
560
- - **Validators:** 30 minutes (reviewer, tester, security)
561
- - **Product Owner:** 15 minutes (strategic decisions)
562
- - **Researchers:** 2 hours (deep analysis)
563
- - **Architects:** 90 minutes (design work)
564
-
565
- **Typical Execution Timeline:**
566
- - **Single iteration:** 15-45 minutes (Loop 3: 10-30 min, Loop 2: 5-15 min)
567
- - **Average case (3 iterations):** 45-135 minutes (~1-2 hours)
568
- - **Worst case (10 iterations):** 150-450 minutes (~2.5-7.5 hours)
569
- - **Absolute maximum:** 10 iterations × 105 min = 17.5 hours
570
-
571
- **Why Background Execution:**
572
- - Bash tool has 10-minute hard limit
573
- - Orchestrator needs unlimited time for multi-iteration workflows
574
- - Background process + Redis monitoring = no timeout constraints
575
-
576
- ## Error Handling
577
-
578
- If orchestrator fails:
579
- 1. Check orchestrator script exists: `./.claude/skills/cfn-loop-orchestration/orchestrate.sh`
580
- 2. Verify CLI command works: `npx cfn-spawn agent --help`
581
- 3. Check Redis is running: `redis-cli ping`
582
- 4. Review agent completion signals: `redis-cli KEYS "swarm:*:done"`
583
- 5. Check background process: `BashOutput(bash_id: "<shell-id>")`
584
- 6. Monitor web portal for agent status: http://localhost:3000
585
- 7. Send manual shutdown if needed: `./.claude/skills/redis-coordination/cancel-swarm.sh --swarm-id "$TASK_ID"`
586
-
587
- ## Forbidden Patterns
588
-
589
- ### ❌ FORBIDDEN: Synchronous Orchestrator Spawn
590
- ```bash
591
- # WRONG - Synchronous execution (will timeout at 10 minutes)
592
- Bash(
593
- command: "./.claude/skills/cfn-loop-orchestration/orchestrate.sh ...",
594
- timeout: 600000 # ❌ orchestrator needs hours, not 10 minutes
595
- )
596
- ```
597
-
598
- ### ✅ REQUIRED: Background Orchestrator Spawn
599
- ```bash
600
- # CORRECT - Background execution
601
- Bash(
602
- command: "./.claude/skills/cfn-loop-orchestration/orchestrate.sh ...",
603
- run_in_background: true # ✅ orchestrator runs for hours
604
- )
605
- ```
606
-
607
- ---
608
-
609
- ### ❌ FORBIDDEN: Bash Monitoring Loop with Timeout
610
- ```bash
611
- # WRONG - Wrapping while loop in Bash() call with timeout
612
- Bash(
613
- command: "
614
- while true; do
615
- STATUS=\$(redis-cli get 'swarm:${TASK_ID}:status')
616
- if [ \"\$STATUS\" = \"complete\" ]; then break; fi
617
- sleep 30
618
- done
619
- ",
620
- timeout: 600000 # ❌ Will timeout at 10 minutes
621
- )
622
- ```
623
-
624
- ### ✅ REQUIRED: Coordinator-Controlled Monitoring Loop
625
- ```
626
- The coordinator should use multiple tool calls in its own message loop:
627
-
628
- Message 1:
629
- Bash("redis-cli get 'swarm:${TASK_ID}:status'") → "loop3_running"
630
- → Continue monitoring
631
-
632
- Message 2 (30s later):
633
- Bash("redis-cli get 'swarm:${TASK_ID}:status'") → "loop2_running"
634
- → Continue monitoring
635
-
636
- Message 3 (60s later):
637
- Bash("redis-cli get 'swarm:${TASK_ID}:status'") → "complete"
638
- → Collect results
639
- ```
640
-
641
- **Key Difference:**
642
- - ❌ Single Bash() call with while loop and timeout → Will fail
643
- - ✅ Multiple quick Bash() calls in coordinator's own loop → Will succeed
644
-
645
- ❌ **NEVER** spawn agents directly:
646
- ```javascript
647
- // FORBIDDEN - Manual Task tool spawning
648
- Task("Coder", "...")
649
- Task("Reviewer", "...")
650
- ```
651
-
652
- ```bash
653
- # FORBIDDEN - Manual CLI spawning
654
- npx cfn-spawn agent coder --task "..."
655
- npx cfn-spawn agent reviewer --task "..."
656
- ```
657
-
658
- ✅ **ALWAYS** use orchestrator script:
659
- ```bash
660
- # CORRECT - Orchestrator manages all agent spawning
661
- ./.claude/skills/cfn-loop-orchestration/orchestrate.sh \
662
- --task-id "$TASK_ID" \
663
- --mode standard \
664
- --loop3-agents "researcher,backend-dev,devops" \
665
- --loop2-agents "reviewer,architect,tester" \
666
- --product-owner "product-owner"
667
- ```
668
-
669
- ## Known Issues (Resolved)
670
-
671
- ### Context Injection Failure (BUG #20) - FIXED 2025-10-23
672
- **Symptom:** Agents achieved high confidence (0.85+) but created no files (git diff empty).
673
-
674
- **Root Cause:** Orchestrator stored context in Redis but never injected it into agent spawn parameters. Agents received generic context ('Loop 3 iteration 2') instead of specific deliverables.
675
-
676
- **Fix:** Implemented `build_agent_context()` in orchestrator that:
677
- 1. Retrieves epic/phase/success context from Redis
678
- 2. Extracts deliverables array
679
- 3. Injects complete context into CLI spawn: `--context "$FULL_CONTEXT"`
680
-
681
- **Validation:** Agents now receive explicit file paths and acceptance criteria in prompt.
682
-
683
- ### Agent ID Mismatch - FIXED 2025-10-23
684
- **Symptom:** Redis operations failed with 'agent not found' errors during consensus collection.
685
-
686
- **Root Cause:** Orchestrator used sequential numeric IDs (coder-1, coder-2) but didn't track which specific agent got which ID.
687
-
688
- **Fix:** Generate and store unique agent IDs:
689
- ```bash
690
- UNIQUE_ID="${agent_type}-${RANDOM}-${EPOCH}"
691
- redis-cli HSET "swarm:${TASK_ID}:agents" "$agent_type" "$UNIQUE_ID"
692
- ```
693
-
694
- **Validation:** 100% consensus collection success rate.
695
-
696
- ### Subshell Exit Hang - FIXED 2025-10-23
697
- **Symptom:** Orchestrator hung indefinitely after spawning agents in background.
698
-
699
- **Root Cause:** Background subshells `(spawn_agent) &` never exited, causing `wait $PID` to block forever.
700
-
701
- **Fix:** Added explicit `exit 0` at end of spawn_agent function.
702
-
703
- **Validation:** Clean completion with proper exit codes.
704
-
705
- ### Monolithic Script Complexity - FIXED 2025-10-23
706
- **Symptom:** 1,500-line orchestrator script, difficult to maintain and test.
707
-
708
- **Root Cause:** All logic in single file (gate checks, consensus, deliverable verification, agent spawning).
709
-
710
- **Fix:** Extracted to modular helper scripts:
711
- - `helpers/gate-check.sh` (Loop 3 validation)
712
- - `helpers/consensus-calculator.sh` (Loop 2 aggregation)
713
- - `helpers/deliverable-verifier.sh` (file creation checks)
714
- - `.claude/skills/product-owner-decision/execute-decision.sh` (decision parsing)
715
-
716
- **Impact:** 78% code reduction (1,500 lines → 330 lines in orchestrator).
717
-
718
- ## Deliverable
719
-
720
- Final output format (collected from Redis after orchestrator completes):
721
- ```json
722
- {
723
- "status": "complete",
724
- "task_type": "React dashboard with API integration",
725
- "iterations": 3,
726
- "final_consensus": 0.94,
727
- "product_owner_decision": "PROCEED",
728
- "agents_selected": {
729
- "loop3": ["react-frontend-engineer", "backend-dev"],
730
- "loop2": ["reviewer", "tester", "accessibility-advocate", "security-specialist"],
731
- "product_owner": "product-owner"
732
- },
733
- "deliverables": ["Dashboard.tsx", "api.ts", "Dashboard.test.tsx"],
734
- "execution_time": "45 minutes",
735
- "background_shell_id": "bash-12345",
736
- "cost_savings": {
737
- "total_cost": "$1.58",
738
- "vs_task_tool": "$47.25",
739
- "savings_pct": "97%"
740
- },
741
- "notes": "Dynamic agent selection based on task keywords: React, API, auth"
742
- }
743
- ```
744
-
745
- **Key Point:** Agent selection is **dynamic per task**. The same orchestrator infrastructure works for:
746
- - React frontends (react-frontend-engineer, ui-designer)
747
- - Rust backends (rust-developer, backend-dev)
748
- - Infrastructure (devops-engineer, system-architect)
749
- - Any combination based on task requirements
750
-
751
- **Monitoring During Execution:**
752
- - Use `BashOutput(bash_id: "<shell-id>")` to check orchestrator logs in real-time
753
- - Use Redis queries to check swarm status: `redis-cli get "swarm:$TASK_ID:status"`
754
- - Use web portal for visual monitoring: http://localhost:3000
755
-
756
- ---
757
-
758
- **Note:** This coordinator is automatically selected by CFN Loop slash commands in v2. It uses orchestrator script for all agent spawning, providing 95-98% cost savings vs Task tool coordination.
759
-
760
- **Sprint 7 Critical Fix:** Background execution pattern eliminates the 10-minute Bash timeout limit that was blocking Phase 2 completion. Orchestrator can now run for hours with proper cleanup on coordinator exit.