@monoes/monomindcli 2.16.3 → 2.16.5

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 (488) hide show
  1. package/.claude/agents/github/repo-architect.md +1 -1
  2. package/.claude/agents/specialists/integration-architect.md +9 -13
  3. package/.claude/commands/agents/agent-capabilities.md +1 -0
  4. package/.claude/commands/agents/agent-coordination.md +1 -0
  5. package/.claude/commands/agents/agent-spawning.md +1 -0
  6. package/.claude/commands/agents/agent-types.md +1 -0
  7. package/.claude/commands/analysis/bottleneck-detect.md +1 -0
  8. package/.claude/commands/analysis/performance-bottlenecks.md +1 -0
  9. package/.claude/commands/analysis/performance-report.md +1 -0
  10. package/.claude/commands/analysis/token-usage.md +1 -0
  11. package/.claude/commands/automation/README.md +1 -1
  12. package/.claude/commands/automation/auto-agent.md +1 -0
  13. package/.claude/commands/automation/self-healing.md +1 -0
  14. package/.claude/commands/automation/session-memory.md +1 -0
  15. package/.claude/commands/automation/smart-agents.md +1 -0
  16. package/.claude/commands/automation/smart-spawn.md +1 -0
  17. package/.claude/commands/automation/workflow-select.md +22 -27
  18. package/.claude/commands/coordination/README.md +2 -2
  19. package/.claude/commands/coordination/agent-spawn.md +1 -0
  20. package/.claude/commands/coordination/monoswarm-init.md +9 -8
  21. package/.claude/commands/coordination/task-orchestrate.md +6 -5
  22. package/.claude/commands/github/README.md +1 -1
  23. package/.claude/commands/github/github-modes.md +1 -0
  24. package/.claude/commands/github/issue-tracker.md +1 -0
  25. package/.claude/commands/github/pr-manager.md +1 -0
  26. package/.claude/commands/github/release-manager.md +1 -2
  27. package/.claude/commands/github/repo-architect.md +1 -0
  28. package/.claude/commands/github/sync-coordinator.md +1 -0
  29. package/.claude/commands/hooks/overview.md +1 -0
  30. package/.claude/commands/hooks/post-edit.md +1 -0
  31. package/.claude/commands/hooks/post-task.md +1 -0
  32. package/.claude/commands/hooks/pre-edit.md +1 -0
  33. package/.claude/commands/hooks/pre-task.md +1 -0
  34. package/.claude/commands/hooks/session-end.md +1 -0
  35. package/.claude/commands/hooks/setup.md +1 -0
  36. package/.claude/commands/mastermind/adr.md +3 -1
  37. package/.claude/commands/mastermind/brain.md +3 -1
  38. package/.claude/commands/mastermind/budget.md +3 -1
  39. package/.claude/commands/mastermind/code-review.md +3 -1
  40. package/.claude/commands/mastermind/content.md +3 -1
  41. package/.claude/commands/mastermind/createorg.md +4 -2
  42. package/.claude/commands/mastermind/createtask.md +6 -4
  43. package/.claude/commands/mastermind/debug.md +3 -1
  44. package/.claude/commands/mastermind/design.md +3 -1
  45. package/.claude/commands/mastermind/do.md +5 -3
  46. package/.claude/commands/mastermind/execute.md +3 -1
  47. package/.claude/commands/mastermind/finance.md +3 -1
  48. package/.claude/commands/mastermind/graph-status.md +3 -1
  49. package/.claude/commands/mastermind/help.md +17 -20
  50. package/.claude/commands/mastermind/idea.md +3 -1
  51. package/.claude/commands/mastermind/ideate.md +4 -2
  52. package/.claude/commands/mastermind/improve.md +4 -2
  53. package/.claude/commands/mastermind/loops.md +3 -1
  54. package/.claude/commands/mastermind/marketing.md +3 -1
  55. package/.claude/commands/mastermind/master.md +4 -3
  56. package/.claude/commands/mastermind/memory.md +8 -36
  57. package/.claude/commands/mastermind/monoswarm.md +3 -2
  58. package/.claude/commands/mastermind/okf-export.md +3 -1
  59. package/.claude/commands/mastermind/okf-import.md +3 -1
  60. package/.claude/commands/mastermind/ops.md +3 -1
  61. package/.claude/commands/mastermind/orgs.md +3 -1
  62. package/.claude/commands/mastermind/orgstatus.md +3 -1
  63. package/.claude/commands/mastermind/plan.md +3 -1
  64. package/.claude/commands/mastermind/receive-review.md +3 -1
  65. package/.claude/commands/mastermind/release.md +3 -1
  66. package/.claude/commands/mastermind/repeat.md +3 -1
  67. package/.claude/commands/mastermind/research.md +3 -1
  68. package/.claude/commands/mastermind/review.md +3 -1
  69. package/.claude/commands/mastermind/runorg.md +4 -2
  70. package/.claude/commands/mastermind/sales.md +3 -1
  71. package/.claude/commands/mastermind/skill-builder.md +3 -1
  72. package/.claude/commands/mastermind/specialagents.md +3 -1
  73. package/.claude/commands/mastermind/stoporg.md +9 -11
  74. package/.claude/commands/mastermind/techport.md +3 -1
  75. package/.claude/commands/mastermind/topology.md +4 -3
  76. package/.claude/commands/mastermind/understand.md +3 -1
  77. package/.claude/commands/mastermind/worktree.md +3 -1
  78. package/.claude/commands/memory/memory-search.md +1 -0
  79. package/.claude/commands/monitoring/README.md +1 -1
  80. package/.claude/commands/monitoring/agent-metrics.md +1 -0
  81. package/.claude/commands/monitoring/agents.md +1 -0
  82. package/.claude/commands/monitoring/status.md +1 -0
  83. package/.claude/commands/monoswarm/README.md +3 -3
  84. package/.claude/commands/monoswarm/analysis.md +2 -2
  85. package/.claude/commands/monoswarm/consensus.md +1 -0
  86. package/.claude/commands/monoswarm/development.md +3 -3
  87. package/.claude/commands/monoswarm/examples.md +4 -4
  88. package/.claude/commands/monoswarm/init.md +2 -1
  89. package/.claude/commands/monoswarm/maintenance.md +2 -2
  90. package/.claude/commands/monoswarm/memory.md +1 -0
  91. package/.claude/commands/monoswarm/monoswarm.md +5 -5
  92. package/.claude/commands/monoswarm/optimization.md +2 -2
  93. package/.claude/commands/monoswarm/research.md +2 -2
  94. package/.claude/commands/monoswarm/spawn.md +1 -0
  95. package/.claude/commands/monoswarm/status.md +2 -1
  96. package/.claude/commands/monoswarm/stop.md +2 -1
  97. package/.claude/commands/monoswarm/testing.md +2 -2
  98. package/.claude/commands/pair/README.md +8 -9
  99. package/.claude/commands/pair/examples.md +3 -4
  100. package/.claude/commands/pair/session.md +1 -1
  101. package/.claude/commands/workflows/README.md +45 -40
  102. package/.claude/commands/workflows/development.md +42 -55
  103. package/.claude/commands/workflows/research.md +41 -57
  104. package/.claude/commands/workflows/workflow-create.md +43 -45
  105. package/.claude/commands/workflows/workflow-execute.md +58 -68
  106. package/.claude/commands/workflows/workflow-export.md +37 -63
  107. package/.claude/helpers/agent-registry.cjs +434 -0
  108. package/.claude/helpers/build-skill-registry.cjs +10 -6
  109. package/.claude/helpers/handlers/pick-core.cjs +55 -26
  110. package/.claude/helpers/handlers/route-handler.cjs +11 -3
  111. package/.claude/helpers/handlers/session-restore-handler.cjs +4 -1
  112. package/.claude/helpers/hook-handler.cjs +4 -2
  113. package/.claude/helpers/jev-catalog.cjs +14 -6
  114. package/.claude/helpers/jev-picker.cjs +52 -8
  115. package/.claude/helpers/pick-rank.cjs +184 -6
  116. package/.claude/helpers/pick-stats.cjs +86 -2
  117. package/.claude/skills/agentic-jujutsu/SKILL.md +2 -3
  118. package/.claude/skills/github-toolkit/SKILL.md +1 -1
  119. package/.claude/skills/hooks-automation/SKILL.md +243 -938
  120. package/.claude/skills/mastermind-agent-detail/SKILL.md +1 -1
  121. package/.claude/skills/mastermind-agent-select/SKILL.md +16 -1
  122. package/.claude/skills/mastermind-agents/SKILL.md +31 -38
  123. package/.claude/skills/mastermind-createorg/SKILL.md +3 -3
  124. package/.claude/skills/mastermind-env/SKILL.md +4 -18
  125. package/.claude/skills/mastermind-inbox/SKILL.md +31 -52
  126. package/.claude/skills/mastermind-instance/SKILL.md +7 -5
  127. package/.claude/skills/mastermind-new-agent/SKILL.md +3 -3
  128. package/.claude/skills/mastermind-org-settings/SKILL.md +3 -4
  129. package/.claude/skills/mastermind-orgs/SKILL.md +26 -32
  130. package/.claude/skills/mastermind-orgstatus/SKILL.md +49 -140
  131. package/.claude/skills/mastermind-plugins/SKILL.md +1 -1
  132. package/.claude/skills/mastermind-release/SKILL.md +9 -1
  133. package/.claude/skills/mastermind-research/SKILL.md +9 -1
  134. package/.claude/skills/mastermind-review/SKILL.md +9 -1
  135. package/.claude/skills/mastermind-routine-detail/SKILL.md +1 -1
  136. package/.claude/skills/mastermind-runorg/SKILL.md +13 -13
  137. package/.claude/skills/mastermind-stoporg/SKILL.md +7 -62
  138. package/.claude/skills/mastermind-tasks/SKILL.md +6 -8
  139. package/.claude/skills/monodesign/SKILL.md +257 -0
  140. package/.claude/skills/monodesign/adapt.md +53 -0
  141. package/.claude/skills/monodesign/agents/monodesign-asset-producer.md +100 -0
  142. package/.claude/skills/monodesign/agents/monodesign-manual-edit-applier.md +103 -0
  143. package/.claude/skills/monodesign/animate.md +65 -0
  144. package/.claude/skills/monodesign/audit.md +89 -0
  145. package/.claude/skills/monodesign/bolder.md +50 -0
  146. package/.claude/skills/monodesign/clarify.md +64 -0
  147. package/.claude/skills/monodesign/colorize.md +68 -0
  148. package/.claude/skills/monodesign/craft.md +51 -0
  149. package/.claude/skills/monodesign/critique.md +66 -0
  150. package/.claude/skills/monodesign/delight.md +47 -0
  151. package/.claude/skills/monodesign/distill.md +56 -0
  152. package/.claude/skills/monodesign/document.md +83 -0
  153. package/.claude/skills/monodesign/extract.md +74 -0
  154. package/.claude/skills/monodesign/harden.md +65 -0
  155. package/.claude/skills/monodesign/init.md +30 -0
  156. package/.claude/skills/monodesign/layout.md +36 -0
  157. package/.claude/skills/monodesign/live.md +34 -0
  158. package/.claude/skills/monodesign/onboard.md +50 -0
  159. package/.claude/skills/monodesign/optimize.md +64 -0
  160. package/.claude/skills/monodesign/overdrive.md +56 -0
  161. package/.claude/skills/monodesign/polish.md +68 -0
  162. package/.claude/skills/monodesign/quieter.md +57 -0
  163. package/.claude/skills/monodesign/reference/adapt.md +312 -0
  164. package/.claude/skills/monodesign/reference/adapt.native.md +58 -0
  165. package/.claude/skills/monodesign/reference/android.md +40 -0
  166. package/.claude/skills/monodesign/reference/animate.md +203 -0
  167. package/.claude/skills/monodesign/reference/antipatterns-catalog.md +410 -0
  168. package/.claude/skills/monodesign/reference/audit.md +135 -0
  169. package/.claude/skills/monodesign/reference/audit.native.md +139 -0
  170. package/.claude/skills/monodesign/reference/bolder.md +120 -0
  171. package/.claude/skills/monodesign/reference/brand-workflow.md +180 -0
  172. package/.claude/skills/monodesign/reference/brand.md +108 -0
  173. package/.claude/skills/monodesign/reference/clarify.md +288 -0
  174. package/.claude/skills/monodesign/reference/codex.md +105 -0
  175. package/.claude/skills/monodesign/reference/cognitive-load.md +106 -0
  176. package/.claude/skills/monodesign/reference/color-and-contrast.md +105 -0
  177. package/.claude/skills/monodesign/reference/colorize.md +257 -0
  178. package/.claude/skills/monodesign/reference/component-specs.md +260 -0
  179. package/.claude/skills/monodesign/reference/component-states.md +274 -0
  180. package/.claude/skills/monodesign/reference/component-system.md +358 -0
  181. package/.claude/skills/monodesign/reference/copy-formulas.md +160 -0
  182. package/.claude/skills/monodesign/reference/craft.md +123 -0
  183. package/.claude/skills/monodesign/reference/critique.md +780 -0
  184. package/.claude/skills/monodesign/reference/delight.md +302 -0
  185. package/.claude/skills/monodesign/reference/design-principles.md +246 -0
  186. package/.claude/skills/monodesign/reference/distill.md +111 -0
  187. package/.claude/skills/monodesign/reference/document.md +429 -0
  188. package/.claude/skills/monodesign/reference/extract.md +69 -0
  189. package/.claude/skills/monodesign/reference/harden.md +347 -0
  190. package/.claude/skills/monodesign/reference/heuristics-scoring.md +234 -0
  191. package/.claude/skills/monodesign/reference/hooks.md +92 -0
  192. package/.claude/skills/monodesign/reference/image-prompts.md +130 -0
  193. package/.claude/skills/monodesign/reference/init.md +221 -0
  194. package/.claude/skills/monodesign/reference/interaction-design.md +189 -0
  195. package/.claude/skills/monodesign/reference/ios.md +45 -0
  196. package/.claude/skills/monodesign/reference/layout.md +185 -0
  197. package/.claude/skills/monodesign/reference/live.md +710 -0
  198. package/.claude/skills/monodesign/reference/motion-design.md +109 -0
  199. package/.claude/skills/monodesign/reference/onboard.md +234 -0
  200. package/.claude/skills/monodesign/reference/optimize.md +258 -0
  201. package/.claude/skills/monodesign/reference/overdrive.md +130 -0
  202. package/.claude/skills/monodesign/reference/personas.md +179 -0
  203. package/.claude/skills/monodesign/reference/polish.md +241 -0
  204. package/.claude/skills/monodesign/reference/pre-delivery-checklist.md +108 -0
  205. package/.claude/skills/monodesign/reference/product.md +60 -0
  206. package/.claude/skills/monodesign/reference/quieter.md +99 -0
  207. package/.claude/skills/monodesign/reference/responsive-design.md +114 -0
  208. package/.claude/skills/monodesign/reference/shape.md +165 -0
  209. package/.claude/skills/monodesign/reference/spatial-design.md +100 -0
  210. package/.claude/skills/monodesign/reference/teach.md +10 -0
  211. package/.claude/skills/monodesign/reference/token-architecture.md +222 -0
  212. package/.claude/skills/monodesign/reference/typeset.md +301 -0
  213. package/.claude/skills/monodesign/reference/typography.md +159 -0
  214. package/.claude/skills/monodesign/reference/ux-research.md +143 -0
  215. package/.claude/skills/monodesign/reference/ux-rules.md +211 -0
  216. package/.claude/skills/monodesign/reference/ux-writing.md +107 -0
  217. package/.claude/skills/monodesign/scripts/command-metadata.json +94 -0
  218. package/.claude/skills/monodesign/scripts/context-signals.mjs +260 -0
  219. package/.claude/skills/monodesign/scripts/context.mjs +1065 -0
  220. package/.claude/skills/monodesign/scripts/critique-storage.mjs +416 -0
  221. package/.claude/skills/monodesign/scripts/detect-csp.mjs +193 -0
  222. package/.claude/skills/monodesign/scripts/detect.mjs +33 -0
  223. package/.claude/skills/monodesign/scripts/detector/browser/injected/index.mjs +1960 -0
  224. package/.claude/skills/monodesign/scripts/detector/cli/main.mjs +321 -0
  225. package/.claude/skills/monodesign/scripts/detector/design-system.mjs +814 -0
  226. package/.claude/skills/monodesign/scripts/detector/detect-antipatterns-browser.js +5628 -0
  227. package/.claude/skills/monodesign/scripts/detector/detect-antipatterns.mjs +50 -0
  228. package/.claude/skills/monodesign/scripts/detector/engines/browser/detect-url.mjs +259 -0
  229. package/.claude/skills/monodesign/scripts/detector/engines/browser/drivers.mjs +339 -0
  230. package/.claude/skills/monodesign/scripts/detector/engines/regex/detect-text.mjs +636 -0
  231. package/.claude/skills/monodesign/scripts/detector/engines/static-html/css-cascade.mjs +1016 -0
  232. package/.claude/skills/monodesign/scripts/detector/engines/static-html/detect-html.mjs +253 -0
  233. package/.claude/skills/monodesign/scripts/detector/engines/visual/screenshot-contrast.mjs +198 -0
  234. package/.claude/skills/monodesign/scripts/detector/findings.mjs +12 -0
  235. package/.claude/skills/monodesign/scripts/detector/fix/css-regions.mjs +181 -0
  236. package/.claude/skills/monodesign/scripts/detector/fix/fixers.mjs +373 -0
  237. package/.claude/skills/monodesign/scripts/detector/fix/index.mjs +426 -0
  238. package/.claude/skills/monodesign/scripts/detector/node/file-system.mjs +198 -0
  239. package/.claude/skills/monodesign/scripts/detector/profile/profiler.mjs +166 -0
  240. package/.claude/skills/monodesign/scripts/detector/registry/antipatterns.mjs +563 -0
  241. package/.claude/skills/monodesign/scripts/detector/rules/checks.mjs +3024 -0
  242. package/.claude/skills/monodesign/scripts/detector/shared/color.mjs +124 -0
  243. package/.claude/skills/monodesign/scripts/detector/shared/constants.mjs +101 -0
  244. package/.claude/skills/monodesign/scripts/detector/shared/fonts.mjs +30 -0
  245. package/.claude/skills/monodesign/scripts/detector/shared/inline-ignores.mjs +148 -0
  246. package/.claude/skills/monodesign/scripts/detector/shared/page.mjs +7 -0
  247. package/.claude/skills/monodesign/scripts/hook-admin.mjs +694 -0
  248. package/.claude/skills/monodesign/scripts/hook-before-edit.mjs +516 -0
  249. package/.claude/skills/monodesign/scripts/hook-lib.mjs +1785 -0
  250. package/.claude/skills/monodesign/scripts/hook.mjs +61 -0
  251. package/.claude/skills/monodesign/scripts/lib/design-parser.mjs +809 -0
  252. package/.claude/skills/monodesign/scripts/lib/is-generated.mjs +69 -0
  253. package/.claude/skills/monodesign/scripts/lib/monodesign-config.mjs +640 -0
  254. package/.claude/skills/monodesign/scripts/lib/monodesign-paths.mjs +129 -0
  255. package/.claude/skills/monodesign/scripts/lib/provider.mjs +4 -0
  256. package/.claude/skills/monodesign/scripts/lib/target-args.mjs +42 -0
  257. package/.claude/skills/monodesign/scripts/live/browser-script-parts.mjs +50 -0
  258. package/.claude/skills/monodesign/scripts/live/completion.mjs +19 -0
  259. package/.claude/skills/monodesign/scripts/live/event-validation.mjs +137 -0
  260. package/.claude/skills/monodesign/scripts/live/insert-ui.mjs +458 -0
  261. package/.claude/skills/monodesign/scripts/live/manual-apply.mjs +939 -0
  262. package/.claude/skills/monodesign/scripts/live/manual-edit-routes.mjs +357 -0
  263. package/.claude/skills/monodesign/scripts/live/manual-edits-buffer.mjs +152 -0
  264. package/.claude/skills/monodesign/scripts/live/session-store.mjs +293 -0
  265. package/.claude/skills/monodesign/scripts/live/svelte-component.mjs +826 -0
  266. package/.claude/skills/monodesign/scripts/live/sveltekit-adapter.mjs +279 -0
  267. package/.claude/skills/monodesign/scripts/live/ui-core.mjs +180 -0
  268. package/.claude/skills/monodesign/scripts/live/vocabulary.mjs +36 -0
  269. package/.claude/skills/monodesign/scripts/live-accept.mjs +812 -0
  270. package/.claude/skills/monodesign/scripts/live-browser-dom.js +147 -0
  271. package/.claude/skills/monodesign/scripts/live-browser-session.js +124 -0
  272. package/.claude/skills/monodesign/scripts/live-browser.js +11213 -0
  273. package/.claude/skills/monodesign/scripts/live-commit-manual-edits.mjs +1241 -0
  274. package/.claude/skills/monodesign/scripts/live-complete.mjs +75 -0
  275. package/.claude/skills/monodesign/scripts/live-copy-edit-agent.mjs +683 -0
  276. package/.claude/skills/monodesign/scripts/live-discard-manual-edits.mjs +51 -0
  277. package/.claude/skills/monodesign/scripts/live-inject.mjs +596 -0
  278. package/.claude/skills/monodesign/scripts/live-insert.mjs +272 -0
  279. package/.claude/skills/monodesign/scripts/live-manual-edit-evidence.mjs +363 -0
  280. package/.claude/skills/monodesign/scripts/live-poll.mjs +384 -0
  281. package/.claude/skills/monodesign/scripts/live-resume.mjs +94 -0
  282. package/.claude/skills/monodesign/scripts/live-server.mjs +1210 -0
  283. package/.claude/skills/monodesign/scripts/live-status.mjs +61 -0
  284. package/.claude/skills/monodesign/scripts/live-target.mjs +30 -0
  285. package/.claude/skills/monodesign/scripts/live-wrap.mjs +884 -0
  286. package/.claude/skills/monodesign/scripts/live.mjs +297 -0
  287. package/.claude/skills/monodesign/scripts/modern-screenshot.umd.js +14 -0
  288. package/.claude/skills/monodesign/scripts/palette.mjs +635 -0
  289. package/.claude/skills/monodesign/scripts/pin.mjs +221 -0
  290. package/.claude/skills/monodesign/shape.md +71 -0
  291. package/.claude/skills/monodesign/teach.md +18 -0
  292. package/.claude/skills/monodesign/typeset.md +59 -0
  293. package/.claude/skills/monolean-audit/SKILL.md +4 -6
  294. package/.claude/skills/monolean-help/SKILL.md +0 -1
  295. package/.claude/skills/monoswarm/SKILL.md +17 -17
  296. package/.claude/skills/pair-programming/SKILL.md +127 -1100
  297. package/README.md +28 -43
  298. package/dist/src/agents/registry-builder.d.ts +58 -22
  299. package/dist/src/agents/registry-builder.d.ts.map +1 -1
  300. package/dist/src/agents/registry-builder.js +41 -341
  301. package/dist/src/agents/registry-builder.js.map +1 -1
  302. package/dist/src/agents/registry-freshness.d.ts +4 -4
  303. package/dist/src/agents/registry-freshness.d.ts.map +1 -1
  304. package/dist/src/agents/registry-freshness.js +11 -60
  305. package/dist/src/agents/registry-freshness.js.map +1 -1
  306. package/dist/src/commands/doc.d.ts.map +1 -1
  307. package/dist/src/commands/doc.js +6 -15
  308. package/dist/src/commands/doc.js.map +1 -1
  309. package/dist/src/commands/doctor-pick-checks.d.ts +20 -3
  310. package/dist/src/commands/doctor-pick-checks.d.ts.map +1 -1
  311. package/dist/src/commands/doctor-pick-checks.js +138 -45
  312. package/dist/src/commands/doctor-pick-checks.js.map +1 -1
  313. package/dist/src/commands/doctor-project-checks.d.ts +2 -2
  314. package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
  315. package/dist/src/commands/doctor-project-checks.js +21 -17
  316. package/dist/src/commands/doctor-project-checks.js.map +1 -1
  317. package/dist/src/commands/doctor.d.ts.map +1 -1
  318. package/dist/src/commands/doctor.js +6 -4
  319. package/dist/src/commands/doctor.js.map +1 -1
  320. package/dist/src/commands/hooks-routing-commands.d.ts.map +1 -1
  321. package/dist/src/commands/hooks-routing-commands.js +4 -3
  322. package/dist/src/commands/hooks-routing-commands.js.map +1 -1
  323. package/dist/src/commands/init-upgrade.d.ts.map +1 -1
  324. package/dist/src/commands/init-upgrade.js +10 -0
  325. package/dist/src/commands/init-upgrade.js.map +1 -1
  326. package/dist/src/commands/init-wizard.d.ts.map +1 -1
  327. package/dist/src/commands/init-wizard.js +7 -2
  328. package/dist/src/commands/init-wizard.js.map +1 -1
  329. package/dist/src/commands/init.d.ts.map +1 -1
  330. package/dist/src/commands/init.js +27 -27
  331. package/dist/src/commands/init.js.map +1 -1
  332. package/dist/src/commands/monograph.d.ts.map +1 -1
  333. package/dist/src/commands/monograph.js +16 -21
  334. package/dist/src/commands/monograph.js.map +1 -1
  335. package/dist/src/commands/org.js +1 -1
  336. package/dist/src/commands/org.js.map +1 -1
  337. package/dist/src/commands/pick.d.ts.map +1 -1
  338. package/dist/src/commands/pick.js +4 -3
  339. package/dist/src/commands/pick.js.map +1 -1
  340. package/dist/src/decision/jev.d.ts +20 -0
  341. package/dist/src/decision/jev.d.ts.map +1 -1
  342. package/dist/src/decision/jev.js +12 -0
  343. package/dist/src/decision/jev.js.map +1 -1
  344. package/dist/src/decision/pick-eval.d.ts +23 -0
  345. package/dist/src/decision/pick-eval.d.ts.map +1 -1
  346. package/dist/src/decision/pick-eval.js +24 -1
  347. package/dist/src/decision/pick-eval.js.map +1 -1
  348. package/dist/src/decision/pick-real.d.ts +93 -0
  349. package/dist/src/decision/pick-real.d.ts.map +1 -0
  350. package/dist/src/decision/pick-real.js +253 -0
  351. package/dist/src/decision/pick-real.js.map +1 -0
  352. package/dist/src/decision/picks.d.ts +6 -0
  353. package/dist/src/decision/picks.d.ts.map +1 -1
  354. package/dist/src/decision/picks.js +34 -11
  355. package/dist/src/decision/picks.js.map +1 -1
  356. package/dist/src/init/claudemd-generator.d.ts.map +1 -1
  357. package/dist/src/init/claudemd-generator.js +1 -0
  358. package/dist/src/init/claudemd-generator.js.map +1 -1
  359. package/dist/src/init/copy-assets.d.ts.map +1 -1
  360. package/dist/src/init/copy-assets.js +17 -9
  361. package/dist/src/init/copy-assets.js.map +1 -1
  362. package/dist/src/init/embeddings-step.d.ts +23 -0
  363. package/dist/src/init/embeddings-step.d.ts.map +1 -0
  364. package/dist/src/init/embeddings-step.js +53 -0
  365. package/dist/src/init/embeddings-step.js.map +1 -0
  366. package/dist/src/init/executor.d.ts.map +1 -1
  367. package/dist/src/init/executor.js +35 -5
  368. package/dist/src/init/executor.js.map +1 -1
  369. package/dist/src/init/file-guard.d.ts +93 -0
  370. package/dist/src/init/file-guard.d.ts.map +1 -0
  371. package/dist/src/init/file-guard.js +239 -0
  372. package/dist/src/init/file-guard.js.map +1 -0
  373. package/dist/src/init/helpers-generator.d.ts +7 -0
  374. package/dist/src/init/helpers-generator.d.ts.map +1 -1
  375. package/dist/src/init/helpers-generator.js +13 -0
  376. package/dist/src/init/helpers-generator.js.map +1 -1
  377. package/dist/src/init/init-memory.d.ts +10 -0
  378. package/dist/src/init/init-memory.d.ts.map +1 -1
  379. package/dist/src/init/init-memory.js +44 -1
  380. package/dist/src/init/init-memory.js.map +1 -1
  381. package/dist/src/init/managed-block.d.ts +3 -1
  382. package/dist/src/init/managed-block.d.ts.map +1 -1
  383. package/dist/src/init/managed-block.js +9 -2
  384. package/dist/src/init/managed-block.js.map +1 -1
  385. package/dist/src/init/mcp-generator.d.ts +9 -0
  386. package/dist/src/init/mcp-generator.d.ts.map +1 -1
  387. package/dist/src/init/mcp-generator.js +28 -0
  388. package/dist/src/init/mcp-generator.js.map +1 -1
  389. package/dist/src/init/project-indexes.d.ts +19 -0
  390. package/dist/src/init/project-indexes.d.ts.map +1 -0
  391. package/dist/src/init/project-indexes.js +44 -0
  392. package/dist/src/init/project-indexes.js.map +1 -0
  393. package/dist/src/init/runtime-config-merge.d.ts +21 -0
  394. package/dist/src/init/runtime-config-merge.d.ts.map +1 -0
  395. package/dist/src/init/runtime-config-merge.js +88 -0
  396. package/dist/src/init/runtime-config-merge.js.map +1 -0
  397. package/dist/src/init/settings-generator.js +1 -1
  398. package/dist/src/init/settings-generator.js.map +1 -1
  399. package/dist/src/init/shared-instructions-generator.d.ts +3 -1
  400. package/dist/src/init/shared-instructions-generator.d.ts.map +1 -1
  401. package/dist/src/init/shared-instructions-generator.js +14 -39
  402. package/dist/src/init/shared-instructions-generator.js.map +1 -1
  403. package/dist/src/init/shared.d.ts +17 -2
  404. package/dist/src/init/shared.d.ts.map +1 -1
  405. package/dist/src/init/shared.js +39 -7
  406. package/dist/src/init/shared.js.map +1 -1
  407. package/dist/src/init/types.d.ts +22 -2
  408. package/dist/src/init/types.d.ts.map +1 -1
  409. package/dist/src/init/types.js +11 -3
  410. package/dist/src/init/types.js.map +1 -1
  411. package/dist/src/init/upgrade.d.ts +7 -0
  412. package/dist/src/init/upgrade.d.ts.map +1 -1
  413. package/dist/src/init/upgrade.js +60 -48
  414. package/dist/src/init/upgrade.js.map +1 -1
  415. package/dist/src/init/write-antigravity.d.ts +1 -0
  416. package/dist/src/init/write-antigravity.d.ts.map +1 -1
  417. package/dist/src/init/write-antigravity.js +28 -4
  418. package/dist/src/init/write-antigravity.js.map +1 -1
  419. package/dist/src/init/write-claude.d.ts.map +1 -1
  420. package/dist/src/init/write-claude.js +47 -23
  421. package/dist/src/init/write-claude.js.map +1 -1
  422. package/dist/src/init/write-kimicode.d.ts +27 -0
  423. package/dist/src/init/write-kimicode.d.ts.map +1 -1
  424. package/dist/src/init/write-kimicode.js +119 -92
  425. package/dist/src/init/write-kimicode.js.map +1 -1
  426. package/dist/src/init/write-opencode.d.ts.map +1 -1
  427. package/dist/src/init/write-opencode.js +45 -6
  428. package/dist/src/init/write-opencode.js.map +1 -1
  429. package/dist/src/init/write-runtime-config.d.ts.map +1 -1
  430. package/dist/src/init/write-runtime-config.js +108 -81
  431. package/dist/src/init/write-runtime-config.js.map +1 -1
  432. package/dist/src/knowledge/eval/golden-set.js +0 -15
  433. package/dist/src/knowledge/eval/golden-set.js.map +1 -1
  434. package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -1
  435. package/dist/src/mcp-tools/embeddings-tools.js +14 -5
  436. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  437. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
  438. package/dist/src/mcp-tools/hooks-routing.js +4 -3
  439. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  440. package/dist/src/mcp-tools/monograph/build-tools.d.ts.map +1 -1
  441. package/dist/src/mcp-tools/monograph/build-tools.js +16 -9
  442. package/dist/src/mcp-tools/monograph/build-tools.js.map +1 -1
  443. package/dist/src/mcp-tools/org-skill-tools.d.ts.map +1 -1
  444. package/dist/src/mcp-tools/org-skill-tools.js +6 -2
  445. package/dist/src/mcp-tools/org-skill-tools.js.map +1 -1
  446. package/dist/src/mcp-tools/pick-tools.d.ts.map +1 -1
  447. package/dist/src/mcp-tools/pick-tools.js +13 -4
  448. package/dist/src/mcp-tools/pick-tools.js.map +1 -1
  449. package/dist/src/memory/embedding-operations.d.ts +0 -4
  450. package/dist/src/memory/embedding-operations.d.ts.map +1 -1
  451. package/dist/src/memory/embedding-operations.js +11 -85
  452. package/dist/src/memory/embedding-operations.js.map +1 -1
  453. package/dist/src/memory/memory-bridge.d.ts +7 -0
  454. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  455. package/dist/src/memory/memory-bridge.js +15 -0
  456. package/dist/src/memory/memory-bridge.js.map +1 -1
  457. package/dist/src/orgrt/bash-timeout.d.ts +17 -0
  458. package/dist/src/orgrt/bash-timeout.d.ts.map +1 -1
  459. package/dist/src/orgrt/bash-timeout.js +15 -0
  460. package/dist/src/orgrt/bash-timeout.js.map +1 -1
  461. package/dist/src/orgrt/session.d.ts.map +1 -1
  462. package/dist/src/orgrt/session.js +5 -2
  463. package/dist/src/orgrt/session.js.map +1 -1
  464. package/dist/src/orgrt/task-match.d.ts +3 -1
  465. package/dist/src/orgrt/task-match.d.ts.map +1 -1
  466. package/dist/src/orgrt/task-match.js +12 -4
  467. package/dist/src/orgrt/task-match.js.map +1 -1
  468. package/dist/src/platform-adapters/merge.d.ts +4 -3
  469. package/dist/src/platform-adapters/merge.d.ts.map +1 -1
  470. package/dist/src/platform-adapters/merge.js +18 -8
  471. package/dist/src/platform-adapters/merge.js.map +1 -1
  472. package/dist/src/platform-adapters/mutation.d.ts +6 -1
  473. package/dist/src/platform-adapters/mutation.d.ts.map +1 -1
  474. package/dist/src/platform-adapters/mutation.js +9 -3
  475. package/dist/src/platform-adapters/mutation.js.map +1 -1
  476. package/dist/src/platform-adapters/operations.d.ts.map +1 -1
  477. package/dist/src/platform-adapters/operations.js +14 -6
  478. package/dist/src/platform-adapters/operations.js.map +1 -1
  479. package/dist/src/platform-adapters/types.d.ts +5 -0
  480. package/dist/src/platform-adapters/types.d.ts.map +1 -1
  481. package/dist/src/routing/agent-pick.d.ts +9 -7
  482. package/dist/src/routing/agent-pick.d.ts.map +1 -1
  483. package/dist/src/routing/agent-pick.js +17 -17
  484. package/dist/src/routing/agent-pick.js.map +1 -1
  485. package/dist/tsconfig.tsbuildinfo +1 -1
  486. package/package.json +6 -6
  487. package/.claude/skills/github-issue-triage/SKILL.md +0 -354
  488. package/.claude/skills/github-repo-recap/SKILL.md +0 -207
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mastermind-orgstatus
3
- description: Mastermind orgstatus — show detailed status for a single org including lifecycle state, schedule, last/next run, recent activity, and roles. For scheduled orgs shows loop health and time until next iteration.
3
+ description: Mastermind orgstatus — show detailed status for a single org including runtime state, schedule, config health, pending approvals, recent activity, and roles.
4
4
  type: domain-skill
