monomind 1.16.6 → 1.16.8

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 (560) hide show
  1. package/package.json +3 -1
  2. package/packages/@monomind/cli/.claude/agents/architecture/system-design/arch-system-design.md +54 -0
  3. package/packages/@monomind/cli/.claude/agents/consensus/crdt-synchronizer.md +977 -0
  4. package/packages/@monomind/cli/.claude/agents/consensus/quorum-manager.md +803 -0
  5. package/packages/@monomind/cli/.claude/agents/consensus/security-manager.md +602 -0
  6. package/packages/@monomind/cli/.claude/agents/core/coder.md +262 -0
  7. package/packages/@monomind/cli/.claude/agents/core/coordinator.md +71 -0
  8. package/packages/@monomind/cli/.claude/agents/core/planner.md +170 -0
  9. package/packages/@monomind/cli/.claude/agents/core/researcher.md +192 -0
  10. package/packages/@monomind/cli/.claude/agents/core/reviewer.md +327 -0
  11. package/packages/@monomind/cli/.claude/agents/core/tester.md +318 -0
  12. package/packages/@monomind/cli/.claude/agents/design/design-monodesign.md +121 -0
  13. package/packages/@monomind/cli/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +212 -0
  14. package/packages/@monomind/cli/.claude/agents/engineering/engineering-ai-engineer.md +165 -0
  15. package/packages/@monomind/cli/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +108 -0
  16. package/packages/@monomind/cli/.claude/agents/engineering/engineering-backend-architect.md +254 -0
  17. package/packages/@monomind/cli/.claude/agents/engineering/engineering-code-reviewer.md +95 -0
  18. package/packages/@monomind/cli/.claude/agents/engineering/engineering-data-engineer.md +307 -0
  19. package/packages/@monomind/cli/.claude/agents/engineering/engineering-database-optimizer.md +200 -0
  20. package/packages/@monomind/cli/.claude/agents/engineering/engineering-devops-automator.md +430 -0
  21. package/packages/@monomind/cli/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +174 -0
  22. package/packages/@monomind/cli/.claude/agents/engineering/engineering-feishu-integration-developer.md +607 -0
  23. package/packages/@monomind/cli/.claude/agents/engineering/engineering-frontend-developer.md +249 -0
  24. package/packages/@monomind/cli/.claude/agents/engineering/engineering-git-workflow-master.md +108 -0
  25. package/packages/@monomind/cli/.claude/agents/engineering/engineering-incident-response-commander.md +482 -0
  26. package/packages/@monomind/cli/.claude/agents/engineering/engineering-mobile-app-builder.md +499 -0
  27. package/packages/@monomind/cli/.claude/agents/engineering/engineering-rapid-prototyper.md +463 -0
  28. package/packages/@monomind/cli/.claude/agents/engineering/engineering-security-engineer.md +303 -0
  29. package/packages/@monomind/cli/.claude/agents/engineering/engineering-senior-developer.md +195 -0
  30. package/packages/@monomind/cli/.claude/agents/engineering/engineering-software-architect.md +100 -0
  31. package/packages/@monomind/cli/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +528 -0
  32. package/packages/@monomind/cli/.claude/agents/engineering/engineering-sre.md +114 -0
  33. package/packages/@monomind/cli/.claude/agents/engineering/engineering-technical-writer.md +412 -0
  34. package/packages/@monomind/cli/.claude/agents/engineering/engineering-threat-detection-engineer.md +540 -0
  35. package/packages/@monomind/cli/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +351 -0
  36. package/packages/@monomind/cli/.claude/agents/generated/case-analyst.md +50 -0
  37. package/packages/@monomind/cli/.claude/agents/generated/channel-intelligence-director.md +87 -0
  38. package/packages/@monomind/cli/.claude/agents/generated/chief-growth-officer.md +88 -0
  39. package/packages/@monomind/cli/.claude/agents/generated/churn-analyst.md +53 -0
  40. package/packages/@monomind/cli/.claude/agents/generated/code-reviewer.md +55 -0
  41. package/packages/@monomind/cli/.claude/agents/generated/code-validator.md +57 -0
  42. package/packages/@monomind/cli/.claude/agents/generated/complexity-scanner.md +56 -0
  43. package/packages/@monomind/cli/.claude/agents/generated/content-seo-strategist.md +90 -0
  44. package/packages/@monomind/cli/.claude/agents/generated/copy-editor.md +45 -0
  45. package/packages/@monomind/cli/.claude/agents/generated/court-reporter.md +50 -0
  46. package/packages/@monomind/cli/.claude/agents/generated/defender.md +51 -0
  47. package/packages/@monomind/cli/.claude/agents/generated/devbot-orchestrator.md +58 -0
  48. package/packages/@monomind/cli/.claude/agents/generated/devbot-planner.md +63 -0
  49. package/packages/@monomind/cli/.claude/agents/generated/developer-community-strategist.md +91 -0
  50. package/packages/@monomind/cli/.claude/agents/generated/editor-in-chief.md +45 -0
  51. package/packages/@monomind/cli/.claude/agents/generated/fact-checker.md +45 -0
  52. package/packages/@monomind/cli/.claude/agents/generated/impact-assessor.md +54 -0
  53. package/packages/@monomind/cli/.claude/agents/generated/judge.md +51 -0
  54. package/packages/@monomind/cli/.claude/agents/generated/outreach-partnership-strategist.md +90 -0
  55. package/packages/@monomind/cli/.claude/agents/generated/prosecutor.md +51 -0
  56. package/packages/@monomind/cli/.claude/agents/generated/reporter.md +45 -0
  57. package/packages/@monomind/cli/.claude/agents/generated/social-media-strategist.md +91 -0
  58. package/packages/@monomind/cli/.claude/agents/generated/video-visual-strategist.md +90 -0
  59. package/packages/@monomind/cli/.claude/agents/github/code-review-swarm.md +557 -0
  60. package/packages/@monomind/cli/.claude/agents/github/github-modes.md +154 -0
  61. package/packages/@monomind/cli/.claude/agents/github/issue-tracker.md +299 -0
  62. package/packages/@monomind/cli/.claude/agents/github/multi-repo-swarm.md +525 -0
  63. package/packages/@monomind/cli/.claude/agents/github/pr-manager.md +163 -0
  64. package/packages/@monomind/cli/.claude/agents/github/project-board-sync.md +478 -0
  65. package/packages/@monomind/cli/.claude/agents/github/release-manager.md +296 -0
  66. package/packages/@monomind/cli/.claude/agents/github/repo-architect.md +359 -0
  67. package/packages/@monomind/cli/.claude/agents/github/swarm-issue.md +548 -0
  68. package/packages/@monomind/cli/.claude/agents/github/swarm-pr.md +427 -0
  69. package/packages/@monomind/cli/.claude/agents/github/sync-coordinator.md +355 -0
  70. package/packages/@monomind/cli/.claude/agents/github/workflow-automation.md +640 -0
  71. package/packages/@monomind/cli/.claude/agents/goal/goal-planner.md +168 -0
  72. package/packages/@monomind/cli/.claude/agents/hive-mind/collective-intelligence-coordinator.md +129 -0
  73. package/packages/@monomind/cli/.claude/agents/hive-mind/queen-coordinator.md +202 -0
  74. package/packages/@monomind/cli/.claude/agents/hive-mind/scout-explorer.md +241 -0
  75. package/packages/@monomind/cli/.claude/agents/hive-mind/swarm-memory-manager.md +192 -0
  76. package/packages/@monomind/cli/.claude/agents/hive-mind/worker-specialist.md +216 -0
  77. package/packages/@monomind/cli/.claude/agents/marketing/marketing-competitive-content.md +155 -0
  78. package/packages/@monomind/cli/.claude/agents/marketing/marketing-cro-specialist.md +147 -0
  79. package/packages/@monomind/cli/.claude/agents/marketing/marketing-email-specialist.md +90 -0
  80. package/packages/@monomind/cli/.claude/agents/marketing/marketing-launch-strategist.md +129 -0
  81. package/packages/@monomind/cli/.claude/agents/marketing/marketing-pricing-strategist.md +127 -0
  82. package/packages/@monomind/cli/.claude/agents/optimization/benchmark-suite.md +665 -0
  83. package/packages/@monomind/cli/.claude/agents/optimization/load-balancer.md +431 -0
  84. package/packages/@monomind/cli/.claude/agents/optimization/performance-monitor.md +672 -0
  85. package/packages/@monomind/cli/.claude/agents/optimization/resource-allocator.md +674 -0
  86. package/packages/@monomind/cli/.claude/agents/optimization/topology-optimizer.md +808 -0
  87. package/packages/@monomind/cli/.claude/agents/reengineer-squad/boss.md +113 -0
  88. package/packages/@monomind/cli/.claude/agents/reengineer-squad/critic-architect.md +132 -0
  89. package/packages/@monomind/cli/.claude/agents/reengineer-squad/git-manager.md +145 -0
  90. package/packages/@monomind/cli/.claude/agents/reengineer-squad/idea-generator.md +95 -0
  91. package/packages/@monomind/cli/.claude/agents/reengineer-squad/implementer.md +112 -0
  92. package/packages/@monomind/cli/.claude/agents/reengineer-squad/integration-planner.md +112 -0
  93. package/packages/@monomind/cli/.claude/agents/reengineer-squad/source-analyst.md +103 -0
  94. package/packages/@monomind/cli/.claude/agents/reengineer-squad/target-analyst.md +118 -0
  95. package/packages/@monomind/cli/.claude/agents/reengineer-squad/tester.md +105 -0
  96. package/packages/@monomind/cli/.claude/agents/schemas/architecture-output.json +43 -0
  97. package/packages/@monomind/cli/.claude/agents/schemas/code-review-output.json +28 -0
  98. package/packages/@monomind/cli/.claude/agents/schemas/generic-task-input.json +12 -0
  99. package/packages/@monomind/cli/.claude/agents/schemas/implementation-output.json +18 -0
  100. package/packages/@monomind/cli/.claude/agents/schemas/research-output.json +31 -0
  101. package/packages/@monomind/cli/.claude/agents/schemas/security-audit-output.json +29 -0
  102. package/packages/@monomind/cli/.claude/agents/schemas/test-report-output.json +29 -0
  103. package/packages/@monomind/cli/.claude/agents/sparc/architecture.md +453 -0
  104. package/packages/@monomind/cli/.claude/agents/sparc/pseudocode.md +299 -0
  105. package/packages/@monomind/cli/.claude/agents/sparc/refinement.md +504 -0
  106. package/packages/@monomind/cli/.claude/agents/sparc/specification.md +258 -0
  107. package/packages/@monomind/cli/.claude/agents/specialists/integration-architect.md +94 -0
  108. package/packages/@monomind/cli/.claude/agents/specialized/agentic-identity-trust.md +388 -0
  109. package/packages/@monomind/cli/.claude/agents/specialized/agents-orchestrator.md +368 -0
  110. package/packages/@monomind/cli/.claude/agents/specialized/automation-governance-architect.md +217 -0
  111. package/packages/@monomind/cli/.claude/agents/specialized/blockchain-security-auditor.md +497 -0
  112. package/packages/@monomind/cli/.claude/agents/specialized/compliance-auditor.md +159 -0
  113. package/packages/@monomind/cli/.claude/agents/specialized/identity-graph-operator.md +261 -0
  114. package/packages/@monomind/cli/.claude/agents/specialized/lsp-index-engineer.md +315 -0
  115. package/packages/@monomind/cli/.claude/agents/specialized/mobile/spec-mobile-react-native.md +89 -0
  116. package/packages/@monomind/cli/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +89 -0
  117. package/packages/@monomind/cli/.claude/agents/specialized/specialized-developer-advocate.md +318 -0
  118. package/packages/@monomind/cli/.claude/agents/specialized/specialized-document-generator.md +56 -0
  119. package/packages/@monomind/cli/.claude/agents/specialized/specialized-mcp-builder.md +64 -0
  120. package/packages/@monomind/cli/.claude/agents/specialized/specialized-model-qa.md +489 -0
  121. package/packages/@monomind/cli/.claude/agents/specialized/specialized-workflow-architect.md +598 -0
  122. package/packages/@monomind/cli/.claude/agents/specialized/zk-steward.md +212 -0
  123. package/packages/@monomind/cli/.claude/agents/swarm/mesh-coordinator.md +363 -0
  124. package/packages/@monomind/cli/.claude/agents/templates/automation-smart-agent.md +185 -0
  125. package/packages/@monomind/cli/.claude/agents/templates/coordinator-swarm-init.md +83 -0
  126. package/packages/@monomind/cli/.claude/agents/templates/implementer-sparc-coder.md +231 -0
  127. package/packages/@monomind/cli/.claude/agents/testing/production-validator.md +374 -0
  128. package/packages/@monomind/cli/.claude/agents/testing/tdd-london-swarm.md +241 -0
  129. package/packages/@monomind/cli/.claude/agents/testing/testing-accessibility-auditor.md +322 -0
  130. package/packages/@monomind/cli/.claude/agents/testing/testing-api-tester.md +307 -0
  131. package/packages/@monomind/cli/.claude/agents/testing/testing-evidence-collector.md +211 -0
  132. package/packages/@monomind/cli/.claude/agents/testing/testing-performance-benchmarker.md +269 -0
  133. package/packages/@monomind/cli/.claude/agents/testing/testing-test-results-analyzer.md +306 -0
  134. package/packages/@monomind/cli/.claude/agents/testing/testing-tool-evaluator.md +395 -0
  135. package/packages/@monomind/cli/.claude/agents/testing/testing-workflow-optimizer.md +451 -0
  136. package/packages/@monomind/cli/.claude/commands/agents/README.md +14 -0
  137. package/packages/@monomind/cli/.claude/commands/agents/agent-capabilities.md +25 -0
  138. package/packages/@monomind/cli/.claude/commands/agents/agent-coordination.md +32 -0
  139. package/packages/@monomind/cli/.claude/commands/agents/agent-spawning.md +32 -0
  140. package/packages/@monomind/cli/.claude/commands/agents/agent-types.md +30 -0
  141. package/packages/@monomind/cli/.claude/commands/analysis/README.md +18 -0
  142. package/packages/@monomind/cli/.claude/commands/analysis/bottleneck-detect.md +69 -0
  143. package/packages/@monomind/cli/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  144. package/packages/@monomind/cli/.claude/commands/analysis/performance-report.md +52 -0
  145. package/packages/@monomind/cli/.claude/commands/analysis/token-usage.md +47 -0
  146. package/packages/@monomind/cli/.claude/commands/automation/README.md +19 -0
  147. package/packages/@monomind/cli/.claude/commands/automation/auto-agent.md +86 -0
  148. package/packages/@monomind/cli/.claude/commands/automation/self-healing.md +108 -0
  149. package/packages/@monomind/cli/.claude/commands/automation/session-memory.md +89 -0
  150. package/packages/@monomind/cli/.claude/commands/automation/smart-agents.md +81 -0
  151. package/packages/@monomind/cli/.claude/commands/automation/smart-spawn.md +66 -0
  152. package/packages/@monomind/cli/.claude/commands/automation/workflow-select.md +60 -0
  153. package/packages/@monomind/cli/.claude/commands/coordination/README.md +13 -0
  154. package/packages/@monomind/cli/.claude/commands/coordination/agent-spawn.md +69 -0
  155. package/packages/@monomind/cli/.claude/commands/coordination/swarm-init.md +82 -0
  156. package/packages/@monomind/cli/.claude/commands/coordination/task-orchestrate.md +79 -0
  157. package/packages/@monomind/cli/.claude/commands/github/README.md +24 -0
  158. package/packages/@monomind/cli/.claude/commands/github/github-modes.md +151 -0
  159. package/packages/@monomind/cli/.claude/commands/github/issue-tracker.md +293 -0
  160. package/packages/@monomind/cli/.claude/commands/github/pr-manager.md +173 -0
  161. package/packages/@monomind/cli/.claude/commands/github/release-manager.md +343 -0
  162. package/packages/@monomind/cli/.claude/commands/github/repo-architect.md +379 -0
  163. package/packages/@monomind/cli/.claude/commands/github/sync-coordinator.md +297 -0
  164. package/packages/@monomind/cli/.claude/commands/hive-mind/README.md +42 -0
  165. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-consensus.md +72 -0
  166. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-init.md +68 -0
  167. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-memory.md +73 -0
  168. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-spawn.md +82 -0
  169. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-status.md +56 -0
  170. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind-stop.md +55 -0
  171. package/packages/@monomind/cli/.claude/commands/hive-mind/hive-mind.md +87 -0
  172. package/packages/@monomind/cli/.claude/commands/hooks/README.md +66 -0
  173. package/packages/@monomind/cli/.claude/commands/hooks/overview.md +117 -0
  174. package/packages/@monomind/cli/.claude/commands/hooks/post-edit.md +78 -0
  175. package/packages/@monomind/cli/.claude/commands/hooks/post-task.md +62 -0
  176. package/packages/@monomind/cli/.claude/commands/hooks/pre-edit.md +81 -0
  177. package/packages/@monomind/cli/.claude/commands/hooks/pre-task.md +76 -0
  178. package/packages/@monomind/cli/.claude/commands/hooks/session-end.md +82 -0
  179. package/packages/@monomind/cli/.claude/commands/hooks/setup.md +132 -0
  180. package/packages/@monomind/cli/.claude/commands/mastermind/_repeat.md +472 -0
  181. package/packages/@monomind/cli/.claude/commands/mastermind/_taskfile.md +235 -0
  182. package/packages/@monomind/cli/.claude/commands/mastermind/adr.md +11 -0
  183. package/packages/@monomind/cli/.claude/commands/mastermind/approve.md +94 -0
  184. package/packages/@monomind/cli/.claude/commands/mastermind/architect.md +55 -0
  185. package/packages/@monomind/cli/.claude/commands/mastermind/autodev.md +32 -0
  186. package/packages/@monomind/cli/.claude/commands/mastermind/brain.md +102 -0
  187. package/packages/@monomind/cli/.claude/commands/mastermind/budget.md +7 -0
  188. package/packages/@monomind/cli/.claude/commands/mastermind/build.md +26 -0
  189. package/packages/@monomind/cli/.claude/commands/mastermind/code-review.md +317 -0
  190. package/packages/@monomind/cli/.claude/commands/mastermind/content.md +26 -0
  191. package/packages/@monomind/cli/.claude/commands/mastermind/createorg.md +139 -0
  192. package/packages/@monomind/cli/.claude/commands/mastermind/createtask.md +383 -0
  193. package/packages/@monomind/cli/.claude/commands/mastermind/debug.md +22 -0
  194. package/packages/@monomind/cli/.claude/commands/mastermind/design.md +20 -0
  195. package/packages/@monomind/cli/.claude/commands/mastermind/do.md +528 -0
  196. package/packages/@monomind/cli/.claude/commands/mastermind/execute.md +20 -0
  197. package/packages/@monomind/cli/.claude/commands/mastermind/finance.md +26 -0
  198. package/packages/@monomind/cli/.claude/commands/mastermind/finish.md +20 -0
  199. package/packages/@monomind/cli/.claude/commands/mastermind/graph-status.md +7 -0
  200. package/packages/@monomind/cli/.claude/commands/mastermind/help.md +118 -0
  201. package/packages/@monomind/cli/.claude/commands/mastermind/idea.md +26 -0
  202. package/packages/@monomind/cli/.claude/commands/mastermind/ideate.md +261 -0
  203. package/packages/@monomind/cli/.claude/commands/mastermind/improve.md +345 -0
  204. package/packages/@monomind/cli/.claude/commands/mastermind/loops.md +7 -0
  205. package/packages/@monomind/cli/.claude/commands/mastermind/marketing.md +26 -0
  206. package/packages/@monomind/cli/.claude/commands/mastermind/master.md +1070 -0
  207. package/packages/@monomind/cli/.claude/commands/mastermind/memory.md +230 -0
  208. package/packages/@monomind/cli/.claude/commands/mastermind/ops.md +26 -0
  209. package/packages/@monomind/cli/.claude/commands/mastermind/orgs.md +21 -0
  210. package/packages/@monomind/cli/.claude/commands/mastermind/orgstatus.md +59 -0
  211. package/packages/@monomind/cli/.claude/commands/mastermind/plan.md +26 -0
  212. package/packages/@monomind/cli/.claude/commands/mastermind/receive-review.md +20 -0
  213. package/packages/@monomind/cli/.claude/commands/mastermind/release.md +26 -0
  214. package/packages/@monomind/cli/.claude/commands/mastermind/repeat.md +257 -0
  215. package/packages/@monomind/cli/.claude/commands/mastermind/research.md +26 -0
  216. package/packages/@monomind/cli/.claude/commands/mastermind/review.md +26 -0
  217. package/packages/@monomind/cli/.claude/commands/mastermind/runorg.md +156 -0
  218. package/packages/@monomind/cli/.claude/commands/mastermind/sales.md +26 -0
  219. package/packages/@monomind/cli/.claude/commands/mastermind/skill-builder.md +20 -0
  220. package/packages/@monomind/cli/.claude/commands/mastermind/specialagents.md +125 -0
  221. package/packages/@monomind/cli/.claude/commands/mastermind/stoporg.md +78 -0
  222. package/packages/@monomind/cli/.claude/commands/mastermind/swarm.md +161 -0
  223. package/packages/@monomind/cli/.claude/commands/mastermind/taskdev.md +26 -0
  224. package/packages/@monomind/cli/.claude/commands/mastermind/tdd.md +22 -0
  225. package/packages/@monomind/cli/.claude/commands/mastermind/techport.md +30 -0
  226. package/packages/@monomind/cli/.claude/commands/mastermind/understand.md +139 -0
  227. package/packages/@monomind/cli/.claude/commands/mastermind/verify.md +22 -0
  228. package/packages/@monomind/cli/.claude/commands/mastermind/worktree.md +20 -0
  229. package/packages/@monomind/cli/.claude/commands/mastermind.md +121 -0
  230. package/packages/@monomind/cli/.claude/commands/memory/README.md +79 -0
  231. package/packages/@monomind/cli/.claude/commands/memory/memory-search.md +77 -0
  232. package/packages/@monomind/cli/.claude/commands/monitoring/README.md +69 -0
  233. package/packages/@monomind/cli/.claude/commands/monitoring/agent-metrics.md +65 -0
  234. package/packages/@monomind/cli/.claude/commands/monitoring/agents.md +71 -0
  235. package/packages/@monomind/cli/.claude/commands/monitoring/status.md +108 -0
  236. package/packages/@monomind/cli/.claude/commands/monobrowse.md +21 -0
  237. package/packages/@monomind/cli/.claude/commands/monograph/README.md +102 -0
  238. package/packages/@monomind/cli/.claude/commands/monograph/monograph-build.md +79 -0
  239. package/packages/@monomind/cli/.claude/commands/monograph/monograph-search.md +96 -0
  240. package/packages/@monomind/cli/.claude/commands/monograph/monograph-stats.md +53 -0
  241. package/packages/@monomind/cli/.claude/commands/monograph/monograph-watch.md +63 -0
  242. package/packages/@monomind/cli/.claude/commands/monograph/monograph-wiki.md +91 -0
  243. package/packages/@monomind/cli/.claude/commands/optimization/auto-topology.md +85 -0
  244. package/packages/@monomind/cli/.claude/commands/optimization/performance-optimize.md +79 -0
  245. package/packages/@monomind/cli/.claude/commands/pair/README.md +79 -0
  246. package/packages/@monomind/cli/.claude/commands/pair/examples.md +156 -0
  247. package/packages/@monomind/cli/.claude/commands/pair/modes.md +122 -0
  248. package/packages/@monomind/cli/.claude/commands/pair/session.md +124 -0
  249. package/packages/@monomind/cli/.claude/commands/sparc/analyzer.md +35 -0
  250. package/packages/@monomind/cli/.claude/commands/sparc/architect.md +36 -0
  251. package/packages/@monomind/cli/.claude/commands/sparc/ask.md +56 -0
  252. package/packages/@monomind/cli/.claude/commands/sparc/batch-executor.md +37 -0
  253. package/packages/@monomind/cli/.claude/commands/sparc/code.md +48 -0
  254. package/packages/@monomind/cli/.claude/commands/sparc/coder.md +37 -0
  255. package/packages/@monomind/cli/.claude/commands/sparc/debug.md +42 -0
  256. package/packages/@monomind/cli/.claude/commands/sparc/debugger.md +37 -0
  257. package/packages/@monomind/cli/.claude/commands/sparc/designer.md +36 -0
  258. package/packages/@monomind/cli/.claude/commands/sparc/devops.md +68 -0
  259. package/packages/@monomind/cli/.claude/commands/sparc/docs-writer.md +39 -0
  260. package/packages/@monomind/cli/.claude/commands/sparc/documenter.md +37 -0
  261. package/packages/@monomind/cli/.claude/commands/sparc/innovator.md +37 -0
  262. package/packages/@monomind/cli/.claude/commands/sparc/integration.md +42 -0
  263. package/packages/@monomind/cli/.claude/commands/sparc/mcp.md +76 -0
  264. package/packages/@monomind/cli/.claude/commands/sparc/memory-manager.md +57 -0
  265. package/packages/@monomind/cli/.claude/commands/sparc/optimizer.md +37 -0
  266. package/packages/@monomind/cli/.claude/commands/sparc/orchestrator.md +70 -0
  267. package/packages/@monomind/cli/.claude/commands/sparc/post-deployment-monitoring-mode.md +42 -0
  268. package/packages/@monomind/cli/.claude/commands/sparc/refinement-optimization-mode.md +42 -0
  269. package/packages/@monomind/cli/.claude/commands/sparc/researcher.md +37 -0
  270. package/packages/@monomind/cli/.claude/commands/sparc/reviewer.md +37 -0
  271. package/packages/@monomind/cli/.claude/commands/sparc/security-review.md +39 -0
  272. package/packages/@monomind/cli/.claude/commands/sparc/sparc-modes.md +120 -0
  273. package/packages/@monomind/cli/.claude/commands/sparc/sparc.md +71 -0
  274. package/packages/@monomind/cli/.claude/commands/sparc/spec-pseudocode.md +39 -0
  275. package/packages/@monomind/cli/.claude/commands/sparc/supabase-admin.md +301 -0
  276. package/packages/@monomind/cli/.claude/commands/sparc/swarm-coordinator.md +50 -0
  277. package/packages/@monomind/cli/.claude/commands/sparc/tdd.md +37 -0
  278. package/packages/@monomind/cli/.claude/commands/sparc/tester.md +37 -0
  279. package/packages/@monomind/cli/.claude/commands/sparc/tutorial.md +38 -0
  280. package/packages/@monomind/cli/.claude/commands/sparc/workflow-manager.md +37 -0
  281. package/packages/@monomind/cli/.claude/commands/sparc.md +112 -0
  282. package/packages/@monomind/cli/.claude/commands/stream-chain/pipeline.md +116 -0
  283. package/packages/@monomind/cli/.claude/commands/stream-chain/run.md +156 -0
  284. package/packages/@monomind/cli/.claude/commands/swarm/README.md +40 -0
  285. package/packages/@monomind/cli/.claude/commands/swarm/analysis.md +73 -0
  286. package/packages/@monomind/cli/.claude/commands/swarm/development.md +72 -0
  287. package/packages/@monomind/cli/.claude/commands/swarm/examples.md +103 -0
  288. package/packages/@monomind/cli/.claude/commands/swarm/maintenance.md +75 -0
  289. package/packages/@monomind/cli/.claude/commands/swarm/optimization.md +84 -0
  290. package/packages/@monomind/cli/.claude/commands/swarm/research.md +76 -0
  291. package/packages/@monomind/cli/.claude/commands/swarm/swarm.md +79 -0
  292. package/packages/@monomind/cli/.claude/commands/swarm/testing.md +80 -0
  293. package/packages/@monomind/cli/.claude/commands/tokens.md +18 -0
  294. package/packages/@monomind/cli/.claude/commands/truth/start.md +121 -0
  295. package/packages/@monomind/cli/.claude/commands/ts.md +14 -0
  296. package/packages/@monomind/cli/.claude/commands/workflows/README.md +65 -0
  297. package/packages/@monomind/cli/.claude/commands/workflows/development.md +86 -0
  298. package/packages/@monomind/cli/.claude/commands/workflows/research.md +89 -0
  299. package/packages/@monomind/cli/.claude/commands/workflows/workflow-create.md +84 -0
  300. package/packages/@monomind/cli/.claude/commands/workflows/workflow-execute.md +103 -0
  301. package/packages/@monomind/cli/.claude/commands/workflows/workflow-export.md +90 -0
  302. package/packages/@monomind/cli/.claude/helpers/auto-memory-hook.mjs +413 -0
  303. package/packages/@monomind/cli/.claude/helpers/control-start.cjs +155 -0
  304. package/packages/@monomind/cli/.claude/helpers/event-logger.cjs +155 -0
  305. package/packages/@monomind/cli/.claude/helpers/extras-registry.json +5141 -0
  306. package/packages/@monomind/cli/.claude/helpers/graphify-freshen.cjs +115 -0
  307. package/packages/@monomind/cli/.claude/helpers/handlers/adr-draft-handler.cjs +78 -0
  308. package/packages/@monomind/cli/.claude/helpers/handlers/agent-start-handler.cjs +108 -0
  309. package/packages/@monomind/cli/.claude/helpers/handlers/budget-status-handler.cjs +14 -0
  310. package/packages/@monomind/cli/.claude/helpers/handlers/capture-handler.cjs +473 -0
  311. package/packages/@monomind/cli/.claude/helpers/handlers/compact-handler.cjs +35 -0
  312. package/packages/@monomind/cli/.claude/helpers/handlers/edit-handler.cjs +145 -0
  313. package/packages/@monomind/cli/.claude/helpers/handlers/gates-handler.cjs +138 -0
  314. package/packages/@monomind/cli/.claude/helpers/handlers/graph-status-handler.cjs +45 -0
  315. package/packages/@monomind/cli/.claude/helpers/handlers/loops-status-handler.cjs +48 -0
  316. package/packages/@monomind/cli/.claude/helpers/handlers/route-handler.cjs +457 -0
  317. package/packages/@monomind/cli/.claude/helpers/handlers/session-handler.cjs +174 -0
  318. package/packages/@monomind/cli/.claude/helpers/handlers/session-restore-handler.cjs +370 -0
  319. package/packages/@monomind/cli/.claude/helpers/handlers/stats-handler.cjs +14 -0
  320. package/packages/@monomind/cli/.claude/helpers/handlers/task-handler.cjs +341 -0
  321. package/packages/@monomind/cli/.claude/helpers/hook-handler.cjs +400 -0
  322. package/packages/@monomind/cli/.claude/helpers/intelligence.cjs +164 -0
  323. package/packages/@monomind/cli/.claude/helpers/learning-service.mjs +60 -0
  324. package/packages/@monomind/cli/.claude/helpers/loop-tracker.cjs +119 -0
  325. package/packages/@monomind/cli/.claude/helpers/memory-palace.cjs +461 -0
  326. package/packages/@monomind/cli/.claude/helpers/memory.cjs +193 -0
  327. package/packages/@monomind/cli/.claude/helpers/metrics-db.mjs +87 -0
  328. package/packages/@monomind/cli/.claude/helpers/monolean-activate.cjs +20 -0
  329. package/packages/@monomind/cli/.claude/helpers/monolean-config.cjs +76 -0
  330. package/packages/@monomind/cli/.claude/helpers/monolean-instructions.cjs +109 -0
  331. package/packages/@monomind/cli/.claude/helpers/monolean-propagate.cjs +9 -0
  332. package/packages/@monomind/cli/.claude/helpers/monolean-tracker.cjs +18 -0
  333. package/packages/@monomind/cli/.claude/helpers/router.cjs +326 -0
  334. package/packages/@monomind/cli/.claude/helpers/session.cjs +140 -0
  335. package/packages/@monomind/cli/.claude/helpers/skill-registry.json +1043 -0
  336. package/packages/@monomind/cli/.claude/helpers/statusline.cjs +1350 -0
  337. package/packages/@monomind/cli/.claude/helpers/toggle-statusline.cjs +73 -0
  338. package/packages/@monomind/cli/.claude/helpers/token-tracker.cjs +934 -0
  339. package/packages/@monomind/cli/.claude/helpers/utils/micro-agents.cjs +354 -0
  340. package/packages/@monomind/cli/.claude/helpers/utils/monograph.cjs +386 -0
  341. package/packages/@monomind/cli/.claude/helpers/utils/telemetry.cjs +146 -0
  342. package/packages/@monomind/cli/.claude/skills/agent-browser-testing/SKILL.md +964 -0
  343. package/packages/@monomind/cli/.claude/skills/agentic-jujutsu/SKILL.md +645 -0
  344. package/packages/@monomind/cli/.claude/skills/github-issue-triage/SKILL.md +354 -0
  345. package/packages/@monomind/cli/.claude/skills/github-repo-recap/SKILL.md +207 -0
  346. package/packages/@monomind/cli/.claude/skills/hive-mind-advanced/SKILL.md +709 -0
  347. package/packages/@monomind/cli/.claude/skills/hooks-automation/SKILL.md +1193 -0
  348. package/packages/@monomind/cli/.claude/skills/mastermind/_agent-select.md +132 -0
  349. package/packages/@monomind/cli/.claude/skills/mastermind/_delegation.md +83 -0
  350. package/packages/@monomind/cli/.claude/skills/mastermind/_intake.md +83 -0
  351. package/packages/@monomind/cli/.claude/skills/mastermind/_protocol.md +404 -0
  352. package/packages/@monomind/cli/.claude/skills/mastermind/_repeat.md +144 -0
  353. package/packages/@monomind/cli/.claude/skills/mastermind/access.md +236 -0
  354. package/packages/@monomind/cli/.claude/skills/mastermind/activity.md +191 -0
  355. package/packages/@monomind/cli/.claude/skills/mastermind/adapter-manager.md +259 -0
  356. package/packages/@monomind/cli/.claude/skills/mastermind/adapters.md +204 -0
  357. package/packages/@monomind/cli/.claude/skills/mastermind/agent-detail.md +242 -0
  358. package/packages/@monomind/cli/.claude/skills/mastermind/agents.md +178 -0
  359. package/packages/@monomind/cli/.claude/skills/mastermind/approval-detail.md +259 -0
  360. package/packages/@monomind/cli/.claude/skills/mastermind/approve.md +188 -0
  361. package/packages/@monomind/cli/.claude/skills/mastermind/architect.md +863 -0
  362. package/packages/@monomind/cli/.claude/skills/mastermind/autodev.md +536 -0
  363. package/packages/@monomind/cli/.claude/skills/mastermind/backup.md +197 -0
  364. package/packages/@monomind/cli/.claude/skills/mastermind/bootstrap.md +190 -0
  365. package/packages/@monomind/cli/.claude/skills/mastermind/budgets.md +237 -0
  366. package/packages/@monomind/cli/.claude/skills/mastermind/build.md +170 -0
  367. package/packages/@monomind/cli/.claude/skills/mastermind/code-quality-reviewer-prompt.md +60 -0
  368. package/packages/@monomind/cli/.claude/skills/mastermind/companies.md +256 -0
  369. package/packages/@monomind/cli/.claude/skills/mastermind/content.md +197 -0
  370. package/packages/@monomind/cli/.claude/skills/mastermind/costs.md +151 -0
  371. package/packages/@monomind/cli/.claude/skills/mastermind/createorg.md +853 -0
  372. package/packages/@monomind/cli/.claude/skills/mastermind/debug.md +232 -0
  373. package/packages/@monomind/cli/.claude/skills/mastermind/design.md +189 -0
  374. package/packages/@monomind/cli/.claude/skills/mastermind/diagnose.md +249 -0
  375. package/packages/@monomind/cli/.claude/skills/mastermind/env.md +198 -0
  376. package/packages/@monomind/cli/.claude/skills/mastermind/environments.md +250 -0
  377. package/packages/@monomind/cli/.claude/skills/mastermind/execute.md +104 -0
  378. package/packages/@monomind/cli/.claude/skills/mastermind/export.md +333 -0
  379. package/packages/@monomind/cli/.claude/skills/mastermind/finance.md +166 -0
  380. package/packages/@monomind/cli/.claude/skills/mastermind/finish.md +251 -0
  381. package/packages/@monomind/cli/.claude/skills/mastermind/goal-detail.md +255 -0
  382. package/packages/@monomind/cli/.claude/skills/mastermind/goals.md +149 -0
  383. package/packages/@monomind/cli/.claude/skills/mastermind/heartbeat.md +164 -0
  384. package/packages/@monomind/cli/.claude/skills/mastermind/idea.md +1142 -0
  385. package/packages/@monomind/cli/.claude/skills/mastermind/implementer-prompt.md +109 -0
  386. package/packages/@monomind/cli/.claude/skills/mastermind/import.md +281 -0
  387. package/packages/@monomind/cli/.claude/skills/mastermind/inbox.md +214 -0
  388. package/packages/@monomind/cli/.claude/skills/mastermind/instance-settings.md +315 -0
  389. package/packages/@monomind/cli/.claude/skills/mastermind/instance.md +233 -0
  390. package/packages/@monomind/cli/.claude/skills/mastermind/invite-landing.md +227 -0
  391. package/packages/@monomind/cli/.claude/skills/mastermind/invites.md +254 -0
  392. package/packages/@monomind/cli/.claude/skills/mastermind/issue-detail.md +291 -0
  393. package/packages/@monomind/cli/.claude/skills/mastermind/issues.md +235 -0
  394. package/packages/@monomind/cli/.claude/skills/mastermind/join-queue.md +170 -0
  395. package/packages/@monomind/cli/.claude/skills/mastermind/liveness.md +392 -0
  396. package/packages/@monomind/cli/.claude/skills/mastermind/marketing.md +228 -0
  397. package/packages/@monomind/cli/.claude/skills/mastermind/memory.md +321 -0
  398. package/packages/@monomind/cli/.claude/skills/mastermind/monitor.md +1284 -0
  399. package/packages/@monomind/cli/.claude/skills/mastermind/monotask.md +350 -0
  400. package/packages/@monomind/cli/.claude/skills/mastermind/my-issues.md +146 -0
  401. package/packages/@monomind/cli/.claude/skills/mastermind/new-agent.md +241 -0
  402. package/packages/@monomind/cli/.claude/skills/mastermind/ops.md +168 -0
  403. package/packages/@monomind/cli/.claude/skills/mastermind/org-chart.md +209 -0
  404. package/packages/@monomind/cli/.claude/skills/mastermind/org-settings.md +254 -0
  405. package/packages/@monomind/cli/.claude/skills/mastermind/orgs.md +98 -0
  406. package/packages/@monomind/cli/.claude/skills/mastermind/orgstatus.md +194 -0
  407. package/packages/@monomind/cli/.claude/skills/mastermind/plan-to-tasks.md +136 -0
  408. package/packages/@monomind/cli/.claude/skills/mastermind/plan.md +198 -0
  409. package/packages/@monomind/cli/.claude/skills/mastermind/plugin-manager.md +241 -0
  410. package/packages/@monomind/cli/.claude/skills/mastermind/plugin-settings.md +273 -0
  411. package/packages/@monomind/cli/.claude/skills/mastermind/plugins.md +190 -0
  412. package/packages/@monomind/cli/.claude/skills/mastermind/profile.md +187 -0
  413. package/packages/@monomind/cli/.claude/skills/mastermind/project-detail.md +249 -0
  414. package/packages/@monomind/cli/.claude/skills/mastermind/project-workspace.md +244 -0
  415. package/packages/@monomind/cli/.claude/skills/mastermind/projects.md +164 -0
  416. package/packages/@monomind/cli/.claude/skills/mastermind/receive-review.md +213 -0
  417. package/packages/@monomind/cli/.claude/skills/mastermind/references/copywriting-frameworks.md +181 -0
  418. package/packages/@monomind/cli/.claude/skills/mastermind/references/persuasion-psychology.md +158 -0
  419. package/packages/@monomind/cli/.claude/skills/mastermind/release.md +168 -0
  420. package/packages/@monomind/cli/.claude/skills/mastermind/research.md +168 -0
  421. package/packages/@monomind/cli/.claude/skills/mastermind/review.md +219 -0
  422. package/packages/@monomind/cli/.claude/skills/mastermind/routine-detail.md +253 -0
  423. package/packages/@monomind/cli/.claude/skills/mastermind/routines.md +203 -0
  424. package/packages/@monomind/cli/.claude/skills/mastermind/runorg.md +684 -0
  425. package/packages/@monomind/cli/.claude/skills/mastermind/sales.md +170 -0
  426. package/packages/@monomind/cli/.claude/skills/mastermind/search.md +186 -0
  427. package/packages/@monomind/cli/.claude/skills/mastermind/secrets.md +199 -0
  428. package/packages/@monomind/cli/.claude/skills/mastermind/skill-builder.md +274 -0
  429. package/packages/@monomind/cli/.claude/skills/mastermind/skills.md +156 -0
  430. package/packages/@monomind/cli/.claude/skills/mastermind/spec-reviewer-prompt.md +63 -0
  431. package/packages/@monomind/cli/.claude/skills/mastermind/stoporg.md +138 -0
  432. package/packages/@monomind/cli/.claude/skills/mastermind/taskdev.md +307 -0
  433. package/packages/@monomind/cli/.claude/skills/mastermind/tasks.md +149 -0
  434. package/packages/@monomind/cli/.claude/skills/mastermind/tdd.md +394 -0
  435. package/packages/@monomind/cli/.claude/skills/mastermind/techport.md +743 -0
  436. package/packages/@monomind/cli/.claude/skills/mastermind/threads.md +259 -0
  437. package/packages/@monomind/cli/.claude/skills/mastermind/tree-control.md +250 -0
  438. package/packages/@monomind/cli/.claude/skills/mastermind/verify.md +196 -0
  439. package/packages/@monomind/cli/.claude/skills/mastermind/wiki.md +314 -0
  440. package/packages/@monomind/cli/.claude/skills/mastermind/workspace-detail.md +317 -0
  441. package/packages/@monomind/cli/.claude/skills/mastermind/workspaces.md +261 -0
  442. package/packages/@monomind/cli/.claude/skills/mastermind/worktree.md +215 -0
  443. package/packages/@monomind/cli/.claude/skills/monodesign/SKILL.md +333 -0
  444. package/packages/@monomind/cli/.claude/skills/monodesign/adapt.md +53 -0
  445. package/packages/@monomind/cli/.claude/skills/monodesign/agents/monodesign-asset-producer.md +100 -0
  446. package/packages/@monomind/cli/.claude/skills/monodesign/animate.md +65 -0
  447. package/packages/@monomind/cli/.claude/skills/monodesign/audit.md +89 -0
  448. package/packages/@monomind/cli/.claude/skills/monodesign/bolder.md +50 -0
  449. package/packages/@monomind/cli/.claude/skills/monodesign/clarify.md +64 -0
  450. package/packages/@monomind/cli/.claude/skills/monodesign/colorize.md +68 -0
  451. package/packages/@monomind/cli/.claude/skills/monodesign/craft.md +51 -0
  452. package/packages/@monomind/cli/.claude/skills/monodesign/critique.md +66 -0
  453. package/packages/@monomind/cli/.claude/skills/monodesign/delight.md +47 -0
  454. package/packages/@monomind/cli/.claude/skills/monodesign/distill.md +56 -0
  455. package/packages/@monomind/cli/.claude/skills/monodesign/document.md +80 -0
  456. package/packages/@monomind/cli/.claude/skills/monodesign/extract.md +74 -0
  457. package/packages/@monomind/cli/.claude/skills/monodesign/harden.md +65 -0
  458. package/packages/@monomind/cli/.claude/skills/monodesign/live.md +59 -0
  459. package/packages/@monomind/cli/.claude/skills/monodesign/onboard.md +50 -0
  460. package/packages/@monomind/cli/.claude/skills/monodesign/optimize.md +64 -0
  461. package/packages/@monomind/cli/.claude/skills/monodesign/overdrive.md +56 -0
  462. package/packages/@monomind/cli/.claude/skills/monodesign/polish.md +68 -0
  463. package/packages/@monomind/cli/.claude/skills/monodesign/quieter.md +57 -0
  464. package/packages/@monomind/cli/.claude/skills/monodesign/reference/adapt.md +190 -0
  465. package/packages/@monomind/cli/.claude/skills/monodesign/reference/animate.md +175 -0
  466. package/packages/@monomind/cli/.claude/skills/monodesign/reference/antipatterns-catalog.md +359 -0
  467. package/packages/@monomind/cli/.claude/skills/monodesign/reference/audit.md +133 -0
  468. package/packages/@monomind/cli/.claude/skills/monodesign/reference/bolder.md +113 -0
  469. package/packages/@monomind/cli/.claude/skills/monodesign/reference/brand-workflow.md +180 -0
  470. package/packages/@monomind/cli/.claude/skills/monodesign/reference/brand.md +114 -0
  471. package/packages/@monomind/cli/.claude/skills/monodesign/reference/clarify.md +174 -0
  472. package/packages/@monomind/cli/.claude/skills/monodesign/reference/codex.md +107 -0
  473. package/packages/@monomind/cli/.claude/skills/monodesign/reference/cognitive-load.md +106 -0
  474. package/packages/@monomind/cli/.claude/skills/monodesign/reference/color-and-contrast.md +105 -0
  475. package/packages/@monomind/cli/.claude/skills/monodesign/reference/colorize.md +154 -0
  476. package/packages/@monomind/cli/.claude/skills/monodesign/reference/component-specs.md +260 -0
  477. package/packages/@monomind/cli/.claude/skills/monodesign/reference/component-states.md +274 -0
  478. package/packages/@monomind/cli/.claude/skills/monodesign/reference/component-system.md +358 -0
  479. package/packages/@monomind/cli/.claude/skills/monodesign/reference/copy-formulas.md +160 -0
  480. package/packages/@monomind/cli/.claude/skills/monodesign/reference/craft.md +196 -0
  481. package/packages/@monomind/cli/.claude/skills/monodesign/reference/critique.md +213 -0
  482. package/packages/@monomind/cli/.claude/skills/monodesign/reference/delight.md +302 -0
  483. package/packages/@monomind/cli/.claude/skills/monodesign/reference/design-principles.md +246 -0
  484. package/packages/@monomind/cli/.claude/skills/monodesign/reference/distill.md +111 -0
  485. package/packages/@monomind/cli/.claude/skills/monodesign/reference/document.md +427 -0
  486. package/packages/@monomind/cli/.claude/skills/monodesign/reference/extract.md +69 -0
  487. package/packages/@monomind/cli/.claude/skills/monodesign/reference/harden.md +347 -0
  488. package/packages/@monomind/cli/.claude/skills/monodesign/reference/heuristics-scoring.md +234 -0
  489. package/packages/@monomind/cli/.claude/skills/monodesign/reference/hooks.md +99 -0
  490. package/packages/@monomind/cli/.claude/skills/monodesign/reference/image-prompts.md +130 -0
  491. package/packages/@monomind/cli/.claude/skills/monodesign/reference/interaction-design.md +195 -0
  492. package/packages/@monomind/cli/.claude/skills/monodesign/reference/layout.md +141 -0
  493. package/packages/@monomind/cli/.claude/skills/monodesign/reference/live.md +622 -0
  494. package/packages/@monomind/cli/.claude/skills/monodesign/reference/motion-design.md +109 -0
  495. package/packages/@monomind/cli/.claude/skills/monodesign/reference/onboard.md +234 -0
  496. package/packages/@monomind/cli/.claude/skills/monodesign/reference/optimize.md +258 -0
  497. package/packages/@monomind/cli/.claude/skills/monodesign/reference/overdrive.md +130 -0
  498. package/packages/@monomind/cli/.claude/skills/monodesign/reference/personas.md +179 -0
  499. package/packages/@monomind/cli/.claude/skills/monodesign/reference/polish.md +233 -0
  500. package/packages/@monomind/cli/.claude/skills/monodesign/reference/pre-delivery-checklist.md +108 -0
  501. package/packages/@monomind/cli/.claude/skills/monodesign/reference/product.md +62 -0
  502. package/packages/@monomind/cli/.claude/skills/monodesign/reference/quieter.md +99 -0
  503. package/packages/@monomind/cli/.claude/skills/monodesign/reference/responsive-design.md +114 -0
  504. package/packages/@monomind/cli/.claude/skills/monodesign/reference/shape.md +151 -0
  505. package/packages/@monomind/cli/.claude/skills/monodesign/reference/spatial-design.md +100 -0
  506. package/packages/@monomind/cli/.claude/skills/monodesign/reference/teach.md +156 -0
  507. package/packages/@monomind/cli/.claude/skills/monodesign/reference/token-architecture.md +222 -0
  508. package/packages/@monomind/cli/.claude/skills/monodesign/reference/typeset.md +124 -0
  509. package/packages/@monomind/cli/.claude/skills/monodesign/reference/typography.md +159 -0
  510. package/packages/@monomind/cli/.claude/skills/monodesign/reference/ux-research.md +143 -0
  511. package/packages/@monomind/cli/.claude/skills/monodesign/reference/ux-rules.md +211 -0
  512. package/packages/@monomind/cli/.claude/skills/monodesign/reference/ux-writing.md +107 -0
  513. package/packages/@monomind/cli/.claude/skills/monodesign/shape.md +71 -0
  514. package/packages/@monomind/cli/.claude/skills/monodesign/teach.md +69 -0
  515. package/packages/@monomind/cli/.claude/skills/monodesign/typeset.md +59 -0
  516. package/packages/@monomind/cli/.claude/skills/monolean/SKILL.md +118 -0
  517. package/packages/@monomind/cli/.claude/skills/monolean-audit/SKILL.md +41 -0
  518. package/packages/@monomind/cli/.claude/skills/monolean-debt/SKILL.md +46 -0
  519. package/packages/@monomind/cli/.claude/skills/monolean-help/SKILL.md +60 -0
  520. package/packages/@monomind/cli/.claude/skills/monolean-review/SKILL.md +57 -0
  521. package/packages/@monomind/cli/.claude/skills/monomind/browse-agentcore.md +115 -0
  522. package/packages/@monomind/cli/.claude/skills/monomind/browse-electron.md +188 -0
  523. package/packages/@monomind/cli/.claude/skills/monomind/browse-qa.md +228 -0
  524. package/packages/@monomind/cli/.claude/skills/monomind/browse-references/authentication.md +161 -0
  525. package/packages/@monomind/cli/.claude/skills/monomind/browse-references/trust-boundaries.md +40 -0
  526. package/packages/@monomind/cli/.claude/skills/monomind/browse-references/video-recording.md +83 -0
  527. package/packages/@monomind/cli/.claude/skills/monomind/browse-slack.md +188 -0
  528. package/packages/@monomind/cli/.claude/skills/monomind/browse-vercel.md +239 -0
  529. package/packages/@monomind/cli/.claude/skills/monomind/browse.md +724 -0
  530. package/packages/@monomind/cli/.claude/skills/monomotion/SKILL.md +145 -0
  531. package/packages/@monomind/cli/.claude/skills/monomotion/rules/api-control.md +139 -0
  532. package/packages/@monomind/cli/.claude/skills/monomotion/rules/effects.md +109 -0
  533. package/packages/@monomind/cli/.claude/skills/monomotion/rules/integration.md +140 -0
  534. package/packages/@monomind/cli/.claude/skills/monomotion/rules/scroll.md +131 -0
  535. package/packages/@monomind/cli/.claude/skills/monomotion/rules/sequencing.md +105 -0
  536. package/packages/@monomind/cli/.claude/skills/monomotion/rules/svg.md +101 -0
  537. package/packages/@monomind/cli/.claude/skills/monomotion/rules/text.md +119 -0
  538. package/packages/@monomind/cli/.claude/skills/pair-programming/SKILL.md +1202 -0
  539. package/packages/@monomind/cli/.claude/skills/performance-analysis/SKILL.md +560 -0
  540. package/packages/@monomind/cli/.claude/skills/skill-builder/SKILL.md +910 -0
  541. package/packages/@monomind/cli/.claude/skills/sparc-methodology/SKILL.md +950 -0
  542. package/packages/@monomind/cli/.claude/skills/specialagent/SKILL.md +208 -0
  543. package/packages/@monomind/cli/.claude/skills/stop-slop/SKILL.md +67 -0
  544. package/packages/@monomind/cli/.claude/skills/stop-slop/references/examples.md +61 -0
  545. package/packages/@monomind/cli/.claude/skills/stop-slop/references/phrases.md +130 -0
  546. package/packages/@monomind/cli/.claude/skills/stop-slop/references/structures.md +136 -0
  547. package/packages/@monomind/cli/.claude/skills/swarm-advanced/SKILL.md +937 -0
  548. package/packages/@monomind/cli/.claude/skills/swarm-orchestration/SKILL.md +179 -0
  549. package/packages/@monomind/cli/.claude/skills/verification-quality/SKILL.md +674 -0
  550. package/packages/@monomind/cli/dist/src/browser/action-builder/analyzer.js +6 -13
  551. package/packages/@monomind/cli/dist/src/commands/browse-action.js +3 -2
  552. package/packages/@monomind/cli/dist/src/commands/doctor.js +17 -2
  553. package/packages/@monomind/cli/dist/src/commands/index.js +2 -0
  554. package/packages/@monomind/cli/dist/src/commands/sync.d.ts +10 -0
  555. package/packages/@monomind/cli/dist/src/commands/sync.js +100 -0
  556. package/packages/@monomind/cli/dist/src/init/executor.js +22 -0
  557. package/packages/@monomind/cli/dist/src/init/statusline-generator.js +45 -0
  558. package/packages/@monomind/cli/dist/src/sync/checker.d.ts +12 -0
  559. package/packages/@monomind/cli/dist/src/sync/checker.js +26 -0
  560. package/packages/@monomind/cli/package.json +2 -2
