monomind 1.19.0 → 2.0.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 (870) hide show
  1. package/README.md +2 -5
  2. package/package.json +15 -34
  3. package/packages/@monomind/cli/.claude/agents/github/issue-tracker.md +0 -2
  4. package/packages/@monomind/cli/.claude/agents/github/pr-manager.md +0 -2
  5. package/packages/@monomind/cli/.claude/agents/github/repo-architect.md +3 -11
  6. package/packages/@monomind/cli/.claude/agents/goal/goal-planner.md +0 -1
  7. package/packages/@monomind/cli/.claude/commands/github/issue-tracker.md +0 -2
  8. package/packages/@monomind/cli/.claude/commands/github/pr-manager.md +0 -2
  9. package/packages/@monomind/cli/.claude/commands/github/repo-architect.md +3 -10
  10. package/packages/@monomind/cli/.claude/commands/mastermind/help.md +3 -3
  11. package/packages/@monomind/cli/.claude/commands/workflows/README.md +0 -1
  12. package/packages/@monomind/cli/.claude/commands/workflows/workflow-create.md +0 -1
  13. package/packages/@monomind/cli/.claude/commands/workflows/workflow-execute.md +1 -3
  14. package/packages/@monomind/cli/.claude/commands/workflows/workflow-export.md +0 -2
  15. package/packages/@monomind/cli/.claude/helpers/handlers/agent-start-handler.cjs +18 -1
  16. package/packages/@monomind/cli/.claude/helpers/handlers/edit-handler.cjs +15 -0
  17. package/packages/@monomind/cli/.claude/helpers/handlers/gates-handler.cjs +2 -8
  18. package/packages/@monomind/cli/.claude/helpers/handlers/route-handler.cjs +149 -7
  19. package/packages/@monomind/cli/.claude/helpers/handlers/session-handler.cjs +47 -25
  20. package/packages/@monomind/cli/.claude/helpers/handlers/session-restore-handler.cjs +80 -43
  21. package/packages/@monomind/cli/.claude/helpers/handlers/task-handler.cjs +8 -4
  22. package/packages/@monomind/cli/.claude/helpers/hook-handler.cjs +69 -16
  23. package/packages/@monomind/cli/.claude/helpers/intelligence.cjs +100 -9
  24. package/packages/@monomind/cli/.claude/helpers/router.cjs +78 -5
  25. package/packages/@monomind/cli/.claude/helpers/skill-registry.json +0 -189
  26. package/packages/@monomind/cli/.claude/skills/github-toolkit/SKILL.md +60 -0
  27. package/packages/@monomind/cli/.claude/skills/hive-mind-advanced/SKILL.md +0 -15
  28. package/packages/@monomind/cli/.claude/skills/hooks-automation/SKILL.md +0 -1
  29. package/packages/@monomind/cli/.claude/skills/mastermind-skills/_protocol.md +1 -1
  30. package/packages/@monomind/cli/.claude/skills/mastermind-skills/build.md +1 -2
  31. package/packages/@monomind/cli/.claude/skills/memory-toolkit/SKILL.md +75 -0
  32. package/packages/@monomind/cli/.claude/skills/specialagent/SKILL.md +2 -4
  33. package/packages/@monomind/cli/.claude/skills/swarm-advanced/SKILL.md +0 -1
  34. package/packages/@monomind/cli/README.md +2 -5
  35. package/packages/@monomind/cli/dist/src/autopilot-state.js +4 -5
  36. package/packages/@monomind/cli/dist/src/browser/dashboard/server.js +69 -1
  37. package/packages/@monomind/cli/dist/src/browser/dashboard/ui.html +214 -1764
  38. package/packages/@monomind/cli/dist/src/capabilities/index.d.ts +0 -2
  39. package/packages/@monomind/cli/dist/src/capabilities/index.js +0 -1
  40. package/packages/@monomind/cli/dist/src/commands/agent-lifecycle.js +2 -6
  41. package/packages/@monomind/cli/dist/src/commands/analyze.d.ts +0 -4
  42. package/packages/@monomind/cli/dist/src/commands/analyze.js +1 -29
  43. package/packages/@monomind/cli/dist/src/commands/completions.js +3 -22
  44. package/packages/@monomind/cli/dist/src/commands/config.js +0 -6
  45. package/packages/@monomind/cli/dist/src/commands/doctor-project-checks.d.ts +12 -2
  46. package/packages/@monomind/cli/dist/src/commands/doctor-project-checks.js +130 -22
  47. package/packages/@monomind/cli/dist/src/commands/doctor.js +6 -5
  48. package/packages/@monomind/cli/dist/src/commands/guidance.d.ts +5 -1
  49. package/packages/@monomind/cli/dist/src/commands/guidance.js +11 -556
  50. package/packages/@monomind/cli/dist/src/commands/hive-mind-comms.js +11 -4
  51. package/packages/@monomind/cli/dist/src/commands/hive-mind.d.ts +4 -4
  52. package/packages/@monomind/cli/dist/src/commands/hive-mind.js +9 -6
  53. package/packages/@monomind/cli/dist/src/commands/hooks-formatting.d.ts +1 -5
  54. package/packages/@monomind/cli/dist/src/commands/hooks-formatting.js +1 -18
  55. package/packages/@monomind/cli/dist/src/commands/hooks-workers.d.ts +1 -1
  56. package/packages/@monomind/cli/dist/src/commands/hooks-workers.js +82 -330
  57. package/packages/@monomind/cli/dist/src/commands/index.d.ts +0 -5
  58. package/packages/@monomind/cli/dist/src/commands/index.js +0 -45
  59. package/packages/@monomind/cli/dist/src/commands/init-wizard.js +1 -1
  60. package/packages/@monomind/cli/dist/src/commands/init.js +4 -24
  61. package/packages/@monomind/cli/dist/src/commands/neural-core.js +11 -11
  62. package/packages/@monomind/cli/dist/src/commands/neural-optimize.js +9 -11
  63. package/packages/@monomind/cli/dist/src/commands/neural-registry.js +10 -10
  64. package/packages/@monomind/cli/dist/src/commands/providers.js +90 -1
  65. package/packages/@monomind/cli/dist/src/commands/search-universal.d.ts +7 -1
  66. package/packages/@monomind/cli/dist/src/commands/search-universal.js +59 -5
  67. package/packages/@monomind/cli/dist/src/commands/security-cve.js +3 -5
  68. package/packages/@monomind/cli/dist/src/commands/session.js +143 -3
  69. package/packages/@monomind/cli/dist/src/commands/start.js +0 -18
  70. package/packages/@monomind/cli/dist/src/commands/swarm.js +112 -65
  71. package/packages/@monomind/cli/dist/src/consensus/audit-writer.js +43 -1
  72. package/packages/@monomind/cli/dist/src/consensus/tally.d.ts +19 -0
  73. package/packages/@monomind/cli/dist/src/consensus/tally.js +34 -0
  74. package/packages/@monomind/cli/dist/src/index.d.ts +3 -2
  75. package/packages/@monomind/cli/dist/src/index.js +9 -12
  76. package/packages/@monomind/cli/dist/src/init/claudemd-generator.js +10 -14
  77. package/packages/@monomind/cli/dist/src/init/executor.js +39 -86
  78. package/packages/@monomind/cli/dist/src/init/settings-generator.js +0 -12
  79. package/packages/@monomind/cli/dist/src/init/statusline-generator.js +62 -0
  80. package/packages/@monomind/cli/dist/src/init/types.d.ts +2 -6
  81. package/packages/@monomind/cli/dist/src/init/types.js +0 -3
  82. package/packages/@monomind/cli/dist/src/knowledge/document-pipeline.js +18 -8
  83. package/packages/@monomind/cli/dist/src/mcp-client.js +0 -2
  84. package/packages/@monomind/cli/dist/src/mcp-server.js +12 -14
  85. package/packages/@monomind/cli/dist/src/mcp-tools/coherence/coherence-check.js +1 -19
  86. package/packages/@monomind/cli/dist/src/mcp-tools/coherence/types.d.ts +3 -2
  87. package/packages/@monomind/cli/dist/src/mcp-tools/coherence/types.js +3 -18
  88. package/packages/@monomind/cli/dist/src/mcp-tools/embeddings-tools.js +1 -7
  89. package/packages/@monomind/cli/dist/src/mcp-tools/graphify-tools.js +2 -2
  90. package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.js +7 -17
  91. package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -1
  92. package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.js +174 -38
  93. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-advanced.d.ts +18 -0
  94. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-advanced.js +25 -0
  95. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-intelligence.d.ts +4 -8
  96. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-intelligence.js +33 -482
  97. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-routing.d.ts +1 -0
  98. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-routing.js +51 -43
  99. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-synthesis.d.ts +31 -0
  100. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-synthesis.js +196 -0
  101. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.js +10 -8
  102. package/packages/@monomind/cli/dist/src/mcp-tools/index.d.ts +0 -1
  103. package/packages/@monomind/cli/dist/src/mcp-tools/index.js +0 -1
  104. package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.js +20 -29
  105. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.d.ts +6 -0
  106. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.js +78 -220
  107. package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.d.ts +9 -4
  108. package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.js +242 -506
  109. package/packages/@monomind/cli/dist/src/mcp-tools/security-tools.js +103 -0
  110. package/packages/@monomind/cli/dist/src/memory/intelligence.d.ts +2 -1
  111. package/packages/@monomind/cli/dist/src/memory/intelligence.js +56 -43
  112. package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +14 -9
  113. package/packages/@monomind/cli/dist/src/memory/memory-read.js +1 -19
  114. package/packages/@monomind/cli/dist/src/suggest.js +1 -7
  115. package/packages/@monomind/cli/dist/src/transfer/store/discovery.d.ts +3 -2
  116. package/packages/@monomind/cli/dist/src/transfer/store/discovery.js +22 -70
  117. package/packages/@monomind/cli/dist/src/update/checker.js +0 -1
  118. package/packages/@monomind/cli/dist/src/utils/cosine-similarity.d.ts +22 -0
  119. package/packages/@monomind/cli/dist/src/utils/cosine-similarity.js +38 -0
  120. package/packages/@monomind/cli/dist/src/utils/input-guards.d.ts +51 -0
  121. package/packages/@monomind/cli/dist/src/utils/input-guards.js +223 -0
  122. package/packages/@monomind/cli/dist/src/utils/json-file.d.ts +33 -0
  123. package/packages/@monomind/cli/dist/src/utils/json-file.js +57 -0
  124. package/packages/@monomind/cli/package.json +9 -6
  125. package/packages/@monomind/cli/scripts/sync-claude-assets.sh +16 -20
  126. package/scripts/generate-agent-avatars.mjs +0 -8
  127. package/.claude/agents/architecture/system-design/arch-system-design.md +0 -54
  128. package/.claude/agents/consensus/crdt-synchronizer.md +0 -977
  129. package/.claude/agents/consensus/quorum-manager.md +0 -803
  130. package/.claude/agents/consensus/security-manager.md +0 -602
  131. package/.claude/agents/core/coder.md +0 -262
  132. package/.claude/agents/core/coordinator.md +0 -71
  133. package/.claude/agents/core/planner.md +0 -170
  134. package/.claude/agents/core/researcher.md +0 -197
  135. package/.claude/agents/core/reviewer.md +0 -327
  136. package/.claude/agents/core/tester.md +0 -318
  137. package/.claude/agents/design/design-monodesign.md +0 -121
  138. package/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +0 -212
  139. package/.claude/agents/engineering/engineering-ai-engineer.md +0 -165
  140. package/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +0 -108
  141. package/.claude/agents/engineering/engineering-backend-architect.md +0 -254
  142. package/.claude/agents/engineering/engineering-code-reviewer.md +0 -95
  143. package/.claude/agents/engineering/engineering-data-engineer.md +0 -307
  144. package/.claude/agents/engineering/engineering-database-optimizer.md +0 -200
  145. package/.claude/agents/engineering/engineering-devops-automator.md +0 -430
  146. package/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +0 -174
  147. package/.claude/agents/engineering/engineering-feishu-integration-developer.md +0 -607
  148. package/.claude/agents/engineering/engineering-frontend-developer.md +0 -249
  149. package/.claude/agents/engineering/engineering-git-workflow-master.md +0 -108
  150. package/.claude/agents/engineering/engineering-incident-response-commander.md +0 -482
  151. package/.claude/agents/engineering/engineering-mobile-app-builder.md +0 -499
  152. package/.claude/agents/engineering/engineering-rapid-prototyper.md +0 -463
  153. package/.claude/agents/engineering/engineering-security-engineer.md +0 -303
  154. package/.claude/agents/engineering/engineering-senior-developer.md +0 -195
  155. package/.claude/agents/engineering/engineering-software-architect.md +0 -100
  156. package/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +0 -528
  157. package/.claude/agents/engineering/engineering-sre.md +0 -114
  158. package/.claude/agents/engineering/engineering-technical-writer.md +0 -412
  159. package/.claude/agents/engineering/engineering-threat-detection-engineer.md +0 -540
  160. package/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +0 -351
  161. package/.claude/agents/generated/case-analyst.md +0 -50
  162. package/.claude/agents/generated/channel-intelligence-director.md +0 -87
  163. package/.claude/agents/generated/chief-growth-officer.md +0 -88
  164. package/.claude/agents/generated/churn-analyst.md +0 -53
  165. package/.claude/agents/generated/code-reviewer.md +0 -55
  166. package/.claude/agents/generated/code-validator.md +0 -57
  167. package/.claude/agents/generated/complexity-scanner.md +0 -56
  168. package/.claude/agents/generated/content-seo-strategist.md +0 -90
  169. package/.claude/agents/generated/copy-editor.md +0 -45
  170. package/.claude/agents/generated/court-reporter.md +0 -50
  171. package/.claude/agents/generated/defender.md +0 -51
  172. package/.claude/agents/generated/devbot-orchestrator.md +0 -58
  173. package/.claude/agents/generated/devbot-planner.md +0 -63
  174. package/.claude/agents/generated/developer-community-strategist.md +0 -91
  175. package/.claude/agents/generated/editor-in-chief.md +0 -45
  176. package/.claude/agents/generated/fact-checker.md +0 -45
  177. package/.claude/agents/generated/impact-assessor.md +0 -54
  178. package/.claude/agents/generated/judge.md +0 -51
  179. package/.claude/agents/generated/outreach-partnership-strategist.md +0 -90
  180. package/.claude/agents/generated/prosecutor.md +0 -51
  181. package/.claude/agents/generated/reporter.md +0 -45
  182. package/.claude/agents/generated/social-media-strategist.md +0 -91
  183. package/.claude/agents/generated/video-visual-strategist.md +0 -90
  184. package/.claude/agents/github/code-review-swarm.md +0 -557
  185. package/.claude/agents/github/github-modes.md +0 -154
  186. package/.claude/agents/github/issue-tracker.md +0 -299
  187. package/.claude/agents/github/multi-repo-swarm.md +0 -525
  188. package/.claude/agents/github/pr-manager.md +0 -163
  189. package/.claude/agents/github/project-board-sync.md +0 -478
  190. package/.claude/agents/github/release-manager.md +0 -296
  191. package/.claude/agents/github/repo-architect.md +0 -359
  192. package/.claude/agents/github/swarm-issue.md +0 -548
  193. package/.claude/agents/github/swarm-pr.md +0 -427
  194. package/.claude/agents/github/sync-coordinator.md +0 -355
  195. package/.claude/agents/github/workflow-automation.md +0 -640
  196. package/.claude/agents/goal/goal-planner.md +0 -168
  197. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -129
  198. package/.claude/agents/hive-mind/queen-coordinator.md +0 -202
  199. package/.claude/agents/hive-mind/scout-explorer.md +0 -241
  200. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -192
  201. package/.claude/agents/hive-mind/worker-specialist.md +0 -216
  202. package/.claude/agents/marketing/marketing-competitive-content.md +0 -155
  203. package/.claude/agents/marketing/marketing-cro-specialist.md +0 -147
  204. package/.claude/agents/marketing/marketing-email-specialist.md +0 -90
  205. package/.claude/agents/marketing/marketing-launch-strategist.md +0 -129
  206. package/.claude/agents/marketing/marketing-pricing-strategist.md +0 -127
  207. package/.claude/agents/optimization/benchmark-suite.md +0 -665
  208. package/.claude/agents/optimization/load-balancer.md +0 -431
  209. package/.claude/agents/optimization/performance-monitor.md +0 -672
  210. package/.claude/agents/optimization/resource-allocator.md +0 -674
  211. package/.claude/agents/optimization/topology-optimizer.md +0 -808
  212. package/.claude/agents/reengineer-squad/boss.md +0 -113
  213. package/.claude/agents/reengineer-squad/critic-architect.md +0 -132
  214. package/.claude/agents/reengineer-squad/git-manager.md +0 -145
  215. package/.claude/agents/reengineer-squad/idea-generator.md +0 -95
  216. package/.claude/agents/reengineer-squad/implementer.md +0 -112
  217. package/.claude/agents/reengineer-squad/integration-planner.md +0 -112
  218. package/.claude/agents/reengineer-squad/source-analyst.md +0 -103
  219. package/.claude/agents/reengineer-squad/target-analyst.md +0 -118
  220. package/.claude/agents/reengineer-squad/tester.md +0 -105
  221. package/.claude/agents/schemas/architecture-output.json +0 -43
  222. package/.claude/agents/schemas/code-review-output.json +0 -28
  223. package/.claude/agents/schemas/generic-task-input.json +0 -12
  224. package/.claude/agents/schemas/implementation-output.json +0 -18
  225. package/.claude/agents/schemas/research-output.json +0 -31
  226. package/.claude/agents/schemas/security-audit-output.json +0 -29
  227. package/.claude/agents/schemas/test-report-output.json +0 -29
  228. package/.claude/agents/sparc/architecture.md +0 -453
  229. package/.claude/agents/sparc/pseudocode.md +0 -299
  230. package/.claude/agents/sparc/refinement.md +0 -504
  231. package/.claude/agents/sparc/specification.md +0 -258
  232. package/.claude/agents/specialists/integration-architect.md +0 -94
  233. package/.claude/agents/specialized/agentic-identity-trust.md +0 -388
  234. package/.claude/agents/specialized/agents-orchestrator.md +0 -368
  235. package/.claude/agents/specialized/automation-governance-architect.md +0 -217
  236. package/.claude/agents/specialized/blockchain-security-auditor.md +0 -497
  237. package/.claude/agents/specialized/compliance-auditor.md +0 -159
  238. package/.claude/agents/specialized/identity-graph-operator.md +0 -261
  239. package/.claude/agents/specialized/lsp-index-engineer.md +0 -315
  240. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -89
  241. package/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +0 -89
  242. package/.claude/agents/specialized/specialized-developer-advocate.md +0 -318
  243. package/.claude/agents/specialized/specialized-document-generator.md +0 -56
  244. package/.claude/agents/specialized/specialized-mcp-builder.md +0 -64
  245. package/.claude/agents/specialized/specialized-model-qa.md +0 -489
  246. package/.claude/agents/specialized/specialized-workflow-architect.md +0 -595
  247. package/.claude/agents/specialized/zk-steward.md +0 -212
  248. package/.claude/agents/swarm/mesh-coordinator.md +0 -363
  249. package/.claude/agents/templates/automation-smart-agent.md +0 -185
  250. package/.claude/agents/templates/coordinator-swarm-init.md +0 -83
  251. package/.claude/agents/templates/implementer-sparc-coder.md +0 -231
  252. package/.claude/agents/testing/production-validator.md +0 -375
  253. package/.claude/agents/testing/tdd-london-swarm.md +0 -241
  254. package/.claude/agents/testing/testing-accessibility-auditor.md +0 -322
  255. package/.claude/agents/testing/testing-api-tester.md +0 -307
  256. package/.claude/agents/testing/testing-evidence-collector.md +0 -213
  257. package/.claude/agents/testing/testing-performance-benchmarker.md +0 -269
  258. package/.claude/agents/testing/testing-test-results-analyzer.md +0 -306
  259. package/.claude/agents/testing/testing-tool-evaluator.md +0 -395
  260. package/.claude/agents/testing/testing-workflow-optimizer.md +0 -451
  261. package/.claude/commands/agents/README.md +0 -14
  262. package/.claude/commands/agents/agent-capabilities.md +0 -25
  263. package/.claude/commands/agents/agent-coordination.md +0 -32
  264. package/.claude/commands/agents/agent-spawning.md +0 -32
  265. package/.claude/commands/agents/agent-types.md +0 -30
  266. package/.claude/commands/analysis/README.md +0 -18
  267. package/.claude/commands/analysis/bottleneck-detect.md +0 -69
  268. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  269. package/.claude/commands/analysis/performance-report.md +0 -52
  270. package/.claude/commands/analysis/token-usage.md +0 -47
  271. package/.claude/commands/automation/README.md +0 -19
  272. package/.claude/commands/automation/auto-agent.md +0 -86
  273. package/.claude/commands/automation/self-healing.md +0 -108
  274. package/.claude/commands/automation/session-memory.md +0 -89
  275. package/.claude/commands/automation/smart-agents.md +0 -81
  276. package/.claude/commands/automation/smart-spawn.md +0 -66
  277. package/.claude/commands/automation/workflow-select.md +0 -60
  278. package/.claude/commands/coordination/README.md +0 -13
  279. package/.claude/commands/coordination/agent-spawn.md +0 -69
  280. package/.claude/commands/coordination/swarm-init.md +0 -82
  281. package/.claude/commands/coordination/task-orchestrate.md +0 -79
  282. package/.claude/commands/github/README.md +0 -24
  283. package/.claude/commands/github/github-modes.md +0 -151
  284. package/.claude/commands/github/issue-tracker.md +0 -293
  285. package/.claude/commands/github/pr-manager.md +0 -173
  286. package/.claude/commands/github/release-manager.md +0 -343
  287. package/.claude/commands/github/repo-architect.md +0 -379
  288. package/.claude/commands/github/sync-coordinator.md +0 -297
  289. package/.claude/commands/hive-mind/README.md +0 -42
  290. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -72
  291. package/.claude/commands/hive-mind/hive-mind-init.md +0 -68
  292. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -73
  293. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -82
  294. package/.claude/commands/hive-mind/hive-mind-status.md +0 -56
  295. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -55
  296. package/.claude/commands/hive-mind/hive-mind.md +0 -87
  297. package/.claude/commands/hooks/README.md +0 -66
  298. package/.claude/commands/hooks/overview.md +0 -112
  299. package/.claude/commands/hooks/post-edit.md +0 -78
  300. package/.claude/commands/hooks/post-task.md +0 -62
  301. package/.claude/commands/hooks/pre-edit.md +0 -81
  302. package/.claude/commands/hooks/pre-task.md +0 -73
  303. package/.claude/commands/hooks/session-end.md +0 -82
  304. package/.claude/commands/hooks/setup.md +0 -132
  305. package/.claude/commands/mastermind/_repeat.md +0 -492
  306. package/.claude/commands/mastermind/_taskfile.md +0 -232
  307. package/.claude/commands/mastermind/adr.md +0 -9
  308. package/.claude/commands/mastermind/approve.md +0 -91
  309. package/.claude/commands/mastermind/architect.md +0 -52
  310. package/.claude/commands/mastermind/autodev.md +0 -28
  311. package/.claude/commands/mastermind/brain.md +0 -99
  312. package/.claude/commands/mastermind/budget.md +0 -5
  313. package/.claude/commands/mastermind/build.md +0 -23
  314. package/.claude/commands/mastermind/code-review.md +0 -314
  315. package/.claude/commands/mastermind/content.md +0 -23
  316. package/.claude/commands/mastermind/createorg.md +0 -136
  317. package/.claude/commands/mastermind/createtask.md +0 -372
  318. package/.claude/commands/mastermind/debug.md +0 -19
  319. package/.claude/commands/mastermind/design.md +0 -17
  320. package/.claude/commands/mastermind/do.md +0 -525
  321. package/.claude/commands/mastermind/execute.md +0 -17
  322. package/.claude/commands/mastermind/finance.md +0 -23
  323. package/.claude/commands/mastermind/finish.md +0 -17
  324. package/.claude/commands/mastermind/graph-status.md +0 -5
  325. package/.claude/commands/mastermind/help.md +0 -115
  326. package/.claude/commands/mastermind/idea.md +0 -23
  327. package/.claude/commands/mastermind/ideate.md +0 -258
  328. package/.claude/commands/mastermind/improve.md +0 -342
  329. package/.claude/commands/mastermind/loops.md +0 -5
  330. package/.claude/commands/mastermind/marketing.md +0 -23
  331. package/.claude/commands/mastermind/master.md +0 -1124
  332. package/.claude/commands/mastermind/memory.md +0 -227
  333. package/.claude/commands/mastermind/okf-export.md +0 -14
  334. package/.claude/commands/mastermind/okf-import.md +0 -15
  335. package/.claude/commands/mastermind/ops.md +0 -23
  336. package/.claude/commands/mastermind/orgs.md +0 -18
  337. package/.claude/commands/mastermind/orgstatus.md +0 -56
  338. package/.claude/commands/mastermind/plan.md +0 -23
  339. package/.claude/commands/mastermind/receive-review.md +0 -17
  340. package/.claude/commands/mastermind/references/antigravity-tools.md +0 -60
  341. package/.claude/commands/mastermind/references/claude-code-tools.md +0 -50
  342. package/.claude/commands/mastermind/references/codex-tools.md +0 -64
  343. package/.claude/commands/mastermind/references/copilot-tools.md +0 -49
  344. package/.claude/commands/mastermind/references/gemini-tools.md +0 -63
  345. package/.claude/commands/mastermind/references/pi-tools.md +0 -28
  346. package/.claude/commands/mastermind/release.md +0 -23
  347. package/.claude/commands/mastermind/repeat.md +0 -254
  348. package/.claude/commands/mastermind/research.md +0 -23
  349. package/.claude/commands/mastermind/review.md +0 -34
  350. package/.claude/commands/mastermind/runorg.md +0 -153
  351. package/.claude/commands/mastermind/sales.md +0 -23
  352. package/.claude/commands/mastermind/skill-builder.md +0 -17
  353. package/.claude/commands/mastermind/specialagents.md +0 -122
  354. package/.claude/commands/mastermind/stoporg.md +0 -75
  355. package/.claude/commands/mastermind/swarm.md +0 -158
  356. package/.claude/commands/mastermind/taskdev.md +0 -23
  357. package/.claude/commands/mastermind/tdd.md +0 -19
  358. package/.claude/commands/mastermind/techport.md +0 -27
  359. package/.claude/commands/mastermind/understand.md +0 -136
  360. package/.claude/commands/mastermind/verify.md +0 -19
  361. package/.claude/commands/mastermind/worktree.md +0 -17
  362. package/.claude/commands/mastermind.md +0 -121
  363. package/.claude/commands/memory/README.md +0 -79
  364. package/.claude/commands/memory/memory-search.md +0 -77
  365. package/.claude/commands/monitoring/README.md +0 -69
  366. package/.claude/commands/monitoring/agent-metrics.md +0 -65
  367. package/.claude/commands/monitoring/agents.md +0 -71
  368. package/.claude/commands/monitoring/status.md +0 -108
  369. package/.claude/commands/monobrowse.md +0 -21
  370. package/.claude/commands/monoes/README.md +0 -30
  371. package/.claude/commands/monoes/install.md +0 -163
  372. package/.claude/commands/monoes/monoagent.md +0 -148
  373. package/.claude/commands/monoes/monoclip.md +0 -64
  374. package/.claude/commands/monoes/monotask.md +0 -137
  375. package/.claude/commands/monograph/README.md +0 -102
  376. package/.claude/commands/monograph/monograph-build.md +0 -79
  377. package/.claude/commands/monograph/monograph-search.md +0 -96
  378. package/.claude/commands/monograph/monograph-stats.md +0 -53
  379. package/.claude/commands/monograph/monograph-watch.md +0 -63
  380. package/.claude/commands/monograph/monograph-wiki.md +0 -91
  381. package/.claude/commands/optimization/auto-topology.md +0 -85
  382. package/.claude/commands/optimization/performance-optimize.md +0 -79
  383. package/.claude/commands/pair/README.md +0 -79
  384. package/.claude/commands/pair/examples.md +0 -156
  385. package/.claude/commands/pair/modes.md +0 -122
  386. package/.claude/commands/pair/session.md +0 -124
  387. package/.claude/commands/sparc/analyzer.md +0 -35
  388. package/.claude/commands/sparc/architect.md +0 -36
  389. package/.claude/commands/sparc/ask.md +0 -56
  390. package/.claude/commands/sparc/batch-executor.md +0 -37
  391. package/.claude/commands/sparc/code.md +0 -48
  392. package/.claude/commands/sparc/coder.md +0 -37
  393. package/.claude/commands/sparc/debug.md +0 -42
  394. package/.claude/commands/sparc/debugger.md +0 -37
  395. package/.claude/commands/sparc/designer.md +0 -36
  396. package/.claude/commands/sparc/devops.md +0 -68
  397. package/.claude/commands/sparc/docs-writer.md +0 -39
  398. package/.claude/commands/sparc/documenter.md +0 -37
  399. package/.claude/commands/sparc/innovator.md +0 -37
  400. package/.claude/commands/sparc/integration.md +0 -42
  401. package/.claude/commands/sparc/mcp.md +0 -76
  402. package/.claude/commands/sparc/memory-manager.md +0 -57
  403. package/.claude/commands/sparc/optimizer.md +0 -37
  404. package/.claude/commands/sparc/orchestrator.md +0 -70
  405. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -42
  406. package/.claude/commands/sparc/refinement-optimization-mode.md +0 -42
  407. package/.claude/commands/sparc/researcher.md +0 -37
  408. package/.claude/commands/sparc/reviewer.md +0 -37
  409. package/.claude/commands/sparc/security-review.md +0 -39
  410. package/.claude/commands/sparc/sparc-modes.md +0 -120
  411. package/.claude/commands/sparc/sparc.md +0 -71
  412. package/.claude/commands/sparc/spec-pseudocode.md +0 -39
  413. package/.claude/commands/sparc/supabase-admin.md +0 -301
  414. package/.claude/commands/sparc/swarm-coordinator.md +0 -50
  415. package/.claude/commands/sparc/tdd.md +0 -37
  416. package/.claude/commands/sparc/tester.md +0 -37
  417. package/.claude/commands/sparc/tutorial.md +0 -38
  418. package/.claude/commands/sparc/workflow-manager.md +0 -37
  419. package/.claude/commands/sparc.md +0 -112
  420. package/.claude/commands/stream-chain/pipeline.md +0 -116
  421. package/.claude/commands/stream-chain/run.md +0 -156
  422. package/.claude/commands/swarm/README.md +0 -40
  423. package/.claude/commands/swarm/analysis.md +0 -73
  424. package/.claude/commands/swarm/development.md +0 -72
  425. package/.claude/commands/swarm/examples.md +0 -103
  426. package/.claude/commands/swarm/maintenance.md +0 -75
  427. package/.claude/commands/swarm/optimization.md +0 -84
  428. package/.claude/commands/swarm/research.md +0 -76
  429. package/.claude/commands/swarm/swarm.md +0 -79
  430. package/.claude/commands/swarm/testing.md +0 -80
  431. package/.claude/commands/tokens.md +0 -18
  432. package/.claude/commands/truth/start.md +0 -121
  433. package/.claude/commands/ts.md +0 -14
  434. package/.claude/commands/workflows/README.md +0 -65
  435. package/.claude/commands/workflows/development.md +0 -86
  436. package/.claude/commands/workflows/research.md +0 -89
  437. package/.claude/commands/workflows/workflow-create.md +0 -84
  438. package/.claude/commands/workflows/workflow-execute.md +0 -103
  439. package/.claude/commands/workflows/workflow-export.md +0 -90
  440. package/.claude/helpers/control-start.cjs +0 -184
  441. package/.claude/helpers/event-logger.cjs +0 -155
  442. package/.claude/helpers/extras-registry.json +0 -5141
  443. package/.claude/helpers/graphify-freshen.cjs +0 -140
  444. package/.claude/helpers/handlers/adr-draft-handler.cjs +0 -78
  445. package/.claude/helpers/handlers/agent-start-handler.cjs +0 -83
  446. package/.claude/helpers/handlers/budget-status-handler.cjs +0 -14
  447. package/.claude/helpers/handlers/capture-handler.cjs +0 -583
  448. package/.claude/helpers/handlers/compact-handler.cjs +0 -35
  449. package/.claude/helpers/handlers/edit-handler.cjs +0 -145
  450. package/.claude/helpers/handlers/gates-handler.cjs +0 -138
  451. package/.claude/helpers/handlers/graph-status-handler.cjs +0 -45
  452. package/.claude/helpers/handlers/loops-status-handler.cjs +0 -48
  453. package/.claude/helpers/handlers/route-handler.cjs +0 -381
  454. package/.claude/helpers/handlers/session-handler.cjs +0 -234
  455. package/.claude/helpers/handlers/session-restore-handler.cjs +0 -375
  456. package/.claude/helpers/handlers/stats-handler.cjs +0 -14
  457. package/.claude/helpers/handlers/task-handler.cjs +0 -206
  458. package/.claude/helpers/hook-handler.cjs +0 -765
  459. package/.claude/helpers/intelligence.cjs +0 -338
  460. package/.claude/helpers/learning-service.mjs +0 -61
  461. package/.claude/helpers/loop-tracker.cjs +0 -119
  462. package/.claude/helpers/mastermind-activate.cjs +0 -35
  463. package/.claude/helpers/memory-palace.cjs +0 -461
  464. package/.claude/helpers/memory.cjs +0 -193
  465. package/.claude/helpers/metrics-db.mjs +0 -87
  466. package/.claude/helpers/monolean-activate.cjs +0 -30
  467. package/.claude/helpers/monolean-config.cjs +0 -76
  468. package/.claude/helpers/monolean-instructions.cjs +0 -109
  469. package/.claude/helpers/monolean-propagate.cjs +0 -13
  470. package/.claude/helpers/monolean-tracker.cjs +0 -18
  471. package/.claude/helpers/router.cjs +0 -364
  472. package/.claude/helpers/session.cjs +0 -140
  473. package/.claude/helpers/skill-registry.json +0 -1043
  474. package/.claude/helpers/statusline.cjs +0 -1344
  475. package/.claude/helpers/toggle-statusline.cjs +0 -73
  476. package/.claude/helpers/token-tracker.cjs +0 -934
  477. package/.claude/helpers/utils/micro-agents.cjs +0 -354
  478. package/.claude/helpers/utils/monograph.cjs +0 -480
  479. package/.claude/helpers/utils/telemetry.cjs +0 -146
  480. package/.claude/mcp.json +0 -3
  481. package/.claude/scheduled_tasks.lock +0 -1
  482. package/.claude/settings.json +0 -475
  483. package/.claude/skills/.monomind/data/ranked-context.json +0 -5
  484. package/.claude/skills/.monomind/sessions/current.json +0 -13
  485. package/.claude/skills/.monomind/sessions/session-1777829336455.json +0 -15
  486. package/.claude/skills/.monomind/sessions/session-1777831614725.json +0 -15
  487. package/.claude/skills/.monomind/sessions/session-1777832095857.json +0 -15
  488. package/.claude/skills/.monomind/sessions/session-1777839814183.json +0 -15
  489. package/.claude/skills/.monomind/sessions/session-1777841847131.json +0 -15
  490. package/.claude/skills/.monomind/sessions/session-1777843309463.json +0 -15
  491. package/.claude/skills/.monomind/sessions/session-1777880867159.json +0 -15
  492. package/.claude/skills/.monomind/sessions/session-1777881884593.json +0 -15
  493. package/.claude/skills/.monomind/sessions/session-1777884090471.json +0 -15
  494. package/.claude/skills/.monomind/sessions/session-1777884808221.json +0 -15
  495. package/.claude/skills/.monomind/sessions/session-1777885672155.json +0 -15
  496. package/.claude/skills/.monomind/sessions/session-1777886852818.json +0 -15
  497. package/.claude/skills/.monomind/sessions/session-1777896532690.json +0 -15
  498. package/.claude/skills/agent-browser-testing/SKILL.md +0 -964
  499. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  500. package/.claude/skills/github-issue-triage/SKILL.md +0 -354
  501. package/.claude/skills/github-repo-recap/SKILL.md +0 -207
  502. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -709
  503. package/.claude/skills/hooks-automation/SKILL.md +0 -1193
  504. package/.claude/skills/mastermind-skills/_agent-select.md +0 -132
  505. package/.claude/skills/mastermind-skills/_delegation.md +0 -83
  506. package/.claude/skills/mastermind-skills/_intake.md +0 -83
  507. package/.claude/skills/mastermind-skills/_protocol.md +0 -404
  508. package/.claude/skills/mastermind-skills/_repeat.md +0 -171
  509. package/.claude/skills/mastermind-skills/access.md +0 -236
  510. package/.claude/skills/mastermind-skills/activity.md +0 -191
  511. package/.claude/skills/mastermind-skills/adapter-manager.md +0 -259
  512. package/.claude/skills/mastermind-skills/adapters.md +0 -204
  513. package/.claude/skills/mastermind-skills/agent-detail.md +0 -242
  514. package/.claude/skills/mastermind-skills/agents.md +0 -178
  515. package/.claude/skills/mastermind-skills/approval-detail.md +0 -259
  516. package/.claude/skills/mastermind-skills/approve.md +0 -188
  517. package/.claude/skills/mastermind-skills/architect.md +0 -862
  518. package/.claude/skills/mastermind-skills/autodev.md +0 -360
  519. package/.claude/skills/mastermind-skills/backup.md +0 -197
  520. package/.claude/skills/mastermind-skills/bootstrap.md +0 -190
  521. package/.claude/skills/mastermind-skills/budgets.md +0 -237
  522. package/.claude/skills/mastermind-skills/build.md +0 -170
  523. package/.claude/skills/mastermind-skills/code-quality-reviewer-prompt.md +0 -60
  524. package/.claude/skills/mastermind-skills/companies.md +0 -256
  525. package/.claude/skills/mastermind-skills/content.md +0 -197
  526. package/.claude/skills/mastermind-skills/costs.md +0 -151
  527. package/.claude/skills/mastermind-skills/createorg.md +0 -862
  528. package/.claude/skills/mastermind-skills/debug.md +0 -232
  529. package/.claude/skills/mastermind-skills/design.md +0 -189
  530. package/.claude/skills/mastermind-skills/diagnose.md +0 -249
  531. package/.claude/skills/mastermind-skills/env.md +0 -198
  532. package/.claude/skills/mastermind-skills/environments.md +0 -250
  533. package/.claude/skills/mastermind-skills/execute.md +0 -104
  534. package/.claude/skills/mastermind-skills/export.md +0 -333
  535. package/.claude/skills/mastermind-skills/finance.md +0 -166
  536. package/.claude/skills/mastermind-skills/finish.md +0 -251
  537. package/.claude/skills/mastermind-skills/goal-detail.md +0 -255
  538. package/.claude/skills/mastermind-skills/goals.md +0 -149
  539. package/.claude/skills/mastermind-skills/heartbeat.md +0 -164
  540. package/.claude/skills/mastermind-skills/idea.md +0 -1142
  541. package/.claude/skills/mastermind-skills/implementer-prompt.md +0 -109
  542. package/.claude/skills/mastermind-skills/import.md +0 -281
  543. package/.claude/skills/mastermind-skills/inbox.md +0 -214
  544. package/.claude/skills/mastermind-skills/instance-settings.md +0 -315
  545. package/.claude/skills/mastermind-skills/instance.md +0 -233
  546. package/.claude/skills/mastermind-skills/invite-landing.md +0 -227
  547. package/.claude/skills/mastermind-skills/invites.md +0 -254
  548. package/.claude/skills/mastermind-skills/issue-detail.md +0 -291
  549. package/.claude/skills/mastermind-skills/issues.md +0 -235
  550. package/.claude/skills/mastermind-skills/join-queue.md +0 -170
  551. package/.claude/skills/mastermind-skills/liveness.md +0 -392
  552. package/.claude/skills/mastermind-skills/marketing.md +0 -228
  553. package/.claude/skills/mastermind-skills/memory.md +0 -321
  554. package/.claude/skills/mastermind-skills/monitor.md +0 -1284
  555. package/.claude/skills/mastermind-skills/monotask.md +0 -350
  556. package/.claude/skills/mastermind-skills/my-issues.md +0 -146
  557. package/.claude/skills/mastermind-skills/new-agent.md +0 -241
  558. package/.claude/skills/mastermind-skills/ops.md +0 -168
  559. package/.claude/skills/mastermind-skills/org-chart.md +0 -209
  560. package/.claude/skills/mastermind-skills/org-settings.md +0 -254
  561. package/.claude/skills/mastermind-skills/orgs.md +0 -98
  562. package/.claude/skills/mastermind-skills/orgstatus.md +0 -194
  563. package/.claude/skills/mastermind-skills/plan-to-tasks.md +0 -136
  564. package/.claude/skills/mastermind-skills/plan.md +0 -198
  565. package/.claude/skills/mastermind-skills/plugin-manager.md +0 -241
  566. package/.claude/skills/mastermind-skills/plugin-settings.md +0 -273
  567. package/.claude/skills/mastermind-skills/plugins.md +0 -190
  568. package/.claude/skills/mastermind-skills/profile.md +0 -187
  569. package/.claude/skills/mastermind-skills/project-detail.md +0 -249
  570. package/.claude/skills/mastermind-skills/project-workspace.md +0 -244
  571. package/.claude/skills/mastermind-skills/projects.md +0 -164
  572. package/.claude/skills/mastermind-skills/receive-review.md +0 -213
  573. package/.claude/skills/mastermind-skills/references/copywriting-frameworks.md +0 -181
  574. package/.claude/skills/mastermind-skills/references/persuasion-psychology.md +0 -158
  575. package/.claude/skills/mastermind-skills/release.md +0 -168
  576. package/.claude/skills/mastermind-skills/research.md +0 -168
  577. package/.claude/skills/mastermind-skills/review.md +0 -233
  578. package/.claude/skills/mastermind-skills/routine-detail.md +0 -253
  579. package/.claude/skills/mastermind-skills/routines.md +0 -203
  580. package/.claude/skills/mastermind-skills/runorg.md +0 -714
  581. package/.claude/skills/mastermind-skills/sales.md +0 -170
  582. package/.claude/skills/mastermind-skills/search.md +0 -186
  583. package/.claude/skills/mastermind-skills/secrets.md +0 -199
  584. package/.claude/skills/mastermind-skills/skill-builder.md +0 -274
  585. package/.claude/skills/mastermind-skills/skills.md +0 -156
  586. package/.claude/skills/mastermind-skills/spec-reviewer-prompt.md +0 -63
  587. package/.claude/skills/mastermind-skills/stoporg.md +0 -138
  588. package/.claude/skills/mastermind-skills/taskdev.md +0 -307
  589. package/.claude/skills/mastermind-skills/tasks.md +0 -149
  590. package/.claude/skills/mastermind-skills/tdd.md +0 -394
  591. package/.claude/skills/mastermind-skills/techport.md +0 -777
  592. package/.claude/skills/mastermind-skills/threads.md +0 -259
  593. package/.claude/skills/mastermind-skills/tree-control.md +0 -250
  594. package/.claude/skills/mastermind-skills/verify.md +0 -196
  595. package/.claude/skills/mastermind-skills/wiki.md +0 -314
  596. package/.claude/skills/mastermind-skills/workspace-detail.md +0 -317
  597. package/.claude/skills/mastermind-skills/workspaces.md +0 -261
  598. package/.claude/skills/mastermind-skills/worktree.md +0 -215
  599. package/.claude/skills/monodesign/SKILL.md +0 -333
  600. package/.claude/skills/monodesign/adapt.md +0 -53
  601. package/.claude/skills/monodesign/agents/monodesign-asset-producer.md +0 -100
  602. package/.claude/skills/monodesign/animate.md +0 -65
  603. package/.claude/skills/monodesign/audit.md +0 -89
  604. package/.claude/skills/monodesign/bolder.md +0 -50
  605. package/.claude/skills/monodesign/clarify.md +0 -64
  606. package/.claude/skills/monodesign/colorize.md +0 -68
  607. package/.claude/skills/monodesign/craft.md +0 -51
  608. package/.claude/skills/monodesign/critique.md +0 -66
  609. package/.claude/skills/monodesign/delight.md +0 -47
  610. package/.claude/skills/monodesign/distill.md +0 -56
  611. package/.claude/skills/monodesign/document.md +0 -83
  612. package/.claude/skills/monodesign/extract.md +0 -74
  613. package/.claude/skills/monodesign/harden.md +0 -65
  614. package/.claude/skills/monodesign/live.md +0 -59
  615. package/.claude/skills/monodesign/onboard.md +0 -50
  616. package/.claude/skills/monodesign/optimize.md +0 -64
  617. package/.claude/skills/monodesign/overdrive.md +0 -56
  618. package/.claude/skills/monodesign/polish.md +0 -68
  619. package/.claude/skills/monodesign/quieter.md +0 -57
  620. package/.claude/skills/monodesign/reference/adapt.md +0 -190
  621. package/.claude/skills/monodesign/reference/animate.md +0 -175
  622. package/.claude/skills/monodesign/reference/antipatterns-catalog.md +0 -359
  623. package/.claude/skills/monodesign/reference/audit.md +0 -133
  624. package/.claude/skills/monodesign/reference/bolder.md +0 -113
  625. package/.claude/skills/monodesign/reference/brand-workflow.md +0 -180
  626. package/.claude/skills/monodesign/reference/brand.md +0 -114
  627. package/.claude/skills/monodesign/reference/clarify.md +0 -174
  628. package/.claude/skills/monodesign/reference/codex.md +0 -107
  629. package/.claude/skills/monodesign/reference/cognitive-load.md +0 -106
  630. package/.claude/skills/monodesign/reference/color-and-contrast.md +0 -105
  631. package/.claude/skills/monodesign/reference/colorize.md +0 -154
  632. package/.claude/skills/monodesign/reference/component-specs.md +0 -260
  633. package/.claude/skills/monodesign/reference/component-states.md +0 -274
  634. package/.claude/skills/monodesign/reference/component-system.md +0 -358
  635. package/.claude/skills/monodesign/reference/copy-formulas.md +0 -160
  636. package/.claude/skills/monodesign/reference/craft.md +0 -196
  637. package/.claude/skills/monodesign/reference/critique.md +0 -213
  638. package/.claude/skills/monodesign/reference/delight.md +0 -302
  639. package/.claude/skills/monodesign/reference/design-principles.md +0 -246
  640. package/.claude/skills/monodesign/reference/distill.md +0 -111
  641. package/.claude/skills/monodesign/reference/document.md +0 -427
  642. package/.claude/skills/monodesign/reference/extract.md +0 -69
  643. package/.claude/skills/monodesign/reference/harden.md +0 -347
  644. package/.claude/skills/monodesign/reference/heuristics-scoring.md +0 -234
  645. package/.claude/skills/monodesign/reference/hooks.md +0 -99
  646. package/.claude/skills/monodesign/reference/image-prompts.md +0 -130
  647. package/.claude/skills/monodesign/reference/interaction-design.md +0 -195
  648. package/.claude/skills/monodesign/reference/layout.md +0 -141
  649. package/.claude/skills/monodesign/reference/live.md +0 -622
  650. package/.claude/skills/monodesign/reference/motion-design.md +0 -109
  651. package/.claude/skills/monodesign/reference/onboard.md +0 -234
  652. package/.claude/skills/monodesign/reference/optimize.md +0 -258
  653. package/.claude/skills/monodesign/reference/overdrive.md +0 -130
  654. package/.claude/skills/monodesign/reference/personas.md +0 -179
  655. package/.claude/skills/monodesign/reference/polish.md +0 -233
  656. package/.claude/skills/monodesign/reference/pre-delivery-checklist.md +0 -108
  657. package/.claude/skills/monodesign/reference/product.md +0 -62
  658. package/.claude/skills/monodesign/reference/quieter.md +0 -99
  659. package/.claude/skills/monodesign/reference/responsive-design.md +0 -114
  660. package/.claude/skills/monodesign/reference/shape.md +0 -151
  661. package/.claude/skills/monodesign/reference/spatial-design.md +0 -100
  662. package/.claude/skills/monodesign/reference/teach.md +0 -156
  663. package/.claude/skills/monodesign/reference/token-architecture.md +0 -222
  664. package/.claude/skills/monodesign/reference/typeset.md +0 -124
  665. package/.claude/skills/monodesign/reference/typography.md +0 -159
  666. package/.claude/skills/monodesign/reference/ux-research.md +0 -143
  667. package/.claude/skills/monodesign/reference/ux-rules.md +0 -211
  668. package/.claude/skills/monodesign/reference/ux-writing.md +0 -107
  669. package/.claude/skills/monodesign/shape.md +0 -71
  670. package/.claude/skills/monodesign/teach.md +0 -69
  671. package/.claude/skills/monodesign/typeset.md +0 -59
  672. package/.claude/skills/monolean/SKILL.md +0 -118
  673. package/.claude/skills/monolean-audit/SKILL.md +0 -41
  674. package/.claude/skills/monolean-debt/SKILL.md +0 -46
  675. package/.claude/skills/monolean-help/SKILL.md +0 -60
  676. package/.claude/skills/monolean-review/SKILL.md +0 -57
  677. package/.claude/skills/monomind/.monomind/registry.json +0 -6
  678. package/.claude/skills/monomind/browse-agentcore.md +0 -115
  679. package/.claude/skills/monomind/browse-electron.md +0 -188
  680. package/.claude/skills/monomind/browse-qa.md +0 -228
  681. package/.claude/skills/monomind/browse-references/authentication.md +0 -161
  682. package/.claude/skills/monomind/browse-references/trust-boundaries.md +0 -40
  683. package/.claude/skills/monomind/browse-references/video-recording.md +0 -83
  684. package/.claude/skills/monomind/browse-slack.md +0 -188
  685. package/.claude/skills/monomind/browse-vercel.md +0 -239
  686. package/.claude/skills/monomind/browse.md +0 -724
  687. package/.claude/skills/monomotion/SKILL.md +0 -145
  688. package/.claude/skills/monomotion/rules/api-control.md +0 -139
  689. package/.claude/skills/monomotion/rules/effects.md +0 -109
  690. package/.claude/skills/monomotion/rules/integration.md +0 -140
  691. package/.claude/skills/monomotion/rules/scroll.md +0 -131
  692. package/.claude/skills/monomotion/rules/sequencing.md +0 -105
  693. package/.claude/skills/monomotion/rules/svg.md +0 -101
  694. package/.claude/skills/monomotion/rules/text.md +0 -119
  695. package/.claude/skills/pair-programming/SKILL.md +0 -1202
  696. package/.claude/skills/performance-analysis/SKILL.md +0 -560
  697. package/.claude/skills/skill-builder/SKILL.md +0 -910
  698. package/.claude/skills/sparc-methodology/SKILL.md +0 -950
  699. package/.claude/skills/specialagent/SKILL.md +0 -208
  700. package/.claude/skills/stop-slop/SKILL.md +0 -67
  701. package/.claude/skills/stop-slop/references/examples.md +0 -61
  702. package/.claude/skills/stop-slop/references/phrases.md +0 -130
  703. package/.claude/skills/stop-slop/references/structures.md +0 -136
  704. package/.claude/skills/swarm-advanced/SKILL.md +0 -937
  705. package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
  706. package/.claude/skills/verification-quality/SKILL.md +0 -674
  707. package/.claude/workflows/feature-dev.yaml +0 -18
  708. package/.claude/workflows/security-audit.yaml +0 -10
  709. package/packages/@monomind/cli/.claude/agents/generated/case-analyst.md +0 -50
  710. package/packages/@monomind/cli/.claude/agents/generated/channel-intelligence-director.md +0 -87
  711. package/packages/@monomind/cli/.claude/agents/generated/chief-growth-officer.md +0 -88
  712. package/packages/@monomind/cli/.claude/agents/generated/churn-analyst.md +0 -53
  713. package/packages/@monomind/cli/.claude/agents/generated/code-reviewer.md +0 -55
  714. package/packages/@monomind/cli/.claude/agents/generated/code-validator.md +0 -57
  715. package/packages/@monomind/cli/.claude/agents/generated/complexity-scanner.md +0 -56
  716. package/packages/@monomind/cli/.claude/agents/generated/content-seo-strategist.md +0 -90
  717. package/packages/@monomind/cli/.claude/agents/generated/copy-editor.md +0 -45
  718. package/packages/@monomind/cli/.claude/agents/generated/court-reporter.md +0 -50
  719. package/packages/@monomind/cli/.claude/agents/generated/defender.md +0 -51
  720. package/packages/@monomind/cli/.claude/agents/generated/devbot-orchestrator.md +0 -58
  721. package/packages/@monomind/cli/.claude/agents/generated/devbot-planner.md +0 -63
  722. package/packages/@monomind/cli/.claude/agents/generated/developer-community-strategist.md +0 -91
  723. package/packages/@monomind/cli/.claude/agents/generated/editor-in-chief.md +0 -45
  724. package/packages/@monomind/cli/.claude/agents/generated/fact-checker.md +0 -45
  725. package/packages/@monomind/cli/.claude/agents/generated/impact-assessor.md +0 -54
  726. package/packages/@monomind/cli/.claude/agents/generated/judge.md +0 -51
  727. package/packages/@monomind/cli/.claude/agents/generated/outreach-partnership-strategist.md +0 -90
  728. package/packages/@monomind/cli/.claude/agents/generated/prosecutor.md +0 -51
  729. package/packages/@monomind/cli/.claude/agents/generated/reporter.md +0 -45
  730. package/packages/@monomind/cli/.claude/agents/generated/social-media-strategist.md +0 -91
  731. package/packages/@monomind/cli/.claude/agents/generated/video-visual-strategist.md +0 -90
  732. package/packages/@monomind/cli/.claude/agents/reengineer-squad/boss.md +0 -113
  733. package/packages/@monomind/cli/.claude/agents/reengineer-squad/critic-architect.md +0 -132
  734. package/packages/@monomind/cli/.claude/agents/reengineer-squad/git-manager.md +0 -145
  735. package/packages/@monomind/cli/.claude/agents/reengineer-squad/idea-generator.md +0 -95
  736. package/packages/@monomind/cli/.claude/agents/reengineer-squad/implementer.md +0 -112
  737. package/packages/@monomind/cli/.claude/agents/reengineer-squad/integration-planner.md +0 -112
  738. package/packages/@monomind/cli/.claude/agents/reengineer-squad/source-analyst.md +0 -103
  739. package/packages/@monomind/cli/.claude/agents/reengineer-squad/target-analyst.md +0 -118
  740. package/packages/@monomind/cli/.claude/agents/reengineer-squad/tester.md +0 -105
  741. package/packages/@monomind/cli/.claude/agents/sparc/architecture.md +0 -453
  742. package/packages/@monomind/cli/.claude/agents/sparc/pseudocode.md +0 -299
  743. package/packages/@monomind/cli/.claude/agents/sparc/refinement.md +0 -504
  744. package/packages/@monomind/cli/.claude/agents/sparc/specification.md +0 -258
  745. package/packages/@monomind/cli/.claude/agents/templates/implementer-sparc-coder.md +0 -231
  746. package/packages/@monomind/cli/.claude/commands/sparc/analyzer.md +0 -35
  747. package/packages/@monomind/cli/.claude/commands/sparc/architect.md +0 -36
  748. package/packages/@monomind/cli/.claude/commands/sparc/ask.md +0 -56
  749. package/packages/@monomind/cli/.claude/commands/sparc/batch-executor.md +0 -37
  750. package/packages/@monomind/cli/.claude/commands/sparc/code.md +0 -48
  751. package/packages/@monomind/cli/.claude/commands/sparc/coder.md +0 -37
  752. package/packages/@monomind/cli/.claude/commands/sparc/debug.md +0 -42
  753. package/packages/@monomind/cli/.claude/commands/sparc/debugger.md +0 -37
  754. package/packages/@monomind/cli/.claude/commands/sparc/designer.md +0 -36
  755. package/packages/@monomind/cli/.claude/commands/sparc/devops.md +0 -68
  756. package/packages/@monomind/cli/.claude/commands/sparc/docs-writer.md +0 -39
  757. package/packages/@monomind/cli/.claude/commands/sparc/documenter.md +0 -37
  758. package/packages/@monomind/cli/.claude/commands/sparc/innovator.md +0 -37
  759. package/packages/@monomind/cli/.claude/commands/sparc/integration.md +0 -42
  760. package/packages/@monomind/cli/.claude/commands/sparc/mcp.md +0 -76
  761. package/packages/@monomind/cli/.claude/commands/sparc/memory-manager.md +0 -57
  762. package/packages/@monomind/cli/.claude/commands/sparc/optimizer.md +0 -37
  763. package/packages/@monomind/cli/.claude/commands/sparc/orchestrator.md +0 -70
  764. package/packages/@monomind/cli/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -42
  765. package/packages/@monomind/cli/.claude/commands/sparc/refinement-optimization-mode.md +0 -42
  766. package/packages/@monomind/cli/.claude/commands/sparc/researcher.md +0 -37
  767. package/packages/@monomind/cli/.claude/commands/sparc/reviewer.md +0 -37
  768. package/packages/@monomind/cli/.claude/commands/sparc/security-review.md +0 -39
  769. package/packages/@monomind/cli/.claude/commands/sparc/sparc-modes.md +0 -120
  770. package/packages/@monomind/cli/.claude/commands/sparc/sparc.md +0 -71
  771. package/packages/@monomind/cli/.claude/commands/sparc/spec-pseudocode.md +0 -39
  772. package/packages/@monomind/cli/.claude/commands/sparc/supabase-admin.md +0 -301
  773. package/packages/@monomind/cli/.claude/commands/sparc/swarm-coordinator.md +0 -50
  774. package/packages/@monomind/cli/.claude/commands/sparc/tdd.md +0 -37
  775. package/packages/@monomind/cli/.claude/commands/sparc/tester.md +0 -37
  776. package/packages/@monomind/cli/.claude/commands/sparc/tutorial.md +0 -38
  777. package/packages/@monomind/cli/.claude/commands/sparc/workflow-manager.md +0 -37
  778. package/packages/@monomind/cli/.claude/commands/sparc.md +0 -112
  779. package/packages/@monomind/cli/.claude/skills/sparc-methodology/SKILL.md +0 -950
  780. package/packages/@monomind/cli/dist/src/capabilities/enrichment.d.ts +0 -44
  781. package/packages/@monomind/cli/dist/src/capabilities/enrichment.js +0 -141
  782. package/packages/@monomind/cli/dist/src/commands/analyze-boundaries.d.ts +0 -14
  783. package/packages/@monomind/cli/dist/src/commands/analyze-boundaries.js +0 -295
  784. package/packages/@monomind/cli/dist/src/commands/analyze-graph.d.ts +0 -14
  785. package/packages/@monomind/cli/dist/src/commands/analyze-graph.js +0 -304
  786. package/packages/@monomind/cli/dist/src/commands/claims.d.ts +0 -10
  787. package/packages/@monomind/cli/dist/src/commands/claims.js +0 -650
  788. package/packages/@monomind/cli/dist/src/commands/daemon.d.ts +0 -8
  789. package/packages/@monomind/cli/dist/src/commands/daemon.js +0 -681
  790. package/packages/@monomind/cli/dist/src/commands/enrich.d.ts +0 -10
  791. package/packages/@monomind/cli/dist/src/commands/enrich.js +0 -58
  792. package/packages/@monomind/cli/dist/src/commands/issues.d.ts +0 -21
  793. package/packages/@monomind/cli/dist/src/commands/issues.js +0 -575
  794. package/packages/@monomind/cli/dist/src/commands/workflow.d.ts +0 -8
  795. package/packages/@monomind/cli/dist/src/commands/workflow.js +0 -575
  796. package/packages/@monomind/cli/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
  797. package/packages/@monomind/cli/dist/src/mcp-tools/workflow-tools.js +0 -717
  798. package/packages/@monomind/cli/dist/src/services/claim-service.d.ts +0 -198
  799. package/packages/@monomind/cli/dist/src/services/claim-service.js +0 -890
  800. package/packages/@monomind/cli/dist/src/services/headless-worker-executor.d.ts +0 -311
  801. package/packages/@monomind/cli/dist/src/services/headless-worker-executor.js +0 -1183
  802. package/packages/@monomind/cli/dist/src/services/worker-daemon.d.ts +0 -230
  803. package/packages/@monomind/cli/dist/src/services/worker-daemon.js +0 -1350
  804. package/packages/@monomind/cli/dist/src/ui/.monomind/capture/active-run.json +0 -1
  805. package/packages/@monomind/guidance/README.md +0 -87
  806. package/packages/@monomind/guidance/dist/adversarial.d.ts +0 -284
  807. package/packages/@monomind/guidance/dist/adversarial.js +0 -572
  808. package/packages/@monomind/guidance/dist/analyzer.d.ts +0 -530
  809. package/packages/@monomind/guidance/dist/analyzer.js +0 -2518
  810. package/packages/@monomind/guidance/dist/artifacts.d.ts +0 -283
  811. package/packages/@monomind/guidance/dist/artifacts.js +0 -356
  812. package/packages/@monomind/guidance/dist/authority.d.ts +0 -290
  813. package/packages/@monomind/guidance/dist/authority.js +0 -558
  814. package/packages/@monomind/guidance/dist/capabilities.d.ts +0 -209
  815. package/packages/@monomind/guidance/dist/capabilities.js +0 -485
  816. package/packages/@monomind/guidance/dist/coherence.d.ts +0 -233
  817. package/packages/@monomind/guidance/dist/coherence.js +0 -378
  818. package/packages/@monomind/guidance/dist/compiler.d.ts +0 -87
  819. package/packages/@monomind/guidance/dist/compiler.js +0 -425
  820. package/packages/@monomind/guidance/dist/conformance-kit.d.ts +0 -225
  821. package/packages/@monomind/guidance/dist/conformance-kit.js +0 -629
  822. package/packages/@monomind/guidance/dist/continue-gate.d.ts +0 -214
  823. package/packages/@monomind/guidance/dist/continue-gate.js +0 -353
  824. package/packages/@monomind/guidance/dist/crypto-utils.d.ts +0 -17
  825. package/packages/@monomind/guidance/dist/crypto-utils.js +0 -24
  826. package/packages/@monomind/guidance/dist/evolution.d.ts +0 -282
  827. package/packages/@monomind/guidance/dist/evolution.js +0 -500
  828. package/packages/@monomind/guidance/dist/gates.d.ts +0 -79
  829. package/packages/@monomind/guidance/dist/gates.js +0 -302
  830. package/packages/@monomind/guidance/dist/gateway.d.ts +0 -206
  831. package/packages/@monomind/guidance/dist/gateway.js +0 -452
  832. package/packages/@monomind/guidance/dist/generators.d.ts +0 -153
  833. package/packages/@monomind/guidance/dist/generators.js +0 -682
  834. package/packages/@monomind/guidance/dist/headless.d.ts +0 -177
  835. package/packages/@monomind/guidance/dist/headless.js +0 -342
  836. package/packages/@monomind/guidance/dist/hooks.d.ts +0 -109
  837. package/packages/@monomind/guidance/dist/hooks.js +0 -347
  838. package/packages/@monomind/guidance/dist/index.d.ts +0 -203
  839. package/packages/@monomind/guidance/dist/index.js +0 -320
  840. package/packages/@monomind/guidance/dist/ledger.d.ts +0 -162
  841. package/packages/@monomind/guidance/dist/ledger.js +0 -375
  842. package/packages/@monomind/guidance/dist/manifest-validator.d.ts +0 -289
  843. package/packages/@monomind/guidance/dist/manifest-validator.js +0 -838
  844. package/packages/@monomind/guidance/dist/memory-gate.d.ts +0 -222
  845. package/packages/@monomind/guidance/dist/memory-gate.js +0 -382
  846. package/packages/@monomind/guidance/dist/meta-governance.d.ts +0 -265
  847. package/packages/@monomind/guidance/dist/meta-governance.js +0 -348
  848. package/packages/@monomind/guidance/dist/optimizer.d.ts +0 -104
  849. package/packages/@monomind/guidance/dist/optimizer.js +0 -329
  850. package/packages/@monomind/guidance/dist/persistence.d.ts +0 -189
  851. package/packages/@monomind/guidance/dist/persistence.js +0 -464
  852. package/packages/@monomind/guidance/dist/proof.d.ts +0 -185
  853. package/packages/@monomind/guidance/dist/proof.js +0 -238
  854. package/packages/@monomind/guidance/dist/retriever.d.ts +0 -116
  855. package/packages/@monomind/guidance/dist/retriever.js +0 -394
  856. package/packages/@monomind/guidance/dist/ruvbot-integration.d.ts +0 -370
  857. package/packages/@monomind/guidance/dist/ruvbot-integration.js +0 -738
  858. package/packages/@monomind/guidance/dist/temporal.d.ts +0 -428
  859. package/packages/@monomind/guidance/dist/temporal.js +0 -660
  860. package/packages/@monomind/guidance/dist/trust.d.ts +0 -283
  861. package/packages/@monomind/guidance/dist/trust.js +0 -474
  862. package/packages/@monomind/guidance/dist/truth-anchors.d.ts +0 -276
  863. package/packages/@monomind/guidance/dist/truth-anchors.js +0 -488
  864. package/packages/@monomind/guidance/dist/types.d.ts +0 -378
  865. package/packages/@monomind/guidance/dist/types.js +0 -10
  866. package/packages/@monomind/guidance/dist/uncertainty.d.ts +0 -372
  867. package/packages/@monomind/guidance/dist/uncertainty.js +0 -619
  868. package/packages/@monomind/guidance/dist/wasm-kernel.d.ts +0 -48
  869. package/packages/@monomind/guidance/dist/wasm-kernel.js +0 -158
  870. package/packages/@monomind/guidance/package.json +0 -119