5
5
  default_mode: auto
6
6
  pick: low
@@ -40,32 +40,20 @@ orgFile=".monomind/orgs/${org_name}.json"
40
40
 
41
41
  ## Step 2 — Extract Fields
42
42
 
43
- An org is **v2** (Org Runtime v2 — the default since 2026-07) when it has no
44
- `.loop` block; its schedule is the top-level `schedule` field and its live state
45
- is `.monomind/orgs/<name>/runtime.json`. Only legacy v1 orgs have `.loop`,
46
- `topology`, `board_id`, or `agent_type` on roles.
43
+ An org's schedule is the top-level `schedule` field and its live state is
44
+ `.monomind/orgs/<name>/runtime.json`. A config file that still carries
45
+ `topology`, `board_id`, `loop`, or `agent_type` on roles is in the legacy
46
+ format: `monomind org run` converts it in memory (with a deprecation warning),
47
+ and `monomind org migrate <name>` rewrites the file.
47
48
 
48
49
  ```bash
49
50
  name=$(jq -r '.name // "(unnamed)"' "$orgFile")
50
51
  goal=$(jq -r '.goal // "(no goal set)"' "$orgFile")
51
- status=$(jq -r '.status // "no-schedule"' "$orgFile")
52
52
  role_count=$(jq '.roles | length' "$orgFile")
53
53
  created_at=$(jq -r '.created_at // "-"' "$orgFile")
54
-
55
- has_schedule=$(jq -r 'if .loop.poll_interval_minutes then "yes" else "no" end' "$orgFile")
56
-
57
- # v2 fields
58
- is_v2=$([ "$has_schedule" = "no" ] && echo yes || echo no)
59
- v2_schedule=$(jq -r '.schedule // empty' "$orgFile")
54
+ schedule=$(jq -r '.schedule // empty' "$orgFile")
60
55
  budget=$(jq -r '.run_config.budget_tokens // 1000000' "$orgFile")
61
-
62
- # LEGACY-ORG-V1: remove this block when v1 orgs are gone
63
- # v1 loop fields (legacy scheduled orgs only)
64
- poll_interval=$(jq -r '.loop.poll_interval_minutes // ""' "$orgFile")
65
- last_run=$(jq -r '.loop.last_run // "never"' "$orgFile")
66
- next_run=$(jq -r '.loop.next_run // "not scheduled"' "$orgFile")
67
- run_prompt_file=$(jq -r '.loop.run_prompt_file // ""' "$orgFile")
68
- # end LEGACY-ORG-V1 loop-fields block
56
+ legacy_format=$(jq -r 'if has("topology") or has("board_id") or has("loop") or ([.roles[]? | has("agent_type")] | any) then "yes" else "no" end' "$orgFile")
69
57
 
70
58
  rtFile=".monomind/orgs/${org_name}/runtime.json"
71
59
  rt_status=$(jq -r '.status // "never run"' "$rtFile" 2>/dev/null || echo "never run")
@@ -90,88 +78,36 @@ echo " Created: $created_at"
90
78
  echo " Roles: $role_count"
91
79
  echo ""
92
80
 
93
- if [ "$is_v2" = "yes" ]; then
94
- echo "RUNTIME (Org Runtime v2)"
95
- echo "────────────────────────"
96
- echo " Status: $rt_status${rt_run:+ (run $rt_run)}"
97
- echo " Updated: $rt_updated"
98
- echo " Schedule: ${v2_schedule:-manual — run with: monomind org run $name}"
99
- echo " Budget: $budget tokens (split across roles)"
100
- echo ""
101
- fi
102
-
103
- # LEGACY-ORG-V1: remove this block when v1 orgs are gone
104
- if [ "$has_schedule" = "yes" ]; then
105
- echo "SCHEDULED LOOP"
106
- echo "──────────────"
107
-
108
- case "$status" in
109
- active) echo " Status: ● ACTIVE — loop is running" ;;
110
- stopped) echo " Status: ○ STOPPED — loop is not running" ;;
111
- paused) echo " Status: ⏸ PAUSED — loop is alive but skipping iterations (HIL gate)" ;;
112
- *) echo " Status: ? $status" ;;
113
- esac
114
-
115
- echo " Interval: every ${poll_interval} minutes"
116
- echo " Last run: $last_run"
117
- echo " Next run: $next_run"
118
- echo " Prompt: $run_prompt_file"
119
- echo ""
120
- fi
81
+ echo "RUNTIME"
82
+ echo "───────"
83
+ echo " Status: $rt_status${rt_run:+ (run $rt_run)}"
84
+ echo " Updated: $rt_updated"
85
+ echo " Schedule: ${schedule:-manual — run with: monomind org run $name}"
86
+ echo " Budget: $budget tokens (split across roles)"
87
+ echo ""
121
88
 
122
89
  echo "ROLES"
123
90
  echo "─────"
124
- jq -r '(.roles // [])[] | " • [\(.id)] \(.title // .id) → \(.agent_type // .type // "specialist") (reports to: \(.reports_to // "top"))"' "$orgFile"
91
+ jq -r '(.roles // [])[] | " • [\(.id)] \(.title // .id) → \(.type // .agent_type // "specialist") (reports to: \(.reports_to // "top"))"' "$orgFile"
125
92
  echo ""
126
93
 
127
94
  echo "HEALTH"
128
95
  echo "──────"
129
-
130
- if [ "$is_v2" = "yes" ]; then
131
- # v2 health = does the config still start? (schema + structural invariants)
132
- npx -y monomind@latest org validate "$name" >/dev/null 2>&1 \
133
- && echo " Config: ✓ valid (monomind org validate)" \
134
- || echo " Config: ✗ INVALID — run: monomind org validate $name"
135
- else
136
- # LEGACY-ORG-V1: remove this branch when v1 orgs are gone
137
- # v1 health: board / column IDs
138
- board_id=$(jq -r '.board_id // ""' "$orgFile")
139
- todo_col=$(jq -r '.todo_col_id // ""' "$orgFile")
140
- doing_col=$(jq -r '.doing_col_id // ""' "$orgFile")
141
- done_col=$(jq -r '.done_col_id // ""' "$orgFile")
142
- if [ -n "$board_id" ] && [ -n "$todo_col" ] && [ -n "$doing_col" ] && [ -n "$done_col" ]; then
143
- echo " Board: ✓ task board configured (${board_id})"
144
- else
145
- echo " Board: ✗ task board IDs missing — re-run /mastermind:createorg --name ${name} to rebuild"
146
- fi
147
- fi
148
-
149
- # LEGACY-ORG-V1: remove this branch when v1 orgs are gone
150
- # Pending approvals
151
- approvalsFile=".monomind/orgs/${org_name}-approvals.json"
152
- if [ -f "$approvalsFile" ]; then
153
- pending=$(jq '(.approvals // []) | map(select(.status == "pending")) | length' "$approvalsFile")
154
- [ "$pending" -gt 0 ] \
155
- && echo " Approvals: ⚠ ${pending} pending — /mastermind:approvev1 --org ${name} --action list" \
156
- || echo " Approvals: ✓ none pending"
157
- else
158
- echo " Approvals: ✓ no approvals file"
159
- fi
160
-
161
- # Stop file (pending stop signal) — v2 daemons poll <org>/stop; v1 used .stops/
162
- [ -f ".monomind/orgs/${org_name}/stop" ] && echo " Stop file: ⚠ PRESENT (v2) — daemon will exit within 2s of seeing it"
163
- # LEGACY-ORG-V1: remove this check when v1 orgs are gone
164
- [ -f ".monomind/orgs/.stops/${org_name}.stop" ] && echo " Stop file: ⚠ PRESENT (v1 legacy path)"
165
-
166
- # LEGACY-ORG-V1: remove this block when v1 orgs are gone
167
- # Loop prompt file (scheduled orgs)
168
- if [ "$has_schedule" = "yes" ]; then
169
- if [ -n "$run_prompt_file" ] && [ -f "$run_prompt_file" ]; then
170
- echo " Loop prompt: ✓ exists (${run_prompt_file})"
171
- else
172
- echo " Loop prompt: ✗ MISSING — scheduled org cannot self-perpetuate; re-create org or write prompt to ${run_prompt_file}"
173
- fi
174
- fi
96
+ # health = does the config still start? (schema + structural invariants)
97
+ npx -y monomind@latest org validate "$name" >/dev/null 2>&1 \
98
+ && echo " Config: ✓ valid (monomind org validate)" \
99
+ || echo " Config: ✗ INVALID — run: monomind org validate $name"
100
+ [ "$legacy_format" = "yes" ] \
101
+ && echo " Format: ⚠ legacy config format — convert with: monomind org migrate $name"
102
+
103
+ # Pending tool approvals (the runtime's queue: .monomind/orgs/<name>/approvals.json)
104
+ pending=$(jq '[(.approvals // [])[] | select(.approved == null)] | length' ".monomind/orgs/${org_name}/approvals.json" 2>/dev/null || echo 0)
105
+ [ "$pending" -gt 0 ] \
106
+ && echo " Approvals: ⚠ ${pending} pending — monomind org approvals ${name}" \
107
+ || echo " Approvals: ✓ none pending"
108
+
109
+ # Stop file (pending stop signal) — the daemon polls <org>/stop
110
+ [ -f ".monomind/orgs/${org_name}/stop" ] && echo " Stop file: ⚠ PRESENT — daemon will exit within 2s of seeing it"
175
111
  echo ""
176
112
  ```