@@ -0,0 +1,232 @@
1
+ ---
2
+ name: mastermind-debug
3
+ description: Systematic root-cause debugging protocol. Use before ANY fix attempt — for test failures, bugs, unexpected behavior, build failures, performance regressions.
4
+ ---
5
+
6
+ # mastermind:debug — Systematic Debugging
7
+
8
+ ## Overview
9
+
10
+ Random fixes waste time and create new bugs. Quick patches mask underlying issues.
11
+
12
+ **Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
13
+
14
+ **Violating the letter of this process is violating the spirit of debugging.**
15
+
16
+ ## The Iron Law
17
+
18
+ ```
19
+ NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
20
+ ```
21
+
22
+ If you haven't completed Phase 1, you cannot propose fixes.
23
+
24
+ ## When to Use
25
+
26
+ Use for ANY technical issue:
27
+ - Test failures
28
+ - Bugs in production or staging
29
+ - Unexpected behavior
30
+ - Performance regressions
31
+ - Build failures
32
+ - Integration issues
33
+
34
+ **Use this ESPECIALLY when:**
35
+ - Under time pressure (emergencies make guessing tempting)
36
+ - "Just one quick fix" seems obvious
37
+ - You've already tried multiple fixes that didn't work
38
+ - Previous fix didn't resolve the issue
39
+ - You don't fully understand what's happening
40
+
41
+ **Don't skip when:**
42
+ - Issue seems simple (simple bugs have root causes too)
43
+ - You're in a hurry (systematic is faster than thrashing)
44
+ - The user wants it fixed immediately (systematic approach finds the real fix faster)
45
+
46
+ ## The Four Phases
47
+
48
+ You MUST complete each phase before proceeding to the next.
49
+
50
+ ---
51
+
52
+ ### Phase 1: Root Cause Investigation
53
+
54
+ **BEFORE attempting ANY fix:**
55
+
56
+ 1. **Read Error Messages Carefully**
57
+ - Don't skim errors or warnings
58
+ - They often contain the exact solution
59
+ - Read stack traces completely
60
+ - Note line numbers, file paths, error codes
61
+
62
+ 2. **Reproduce Consistently**
63
+ - Can you trigger the issue reliably?
64
+ - What are the exact steps?
65
+ - Does it happen every time?
66
+ - If not reproducible → gather more data, don't guess
67
+
68
+ 3. **Check Recent Changes**
69
+ - What changed that could cause this?
70
+ - `git diff`, recent commits, new dependencies, config changes
71
+ - Environmental differences between working and broken states
72
+
73
+ 4. **Gather Evidence in Multi-Component Systems**
74
+
75
+ **WHEN the system has multiple components (CI → build → deploy, API → service → database):**
76
+
77
+ **BEFORE proposing fixes, add diagnostic instrumentation:**
78
+ ```
79
+ For EACH component boundary:
80
+ - Log what data enters the component
81
+ - Log what data exits the component
82
+ - Verify config/env propagation at each layer
83
+ - Check state at each boundary
84
+
85
+ Run once to gather evidence showing WHERE it breaks
86
+ THEN analyze evidence to identify the failing component
87
+ THEN investigate that specific component
88
+ ```
89
+
90
+ **Example:**
91
+ ```bash
92
+ # Layer 1: entry point
93
+ echo "=== Input received: ==="
94
+ echo "VAR: ${VAR:+SET}${VAR:-UNSET}"
95
+
96
+ # Layer 2: processing
97
+ echo "=== State after processing: ==="
98
+ env | grep VAR || echo "VAR not in environment"
99
+
100
+ # Layer 3: output/result
101
+ echo "=== Final state: ==="
102
+ ```
103
+
104
+ ---
105
+
106
+ ### Phase 2: Pattern Analysis
107
+
108
+ Once you understand WHERE the break is, find existing working examples:
109
+
110
+ 1. **Find working code that solves the same problem**
111
+ - Search the codebase for similar patterns
112
+ - Check git history for when this worked
113
+ - Find the canonical implementation to compare against
114
+
115
+ 2. **Compare broken vs. working**
116
+ - What's different?
117
+ - List every difference, not just the obvious one
118
+ - Environment, config, data, timing
119
+
120
+ ---
121
+
122
+ ### Phase 3: Form and Test a Hypothesis
123
+
124
+ 1. **State your hypothesis explicitly:**
125
+ > "I believe the root cause is [X] because [evidence Y] and [evidence Z]."
126
+
127
+ 2. **Test the hypothesis minimally**
128
+ - Change one thing and observe the result
129
+ - If it doesn't confirm or deny, gather more evidence
130
+ - A confirmed hypothesis means you understand the root cause
131
+
132
+ 3. **If hypothesis is wrong:** Do NOT add more fixes. Return to Phase 1 with the new information.
133
+
134
+ ---
135
+
136
+ ### Phase 4: Implementation
137
+
138
+ 1. **Write a failing test first** (before touching production code)
139
+ - Automated test where possible
140
+ - Use `Skill("mastermind:build")` with a test-only prompt if needed
141
+ - The test MUST fail before the fix proves it
142
+
143
+ 2. **Implement a single fix**
144
+ - Address the root cause identified in Phase 3
145
+ - ONE change at a time
146
+ - No "while I'm here" improvements
147
+ - No bundled refactoring
148
+
149
+ 3. **Verify the fix**
150
+ - Test passes now?
151
+ - No other tests broken?
152
+ - Issue actually resolved?
153
+ - Use `Skill("mastermind:review")` to verify before declaring done
154
+
155
+ 4. **If the fix doesn't work:**
156
+ - STOP
157
+ - Count: How many fixes have you tried?
158
+ - If < 3: Return to Phase 1, re-analyze with the new information
159
+ - **If ≥ 3: STOP — this is likely an architectural problem (see Phase 4.5 below)**
160
+ - Do NOT attempt a 4th fix without architectural discussion
161
+
162
+ ---
163
+
164
+ ### Phase 4.5 — If 3+ Fixes Have Failed: Question the Architecture
165
+
166
+ **Pattern indicating an architectural problem:**
167
+ - Each fix reveals new coupling or shared state issues in a different place
168
+ - Each fix creates new symptoms elsewhere
169
+ - Fixes require "massive refactoring" to implement cleanly
170
+
171
+ **STOP and question fundamentals:**
172
+ - Is this design pattern fundamentally sound?
173
+ - Are we continuing out of inertia?
174
+ - Should we refactor the architecture rather than continue patching?
175
+
176
+ **Discuss with the user before attempting more fixes.** This is not a failed hypothesis — this is the wrong architecture.
177
+
178
+ ---
179
+
180
+ ## Red Flags — STOP and Return to Phase 1
181
+
182
+ If you catch yourself thinking or doing any of these:
183
+
184
+ | Thought / Action | What it means |
185
+ |---|---|
186
+ | "Quick fix for now, investigate later" | You're skipping root cause. Return to Phase 1. |
187
+ | "Just try changing X and see if it works" | Guessing. Return to Phase 1. |
188
+ | "Add multiple changes, run tests" | Can't isolate what worked. Return to Phase 1. |
189
+ | "It's probably X, let me fix that" | Assumed root cause. Verify it first. Return to Phase 1. |
190
+ | "I don't fully understand but this might work" | You don't have a hypothesis. Return to Phase 1. |
191
+ | Proposing solutions before tracing data flow | No root cause. Return to Phase 1. |
192
+ | "One more fix attempt" (already tried 2+) | 3+ failures = architectural problem. Phase 4.5. |
193
+ | Each fix reveals a new problem in a different place | Architectural problem. Phase 4.5. |
194
+
195
+ ## User Signals You're Doing It Wrong
196
+
197
+ Watch for these redirections from the user:
198
+
199
+ | Signal | What it means |
200
+ |---|---|
201
+ | "Is that actually happening?" | You assumed without verifying. Add evidence gathering. |
202
+ | "What does the output show?" | You should have checked before proposing a fix. |
203
+ | "Stop guessing" | You're proposing fixes without root cause. Phase 1. |
204
+ | "We keep going in circles" | 3+ fix attempts = architectural problem. Phase 4.5. |
205
+
206
+ ## Common Rationalizations
207
+
208
+ | Excuse | Reality |
209
+ |---|---|
210
+ | "Issue is simple, don't need process" | Simple issues have root causes too. Process is fast for simple bugs. |
211
+ | "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
212
+ | "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
213
+ | "I'll write the test after confirming the fix works" | Untested fixes don't stick. Test first proves it. |
214
+ | "Multiple fixes at once saves time" | Can't isolate what worked. Creates new bugs. |
215
+ | "I can see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
216
+ | "One more fix attempt" (after 2+ failures) | 3+ failures = architectural problem. Question the pattern. |
217
+
218
+ ## Quick Reference
219
+
220
+ | Phase | Key Activities | Success Criteria |
221
+ |---|---|---|
222
+ | **1. Root Cause** | Read errors, reproduce, check changes, gather evidence | Understand WHAT and WHY |
223
+ | **2. Pattern** | Find working examples, compare | Identified differences |
224
+ | **3. Hypothesis** | Form theory, test minimally | Confirmed or new hypothesis |
225
+ | **4. Implementation** | Write failing test, fix, verify | Bug resolved, tests pass |
226
+
227
+ ## Impact
228
+
229
+ Systematic approach vs random fixing:
230
+ - Time to fix: 15-30 min vs 2-3 hours of thrashing
231
+ - First-time fix rate: ~95% vs ~40%
232
+ - New bugs introduced by the fix: near zero vs common
@@ -0,0 +1,189 @@
1
+ ---
2
+ name: mastermind-design
3
+ description: "MUST use before any creative work — creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements, and design through collaborative dialogue before any implementation."
4
+ type: domain-skill
5
+ default_mode: confirm
6
+ ---
7
+
8
+ # Mastermind Design
9
+
10
+ Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
11
+
12
+ Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
13
+
14
+ <HARD-GATE>
15
+ Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY request regardless of perceived simplicity.
16
+ </HARD-GATE>
17
+
18
+ ---
19
+
20
+ ## Anti-Pattern: "This Is Too Simple To Need A Design"
21
+
22
+ Every feature goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" tasks are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple requests), but you MUST present it and get approval.
23
+
24
+ ---
25
+
26
+ ## Inputs
27
+
28
+ - `brain_context`: BRAIN CONTEXT block (injected by master, or loaded standalone via _protocol.md brain load)
29
+ - `prompt`: the idea or request to design
30
+ - `project_name`: project context
31
+ - `mode`: auto | confirm
32
+
33
+ ---
34
+
35
+ ## Checklist
36
+
37
+ Complete these items in order:
38
+
39
+ 1. **Explore project context** — check files, docs, recent commits
40
+ 2. **Offer visual companion** (if topic will involve visual questions) — own message, not combined with a clarifying question (see Visual Companion section below)
41
+ 3. **Ask clarifying questions** — one at a time; understand purpose, constraints, success criteria
42
+ 4. **Propose 2-3 approaches** — with trade-offs and your recommendation
43
+ 5. **Present design** — in sections scaled to their complexity; get user approval after each section
44
+ 6. **Write design doc** — save to `docs/mastermind/specs/YYYY-MM-DD-<topic>-design.md`
45
+ 7. **Spec self-review** — inline check for placeholders, contradictions, ambiguity, scope (see below)
46
+ 8. **User reviews written spec** — ask user to review before proceeding
47
+ 9. **Transition to planning** — invoke `Skill("mastermind:plan")` to create the implementation plan
48
+
49
+ ---
50
+
51
+ ## Process Flow
52
+
53
+ ```
54
+ Explore project context
55
+
56
+ Visual questions ahead?
57
+ yes → Offer Visual Companion (own message, no other content)
58
+ no ↓
59
+ Ask clarifying questions (one at a time)
60
+
61
+ Propose 2-3 approaches
62
+
63
+ Present design sections → User approves? → no: revise → loop
64
+ ↓ yes
65
+ Write design doc
66
+
67
+ Spec self-review (fix inline)
68
+
69
+ User reviews spec? → changes requested → Write design doc
70
+ ↓ approved
71
+ Invoke Skill("mastermind:plan") ← TERMINAL STATE
72
+ ```
73
+
74
+ **The terminal state is invoking `Skill("mastermind:plan")`.** Do NOT invoke mastermind:build or any other implementation skill directly. The ONLY next step after design is plan.
75
+
76
+ ---
77
+
78
+ ## The Process
79
+
80
+ ### Understanding the idea
81
+
82
+ - Check current project state first (files, docs, recent commits)
83
+ - Before asking detailed questions, assess scope: if the request describes multiple independent subsystems, flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
84
+ - If too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order to build? Then design the first sub-project through the normal flow. Each sub-project gets its own spec → plan → implementation cycle.
85
+ - For appropriately-scoped projects, ask questions one at a time
86
+ - Prefer multiple-choice questions when possible; open-ended is fine too
87
+ - Only one question per message — if a topic needs more exploration, break it into multiple messages
88
+ - Focus on: purpose, constraints, success criteria
89
+
90
+ ### Exploring approaches
91
+
92
+ - Propose 2-3 different approaches with trade-offs
93
+ - Present options conversationally with your recommendation and reasoning
94
+ - Lead with the recommended option and explain why
95
+
96
+ ### Presenting the design
97
+
98
+ - Once you understand what you're building, present the design
99
+ - Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
100
+ - Ask after each section whether it looks right so far
101
+ - Cover: architecture, components, data flow, error handling, testing
102
+ - Be ready to go back and clarify if something doesn't make sense
103
+
104
+ ### Design for isolation and clarity
105
+
106
+ - Break the system into smaller units with one clear purpose each, communicating through well-defined interfaces
107
+ - For each unit, answer: what does it do, how do you use it, what does it depend on?
108
+ - Can someone understand a unit without reading its internals? Can internals change without breaking consumers? If not, the boundaries need work.
109
+ - Smaller, well-bounded units are easier to reason about and test
110
+
111
+ ### Working in existing codebases
112
+
113
+ - Explore the current structure before proposing changes. Follow existing patterns.
114
+ - Where existing code has problems affecting the work, include targeted improvements as part of the design.
115
+ - Do not propose unrelated refactoring. Stay focused on the current goal.
116
+
117
+ ---
118
+
119
+ ## After the Design
120
+
121
+ ### Documentation
122
+
123
+ - Write the validated design (spec) to `docs/mastermind/specs/YYYY-MM-DD-<topic>-design.md`
124
+ - User preferences for spec location override this default
125
+ - Commit the design document to git
126
+
127
+ ### Spec Self-Review
128
+
129
+ After writing the spec document, review it with fresh eyes:
130
+
131
+ 1. **Placeholder scan:** Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
132
+ 2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?
133
+ 3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?
134
+ 4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.
135
+
136
+ Fix any issues inline. No need to re-review — just fix and move on.
137
+
138
+ ### User Review Gate
139
+
140
+ **In confirm mode (default):** Ask the user to review the written spec before proceeding:
141
+
142
+ > "Spec written and committed to `<path>`. Please review it and let me know if you want any changes before we start writing the implementation plan."
143
+
144
+ Wait for the user's response. If they request changes, make them and re-run the spec self-review. Only proceed once the user approves.
145
+
146
+ **In auto mode:** Skip the wait. Proceed directly to `Skill("mastermind:plan")`.
147
+
148
+ ### Transition to Planning
149
+
150
+ - Invoke `Skill("mastermind:plan")` to create a detailed implementation plan
151
+ - Do NOT invoke any other skill. `mastermind:plan` is the only next step.
152
+
153
+ ---
154
+
155
+ ## Key Principles
156
+
157
+ - **One question at a time** — do not overwhelm with multiple questions
158
+ - **Multiple choice preferred** — easier to answer than open-ended when possible
159
+ - **YAGNI ruthlessly** — remove unnecessary features from all designs
160
+ - **Explore alternatives** — always propose 2-3 approaches before settling
161
+ - **Incremental validation** — present design, get approval before moving on
162
+ - **Be flexible** — go back and clarify when something doesn't make sense
163
+
164
+ ---
165
+
166
+ ## Visual Companion
167
+
168
+ A browser-based companion for showing mockups, diagrams, and visual options during design sessions. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.
169
+
170
+ **Offering the companion:** When you anticipate that upcoming questions will involve visual content (mockups, layouts, diagrams), offer it once for consent:
171
+
172
+ > "Some of what we're working on might be easier to explain if I can show it to you in a web browser. I can put together mockups, diagrams, comparisons, and other visuals as we go. Want to try it? (Requires opening a local URL)"
173
+
174
+ **This offer MUST be its own message.** Do not combine it with clarifying questions, context summaries, or any other content. Wait for the user's response before continuing. If they decline, proceed with text-only design.
175
+
176
+ **Per-question decision:** Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal.
177
+
178
+ - **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams
179
+ - **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, scope decisions
180
+
181
+ If they agree to the companion, use `Skill("mastermind:worktree")` to set up an isolated workspace, then invoke `Skill("agent-browser-testing")` to open the browser.
182
+
183
+ ---
184
+
185
+ ## Integration
186
+
187
+ **Skills used by this skill:**
188
+ - `Skill("mastermind:plan")` — creates the implementation plan after design is approved (terminal state)
189
+ - `Skill("mastermind:worktree")` — isolated workspace for visual companion work
@@ -0,0 +1,249 @@
1
+ ---
2
+ name: mastermind-diagnose
3
+ description: Mastermind diagnose — forensic procedure for investigating why agent work stalled, looped, or went too deep. Surfaces the exact stop-point in the issue tree, frames the fix as a product rule respecting three invariants (productive work continues / only real blockers stop work / no infinite loops), and delivers an approved plan before any code changes. Mirrors diagnose-why-work-stopped Paperclip skill.
4
+ type: domain-skill
5
+ default_mode: confirm
6
+ ---
7
+
8
+ # Mastermind Diagnose
9
+
10
+ This skill is invoked by `mastermind:diagnose` or directly via `/mastermind:diagnose`.
11
+
12
+ ---
13
+
14
+ ## Inputs
15
+
16
+ - `brain_context`: BRAIN CONTEXT block (injected by command, or loaded below if standalone)
17
+ - `org_name`: org to investigate (required)
18
+ - `issue_id`: specific issue or task ID that stalled (optional — omit to scan all stalled work)
19
+ - `agent_id`: scope investigation to a specific agent (optional)
20
+ - `action`: scan | diagnose | report
21
+ - `caller`: command | master
22
+
23
+ ---
24
+
25
+ ## Three Invariants (MUST be preserved in all analysis and proposed fixes)
26
+
27
+ Every diagnosis and every proposed rule must hold these three invariants together:
28
+
29
+ 1. **Productive work continues.** Agents with a clear next action must keep working without needing a human to wake them.
30
+ 2. **Only real blockers stop work.** Stops happen when something genuinely cannot proceed (missing approval, missing dependency, human owner). Pseudo-stops must be detected and routed.
31
+ 3. **No infinite loops.** Recovery and continuation loops must be bounded and distinguishable from genuinely productive continuation.
32
+
33
+ If a proposed fix violates any invariant, drop it or rework it. State explicitly how each invariant is held.
34
+
35
+ ---
36
+
37
+ ## Step 0 — Brain Load (standalone only)
38
+
39
+ If `caller` is not "command", load brain context following _protocol.md Brain Load Procedure with namespace: `ops`.
40
+
41
+ ---
42
+
43
+ ## Step 1 — Load Org State
44
+
45
+ ```bash
46
+ orgFile=".monomind/orgs/${org_name}.json"
47
+ [ ! -f "$orgFile" ] && { echo "ERROR: Org '${org_name}' not found."; exit 1; }
48
+
49
+ stateFile=".monomind/orgs/${org_name}-state.json"
50
+ activityFile=".monomind/orgs/${org_name}-activity.jsonl"
51
+ issuesFile=".monomind/orgs/${org_name}-issues.json"
52
+ routinesFile=".monomind/orgs/${org_name}-routines.json"
53
+ ```
54
+
55
+ ---
56
+
57
+ ## Step 2 — Execute Action
58
+
59
+ ### scan (default)
60
+
61
+ Scan for stalled work across the org:
62
+
63
+ ```bash
64
+ echo "STALL SCAN — $org_name"
65
+ echo "════════════════════════════════════════════════════════"
66
+
67
+ ts=$(date -u +%Y-%m-%dT%H:%M:%SZ)
68
+ now=$(date +%s)
69
+
70
+ echo ""
71
+ echo "AGENT HEARTBEATS"
72
+ echo "────────────────────────────────────────────────────────"
73
+
74
+ python3 - "$orgFile" "$stateFile" "$now" <<'PYEOF'
75
+ import json, sys, os
76
+ from datetime import datetime, timezone
77
+
78
+ org = json.load(open(sys.argv[1]))
79
+ state_path = sys.argv[2]
80
+ now = int(sys.argv[3])
81
+
82
+ hb = {}
83
+ if os.path.exists(state_path):
84
+ try:
85
+ state = json.load(open(state_path))
86
+ for r in state.get("roles", []):
87
+ hb[r.get("id","")] = r.get("last_heartbeat")
88
+ except:
89
+ pass
90
+
91
+ roles = org.get("roles", [])
92
+ stalled = []
93
+ for r in roles:
94
+ rid = r.get("id","?")
95
+ title = r.get("title",rid)
96
+ last = hb.get(rid)
97
+ if not last:
98
+ age = "never"
99
+ stalled.append((rid, title, "no heartbeat"))
100
+ else:
101
+ try:
102
+ dt = datetime.fromisoformat(last.replace("Z","+00:00"))
103
+ age_s = now - int(dt.timestamp())
104
+ age = f"{age_s//60}m ago"
105
+ if age_s > 3600:
106
+ stalled.append((rid, title, f"stale ({age})"))
107
+ except:
108
+ age = "?"
109
+ print(f" {rid:<28} {title:<24} last: {last or 'never'}")
110
+
111
+ print()
112
+ if stalled:
113
+ print(f" STALLED AGENTS ({len(stalled)}):")
114
+ for rid, title, reason in stalled:
115
+ print(f" ⚠ {rid} {title} — {reason}")
116
+ else:
117
+ print(" All agents have recent heartbeats.")
118
+ PYEOF
119
+
120
+ echo ""
121
+ echo "OPEN ISSUES (stall candidates)"
122
+ echo "────────────────────────────────────────────────────────"
123
+
124
+ if [ -f "$issuesFile" ]; then
125
+ python3 - "$issuesFile" "$now" <<'PYEOF'
126
+ import json, sys
127
+ from datetime import datetime, timezone
128
+
129
+ data = json.load(open(sys.argv[1]))
130
+ now = int(sys.argv[2])
131
+
132
+ issues = [i for i in data.get("issues",[])
133
+ if i.get("status") in ("open","in_progress","in_review")]
134
+
135
+ if not issues:
136
+ print(" (no open/stalled issues)")
137
+ else:
138
+ for iss in issues[:20]:
139
+ iid = iss.get("id","?")[:28]
140
+ title = iss.get("title","-")[:38]
141
+ st = iss.get("status","?")
142
+ upd = iss.get("updatedAt","-")[:10]
143
+ asgn = (iss.get("assigneeId") or "—")[:20]
144
+ print(f" [{st:<11}] {title:<38} assigned={asgn} updated={upd}")
145
+ PYEOF
146
+ else
147
+ echo " (no issues file)"
148
+ fi
149
+
150
+ echo ""
151
+ echo " For deep diagnosis: /mastermind:diagnose --org $org_name --action diagnose --issue-id <id>"
152
+ ```
153
+
154
+ ### diagnose
155
+
156
+ Forensic deep-dive on a specific issue or agent:
157
+
158
+ ```bash
159
+ echo "DEEP DIAGNOSIS — $org_name"
160
+ echo "════════════════════════════════════════════════════════"
161
+ echo ""
162
+
163
+ if [ -n "$issue_id" ]; then
164
+ echo "ISSUE: $issue_id"
165
+ echo "────────────────────────────────────────────────────────"
166
+ if [ -f "$issuesFile" ]; then
167
+ jq --arg id "$issue_id" '(.issues // [])[] | select(.id == $id)' "$issuesFile" 2>/dev/null \
168
+ || echo " Issue not found: $issue_id"
169
+ fi
170
+ fi
171
+
172
+ if [ -n "$agent_id" ]; then
173
+ echo ""
174
+ echo "AGENT ACTIVITY: $agent_id"
175
+ echo "────────────────────────────────────────────────────────"
176
+ if [ -f "$activityFile" ]; then
177
+ grep "$agent_id" "$activityFile" | tail -20 | while read -r line; do
178
+ echo " $line"
179
+ done
180
+ else
181
+ echo " (no activity log found)"
182
+ fi
183
+ fi
184
+
185
+ echo ""
186
+ echo "DIAGNOSIS FRAMEWORK"
187
+ echo "────────────────────────────────────────────────────────"
188
+ echo " Walk the issue tree and find the exact stop-point."
189
+ echo " Common stall shapes:"
190
+ echo " 1. Issue is 'in_review' with no active run or pending interaction"
191
+ echo " 2. Issue is 'in_progress' after a successful run with no next action"
192
+ echo " 3. Blocker chain whose leaf is cancelled or inaccessible"
193
+ echo " 4. Recovery loop waking the same issue repeatedly after successful runs"
194
+ echo " 5. Stranded-work recovery treating its own recovery issues as source work"
195
+ echo ""
196
+ echo " Root cause format:"
197
+ echo " - Stop-point: <issue-id> stuck at status=<status> because <reason>"
198
+ echo " - Evidence: <run ids, timestamps, status transitions>"
199
+ echo " - Proposed rule: <rule that prevents recurrence>"
200
+ echo " - Invariant check: [1] productive work continues? [2] real blockers only? [3] bounded?"
201
+ ```
202
+
203
+ ### report
204
+
205
+ ```bash
206
+ echo "DIAGNOSTIC REPORT — $org_name"
207
+ echo "════════════════════════════════════════════════════════"
208
+ echo "Generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
209
+ echo ""
210
+
211
+ agentCount=$(jq '.roles | length' "$orgFile")
212
+ echo "Org agents: $agentCount"
213
+
214
+ if [ -f "$issuesFile" ]; then
215
+ openCount=$(jq '[(.issues // [])[] | select(.status == "open")] | length' "$issuesFile")
216
+ inpCount=$(jq '[(.issues // [])[] | select(.status == "in_progress")] | length' "$issuesFile")
217
+ doneCount=$(jq '[(.issues // [])[] | select(.status == "done")] | length' "$issuesFile")
218
+ echo "Issues: open=$openCount in_progress=$inpCount done=$doneCount"
219
+ fi
220
+
221
+ echo ""
222
+ echo "THREE INVARIANT STATUS:"
223
+ echo " 1. Productive work continues: [check heartbeats + open issues]"
224
+ echo " 2. Only real blockers stop: [check stall candidates above]"
225
+ echo " 3. No infinite loops: [check activity log for repeat patterns]"
226
+ echo ""
227
+ echo " Run scan first: /mastermind:diagnose --org $org_name --action scan"
228
+ ```
229
+
230
+ ---
231
+
232
+ ## Step 3 — Return Output
233
+
234
+ ```yaml
235
+ domain: ops
236
+ status: complete
237
+ action: <action>
238
+ org_name: <org_name>
239
+ invariants:
240
+ productive_work_continues: check
241
+ only_real_blockers: check
242
+ no_infinite_loops: check
243
+ ```
244
+
245
+ ---
246
+
247
+ ## Step 4 — Brain Write (standalone only)
248
+
249
+ If `caller` is not "command", follow _protocol.md Brain Write Procedure for domain `ops`.