@@ -1,1142 +0,0 @@
1
- ---
2
- name: mastermind-idea
3
- description: Mastermind idea domain — product ideation, feature brainstorming, pivot exploration. Spawns an Idea Manager agent for divergent thinking, then validates, elaborates, and decomposes approved ideas into actionable subtasks on separate dev and ops task boards.
4
- type: domain-skill
5
- default_mode: confirm
6
- ---
7
-
8
- # Mastermind Idea Domain
9
-
10
- This skill is invoked by `mastermind:master` or directly via `/mastermind:idea`.
11
-
12
- **Extract `--monotask` flag:** If present in `$ARGUMENTS`, set `USE_MONOTASK=true` and remove it from `$ARGUMENTS`. Default: `USE_MONOTASK=false`.
13
-
14
- **File mode (default, `USE_MONOTASK=false`):**
15
-
16
- Invoke `Skill("mastermind-skills:ideate", $ARGUMENTS)` immediately — it provides the same research, evaluation, elaboration, and task-decomposition pipeline with file-first storage (`docs/ideas/` and `docs/tasks/`). The rest of this skill is skipped in file mode.
17
-
18
- **Board mode (`USE_MONOTASK=true`):**
19
-
20
- Continue with the full monotask board pipeline below (Steps 3-6).
21
-
22
- ---
23
-
24
- ## Inputs
25
-
26
- - `brain_context`: BRAIN CONTEXT block (injected by master, or loaded standalone via _protocol.md brain load)
27
- - `prompt`: the ideation goal for this run
28
- - `project_name`: monotask space name
29
- - `mode`: auto | confirm
30
-
31
- Note: the `board_id` that mastermind:master may pass is its own orchestration board. The idea domain always creates a dedicated **ideation board** with its own pipeline columns — do not reuse master's board_id.
32
-
33
- ---
34
-
35
- ## Complexity Assessment
36
-
37
- Assess the prompt to determine execution mode:
38
-
39
- **Simple (direct execution):** Single-answer ideation, one agent:
40
- - "Give me 5 name ideas for this feature"
41
- - "Suggest one pivot angle for this product"
42
- → Use a single researcher or content-creator agent. Skip Steps 3–6. Go straight to Step 7 (Brain Write).
43
-
44
- **Complex (full pipeline):** Any of these:
45
- - Product strategy or pivot exploration (multiple angles needed)
46
- - Feature ideation requiring market and user context
47
- - Competitive landscape brainstorm
48
- - Full product vision document
49
- → Run Steps 3–6 (Board Setup → Idea Manager → Validation → Elaboration + Tasks).
50
-
51
- ---
52
-
53
- ## Standalone Execution (when called without master)
54
-
55
- If this skill is invoked directly (not by master):
56
-
57
- 1. Load brain context following _protocol.md Brain Load Procedure (namespace: `idea`)
58
- 2. Run intake from _intake.md if prompt is vague
59
- 3. For complex prompts: run Steps 3–6 below
60
- 4. At end: follow _protocol.md Brain Write Procedure (namespace: `idea`)
61
-
62
- ---
63
-
64
- ## Simple Execution
65
-
66
- For simple prompts (single agent, single output):
67
-
68
- 1. Spawn one Task agent with the ideation request as a self-contained briefing
69
- 2. Collect output
70
- 3. If called standalone (not from master): follow _protocol.md Brain Write Procedure (namespace: `idea`)
71
- 4. Return unified output schema with `status: complete`
72
-
73
- ---
74
-
75
- ## Complex Execution
76
-
77
- ### Step 3 — Monotask Board Setup
78
-
79
- Set up the space and ideation board. The ideation board has a dedicated pipeline with six columns (not master's board).
80
-
81
- ```bash
82
- # Compatible with macOS bash 3.2
83
- project_name="${project_name:-$(basename "$PWD")}"
84
- date=$(date -u +%Y-%m-%dT%H:%M:%SZ)
85
- idea_canonical="${project_name}-idea"
86
-
87
- # Find or create space (by exact name)
88
- space_id=$(monotask space list 2>/dev/null | awk -F'|' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$project_name" | head -1)
89
- [ -z "$space_id" ] && space_id=$(monotask space create "$project_name" 2>/dev/null | grep -oE '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
90
- [ -z "$space_id" ] && { echo "ERROR: Could not find or create space '$project_name'"; exit 1; }
91
-
92
- # Find existing idea board by canonical name — reuse across runs (same pattern as master Step 6)
93
- # board list format is "uuid: name" (colon-space separator, NOT pipe)
94
- BOARD_ID=$(monotask board list 2>/dev/null | awk -F': ' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$idea_canonical" | head -1)
95
-
96
- if [ -n "$BOARD_ID" ]; then
97
- echo "Reusing idea board: $BOARD_ID ($idea_canonical)"
98
- columns=$(monotask column list "$BOARD_ID" --json)
99
- COL_NEW=$(echo "$columns" | jq -r '.[] | select(.title == "New") | .id' | head -1)
100
- COL_EVALUATED=$(echo "$columns" | jq -r '.[] | select(.title == "Evaluated") | .id' | head -1)
101
- COL_ELABORATED=$(echo "$columns"| jq -r '.[] | select(.title == "Elaborated") | .id' | head -1)
102
- COL_TASKED=$(echo "$columns" | jq -r '.[] | select(.title == "Tasked") | .id' | head -1)
103
- COL_ICED=$(echo "$columns" | jq -r '.[] | select(.title == "Iced") | .id' | head -1)
104
- COL_REJECTED=$(echo "$columns" | jq -r '.[] | select(.title == "Rejected") | .id' | head -1)
105
- [ -z "$COL_NEW" ] && { echo "ERROR: 'New' column missing on board $BOARD_ID — was board created with wrong schema?"; exit 1; }
106
- [ -z "$COL_EVALUATED" ] && { echo "ERROR: 'Evaluated' column missing on board $BOARD_ID"; exit 1; }
107
- [ -z "$COL_ELABORATED" ] && { echo "ERROR: 'Elaborated' column missing on board $BOARD_ID"; exit 1; }
108
- [ -z "$COL_TASKED" ] && { echo "ERROR: 'Tasked' column missing on board $BOARD_ID"; exit 1; }
109
- [ -z "$COL_ICED" ] && { echo "ERROR: 'Iced' column missing on board $BOARD_ID"; exit 1; }
110
- [ -z "$COL_REJECTED" ] && { echo "ERROR: 'Rejected' column missing on board $BOARD_ID"; exit 1; }
111
- else
112
- echo "Creating idea board: $idea_canonical"
113
- BOARD_ID=$(monotask board create --space "$space_id" "$idea_canonical" --json 2>/dev/null | jq -r '.id // empty')
114
- [ -z "$BOARD_ID" ] && { echo "ERROR: Failed to create idea board '$idea_canonical'"; exit 1; }
115
- monotask space boards add "$space_id" "$BOARD_ID" >/dev/null 2>&1 || true
116
- COL_NEW=$(monotask column create "$BOARD_ID" "New" --json | jq -r '.id // empty')
117
- COL_EVALUATED=$(monotask column create "$BOARD_ID" "Evaluated" --json | jq -r '.id // empty')
118
- COL_ELABORATED=$(monotask column create "$BOARD_ID" "Elaborated" --json | jq -r '.id // empty')
119
- COL_TASKED=$(monotask column create "$BOARD_ID" "Tasked" --json | jq -r '.id // empty')
120
- COL_ICED=$(monotask column create "$BOARD_ID" "Iced" --json | jq -r '.id // empty')
121
- COL_REJECTED=$(monotask column create "$BOARD_ID" "Rejected" --json | jq -r '.id // empty')
122
- fi
123
- ```
124
-
125
- **After either branch above, validate and echo all values.** This is the canonical source for Step 4 Task construction.
126
-
127
- ```bash
128
- # Guard all column IDs — catches silent jq failures in the create branch
129
- [ -z "$COL_NEW" ] && { echo "ERROR: COL_NEW empty after board setup"; exit 1; }
130
- [ -z "$COL_EVALUATED" ] && { echo "ERROR: COL_EVALUATED empty after board setup"; exit 1; }
131
- [ -z "$COL_ELABORATED" ] && { echo "ERROR: COL_ELABORATED empty after board setup"; exit 1; }
132
- [ -z "$COL_TASKED" ] && { echo "ERROR: COL_TASKED empty after board setup"; exit 1; }
133
- [ -z "$COL_ICED" ] && { echo "ERROR: COL_ICED empty after board setup"; exit 1; }
134
- [ -z "$COL_REJECTED" ] && { echo "ERROR: COL_REJECTED empty after board setup"; exit 1; }
135
-
136
- # Validate BOARD_ID looks like a UUID before proceeding
137
- [[ ! "$BOARD_ID" =~ ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ ]] && \
138
- { echo "ERROR: BOARD_ID '$BOARD_ID' is not a valid UUID — aborting to prevent board name corruption"; exit 1; }
139
-
140
- # Echo literal values — READ THESE and embed them as string literals in the Step 4 Task prompt.
141
- # These are shell variables; they DO NOT survive into the Task agent's context.
142
- echo "=== IDEA BOARD LITERAL VALUES ==="
143
- echo "BOARD_ID=$BOARD_ID"
144
- echo "COL_NEW=$COL_NEW"
145
- echo "COL_EVALUATED=$COL_EVALUATED"
146
- echo "COL_ELABORATED=$COL_ELABORATED"
147
- echo "COL_TASKED=$COL_TASKED"
148
- echo "COL_ICED=$COL_ICED"
149
- echo "COL_REJECTED=$COL_REJECTED"
150
- echo "==================================="
151
- ```
152
-
153
- ---
154
-
155
- ### Step 4 — Idea Manager Agent (Divergent Thinking)
156
-
157
- **Before spawning the Idea Manager**, run the registry-aware specialist selection to determine which agents to use. This replaces hardcoded agent types with the best available specialists for the prompt.
158
-
159
- ```bash
160
- REGISTRY=".monomind/registry.json"
161
- PROMPT="$prompt"
162
- TOP_N=6
163
-
164
- # Select user/market/ops angle specialists
165
- CATEGORIES="marketing strategy product academic specialized"
166
- user_market_agents=$(jq \
167
- --arg cats "$CATEGORIES" \
168
- --arg kw "$(echo "$PROMPT" | tr '[:upper:]' '[:lower:]' | grep -oE '[a-z]{5,}' | sort -u | tr '\n' ' ')" \
169
- --argjson n "$TOP_N" \
170
- '[ (.agents // [])[] | select(.deprecated != true)
171
- | select(.category as $c | ($cats | split(" ") | any(. == $c)))
172
- | {name: .name, slug: .slug, category: .category,
173
- score: (
174
- (.name | ascii_downcase) as $n |
175
- # Score on ANY keyword match (mirrors master.md pick_domain_manager scoring)
176
- (if ($kw | length) > 0
177
- then ([$kw | split(" ")[] | select(length > 0) | if ($n | contains(.)) then 1 else 0 end] | add // 0)
178
- else 0 end)
179
- )}
180
- ] | sort_by(-.score) | unique_by(.slug) | .[0:$n] | [.[].name]' \
181
- "$REGISTRY" 2>/dev/null)
182
-
183
- # Select technical angle specialists
184
- CATEGORIES="engineering development architecture"
185
- tech_agents=$(jq \
186
- --arg cats "$CATEGORIES" \
187
- --argjson n 3 \
188
- '[ (.agents // [])[] | select(.deprecated != true)
189
- | select(.category as $c | ($cats | split(" ") | any(. == $c)))
190
- | {name: .name, slug: .slug}
191
- ] | unique_by(.slug) | .[0:$n] | [.[].name]' \
192
- "$REGISTRY" 2>/dev/null)
193
-
194
- # Merge: take top 6 from market/ops + top 2 from tech (cap at 8 total)
195
- # Both variables hold JSON arrays (no -r flag) — use jq -s add to merge properly
196
- specialist_list=$(jq -s 'add // [] | unique | .[0:8]' \
197
- <(printf '%s' "$user_market_agents") \
198
- <(printf '%s' "$tech_agents") 2>/dev/null)
199
-
200
- # Fallback if registry missing or returned an empty array — need at least 2 specialists
201
- specialist_count=$(echo "$specialist_list" | jq 'length // 0' 2>/dev/null || echo 0)
202
- [ "$specialist_count" -lt 2 ] && specialist_list='["researcher","Trend Researcher","Growth Hacker","UX Researcher","Content Creator","Account Strategist"]'
203
-
204
- echo "Selected specialists: $specialist_list"
205
- ```
206
-
207
- **CRITICAL — Variable substitution required before constructing the Task call:**
208
- The Task agent runs in an isolated context and cannot inherit shell variables. Before writing the Task prompt below, read the literal UUID values from the `=== IDEA BOARD LITERAL VALUES ===` echo block above and embed them as **hard-coded strings** in the prompt. Do NOT write `${BOARD_ID}`, `${COL_NEW}`, etc. in the prompt — the agent will receive those as literal dollar-sign strings and its `monotask card create` calls will fail, causing it to improvise with `monotask board create` and corrupt board names. Replace every `${BOARD_ID}`, `${COL_NEW}`, `${project_name}`, `${brain_context}`, `${prompt}`, `${date}`, and `${specialist_list}` with the actual value before calling Task. Leave `$result`, `$CARD_ID`, and other loop-internal variables as-is — they are bash variables the agent itself will set at runtime, not substitution targets.
209
-
210
- Spawn the Idea Manager with `run_in_background: false` so its output is available for Step 5.
211
-
212
- ```javascript
213
- Task({
214
- subagent_type: "coordinator",
215
- description: "Idea Manager for project " + project_name,
216
- run_in_background: false,
217
- prompt: `SAFETY CHECK: Before doing anything else, verify that the BOARD_ID you received matches UUID format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12 hex chars). If it does not, STOP immediately and report "ERROR: BOARD_ID was not substituted — received: <value>". Do NOT call monotask board create, monotask space create, or any board/space/column creation commands. Your only job is creating CARDS on the board you were given.
218
-
219
- You are the Idea Manager for project "${project_name}".
220
-
221
- CONTEXT: ${date} | Project: ${project_name} | Spawned by: mastermind:idea
222
-
223
- BRAIN CONTEXT:
224
- ${brain_context}
225
-
226
- YOUR BOARD: ${BOARD_ID}
227
- COL_NEW: ${COL_NEW}
228
- YOUR GOAL: ${prompt}
229
-
230
- STEP 1 — PLAN
231
- Decompose the ideation goal into distinct exploration angles. For each angle, identify:
232
- - Perspective (market, user, technical, competitive, business operations)
233
- - Which specialist to assign
234
- - Expected output format
235
-
236
- STEP 2 — SPAWN SPECIALISTS
237
- Spawn one Task agent per angle (all in parallel, mesh topology). Each agent receives the
238
- angle description, brain context, and project context, and must return a JSON array of ideas.
239
-
240
- The following specialist agents have been pre-selected from the registry as best-fit for this prompt.
241
- Spawn ALL of them in one message, assigning each a distinct angle:
242
-
243
- SPECIALISTS: ${specialist_list}
244
-
245
- Assign each specialist the angle that best matches their domain expertise.
246
- For any specialist you don't recognize, assign them the closest research or analysis angle.
247
- Always ensure at minimum these angles are covered even if the same agent covers multiple:
248
- - Market / competitive landscape
249
- - User / UX perspective
250
- - Growth / acquisition
251
- - Business operations / process
252
- - Technical feasibility (at least one engineering-category agent)
253
-
254
- Each specialist must classify every idea with one of these categories:
255
- feature — new product capability for end users
256
- technical-baseline — infrastructure, tooling, or technical debt (not user-visible)
257
- business-operation — internal process, workflow, marketing, sales, ops, or org change
258
-
259
- Each specialist returns ideas in this format:
260
- [
261
- {
262
- "title": "...",
263
- "description": "...",
264
- "category": "feature | technical-baseline | business-operation"
265
- }
266
- ]
267
-
268
- STEP 3 — DEDUPLICATE
269
- Collect all ideas from all specialists. Drop any idea whose title is more than 80% similar
270
- to an already-kept idea (fuzzy match). Keep the richer description when deduplicating.
271
-
272
- STEP 4 — CREATE CARDS AND RETURN
273
- For each unique idea, create one card in the New column (COL_NEW = ${COL_NEW}):
274
-
275
- result=$(monotask card create "${BOARD_ID}" "${COL_NEW}" "<idea title ≤80 chars>" --json)
276
- CARD_ID=$(echo "$result" | jq -r '.id // empty')
277
- [ -z "$CARD_ID" ] && { echo "WARN: card creation failed for '<idea title>', skipping"; continue; }
278
- monotask card set-description "${BOARD_ID}" "$CARD_ID" "<2-3 sentence description>"
279
- monotask card comment add "${BOARD_ID}" "$CARD_ID" "CATEGORY: <feature | technical-baseline | business-operation>
280
- SOURCE: <which specialist angle produced this>"
281
- monotask card label add "${BOARD_ID}" "$CARD_ID" "mastermind-idea"
282
- monotask card label add "${BOARD_ID}" "$CARD_ID" "category:<category>"
283
-
284
- Then output a JSON block labelled IDEAS_OUTPUT with one entry per unique idea:
285
-
286
- IDEAS_OUTPUT
287
- [
288
- {
289
- "card_id": "<monotask card ID just created>",
290
- "title": "<idea title>",
291
- "description": "<2-3 sentence description>",
292
- "category": "feature | technical-baseline | business-operation",
293
- "source_angle": "<which specialist produced this>"
294
- }
295
- ]
296
- END_IDEAS_OUTPUT`
297
- })
298
- ```
299
-
300
- Parse the `IDEAS_OUTPUT` JSON block from the agent's response and assign it:
301
- ```bash
302
- ideas_output_json='<paste the JSON array from IDEAS_OUTPUT here>'
303
- ```
304
- If the `IDEAS_OUTPUT` block is absent from the agent's response (agent error, timeout, or unrecoverable failure), set `ideas_output_json='[]'` and treat as zero ideas.
305
- If zero ideas were returned, report "Idea Manager produced no ideas." — skip Steps 5–6 and proceed to Step 7 (Brain Write).
306
-
307
- ---
308
-
309
- ### Step 5 — Validation (Product Manager Evaluation)
310
-
311
- **Build `ideas_list` before constructing the Step 5 Task prompt:**
312
- ```bash
313
- # Format the full IDEAS_OUTPUT array (from Step 4) as the literal string to embed in the Task prompt.
314
- # Each line: card_id | title | description | category | source_angle
315
- ideas_list=$(echo "$ideas_output_json" | jq -r \
316
- '.[] | "- card_id: \(.card_id)\n title: \(.title)\n description: \(.description)\n category: \(.category)\n source: \(.source_angle)\n"')
317
- ```
318
-
319
- **CRITICAL — Variable substitution required for Step 5 Task call:**
320
- Before constructing the Task prompt below, read the literal UUID values from the `=== IDEA BOARD LITERAL VALUES ===` echo block (Step 3) and embed them as hard-coded strings. Also embed the full `brain_context`, `prompt`, and `ideas_list` (built above) as literal text. Replace every `${BOARD_ID}`, `${COL_EVALUATED}`, `${COL_ICED}`, `${COL_REJECTED}`, `${brain_context}`, `${prompt}`, `${project_name}`, `${date}`, and `${ideas_list}` with its actual value before calling Task — the agent receives unsubstituted `${...}` strings verbatim and silently skips every board update.
321
-
322
- Spawn a single `general-purpose` agent via the Task tool. Do NOT use `Product Manager` — that agent type lacks Bash tool access and cannot execute `monotask` CLI commands. The evaluator agent produces verdicts and executes all board updates directly via Bash.
323
-
324
- ```javascript
325
- Task({
326
- subagent_type: "general-purpose",
327
- description: "PM validation for project " + project_name,
328
- run_in_background: false,
329
- prompt: `SAFETY CHECK: Verify that the BOARD_ID you received matches UUID format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12 hex chars). If it does not, STOP and report "ERROR: BOARD_ID not substituted — received: <value>". Do NOT call monotask board create, space create, or column create. Your only job is evaluating cards and running impact/effort updates on existing cards.
330
-
331
- You are the Product Manager evaluator for project "${project_name}".
332
-
333
- CONTEXT: ${date} | Project: ${project_name}
334
- ORIGINAL GOAL: ${prompt}
335
-
336
- BRAIN CONTEXT:
337
- ${brain_context}
338
-
339
- YOUR BOARD: ${BOARD_ID}
340
- COL_EVALUATED: ${COL_EVALUATED}
341
- COL_ICED: ${COL_ICED}
342
- COL_REJECTED: ${COL_REJECTED}
343
-
344
- IDEAS TO EVALUATE (formatted from IDEAS_OUTPUT parsed in Step 4 — paste the full JSON array here as literal text):
345
- ${ideas_list}
346
-
347
- For EVERY idea above, determine:
348
- - verdict: evaluated | iced | rejected
349
- - impact: 0–10 (business value / strategic importance)
350
- - effort: 0–10 (implementation cost / complexity)
351
- - skipElaboration: true (simple, no deep research needed) | false (edge cases should be explored) — only for evaluated
352
- - rationale: 1-2 sentence value statement (evaluated), blocking question (iced), or rejection reason (rejected)
353
-
354
- MANDATORY BOARD UPDATES — after determining all verdicts, build your verdicts as a JSON array and iterate over it:
355
-
356
- # Paste your full VERDICTS_OUTPUT array here as verdicts_json (before outputting the block)
357
- verdicts_json='[ ... your verdict objects ... ]'
358
- while IFS= read -r row; do
359
- CARD_ID=$(echo "$row" | jq -r '.card_id')
360
- verdict=$(echo "$row" | jq -r '.verdict')
361
- impact=$(echo "$row" | jq -r '.impact')
362
- effort=$(echo "$row" | jq -r '.effort')
363
- rationale=$(echo "$row" | jq -r '.rationale')
364
- if [ "$verdict" = "evaluated" ]; then
365
- monotask card move "${BOARD_ID}" "$CARD_ID" "${COL_EVALUATED}" --json
366
- monotask card set-impact "${BOARD_ID}" "$CARD_ID" "$impact"
367
- monotask card set-effort "${BOARD_ID}" "$CARD_ID" "$effort"
368
- monotask card comment add "${BOARD_ID}" "$CARD_ID" "Value: $rationale"
369
- elif [ "$verdict" = "iced" ]; then
370
- monotask card move "${BOARD_ID}" "$CARD_ID" "${COL_ICED}" --json
371
- monotask card set-impact "${BOARD_ID}" "$CARD_ID" "$impact"
372
- monotask card set-effort "${BOARD_ID}" "$CARD_ID" "$effort"
373
- monotask card comment add "${BOARD_ID}" "$CARD_ID" "Blocked: $rationale"
374
- elif [ "$verdict" = "rejected" ]; then
375
- monotask card move "${BOARD_ID}" "$CARD_ID" "${COL_REJECTED}" --json
376
- monotask card comment add "${BOARD_ID}" "$CARD_ID" "Rejected: $rationale"
377
- fi
378
- done < <(echo "$verdicts_json" | jq -c '.[]')
379
-
380
- IMPORTANT: set-impact and set-effort MUST be called for every evaluated and iced idea. Do not skip them.
381
-
382
- After completing all board updates, output this structured block:
383
-
384
- VERDICTS_OUTPUT
385
- [
386
- {
387
- "card_id": "<card ID>",
388
- "title": "<idea title>",
389
- "category": "feature | technical-baseline | business-operation",
390
- "verdict": "evaluated | iced | rejected",
391
- "skipElaboration": true | false,
392
- "rationale": "<value statement | blocking question | rejection reason>",
393
- "impact": <0-10>,
394
- "effort": <0-10>
395
- }
396
- ]
397
- END_VERDICTS_OUTPUT`
398
- })
399
- ```
400
-
401
- After the PM agent completes, parse the `VERDICTS_OUTPUT` block from the agent's response and assign it:
402
- ```bash
403
- verdicts_output_json='<paste the JSON array from VERDICTS_OUTPUT here>'
404
- ```
405
- If the `VERDICTS_OUTPUT` block is absent (agent error or malformed output), set `verdicts_output_json='[]'` — all ideas will be treated as iced and Step 6 will be skipped.
406
- This variable is used throughout Steps 6a and 6c to build idea lists, registry keywords, and inherit impact/effort scores — it must be set before proceeding. If **all** ideas are iced or rejected, output a summary table — skip Step 6 and proceed to Step 7 (Brain Write).
407
-
408
- ---
409
-
410
- ### Step 6 — Elaboration + Task Decomposition
411
-
412
- #### 6a. Elaboration (conditional)
413
-
414
- For any evaluated idea with `skipElaboration: true`, move it directly to `Elaborated`, set a description, and write a rationale comment so future readers understand why no deep elaboration was needed:
415
- ```bash
416
- while IFS= read -r skip_idea; do
417
- CARD_ID=$(echo "$skip_idea" | jq -r '.card_id')
418
- skip_title=$(echo "$skip_idea" | jq -r '.title')
419
- skip_rationale=$(echo "$skip_idea" | jq -r '.rationale // "No rationale provided"')
420
- skip_impact=$(echo "$skip_idea" | jq -r '.impact // 5')
421
- skip_effort=$(echo "$skip_idea" | jq -r '.effort // 5')
422
- monotask card set-description "$BOARD_ID" "$CARD_ID" "Elaboration skipped — PM assessed this as straightforward.
423
-
424
- Rationale: $skip_rationale
425
-
426
- Impact: $skip_impact/10 | Effort: $skip_effort/10"
427
- monotask card move "$BOARD_ID" "$CARD_ID" "$COL_ELABORATED" --json
428
- monotask card comment add "$BOARD_ID" "$CARD_ID" "Elaboration skipped: PM assessed this idea as straightforward with no significant unknowns. Rationale: $skip_rationale"
429
- done < <(echo "$verdicts_output_json" | jq -c '[.[] | select(.verdict == "evaluated") | select(.skipElaboration == true)] | .[]')
430
- ```
431
-
432
- For ideas with `skipElaboration: false`, **split by category** before spawning agents:
433
-
434
- **Build `dev_ideas_list` and `ops_ideas_list` before constructing the Step 6a Task prompts:**
435
- ```bash
436
- # Filter VERDICTS_OUTPUT (parsed in Step 5) by category and format as literal text.
437
- # IMPORTANT: exclude skipElaboration:true ideas — they were already moved to Elaborated above
438
- # and must not be sent to elaboration agents again.
439
- dev_ideas_list=$(echo "$verdicts_output_json" | jq -r \
440
- '.[] | select(.verdict == "evaluated") | select(.skipElaboration != true)
441
- | select(.category == "feature" or .category == "technical-baseline") |
442
- "- card_id: \(.card_id)\n title: \(.title)\n category: \(.category)\n rationale: \(.rationale)\n"')
443
-
444
- ops_ideas_list=$(echo "$verdicts_output_json" | jq -r \
445
- '.[] | select(.verdict == "evaluated") | select(.skipElaboration != true)
446
- | select(.category == "business-operation") |
447
- "- card_id: \(.card_id)\n title: \(.title)\n category: \(.category)\n rationale: \(.rationale)\n"')
448
- ```
449
-
450
- **CRITICAL — Variable substitution required for Step 6a Task calls:**
451
- Elaboration agents run in isolated Task contexts. Before constructing each Task prompt, replace every `${brain_context}`, `${dev_ideas_list}`, and `${ops_ideas_list}` with the actual literal text — `brain_context` from the brain load, `dev_ideas_list` and `ops_ideas_list` built above. Do NOT leave any `${...}` placeholders in the prompt — the agent receives them as literal dollar-sign strings and produces empty ELABORATION_OUTPUT blocks.
452
-
453
- **Dev ideas** (`feature` or `technical-baseline`) — **skip if `dev_ideas_list` is empty** (no evaluated feature/technical-baseline ideas without skipElaboration; set `dev_researcher_json='[]'` and `dev_codebase_json='[]'` instead and do not spawn these agents):
454
- Spawn two agents in parallel via Task tool:
455
-
456
- ```javascript
457
- // Agent 1 — code explorer
458
- Task({
459
- subagent_type: "feature-dev:code-explorer",
460
- description: "Elaboration: codebase constraints for dev ideas",
461
- run_in_background: true,
462
- prompt: `SAFETY CHECK: You are an elaboration agent. Do NOT call monotask board create, space create, or column create. Your only job is producing an ELABORATION_OUTPUT block — the outer skill writes to the board.
463
-
464
- Analyze the following dev ideas against the current codebase. For each idea, trace relevant execution paths, map dependencies, and surface constraints or implementation risks.
465
-
466
- BRAIN CONTEXT:
467
- ${brain_context}
468
-
469
- IDEAS:
470
- ${dev_ideas_list}
471
-
472
- Output this block:
473
- ELABORATION_OUTPUT
474
- [
475
- {
476
- "card_id": "<idea card ID>",
477
- "findings": "<detailed codebase constraints, dependency risks, and implementation notes>",
478
- "blocking_issue": "<blocking issue if any, or null>"
479
- }
480
- ]
481
- END_ELABORATION_OUTPUT`
482
- })
483
-
484
- // Agent 2 — researcher
485
- Task({
486
- subagent_type: "researcher",
487
- description: "Elaboration: prior art and edge cases for dev ideas",
488
- run_in_background: true,
489
- prompt: `SAFETY CHECK: You are an elaboration agent. Do NOT call monotask board create, space create, or column create. Your only job is producing an ELABORATION_OUTPUT block — the outer skill writes to the board.
490
-
491
- Research the following dev ideas. For each idea, find prior art, known edge cases, implementation pitfalls, and relevant open-source approaches.
492
-
493
- BRAIN CONTEXT:
494
- ${brain_context}
495
-
496
- IDEAS:
497
- ${dev_ideas_list}
498
-
499
- Output this block:
500
- ELABORATION_OUTPUT
501
- [
502
- {
503
- "card_id": "<idea card ID>",
504
- "findings": "<prior art, edge cases, pitfalls, and relevant examples>",
505
- "blocking_issue": "<blocking issue if any, or null>"
506
- }
507
- ]
508
- END_ELABORATION_OUTPUT`
509
- })
510
- ```
511
-
512
- **Business-operation ideas** (`business-operation`) — **skip if `ops_ideas_list` is empty** (no evaluated business-operation ideas without skipElaboration; set `ops_researcher_json='[]'` and `ops_pm_json='[]'` instead and do not spawn these agents):
513
- Spawn two agents in parallel via Task tool:
514
-
515
- ```javascript
516
- // Agent 1 — researcher
517
- Task({
518
- subagent_type: "researcher",
519
- description: "Elaboration: industry benchmarks for ops ideas",
520
- run_in_background: true,
521
- prompt: `SAFETY CHECK: You are an elaboration agent. Do NOT call monotask board create, space create, or column create. Your only job is producing an ELABORATION_OUTPUT block — the outer skill writes to the board.
522
-
523
- Research the following business-operation ideas. For each idea, find industry benchmarks, comparable operational processes, known pitfalls, and market context.
524
-
525
- BRAIN CONTEXT:
526
- ${brain_context}
527
-
528
- IDEAS:
529
- ${ops_ideas_list}
530
-
531
- Output this block:
532
- ELABORATION_OUTPUT
533
- [
534
- {
535
- "card_id": "<idea card ID>",
536
- "findings": "<industry benchmarks, comparable processes, pitfalls, and market context>",
537
- "blocking_issue": "<blocking issue if any, or null>"
538
- }
539
- ]
540
- END_ELABORATION_OUTPUT`
541
- })
542
-
543
- // Agent 2 — Product Manager
544
- Task({
545
- subagent_type: "Product Manager",
546
- description: "Elaboration: feasibility assessment for ops ideas",
547
- run_in_background: true,
548
- prompt: `SAFETY CHECK: You are an elaboration agent. Do NOT call monotask board create, space create, or column create. Your only job is producing an ELABORATION_OUTPUT block — the outer skill writes to the board.
549
-
550
- Assess the following business-operation ideas for process feasibility, stakeholder impact, alignment with existing workflows, and resource requirements.
551
-
552
- BRAIN CONTEXT:
553
- ${brain_context}
554
-
555
- IDEAS:
556
- ${ops_ideas_list}
557
-
558
- Output this block:
559
- ELABORATION_OUTPUT
560
- [
561
- {
562
- "card_id": "<idea card ID>",
563
- "findings": "<feasibility assessment, stakeholder impact, workflow alignment, resource needs>",
564
- "blocking_issue": "<blocking issue if any, or null>"
565
- }
566
- ]
567
- END_ELABORATION_OUTPUT`
568
- })
569
- ```
570
-
571
- Wait for all spawned background elaboration agents to complete before proceeding (0, 2, or 4 agents depending on which lists were non-empty — see guards above). Then build `merged_elaboration_json` by merging agent outputs per `card_id` and injecting `category` from `verdicts_output_json`:
572
-
573
- ```bash
574
- # Assign each agent's ELABORATION_OUTPUT JSON array from its output block:
575
- dev_researcher_json='<ELABORATION_OUTPUT array from the dev researcher agent>'
576
- dev_codebase_json='<ELABORATION_OUTPUT array from the dev code-explorer agent>'
577
- ops_researcher_json='<ELABORATION_OUTPUT array from the ops researcher agent>'
578
- ops_pm_json='<ELABORATION_OUTPUT array from the ops PM agent>'
579
- # Use '[]' for any track that had no ideas (e.g. if all ideas were dev, set ops_* to '[]')
580
- # If an ELABORATION_OUTPUT block is absent from an agent's response (error/timeout), set that variable to '[]'
581
-
582
- # Merge dev track: full outer join researcher + codebase by card_id, inject category from verdicts.
583
- # Use union of card_ids from both agents — if one agent skips a card the other covers, it's preserved.
584
- # blocking_issue: take from whichever agent found one (researcher OR codebase).
585
- dev_merged=$(jq -n \
586
- --argjson r "$dev_researcher_json" \
587
- --argjson c "$dev_codebase_json" \
588
- --argjson v "$verdicts_output_json" \
589
- '([$r[], $c[]] | map(.card_id) | unique) as $ids |
590
- [$ids[] | . as $id |
591
- { card_id: $id,
592
- blocking_issue: (
593
- ([$r[] | select(.card_id == $id)] | first | .blocking_issue // null) //
594
- ([$c[] | select(.card_id == $id)] | first | .blocking_issue // null)
595
- ),
596
- researcher_findings: ([$r[] | select(.card_id == $id)] | first | .findings // ""),
597
- codebase_findings: ([$c[] | select(.card_id == $id)] | first | .findings // ""),
598
- category: ([$v[] | select(.card_id == $id)] | first | .category // "feature") }]')
599
-
600
- # Merge ops track: full outer join researcher + PM findings by card_id, inject category.
601
- # blocking_issue: take from whichever agent found one (researcher OR PM).
602
- ops_merged=$(jq -n \
603
- --argjson r "$ops_researcher_json" \
604
- --argjson p "$ops_pm_json" \
605
- --argjson v "$verdicts_output_json" \
606
- '([$r[], $p[]] | map(.card_id) | unique) as $ids |
607
- [$ids[] | . as $id |
608
- { card_id: $id,
609
- blocking_issue: (
610
- ([$r[] | select(.card_id == $id)] | first | .blocking_issue // null) //
611
- ([$p[] | select(.card_id == $id)] | first | .blocking_issue // null)
612
- ),
613
- researcher_findings: ([$r[] | select(.card_id == $id)] | first | .findings // ""),
614
- pm_findings: ([$p[] | select(.card_id == $id)] | first | .findings // ""),
615
- category: ([$v[] | select(.card_id == $id)] | first | .category // "business-operation") }]')
616
-
617
- # Combine both tracks
618
- merged_elaboration_json=$(jq -s 'add // []' <(echo "$dev_merged") <(echo "$ops_merged"))
619
- ```
620
-
621
- Use process substitution (not a pipeline) so the while loop runs in the main shell and variables remain in scope after `done`:
622
-
623
- ```bash
624
- while IFS= read -r idea; do
625
- CARD_ID=$(echo "$idea" | jq -r '.card_id')
626
- category=$(echo "$idea" | jq -r '.category')
627
- blocking_issue=$(echo "$idea" | jq -r '.blocking_issue // ""')
628
- [ "$blocking_issue" = "null" ] && blocking_issue="" # guard against agents outputting the string "null"
629
-
630
- if [ "$category" = "business-operation" ]; then
631
- researcher_findings=$(echo "$idea" | jq -r '.researcher_findings')
632
- pm_findings=$(echo "$idea" | jq -r '.pm_findings')
633
- monotask card set-description "$BOARD_ID" "$CARD_ID" "## Elaboration Findings
634
-
635
- ### Industry context & benchmarks:
636
- $researcher_findings
637
-
638
- ### Feasibility & stakeholder impact:
639
- $pm_findings"
640
- monotask card comment add "$BOARD_ID" "$CARD_ID" "Industry context & benchmarks: $researcher_findings"
641
- monotask card comment add "$BOARD_ID" "$CARD_ID" "Feasibility & stakeholder impact: $pm_findings"
642
- else
643
- researcher_findings=$(echo "$idea" | jq -r '.researcher_findings')
644
- codebase_findings=$(echo "$idea" | jq -r '.codebase_findings')
645
- monotask card set-description "$BOARD_ID" "$CARD_ID" "## Elaboration Findings
646
-
647
- ### Edge cases & prior art:
648
- $researcher_findings
649
-
650
- ### Codebase constraints:
651
- $codebase_findings"
652
- monotask card comment add "$BOARD_ID" "$CARD_ID" "Edge cases & prior art: $researcher_findings"
653
- monotask card comment add "$BOARD_ID" "$CARD_ID" "Codebase constraints: $codebase_findings"
654
- fi
655
-
656
- if [ -n "$blocking_issue" ]; then
657
- monotask card move "$BOARD_ID" "$CARD_ID" "$COL_ICED" --json
658
- monotask card comment add "$BOARD_ID" "$CARD_ID" "Blocked during elaboration: $blocking_issue"
659
- else
660
- monotask card move "$BOARD_ID" "$CARD_ID" "$COL_ELABORATED" --json
661
- fi
662
- done < <(echo "$merged_elaboration_json" | jq -c '.[]')
663
- ```
664
-
665
- #### 6b. User Confirmation Gate
666
-
667
- **Auto-mode bypass:** If `mode` is `auto` (set by mastermind:master or caller), skip this gate entirely and proceed directly to Step 6c with all elaborated ideas.
668
-
669
- **Confirm mode only:** If `mode` is `confirm` (default), present a review table of all elaborated ideas to the user.
670
-
671
- Build the table from `verdicts_output_json` (filtered to `verdict == "evaluated"` AND `card_id` not in the set of ideas with a non-null `blocking_issue` in `merged_elaboration_json`). Exclude ideas iced during elaboration — they are already in the `Iced` column and must not appear in this review. For each row:
672
- - **Impact** and **Effort** come from `.impact` and `.effort` fields in `verdicts_output_json`
673
- - **Track**: `feature` or `technical-baseline` → `dev`; `business-operation` → `ops`
674
-
675
- Print this exact format:
676
-
677
- ```
678
- ╔══════════════════════════════════════════════════════════════════════╗
679
- ║ IDEA REVIEW — Please confirm before task generation ║
680
- ╚══════════════════════════════════════════════════════════════════════╝
681
-
682
- # | Title | Category | Impact | Effort | Track
683
- ---|--------------------------------|-------------------|--------|--------|-------
684
- 1 | <title> | <category> | <N>/10 | <N>/10 | dev / ops
685
- 2 | <title> | <category> | <N>/10 | <N>/10 | dev / ops
686
- ...
687
-
688
- To proceed: reply with one of:
689
- • "go" — generate tasks for all ideas above
690
- • "remove 2,4" — drop ideas by number, generate tasks for the rest
691
- • "remove 3 | add detail to 1: <your notes>" — remove some, annotate others
692
- • "add detail to 2: <your notes>" — annotate an idea before decomposing
693
- • "stop" — cancel task generation
694
-
695
- Waiting for your confirmation.
696
- ```
697
-
698
- Wait for the user's response before continuing. Do not spawn any agents until a reply is received.
699
-
700
- **Process the user's reply:**
701
-
702
- - **"go"**: proceed with all elaborated ideas.
703
- - **"remove N[,N...]"**: remove those ideas from the elaboration list. Move their ideation cards to `Iced`:
704
- ```bash
705
- monotask card comment add "$BOARD_ID" "$CARD_ID" "Removed by user before task generation"
706
- monotask card move "$BOARD_ID" "$CARD_ID" "$COL_ICED" --json
707
- ```
708
- - **"add detail to N: <notes>"**: append the notes as a card comment before decomposing:
709
- ```bash
710
- monotask card comment add "$BOARD_ID" "$CARD_ID" "User notes: <notes>"
711
- ```
712
- - **"stop"**: skip Step 6c. Proceed directly to Step 7 (Brain Write). Print a summary of ideas in Elaborated/Iced/Rejected and return `status: partial`.
713
- - Combined instructions ("remove 2,4 | add detail to 1: ...") are processed together.
714
-
715
- After applying all user instructions, proceed to Step 6c with the remaining ideas.
716
-
717
- ---
718
-
719
- #### 6c. Task Decomposition
720
-
721
- **Select decomposition agents from the registry** before spawning. Run this selection once per track:
722
-
723
- ```bash
724
- REGISTRY=".monomind/registry.json"
725
-
726
- # Dev decomposition agent — pick the most relevant engineering/architecture specialist
727
- dev_decomp_agent=$(jq -r \
728
- '[ (.agents // [])[] | select(.deprecated != true)
729
- | select(.category == "engineering" or .category == "architecture")
730
- | {name: .name,
731
- score: (.name | ascii_downcase |
732
- if contains("architect") then 3
733
- elif contains("backend") then 2
734
- elif contains("mobile") then 2
735
- elif contains("frontend") then 2
736
- elif contains("security") then 2
737
- elif contains("data") then 2
738
- else 1 end
739
- )}
740
- ] | sort_by(-.score) | .[0].name // "Software Architect"' \
741
- "$REGISTRY" 2>/dev/null)
742
- dev_decomp_agent="${dev_decomp_agent:-Software Architect}"
743
-
744
- # Ops decomposition agent — pick the most relevant strategy/sales/product specialist
745
- ops_decomp_agent=$(jq -r \
746
- '[ (.agents // [])[] | select(.deprecated != true)
747
- | select(.category == "strategy" or .category == "sales" or .category == "product" or .category == "marketing")
748
- | {name: .name,
749
- score: (.name | ascii_downcase |
750
- if contains("product manager") then 4
751
- elif contains("launch") then 3
752
- elif contains("outbound") then 3
753
- elif contains("deal") then 3
754
- elif contains("pricing") then 3
755
- elif contains("growth") then 2
756
- else 1 end
757
- )}
758
- ] | sort_by(-.score) | .[0].name // "Product Manager"' \
759
- "$REGISTRY" 2>/dev/null)
760
- ops_decomp_agent="${ops_decomp_agent:-Product Manager}"
761
-
762
- echo "Dev decomp: $dev_decomp_agent | Ops decomp: $ops_decomp_agent"
763
- ```
764
-
765
- **CRITICAL — Variable substitution required for Step 6c Task calls:**
766
- Before constructing each Task prompt, replace `${brain_context}`, `${prompt}`, `${project_name}`, `${dev_ideas_elaborated}`, and `${ops_ideas_elaborated}` with actual literal text. Also substitute the `subagent_type` values: replace `dev_decomp_agent` and `ops_decomp_agent` with the string values echoed by the registry selection above (e.g. `"Software Architect"`). Build those lists from the VERDICTS_OUTPUT and ELABORATION_OUTPUT results:
767
-
768
- ```bash
769
- # Collect IDs of cards iced during elaboration (blocking_issue was set) — exclude from decomposition.
770
- # merged_elaboration_json covers agent-elaborated ideas only (not skipElaboration:true ones).
771
- elaboration_blocked=$(echo "$merged_elaboration_json" | jq \
772
- '[.[] | select(.blocking_issue != null and .blocking_issue != "" and .blocking_issue != "null") | .card_id]')
773
- # Safeguard: if jq failed (e.g. null input), default to empty array so decomp proceeds safely
774
- [ -z "$elaboration_blocked" ] && elaboration_blocked='[]'
775
-
776
- # Build elaborated idea lists for decomposition agents.
777
- # Include: evaluated ideas (PM verdict) that were NOT iced during elaboration.
778
- # This covers both skipElaboration:true ideas and agent-elaborated ideas in the Elaborated column.
779
- # Use `any(. == $id)` not `contains([$id])` — contains does substring matching on strings (wrong for UUIDs).
780
- dev_ideas_elaborated=$(echo "$verdicts_output_json" | jq -r \
781
- --argjson blocked "$elaboration_blocked" \
782
- '[.[] | select(.verdict=="evaluated")
783
- | select(.card_id as $id | ($blocked | any(. == $id)) | not)
784
- | select(.category=="feature" or .category=="technical-baseline") |
785
- "card_id: \(.card_id)\ntitle: \(.title)\ncategory: \(.category)\nrationale: \(.rationale)\nimpact: \(.impact) effort: \(.effort)"] | join("\n\n")')
786
-
787
- ops_ideas_elaborated=$(echo "$verdicts_output_json" | jq -r \
788
- --argjson blocked "$elaboration_blocked" \
789
- '[.[] | select(.verdict=="evaluated")
790
- | select(.card_id as $id | ($blocked | any(. == $id)) | not)
791
- | select(.category=="business-operation") |
792
- "card_id: \(.card_id)\ntitle: \(.title)\ncategory: \(.category)\nrationale: \(.rationale)\nimpact: \(.impact) effort: \(.effort)"] | join("\n\n")')
793
- ```
794
-
795
- **Spawn decomposition agents by track** — run both in parallel if both tracks have elaborated ideas:
796
-
797
- ```javascript
798
- // Dev decomposition agent (only if dev_ideas_elaborated is non-empty)
799
- Task({
800
- subagent_type: dev_decomp_agent, // value from registry selection above
801
- description: "Task decomposition: dev ideas for " + project_name,
802
- run_in_background: true,
803
- prompt: `SAFETY CHECK: You are a decomposition agent. You must NOT call monotask board create, space create, or column create. Your only job is producing a TASKS_OUTPUT block — the outer skill creates the cards. If you are unsure of any card ID, list it as "UNKNOWN" rather than inventing a value.
804
-
805
- Decompose the following dev ideas into concrete subtasks (2–6 per idea). Each subtask should be independently implementable.
806
-
807
- PROJECT: ${project_name}
808
- GOAL: ${prompt}
809
-
810
- BRAIN CONTEXT:
811
- ${brain_context}
812
-
813
- DEV IDEAS TO DECOMPOSE:
814
- ${dev_ideas_elaborated}
815
-
816
- For each idea, produce 2–6 subtasks. If an idea's scope is unclear, flag it in FLAGGED instead of decomposing.
817
-
818
- TASKS_OUTPUT
819
- [
820
- {
821
- "parent_card_id": "<ideation board card ID from the list above>",
822
- "title": "<subtask title ≤80 chars>",
823
- "description": "<what to build/do — specific and actionable>",
824
- "category": "feature | technical-baseline",
825
- "agent": "<recommended subagent_type>",
826
- "effort": <1-10>,
827
- "has_prerequisites": <true | false>
828
- }
829
- ]
830
- FLAGGED
831
- [
832
- { "card_id": "<ideation card ID>", "question": "<what needs clarifying>" }
833
- ]
834
- END_TASKS_OUTPUT`
835
- })
836
-
837
- // Ops decomposition agent (only if ops_ideas_elaborated is non-empty)
838
- Task({
839
- subagent_type: ops_decomp_agent, // value from registry selection above
840
- description: "Task decomposition: ops ideas for " + project_name,
841
- run_in_background: true,
842
- prompt: `SAFETY CHECK: You are a decomposition agent. You must NOT call monotask board create, space create, or column create. Your only job is producing a TASKS_OUTPUT block — the outer skill creates the cards. If you are unsure of any card ID, list it as "UNKNOWN" rather than inventing a value.
843
-
844
- Decompose the following business-operation ideas into concrete subtasks (2–6 per idea). Each subtask should be independently actionable.
845
-
846
- PROJECT: ${project_name}
847
- GOAL: ${prompt}
848
-
849
- BRAIN CONTEXT:
850
- ${brain_context}
851
-
852
- OPS IDEAS TO DECOMPOSE:
853
- ${ops_ideas_elaborated}
854
-
855
- For each idea, produce 2–6 subtasks. If an idea's scope is unclear, flag it in FLAGGED instead of decomposing.
856
-
857
- TASKS_OUTPUT
858
- [
859
- {
860
- "parent_card_id": "<ideation board card ID from the list above>",
861
- "title": "<subtask title ≤80 chars>",
862
- "description": "<what to build/do — specific and actionable>",
863
- "category": "business-operation",
864
- "agent": "<recommended subagent_type>",
865
- "effort": <1-10>,
866
- "has_prerequisites": <true | false>
867
- }
868
- ]
869
- FLAGGED
870
- [
871
- { "card_id": "<ideation card ID>", "question": "<what needs clarifying>" }
872
- ]
873
- END_TASKS_OUTPUT`
874
- })
875
- ```
876
-
877
- **After both decomposition agents return**, the outer skill creates task cards on the appropriate board for each task's category. Each task card inherits the parent idea's `impact` and `effort` scores from the VERDICTS_OUTPUT parsed in Step 5 — look up by `parent_card_id`.
878
-
879
- ---
880
-
881
- **Dev task board** (`feature` / `technical-baseline` → `Implementation Tasks`):
882
-
883
- Canonical board name: `${project_name}-tasks-dev`. Find-or-create:
884
-
885
- ```bash
886
- # space_id from Step 3 is gone (each Bash tool call is a new shell).
887
- # Re-derive from project_name so board creation works correctly on first run.
888
- if [ -z "$space_id" ]; then
889
- space_id=$(monotask space list 2>/dev/null | awk -F'|' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$project_name" | head -1)
890
- [ -z "$space_id" ] && { echo "ERROR: space '$project_name' not found — run Step 3 first"; exit 1; }
891
- fi
892
- dev_task_canonical="${project_name}-tasks-dev"
893
- # board list format is "uuid: name" (colon-space separator, NOT pipe)
894
- TASK_BOARD_ID=$(monotask board list 2>/dev/null | awk -F': ' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$dev_task_canonical" | head -1)
895
- if [ -n "$TASK_BOARD_ID" ]; then
896
- echo "Reusing dev task board: $TASK_BOARD_ID ($dev_task_canonical)"
897
- task_columns=$(monotask column list "$TASK_BOARD_ID" --json)
898
- TASK_COL_TODO=$(echo "$task_columns" | jq -r '.[] | select(.title=="Todo") | .id' | head -1)
899
- TASK_COL_BACKLOG=$(echo "$task_columns" | jq -r '.[] | select(.title=="Backlog") | .id' | head -1)
900
- else
901
- echo "Creating dev task board: $dev_task_canonical"
902
- TASK_BOARD_ID=$(monotask board create --space "$space_id" "$dev_task_canonical" --json 2>/dev/null | jq -r '.id // empty')
903
- [ -z "$TASK_BOARD_ID" ] && { echo "ERROR: Failed to create dev task board"; exit 1; }
904
- monotask space boards add "$space_id" "$TASK_BOARD_ID" >/dev/null 2>&1 || true
905
- TASK_COL_BACKLOG=$(monotask column create "$TASK_BOARD_ID" "Backlog" --json | jq -r '.id // empty')
906
- TASK_COL_TODO=$(monotask column create "$TASK_BOARD_ID" "Todo" --json | jq -r '.id // empty')
907
- monotask column create "$TASK_BOARD_ID" "In Progress" --json >/dev/null
908
- monotask column create "$TASK_BOARD_ID" "Human in Loop" --json >/dev/null
909
- monotask column create "$TASK_BOARD_ID" "Review" --json >/dev/null
910
- monotask column create "$TASK_BOARD_ID" "Done" --json >/dev/null
911
- monotask column create "$TASK_BOARD_ID" "Cancelled" --json >/dev/null
912
- fi
913
- [ -z "$TASK_BOARD_ID" ] && { echo "ERROR: TASK_BOARD_ID empty — aborting"; exit 1; }
914
- [ -z "$TASK_COL_TODO" ] && { echo "ERROR: Could not find Todo column on dev task board"; exit 1; }
915
- [ -z "$TASK_COL_BACKLOG" ] && { echo "ERROR: Could not find Backlog column on dev task board"; exit 1; }
916
- ```
917
-
918
- ---
919
-
920
- **Ops task board** (`business-operation` → `Operations Tasks`):
921
-
922
- Canonical board name: `${project_name}-tasks-ops`. Find-or-create:
923
-
924
- ```bash
925
- # Restore space_id if not available (same pattern as dev task board block above).
926
- if [ -z "$space_id" ]; then
927
- space_id=$(monotask space list 2>/dev/null | awk -F'|' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$project_name" | head -1)
928
- [ -z "$space_id" ] && { echo "ERROR: space '$project_name' not found"; exit 1; }
929
- fi
930
- ops_task_canonical="${project_name}-tasks-ops"
931
- # board list format is "uuid: name" (colon-space separator, NOT pipe)
932
- OPS_BOARD_ID=$(monotask board list 2>/dev/null | awk -F': ' '{gsub(/^ +| +$/,"",$1);gsub(/^ +| +$/,"",$2);if($2==n)print $1}' n="$ops_task_canonical" | head -1)
933
- if [ -n "$OPS_BOARD_ID" ]; then
934
- echo "Reusing ops task board: $OPS_BOARD_ID ($ops_task_canonical)"
935
- ops_columns=$(monotask column list "$OPS_BOARD_ID" --json)
936
- OPS_COL_TODO=$(echo "$ops_columns" | jq -r '.[] | select(.title=="Todo") | .id' | head -1)
937
- OPS_COL_BACKLOG=$(echo "$ops_columns" | jq -r '.[] | select(.title=="Backlog") | .id' | head -1)
938
- else
939
- echo "Creating ops task board: $ops_task_canonical"
940
- OPS_BOARD_ID=$(monotask board create --space "$space_id" "$ops_task_canonical" --json 2>/dev/null | jq -r '.id // empty')
941
- [ -z "$OPS_BOARD_ID" ] && { echo "ERROR: Failed to create ops task board"; exit 1; }
942
- monotask space boards add "$space_id" "$OPS_BOARD_ID" >/dev/null 2>&1 || true
943
- OPS_COL_BACKLOG=$(monotask column create "$OPS_BOARD_ID" "Backlog" --json | jq -r '.id // empty')
944
- OPS_COL_TODO=$(monotask column create "$OPS_BOARD_ID" "Todo" --json | jq -r '.id // empty')
945
- monotask column create "$OPS_BOARD_ID" "In Progress" --json >/dev/null
946
- monotask column create "$OPS_BOARD_ID" "Human in Loop" --json >/dev/null
947
- monotask column create "$OPS_BOARD_ID" "Review" --json >/dev/null
948
- monotask column create "$OPS_BOARD_ID" "Done" --json >/dev/null
949
- monotask column create "$OPS_BOARD_ID" "Cancelled" --json >/dev/null
950
- fi
951
- [ -z "$OPS_BOARD_ID" ] && { echo "ERROR: OPS_BOARD_ID empty — aborting"; exit 1; }
952
- [ -z "$OPS_COL_TODO" ] && { echo "ERROR: Could not find Todo column on ops task board"; exit 1; }
953
- [ -z "$OPS_COL_BACKLOG" ] && { echo "ERROR: Could not find Backlog column on ops task board"; exit 1; }
954
- ```
955
-
956
- ---
957
-
958
- **Assign TASKS_OUTPUT from each decomposition agent, then merge and iterate:**
959
-
960
- ```bash
961
- # Parse the TASKS_OUTPUT block from the dev decomp agent's response and assign:
962
- dev_tasks_json='<TASKS_OUTPUT JSON array from dev decomp agent, or [] if no dev ideas>'
963
- # Parse the TASKS_OUTPUT block from the ops decomp agent's response and assign:
964
- ops_tasks_json='<TASKS_OUTPUT JSON array from ops decomp agent, or [] if no ops ideas>'
965
- # If TASKS_OUTPUT block is absent from an agent's response (error/timeout), set that variable to '[]'
966
-
967
- merged_tasks_json=$(jq -s 'add // []' <(echo "$dev_tasks_json") <(echo "$ops_tasks_json"))
968
-
969
- # Use a temp directory to accumulate per-parent subtask summaries (bash 3.2 compatible —
970
- # avoids declare -A associative arrays which require bash 4.3+)
971
- SUBTASK_TMPDIR=$(mktemp -d)
972
-
973
- while IFS= read -r task; do
974
- parent_card_id=$(echo "$task" | jq -r '.parent_card_id')
975
- title=$(echo "$task" | jq -r '.title')
976
- description=$(echo "$task" | jq -r '.description')
977
- category=$(echo "$task" | jq -r '.category')
978
- agent=$(echo "$task" | jq -r '.agent')
979
- task_effort=$(echo "$task" | jq -r '.effort')
980
- has_prerequisites=$(echo "$task" | jq -r '.has_prerequisites')
981
-
982
- if [ "$category" = "business-operation" ]; then
983
- TARGET_BOARD="$OPS_BOARD_ID"
984
- COL_TARGET=$([ "$has_prerequisites" = "true" ] && echo "$OPS_COL_BACKLOG" || echo "$OPS_COL_TODO")
985
- BOARD_LABEL="Operations Tasks"
986
- else
987
- TARGET_BOARD="$TASK_BOARD_ID"
988
- COL_TARGET=$([ "$has_prerequisites" = "true" ] && echo "$TASK_COL_BACKLOG" || echo "$TASK_COL_TODO")
989
- BOARD_LABEL="Implementation Tasks"
990
- fi
991
-
992
- # Inherit impact and effort from parent idea — look up from verdicts_output_json by parent_card_id
993
- parent_impact=$(echo "$verdicts_output_json" | jq -r --arg id "$parent_card_id" '.[] | select(.card_id == $id) | .impact // 5')
994
- parent_effort=$(echo "$verdicts_output_json" | jq -r --arg id "$parent_card_id" '.[] | select(.card_id == $id) | .effort // 5')
995
- # Default to 5 if lookup returned empty (e.g. parent_card_id was "UNKNOWN")
996
- [ -z "$parent_impact" ] && parent_impact=5
997
- [ -z "$parent_effort" ] && parent_effort=5
998
-
999
- # Create task card as a proper subtask of the parent idea card (cross-board link)
1000
- # Signature: subtask add <PARENT_BOARD_ID> <PARENT_CARD_ID> <CHILD_BOARD_ID> <COL_ID> <TITLE>
1001
- TASK_CARD_ID=$(monotask card subtask add "$BOARD_ID" "$parent_card_id" "$TARGET_BOARD" "$COL_TARGET" "$title" --json | jq -r '.id // empty')
1002
- [ -z "$TASK_CARD_ID" ] && { echo "WARN: subtask creation failed for '$title' (parent: $parent_card_id), skipping"; continue; }
1003
- # Set the task description as the primary content field
1004
- monotask card set-description "$TARGET_BOARD" "$TASK_CARD_ID" "$description"
1005
- monotask card set-impact "$TARGET_BOARD" "$TASK_CARD_ID" "$parent_impact"
1006
- monotask card set-effort "$TARGET_BOARD" "$TASK_CARD_ID" "$parent_effort"
1007
- # Derive parent idea title for the comment
1008
- parent_idea_title=$(echo "$verdicts_output_json" | jq -r --arg id "$parent_card_id" '.[] | select(.card_id == $id) | .title // "unknown"')
1009
- prompt_prefix=$(echo "$prompt" | cut -c1-100)
1010
- monotask card comment add "$TARGET_BOARD" "$TASK_CARD_ID" \
1011
- "SOURCE: mastermind:idea | $prompt_prefix
1012
- AGENT: $agent
1013
- TASK EFFORT: $task_effort/10
1014
- PARENT IDEA IMPACT: $parent_impact/10 PARENT IDEA EFFORT: $parent_effort/10
1015
- CATEGORY: $category
1016
- PARENT IDEA: $parent_idea_title (card: $parent_card_id on ideation board)"
1017
- monotask card label add "$TARGET_BOARD" "$TASK_CARD_ID" "mastermind:idea"
1018
- monotask card label add "$TARGET_BOARD" "$TASK_CARD_ID" "category:$category"
1019
-
1020
- # Append subtask summary line to per-parent file (replaces declare -A accumulation)
1021
- printf ' - %s (agent: %s, effort: %s/10, board: %s)\n' \
1022
- "$title" "$agent" "$task_effort" "$BOARD_LABEL" >> "$SUBTASK_TMPDIR/$parent_card_id"
1023
-
1024
- done < <(echo "$merged_tasks_json" | jq -c '.[]')
1025
- ```
1026
-
1027
- After the loop, annotate each parent idea card and move it to `Tasked`:
1028
- ```bash
1029
- for summary_file in "$SUBTASK_TMPDIR"/*; do
1030
- [ -f "$summary_file" ] || continue
1031
- parent_card_id=$(basename "$summary_file")
1032
- subtask_list=$(cat "$summary_file")
1033
- monotask card comment add "$BOARD_ID" "$parent_card_id" \
1034
- "Subtasks created:
1035
- ${subtask_list}"
1036
- monotask card move "$BOARD_ID" "$parent_card_id" "$COL_TASKED" --json
1037
- done
1038
- rm -rf "$SUBTASK_TMPDIR"
1039
- ```
1040
-
1041
- For each entry in FLAGGED, parse the flagged JSON from both decomp agents' FLAGGED blocks and iterate:
1042
- ```bash
1043
- # Collect flagged entries from both decomp agents
1044
- dev_flagged_json='<FLAGGED array from dev decomp agent, or [] if none>'
1045
- ops_flagged_json='<FLAGGED array from ops decomp agent, or [] if none>'
1046
- # If FLAGGED block is absent from an agent's response, set that variable to '[]'
1047
- merged_flagged_json=$(jq -s 'add // []' <(echo "$dev_flagged_json") <(echo "$ops_flagged_json"))
1048
-
1049
- while IFS= read -r flagged; do
1050
- flagged_card_id=$(echo "$flagged" | jq -r '.card_id')
1051
- flagged_question=$(echo "$flagged" | jq -r '.question // "Needs clarification before decomposition"')
1052
- monotask card comment add "$BOARD_ID" "$flagged_card_id" "Needs clarification: $flagged_question"
1053
- monotask card move "$BOARD_ID" "$flagged_card_id" "$COL_ICED" --json
1054
- done < <(echo "$merged_flagged_json" | jq -c '.[]')
1055
- ```
1056
-
1057
- ---
1058
-
1059
- ### Step 7 — Brain Write + Return
1060
-
1061
- Follow _protocol.md Brain Write Procedure (namespace: `idea`).
1062
-
1063
- **Write domain output to session file** so master Step 9 aggregation can include this domain. Skip silently if running standalone (no SESSION_ID in current.json):
1064
-
1065
- ```bash
1066
- REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
1067
- _get_mono_dir() {
1068
- local w="${1:-$(pwd)}"
1069
- if [ -d "$w/.git" ]; then echo "$w/.git/monomind"; return; fi
1070
- if [ -f "$w/.git" ]; then
1071
- local m; m=$(grep '^gitdir:' "$w/.git" | sed 's/gitdir: *//')
1072
- [ -z "$m" ] && { echo "$w/.monomind"; return; }
1073
- [[ "$m" != /* ]] && m="$w/$m"
1074
- echo "$(dirname "$(dirname "$m")")/monomind"; return
1075
- fi
1076
- echo "$w/.monomind"
1077
- }
1078
- MONO_DIR=$(_get_mono_dir "$REPO_ROOT")
1079
- SESSION_ID=$(jq -r '.sessionId // empty' "$MONO_DIR/sessions/current.json" 2>/dev/null)
1080
- if [ -n "$SESSION_ID" ]; then
1081
- mkdir -p "$MONO_DIR/sessions/${SESSION_ID}"
1082
- CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
1083
- # LLM: substitute <status>: complete (all steps ran), partial (some skipped), blocked (critical error)
1084
- # LLM: substitute next_actions with actual suggestions derived from this run's top ideas
1085
- jq -n \
1086
- --arg domain "idea" \
1087
- --arg status "<status>" \
1088
- --argjson artifacts '[]' \
1089
- --argjson next_actions '["<next_action_1>","<next_action_2>"]' \
1090
- '{domain:$domain,status:$status,artifacts:$artifacts,next_actions:$next_actions}' \
1091
- > "$MONO_DIR/sessions/${SESSION_ID}/idea.json"
1092
- curl -s -o /dev/null -X POST "${CTRL_URL}/api/mastermind/event" \
1093
- -H "Content-Type: application/json" \
1094
- -d "$(jq -cn --arg sid "$SESSION_ID" --arg status "<status>" \
1095
- '{type:"domain:complete",session:$sid,domain:"idea",status:$status,ts:(now*1000|floor)}')" || true
1096
- fi
1097
- ```
1098
-
1099
- Return unified output schema to caller:
1100
-
1101
- ```yaml
1102
- domain: idea
1103
- status: complete | partial | blocked
1104
- artifacts: []
1105
- decisions:
1106
- - what: <top idea or direction>
1107
- why: <reasoning from validation + elaboration>
1108
- confidence: <0.0-1.0>
1109
- outcome: pending
1110
- lessons:
1111
- - what_worked: <which angles produced the best insights>
1112
- - what_didnt: <which angles were less useful>
1113
- next_actions:
1114
- - <e.g. "run mastermind:build to prototype chosen direction">
1115
- - <e.g. "run mastermind:research to validate top idea">
1116
- board_url: "monotask://<project_name>/${project_name}-idea"
1117
- task_board_url: "monotask://<project_name>/${project_name}-tasks-dev"
1118
- ops_task_board_url: "monotask://<project_name>/${project_name}-tasks-ops"
1119
- run_id: <ISO8601-timestamp>
1120
- summary:
1121
- ideas_generated: N
1122
- ideas_dev: N
1123
- ideas_ops: N
1124
- ideas_evaluated: N
1125
- ideas_tasked: N
1126
- total_dev_subtasks: N
1127
- total_ops_subtasks: N
1128
- ideas_iced: N
1129
- ideas_rejected: N
1130
- ```
1131
-
1132
- ---
1133
-
1134
- ## Domain Swarm Defaults
1135
-
1136
- | Task Type | Agent | Swarm |
1137
- |---|---|---|
1138
- | Full product ideation | coordinator + mesh specialists | mesh 6 gossip balanced |
1139
- | Feature brainstorm | researcher + trend-analyst | mesh 4 gossip balanced |
1140
- | Pivot exploration | coordinator + researcher + growth | mesh 4 gossip balanced |
1141
- | Competitive scan | researcher | hierarchical 3 raft specialized |
1142
- | Single idea request | researcher or content-creator | single agent |