177
113
 
@@ -180,31 +116,15 @@ echo ""
180
116
  ## Step 4 — Show Recent Activity (if available)
181
117
 
182
118
  ```bash
183
- if [ "$is_v2" = "yes" ]; then
184
- # v2: the durable record is bus.jsonl inside the most recent run directory
185
- latest_bus=$(ls -t .monomind/orgs/"${org_name}"/run-*/bus.jsonl 2>/dev/null | head -1)
186
- if [ -n "$latest_bus" ]; then
187
- echo "RECENT ACTIVITY (last 5 bus events — $(dirname "$latest_bus" | xargs basename))"
188
- echo "────────────────────────"
189
- tail -5 "$latest_bus" | while IFS= read -r line; do
190
- echo "$line" | jq -r '" \(.ts // "" | if type=="number" then (./1000 | todate) else . end) \(.type // "") \(.from // "")\(if .to then " → " + .to else "" end) \(.msg // .tool // "" | tostring | .[0:60])"' 2>/dev/null
191
- done
192
- echo ""
193
- fi
194
- else
195
- # LEGACY-ORG-V1: remove this branch when v1 orgs are gone
196
- activityFile=".monomind/orgs/${org_name}-activity.jsonl"
197
- if [ -f "$activityFile" ]; then
198
- echo "RECENT ACTIVITY (last 5)"
199
- echo "────────────────────────"
200
- tail -5 "$activityFile" | while IFS= read -r line; do
201
- ts=$(echo "$line" | jq -r '.ts // ""')
202
- type=$(echo "$line" | jq -r '.type // ""')
203
- pending=$(echo "$line" | jq -r '.pending // ""')
204
- echo " $ts $type ${pending:+pending=$pending}"
205
- done
206
- echo ""
207
- fi
119
+ # the durable record is bus.jsonl inside the most recent run directory
120
+ latest_bus=$(ls -t .monomind/orgs/"${org_name}"/run-*/bus.jsonl 2>/dev/null | head -1)
121
+ if [ -n "$latest_bus" ]; then
122
+ echo "RECENT ACTIVITY (last 5 bus events — $(dirname "$latest_bus" | xargs basename))"
123
+ echo "────────────────────────"
124
+ tail -5 "$latest_bus" | while IFS= read -r line; do
125
+ echo "$line" | jq -r '" \(.ts // "" | if type=="number" then (./1000 | todate) else . end) \(.type // "") \(.from // "")\(if .to then " → " + .to else "" end) \(.msg // .tool // "" | tostring | .[0:60])"' 2>/dev/null
126
+ done
127
+ echo ""
208
128
  fi
209
129
  ```
210
130
 
@@ -215,26 +135,15 @@ fi
215
135
  ```bash
216
136
  echo "ACTIONS"
217
137
  echo "───────"
218
- if [ "$is_v2" = "yes" ]; then
219
- case "$rt_status" in
220
- running*) echo " Stop: monomind org stop $name" ;;
221
- crashed*) echo " Close out: monomind org mark-complete $name" ;;
222
- *) echo " Run: monomind org run $name${v2_schedule:+ (or host on schedule: monomind org serve)}" ;;
223
- esac
224
- echo " Logs: monomind org logs $name --follow"
225
- echo " Report: monomind org report $name (add --all for run history)"
226
- echo " Validate: monomind org validate $name"
227
- echo " Settings: /mastermind-org-settings --org $name"
228
- # LEGACY-ORG-V1: remove the next two branches when v1 orgs are gone
229
- elif [ "$has_schedule" = "yes" ]; then
230
- case "$status" in
231
- active|paused) echo " Stop loop: /mastermind:stoporg --org $name" ;;
232
- stopped) echo " Start loop: /mastermind:runorg --org $name (v1 config — will auto-migrate)" ;;
233
- esac
234
- echo " Edit prompt: \$EDITOR $run_prompt_file"
235
- else
236
- echo " Run org: /mastermind:runorg --org $name (v1 config — will auto-migrate)"
237
- fi
138
+ case "$rt_status" in
139
+ running*) echo " Stop: monomind org stop $name" ;;
140
+ crashed*) echo " Close out: monomind org mark-complete $name" ;;
141
+ *) echo " Run: monomind org run $name${schedule:+ (or host on schedule: monomind org serve)}" ;;
142
+ esac
143
+ echo " Logs: monomind org logs $name --follow"
144
+ echo " Report: monomind org report $name (add --all for run history)"
145
+ echo " Validate: monomind org validate $name"
146
+ echo " Settings: /mastermind-org-settings --org $name"
238
147
  echo " All orgs: /mastermind:orgs"
239
148
  echo ""
240
149
  ```
@@ -83,7 +83,7 @@ echo "Total: $count plugin(s)"
83
83
  Show example/available plugins from the monomind registry:
84
84
 
85
85
  ```bash
86
- echo "AVAILABLE PLUGINS (monomind registry)"
86
+ echo "AVAILABLE PLUGINS — monomind registry"
87
87
  echo "──────────────────────────────────────"
88
88
  cat <<'EXAMPLES'
89
89
  @monomind/plugin-sentry — Error tracking and alerting
@@ -113,8 +113,16 @@ OUTPUT FORMAT: unified output schema"
113
113
 
114
114
  STEP 3 — EXECUTE
115
115
  Spawn Task agents in release order (hierarchical raft — coordinator maintains authoritative release state).
116
- Pick one specialist per release stage from the shared agent index (the Jev decision model when configured, keyword ranking otherwise); it only returns agents that exist. In order: the prompt's `[PICK]` line when it fits this release stage; else `mcp__monomind__pick({ task: "<release stage>: <scope>", kind: "agents", top: 1 })` → `agents.ranked[0].name`; else the local CLI through the version-checked `mmpick` helper from `mastermind-agent-select/SKILL.md` (never npx):
116
+ Pick one specialist per release stage from the shared agent index (the Jev decision model when configured, keyword ranking otherwise); it only returns agents that exist. In order: the prompt's `[PICK]` line when it fits this release stage; else `mcp__monomind__pick({ task: "<release stage>: <scope>", kind: "agents", top: 1 })` → `agents.ranked[0].name`; else the local CLI through the version-checked `mmpick` helper (never npx; the block defines it because each Bash call starts a fresh shell):
117
117
  ```bash
118
+ # Local only — never npx. Accept a binary only when its pick output is the
119
+ # unified index (skill entries carry `source`); see mastermind-agent-select.
120
+ mmpick() { for c in monomind ./node_modules/.bin/monomind; do
121
+ command -v "$c" >/dev/null 2>&1 || continue
122
+ out=$("$c" pick "$@" --json 2>/dev/null) || continue
123
+ printf '%s' "$out" | jq -e '[.skills.ranked[]? | has("source")] | (length > 0 and all)' \
124
+ >/dev/null 2>&1 && { printf '%s\n' "$out"; return 0; }
125
+ done; return 127; }
118
126
  mmpick -t "<release stage>: <scope>" --top 1 | jq -r '.agents.ranked[0].name // empty'
119
127
  ```
120
128
  Use the returned name as that release stage's subagent_type. If nothing is returned, use the default below.
@@ -113,8 +113,16 @@ OUTPUT FORMAT: unified output schema"
113
113
 
114
114
  STEP 3 — EXECUTE
115
115
  Spawn one Task agent per research stream (mesh topology — findings cross-pollinate).
116
- Pick one specialist per research stream from the shared agent index (the Jev decision model when configured, keyword ranking otherwise); it only returns agents that exist. In order: the prompt's `[PICK]` line when it fits this research stream; else `mcp__monomind__pick({ task: "<research stream>: <scope>", kind: "agents", top: 1 })` → `agents.ranked[0].name`; else the local CLI through the version-checked `mmpick` helper from `mastermind-agent-select/SKILL.md` (never npx):
116
+ Pick one specialist per research stream from the shared agent index (the Jev decision model when configured, keyword ranking otherwise); it only returns agents that exist. In order: the prompt's `[PICK]` line when it fits this research stream; else `mcp__monomind__pick({ task: "<research stream>: <scope>", kind: "agents", top: 1 })` → `agents.ranked[0].name`; else the local CLI through the version-checked `mmpick` helper (never npx; the block defines it because each Bash call starts a fresh shell):
117
117
  ```bash
118
+ # Local only — never npx. Accept a binary only when its pick output is the
119
+ # unified index (skill entries carry `source`); see mastermind-agent-select.
120
+ mmpick() { for c in monomind ./node_modules/.bin/monomind; do
121
+ command -v "$c" >/dev/null 2>&1 || continue
122
+ out=$("$c" pick "$@" --json 2>/dev/null) || continue
123
+ printf '%s' "$out" | jq -e '[.skills.ranked[]? | has("source")] | (length > 0 and all)' \
124
+ >/dev/null 2>&1 && { printf '%s\n' "$out"; return 0; }
125
+ done; return 127; }
118
126
  mmpick -t "<research stream>: <scope>" --top 1 | jq -r '.agents.ranked[0].name // empty'
119
127
  ```
120
128
  Use the returned name as that research stream's subagent_type. If nothing is returned, use the default below.
@@ -124,8 +124,16 @@ OUTPUT FORMAT: unified output schema"
124
124
 
125
125
  STEP 3 — EXECUTE
126
126
  Spawn one Task agent per review angle (mesh topology — reviewers share findings).
127
- Pick one specialist per review angle from the shared agent index (the Jev decision model when configured, keyword ranking otherwise); it only returns agents that exist. In order: the prompt's `[PICK]` line when it fits this review angle; else `mcp__monomind__pick({ task: "<review angle>: <scope>", kind: "agents", top: 1 })` → `agents.ranked[0].name`; else the local CLI through the version-checked `mmpick` helper from `mastermind-agent-select/SKILL.md` (never npx):
127
+ Pick one specialist per review angle from the shared agent index (the Jev decision model when configured, keyword ranking otherwise); it only returns agents that exist. In order: the prompt's `[PICK]` line when it fits this review angle; else `mcp__monomind__pick({ task: "<review angle>: <scope>", kind: "agents", top: 1 })` → `agents.ranked[0].name`; else the local CLI through the version-checked `mmpick` helper (never npx; the block defines it because each Bash call starts a fresh shell):
128
128
  ```bash
129
+ # Local only — never npx. Accept a binary only when its pick output is the
130
+ # unified index (skill entries carry `source`); see mastermind-agent-select.
131
+ mmpick() { for c in monomind ./node_modules/.bin/monomind; do
132
+ command -v "$c" >/dev/null 2>&1 || continue
133
+ out=$("$c" pick "$@" --json 2>/dev/null) || continue
134
+ printf '%s' "$out" | jq -e '[.skills.ranked[]? | has("source")] | (length > 0 and all)' \
135
+ >/dev/null 2>&1 && { printf '%s\n' "$out"; return 0; }
136
+ done; return 127; }
129
137
  mmpick -t "<review angle>: <scope>" --top 1 | jq -r '.agents.ranked[0].name // empty'
130
138
  ```
131
139
  Use the returned name as that review angle's subagent_type. If nothing is returned, use the default below.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mastermind-routine-detail
3
- description: Mastermind routine-detail — deep inspection and management of a single routine: trigger config (schedule/webhook), variables, concurrency/catchup policies, run history, webhook rotation, and revision tracking.
3
+ description: "Mastermind routine-detail — deep inspection and management of a single routine: trigger config (schedule/webhook), variables, concurrency/catchup policies, run history, webhook rotation, and revision tracking."
4
4
  type: domain-skill
5
5
  default_mode: auto
6
6
  pick: low
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: mastermind-runorg
3
- description: Start a saved org via the Org Runtime v2 daemon (monomind org run/serve). Migrates v1-shaped configs first. The legacy prompt-orchestrated path lives in runorgv1.
3
+ description: Start a saved org via the Org Runtime daemon (monomind org run/serve). Converts legacy-format config files with monomind org migrate first.
4
4
  type: domain-skill
5
5
  default_mode: auto
6
6
  ---
7
7
 
8
- # Mastermind Runorg (v2)
8
+ # Mastermind Runorg
9
9
 
10
- Starts orgs exclusively through the v2 SDK daemon. Every role becomes a live
10
+ Starts orgs through the Org Runtime SDK daemon. Every role becomes a live
11
11
  SDK session; events reach the dashboard through the daemon's own forwarder —
12
12
  no curl emissions, no delivery gaps.
13
13
 
@@ -15,17 +15,18 @@ no curl emissions, no delivery gaps.
15
15
 
16
16
  1. **Resolve the org.** `org_name` from params. List available orgs when missing:
17
17
  `monomind org list`.
18
- 2. **Shape-detect v1.** Do NOT rely on `monomind org validate` to catch v1
19
- configs — a v1-shaped config with no structural violations (unique role
20
- ids, one root, resolvable `reports_to`, parseable schedule) *passes*
21
- schema validation even though it's still v1. Detect v1-ness directly:
18
+ 2. **Detect the legacy config format.** Do NOT rely on `monomind org validate`
19
+ to catch legacy-format config files — one with no structural violations
20
+ (unique role ids, one root, resolvable `reports_to`, parseable schedule)
21
+ *passes* schema validation even though it still carries legacy fields.
22
+ Detect them directly:
22
23
  `jq 'has("topology") or has("board_id") or has("loop") or ([.roles[]? | has("agent_type")] | any)' .monomind/orgs/<name>.json`
23
24
  - `true` → step 3 (migrate first).
24
25
  - `false` → step 4 (validate as-is).
25
- 3. **Migrate (v1 configs).** `monomind org migrate <name>` — original is kept
26
- as `<name>.v1.json`. In confirm mode ask first; in auto mode migrate and
27
- state it. If migration fails, stop and surface the error — do NOT fall back
28
- to runorgv1 silently.
26
+ 3. **Migrate (legacy-format configs).** `monomind org migrate <name>` rewrites
27
+ the file in the current format — the original is kept as `<name>.v1.json`.
28
+ In confirm mode ask first; in auto mode migrate and state it. If migration
29
+ fails, stop and surface the error.
29
30
  4. **Validate.** Run `monomind org validate <name>` on the config (post-migration
30
31
  if step 3 ran).
31
32
  - Valid → step 5.
@@ -55,8 +56,7 @@ no curl emissions, no delivery gaps.
55
56
  `running`. Surface the dashboard link (`<CTRL_URL>/orgs`) and
56
57
  `monomind org logs <name> --follow` as the tail command.
57
58
  8. **Never** spawn a boss Task agent, create monotask boards, or emit
58
- dashboard events manually. If the user explicitly asks for the legacy
59
- behavior, direct them to `/mastermind:runorgv1` (deprecated).
59
+ dashboard events manually. The org daemon is the only way an org runs.
60
60
 
61
61
  The org runtime does not read `<org>-issues.json`. Work is driven by the org
62
62
  definition's roles and goal plus an optional `--task` string.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mastermind-stoporg
3
- description: Mastermind stoporg — stop a running scheduled org loop by setting its status to "stopped". The next scheduled wakeup will read the status, skip all work, and not reschedule. Loop dies within one interval — no orphaned wakeups.
3
+ description: Mastermind stoporg — stop a running org. Wraps monomind org stop, which writes the stop file the org daemon polls; the daemon exits within about 2 seconds.
4
4
  type: domain-skill
5
5
  default_mode: auto
6
6
  pick: low
@@ -37,15 +37,8 @@ orgFile=".monomind/orgs/${org_name}.json"
37
37
  }
38
38
  ```
39
39
 
40
- Read current status:
41
- ```bash
42
- current_status=$(jq -r '.status // "no-schedule"' "$orgFile")
43
- has_schedule=$(jq -r 'if .loop.poll_interval_minutes then "yes" else "no" end' "$orgFile")
44
- ```
45
-
46
- If `has_schedule == "no"` — this is a **v2 org** (Org Runtime v2 has `schedule`,
47
- never `.loop`). Its daemon polls `.monomind/orgs/<name>/stop` every 2s, which is
48
- exactly what `monomind org stop` writes — use the CLI, not the v1 `.stops/` path:
40
+ The org daemon polls `.monomind/orgs/<name>/stop` every 2s, which is exactly
41
+ what `monomind org stop` writes — use the CLI:
49
42
 
50
43
  ```bash
51
44
  REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
@@ -54,67 +47,19 @@ npx -y monomind@latest org stop "${org_name}" \
54
47
  || { mkdir -p ".monomind/orgs/${org_name}"; date -u +%Y-%m-%dT%H:%M:%SZ > ".monomind/orgs/${org_name}/stop"; }
55
48
  # Also POST to the control server in case a dashboard-started instance is running
56
49
  curl -s -X POST -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" "${CTRL_URL}/api/orgs/${org_name}/stop" >/dev/null 2>&1 || true
57
- echo "Stop requested for org '${org_name}' (v2 daemon exits within 2s)."
58
- ```
59
- - Exit.
60
-
61
- <!-- LEGACY-ORG-V1: remove this branch when v1 orgs are gone -->
62
- Everything below this point only runs for v1 orgs — v2 orgs already exited above.
63
-
64
- If `current_status == "stopped"`:
65
- - Print: "Org '<org_name>' is already stopped."
66
- - Exit.
67
-
68
- ---
69
-
70
- <!-- LEGACY-ORG-V1: remove this step when v1 orgs are gone -->
71
- ## Step 2 — Set Status to Stopped and Clear next_run (v1 only)
72
-
73
- ```bash
74
- orgFile=".monomind/orgs/${org_name}.json"
75
- tmp="${orgFile}.tmp"
76
- # Clear next_run to avoid showing a stale future timestamp in orgstatus
77
- jq '.status = "stopped" | if .loop then .loop.next_run = null else . end' "$orgFile" > "$tmp" && mv "$tmp" "$orgFile"
78
- ```
79
-
80
- ---
81
-
82
- <!-- LEGACY-ORG-V1: remove this step when v1 orgs are gone -->
83
- ## Step 3 — Write Stop File (for any running boss agents, v1 only)
84
-
85
- Any persistent boss agent checks for this file at the start of each loop iteration:
86
-
87
- ```bash
88
- mkdir -p .monomind/orgs/.stops
89
- touch ".monomind/orgs/.stops/${org_name}.stop"
90
- ```
91
-
92
- ---
93
-
94
- <!-- LEGACY-ORG-V1: remove this step when v1 orgs are gone -->
95
- ## Step 5 — Report to User (v1 only)
96
-
97
- ```
98
- ✓ Org "<org_name>" stopped.
99
-
100
- Current status: stopped
101
- The loop will exit at its next scheduled wakeup without rescheduling.
102
- Loop fully dead within: ≤$(jq -r '.loop.poll_interval_minutes // "?"' "$orgFile") minutes
103
-
104
- To restart: /mastermind:runorg --org <org_name>
105
- Status: /mastermind:orgstatus --org <org_name>
50
+ echo "Stop requested for org '${org_name}' (the daemon exits within 2s)."
106
51
  ```
107
52
 
108
53
  ---
109
54
 
110
- ## Step 6 — Return Output
55
+ ## Step 2 — Return Output
111
56
 
112
57
  ```yaml
113
58
  domain: ops
114
59
  status: complete
115
60
  decisions:
116
61
  - what: "Org <org_name> stopped"
117
- why: "status set to 'stopped'; next wakeup exits without rescheduling"
62
+ why: "stop file written; the org daemon exits within 2s"
118
63
  confidence: 1.0
119
64
  outcome: shipped
120
65
  next_actions:
@@ -124,6 +69,6 @@ next_actions:
124
69
 
125
70
  ---
126
71
 
127
- ## Step 7 — Brain Write (standalone only)
72
+ ## Step 3 — Brain Write (standalone only)
128
73
 
129
74
  If `caller` is not "command", follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `ops`.
@@ -6,10 +6,10 @@ default_mode: auto
6
6
  pick: low
7
7
  ---
8
8
 
9
- > **LEGACY-ORG-V1 — writes to a monotask board, not to `<org>-issues.json`.** This skill's
10
- > `parent_id`, `status` (`todo | doing | done`), and card model belong to the pre-v2
11
- > board-backed runner. For v2 issue tracking — including sub-issues — use
12
- > `/mastermind-issues --action create --parent-id <id>`.
9
+ > **Writes to a monotask board, not to `<org>-issues.json`.** This skill only works
10
+ > on an org config that still carries a monotask `board_id` (the legacy config
11
+ > format); the Org Runtime never reads that board. For org issue tracking —
12
+ > including sub-issues — use `/mastermind-issues --action create --parent-id <id>`.
13
13
 
14
14
  # Mastermind Tasks
15
15
 
@@ -41,16 +41,14 @@ If `caller` is not "command", load brain context following mastermind-protocol/S
41
41
  ## Step 1 — Load Org Config
42
42
 
43
43
  ```bash
44
- # LEGACY-ORG-V1: this whole board/column lookup is the pre-v2 board-backed
45
- # task model — boards belong to the legacy v1 runner, see runorgv1.
44
+ # board/column ids only exist on legacy-format org configs
46
45
  orgFile=".monomind/orgs/${org_name}.json"
47
46
  board_id=$(jq -r '.board_id // empty' "$orgFile")
48
47
  todo_col=$(jq -r '.todo_col_id // empty' "$orgFile")
49
48
  doing_col=$(jq -r '.doing_col_id // empty' "$orgFile")
50
49
  done_col=$(jq -r '.done_col_id // empty' "$orgFile")
51
50
 
52
- [ -z "$board_id" ] && { echo "ERROR: org config missing board_id — boards belong to the legacy v1 runner, see runorgv1."; exit 1; }
53
- # end LEGACY-ORG-V1
51
+ [ -z "$board_id" ] && { echo "ERROR: org config has no board_id — the Org Runtime does not use monotask boards. Use /mastermind-issues for org issues."; exit 1; }
54
52
  ```
55
53
 
56
54
  ---