@monoes/monomindcli 1.18.15 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (511) hide show
  1. package/.claude/agents/core/researcher.md +29 -24
  2. package/.claude/agents/github/code-review-swarm.md +1 -1
  3. package/.claude/agents/github/github-modes.md +1 -1
  4. package/.claude/agents/github/issue-tracker.md +1 -3
  5. package/.claude/agents/github/multi-repo-swarm.md +1 -1
  6. package/.claude/agents/github/pr-manager.md +1 -3
  7. package/.claude/agents/github/project-board-sync.md +1 -1
  8. package/.claude/agents/github/release-manager.md +1 -1
  9. package/.claude/agents/github/repo-architect.md +4 -12
  10. package/.claude/agents/github/swarm-issue.md +1 -1
  11. package/.claude/agents/github/swarm-pr.md +1 -1
  12. package/.claude/agents/github/sync-coordinator.md +1 -1
  13. package/.claude/agents/github/workflow-automation.md +1 -1
  14. package/.claude/agents/goal/goal-planner.md +1 -2
  15. package/.claude/agents/specialized/specialized-workflow-architect.md +11 -14
  16. package/.claude/agents/testing/production-validator.md +8 -7
  17. package/.claude/agents/testing/testing-evidence-collector.md +3 -1
  18. package/.claude/commands/github/issue-tracker.md +0 -2
  19. package/.claude/commands/github/pr-manager.md +0 -2
  20. package/.claude/commands/github/repo-architect.md +3 -10
  21. package/.claude/commands/mastermind/code-review.md +4 -4
  22. package/.claude/commands/mastermind/help.md +5 -5
  23. package/.claude/commands/mastermind/okf-export.md +14 -0
  24. package/.claude/commands/mastermind/okf-import.md +15 -0
  25. package/.claude/commands/workflows/README.md +0 -1
  26. package/.claude/commands/workflows/workflow-create.md +0 -1
  27. package/.claude/commands/workflows/workflow-execute.md +1 -3
  28. package/.claude/commands/workflows/workflow-export.md +0 -2
  29. package/.claude/helpers/handlers/agent-start-handler.cjs +28 -36
  30. package/.claude/helpers/handlers/capture-handler.cjs +110 -0
  31. package/.claude/helpers/handlers/edit-handler.cjs +15 -0
  32. package/.claude/helpers/handlers/gates-handler.cjs +2 -8
  33. package/.claude/helpers/handlers/route-handler.cjs +314 -245
  34. package/.claude/helpers/handlers/session-handler.cjs +182 -163
  35. package/.claude/helpers/handlers/session-restore-handler.cjs +95 -53
  36. package/.claude/helpers/handlers/task-handler.cjs +17 -160
  37. package/.claude/helpers/hook-handler.cjs +153 -16
  38. package/.claude/helpers/intelligence.cjs +255 -15
  39. package/.claude/helpers/learning-service.mjs +1 -0
  40. package/.claude/helpers/mastermind-activate.cjs +33 -51
  41. package/.claude/helpers/monolean-activate.cjs +13 -3
  42. package/.claude/helpers/monolean-propagate.cjs +7 -3
  43. package/.claude/helpers/router.cjs +122 -11
  44. package/.claude/helpers/skill-registry.json +0 -189
  45. package/.claude/skills/github-toolkit/SKILL.md +60 -0
  46. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -15
  47. package/.claude/skills/hooks-automation/SKILL.md +0 -1
  48. package/.claude/skills/mastermind-skills/_protocol.md +1 -1
  49. package/.claude/skills/mastermind-skills/architect.md +5 -6
  50. package/.claude/skills/mastermind-skills/autodev.md +8 -5
  51. package/.claude/skills/mastermind-skills/build.md +1 -2
  52. package/.claude/skills/mastermind-skills/review.md +8 -5
  53. package/.claude/skills/mastermind-skills/techport.md +37 -3
  54. package/.claude/skills/memory-toolkit/SKILL.md +75 -0
  55. package/.claude/skills/monodesign/document.md +9 -6
  56. package/.claude/skills/monodesign/extract.md +1 -1
  57. package/.claude/skills/monodesign/reference/document.md +1 -1
  58. package/.claude/skills/monodesign/reference/live.md +1 -1
  59. package/.claude/skills/monolean/SKILL.md +1 -1
  60. package/.claude/skills/specialagent/SKILL.md +2 -4
  61. package/.claude/skills/swarm-advanced/SKILL.md +0 -1
  62. package/README.md +2 -5
  63. package/bin/mcp-server.js +11 -1
  64. package/dist/src/autopilot-state.d.ts.map +1 -1
  65. package/dist/src/autopilot-state.js +4 -5
  66. package/dist/src/autopilot-state.js.map +1 -1
  67. package/dist/src/browser/dashboard/server.d.ts.map +1 -1
  68. package/dist/src/browser/dashboard/server.js +69 -1
  69. package/dist/src/browser/dashboard/server.js.map +1 -1
  70. package/dist/src/browser/dashboard/ui.html +214 -1764
  71. package/dist/src/capabilities/index.d.ts +0 -2
  72. package/dist/src/capabilities/index.d.ts.map +1 -1
  73. package/dist/src/capabilities/index.js +0 -1
  74. package/dist/src/capabilities/index.js.map +1 -1
  75. package/dist/src/commands/agent-lifecycle.d.ts.map +1 -1
  76. package/dist/src/commands/agent-lifecycle.js +2 -6
  77. package/dist/src/commands/agent-lifecycle.js.map +1 -1
  78. package/dist/src/commands/agent-ops.d.ts +1 -2
  79. package/dist/src/commands/agent-ops.d.ts.map +1 -1
  80. package/dist/src/commands/agent-ops.js +1 -59
  81. package/dist/src/commands/agent-ops.js.map +1 -1
  82. package/dist/src/commands/agent.d.ts.map +1 -1
  83. package/dist/src/commands/agent.js +2 -3
  84. package/dist/src/commands/agent.js.map +1 -1
  85. package/dist/src/commands/analyze-diff.js +1 -1
  86. package/dist/src/commands/analyze-diff.js.map +1 -1
  87. package/dist/src/commands/analyze.d.ts +0 -4
  88. package/dist/src/commands/analyze.d.ts.map +1 -1
  89. package/dist/src/commands/analyze.js +1 -29
  90. package/dist/src/commands/analyze.js.map +1 -1
  91. package/dist/src/commands/browse-action.d.ts.map +1 -1
  92. package/dist/src/commands/browse-action.js +94 -2
  93. package/dist/src/commands/browse-action.js.map +1 -1
  94. package/dist/src/commands/completions.d.ts.map +1 -1
  95. package/dist/src/commands/completions.js +12 -76
  96. package/dist/src/commands/completions.js.map +1 -1
  97. package/dist/src/commands/config.d.ts.map +1 -1
  98. package/dist/src/commands/config.js +0 -6
  99. package/dist/src/commands/config.js.map +1 -1
  100. package/dist/src/commands/doctor-project-checks.d.ts +13 -3
  101. package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
  102. package/dist/src/commands/doctor-project-checks.js +131 -23
  103. package/dist/src/commands/doctor-project-checks.js.map +1 -1
  104. package/dist/src/commands/doctor.d.ts.map +1 -1
  105. package/dist/src/commands/doctor.js +6 -5
  106. package/dist/src/commands/doctor.js.map +1 -1
  107. package/dist/src/commands/guidance.d.ts +5 -1
  108. package/dist/src/commands/guidance.d.ts.map +1 -1
  109. package/dist/src/commands/guidance.js +11 -556
  110. package/dist/src/commands/guidance.js.map +1 -1
  111. package/dist/src/commands/hive-mind-comms.d.ts.map +1 -1
  112. package/dist/src/commands/hive-mind-comms.js +11 -4
  113. package/dist/src/commands/hive-mind-comms.js.map +1 -1
  114. package/dist/src/commands/hive-mind-helpers.js +2 -2
  115. package/dist/src/commands/hive-mind-helpers.js.map +1 -1
  116. package/dist/src/commands/hive-mind-ops.d.ts +1 -3
  117. package/dist/src/commands/hive-mind-ops.d.ts.map +1 -1
  118. package/dist/src/commands/hive-mind-ops.js +2 -116
  119. package/dist/src/commands/hive-mind-ops.js.map +1 -1
  120. package/dist/src/commands/hive-mind.d.ts +4 -4
  121. package/dist/src/commands/hive-mind.d.ts.map +1 -1
  122. package/dist/src/commands/hive-mind.js +11 -11
  123. package/dist/src/commands/hive-mind.js.map +1 -1
  124. package/dist/src/commands/hooks-coverage-commands.d.ts.map +1 -1
  125. package/dist/src/commands/hooks-coverage-commands.js +8 -7
  126. package/dist/src/commands/hooks-coverage-commands.js.map +1 -1
  127. package/dist/src/commands/hooks-coverage-gaps.js +1 -1
  128. package/dist/src/commands/hooks-coverage-gaps.js.map +1 -1
  129. package/dist/src/commands/hooks-coverage-routing.js +2 -2
  130. package/dist/src/commands/hooks-coverage-routing.js.map +1 -1
  131. package/dist/src/commands/hooks-extended-commands.d.ts +0 -3
  132. package/dist/src/commands/hooks-extended-commands.d.ts.map +1 -1
  133. package/dist/src/commands/hooks-extended-commands.js +0 -307
  134. package/dist/src/commands/hooks-extended-commands.js.map +1 -1
  135. package/dist/src/commands/hooks-formatting.d.ts +1 -5
  136. package/dist/src/commands/hooks-formatting.d.ts.map +1 -1
  137. package/dist/src/commands/hooks-formatting.js +1 -18
  138. package/dist/src/commands/hooks-formatting.js.map +1 -1
  139. package/dist/src/commands/hooks-workers.d.ts +1 -1
  140. package/dist/src/commands/hooks-workers.d.ts.map +1 -1
  141. package/dist/src/commands/hooks-workers.js +82 -330
  142. package/dist/src/commands/hooks-workers.js.map +1 -1
  143. package/dist/src/commands/hooks.d.ts.map +1 -1
  144. package/dist/src/commands/hooks.js +1 -12
  145. package/dist/src/commands/hooks.js.map +1 -1
  146. package/dist/src/commands/index.d.ts +2 -55
  147. package/dist/src/commands/index.d.ts.map +1 -1
  148. package/dist/src/commands/index.js +23 -216
  149. package/dist/src/commands/index.js.map +1 -1
  150. package/dist/src/commands/init-wizard.d.ts.map +1 -1
  151. package/dist/src/commands/init-wizard.js +3 -5
  152. package/dist/src/commands/init-wizard.js.map +1 -1
  153. package/dist/src/commands/init.d.ts.map +1 -1
  154. package/dist/src/commands/init.js +4 -24
  155. package/dist/src/commands/init.js.map +1 -1
  156. package/dist/src/commands/mcp.d.ts.map +1 -1
  157. package/dist/src/commands/mcp.js +32 -4
  158. package/dist/src/commands/mcp.js.map +1 -1
  159. package/dist/src/commands/memory-admin.d.ts +1 -2
  160. package/dist/src/commands/memory-admin.d.ts.map +1 -1
  161. package/dist/src/commands/memory-admin.js +1 -118
  162. package/dist/src/commands/memory-admin.js.map +1 -1
  163. package/dist/src/commands/memory-transfer.d.ts +1 -2
  164. package/dist/src/commands/memory-transfer.d.ts.map +1 -1
  165. package/dist/src/commands/memory-transfer.js +5 -171
  166. package/dist/src/commands/memory-transfer.js.map +1 -1
  167. package/dist/src/commands/memory.d.ts.map +1 -1
  168. package/dist/src/commands/memory.js +3 -6
  169. package/dist/src/commands/memory.js.map +1 -1
  170. package/dist/src/commands/neural-core.d.ts +3 -1
  171. package/dist/src/commands/neural-core.d.ts.map +1 -1
  172. package/dist/src/commands/neural-core.js +154 -15
  173. package/dist/src/commands/neural-core.js.map +1 -1
  174. package/dist/src/commands/neural-optimize.d.ts.map +1 -1
  175. package/dist/src/commands/neural-optimize.js +13 -15
  176. package/dist/src/commands/neural-optimize.js.map +1 -1
  177. package/dist/src/commands/neural-registry.d.ts +1 -1
  178. package/dist/src/commands/neural-registry.js +14 -14
  179. package/dist/src/commands/neural-registry.js.map +1 -1
  180. package/dist/src/commands/neural.d.ts +1 -1
  181. package/dist/src/commands/neural.js +6 -6
  182. package/dist/src/commands/neural.js.map +1 -1
  183. package/dist/src/commands/performance.d.ts.map +1 -1
  184. package/dist/src/commands/performance.js +68 -58
  185. package/dist/src/commands/performance.js.map +1 -1
  186. package/dist/src/commands/providers.d.ts.map +1 -1
  187. package/dist/src/commands/providers.js +77 -117
  188. package/dist/src/commands/providers.js.map +1 -1
  189. package/dist/src/commands/search-universal.d.ts +7 -1
  190. package/dist/src/commands/search-universal.d.ts.map +1 -1
  191. package/dist/src/commands/search-universal.js +59 -5
  192. package/dist/src/commands/search-universal.js.map +1 -1
  193. package/dist/src/commands/security-cve.d.ts.map +1 -1
  194. package/dist/src/commands/security-cve.js +3 -5
  195. package/dist/src/commands/security-cve.js.map +1 -1
  196. package/dist/src/commands/security-misc.d.ts +0 -1
  197. package/dist/src/commands/security-misc.d.ts.map +1 -1
  198. package/dist/src/commands/security-misc.js +69 -45
  199. package/dist/src/commands/security-misc.js.map +1 -1
  200. package/dist/src/commands/security.d.ts.map +1 -1
  201. package/dist/src/commands/security.js +2 -4
  202. package/dist/src/commands/security.js.map +1 -1
  203. package/dist/src/commands/session.d.ts.map +1 -1
  204. package/dist/src/commands/session.js +137 -281
  205. package/dist/src/commands/session.js.map +1 -1
  206. package/dist/src/commands/start.d.ts.map +1 -1
  207. package/dist/src/commands/start.js +2 -59
  208. package/dist/src/commands/start.js.map +1 -1
  209. package/dist/src/commands/status.d.ts.map +1 -1
  210. package/dist/src/commands/status.js +18 -29
  211. package/dist/src/commands/status.js.map +1 -1
  212. package/dist/src/commands/swarm.d.ts.map +1 -1
  213. package/dist/src/commands/swarm.js +113 -66
  214. package/dist/src/commands/swarm.js.map +1 -1
  215. package/dist/src/commands/task.d.ts.map +1 -1
  216. package/dist/src/commands/task.js +2 -49
  217. package/dist/src/commands/task.js.map +1 -1
  218. package/dist/src/consensus/audit-writer.d.ts.map +1 -1
  219. package/dist/src/consensus/audit-writer.js +43 -1
  220. package/dist/src/consensus/audit-writer.js.map +1 -1
  221. package/dist/src/consensus/tally.d.ts +19 -0
  222. package/dist/src/consensus/tally.d.ts.map +1 -0
  223. package/dist/src/consensus/tally.js +34 -0
  224. package/dist/src/consensus/tally.js.map +1 -0
  225. package/dist/src/index.d.ts +3 -2
  226. package/dist/src/index.d.ts.map +1 -1
  227. package/dist/src/index.js +13 -9
  228. package/dist/src/index.js.map +1 -1
  229. package/dist/src/init/claudemd-generator.d.ts.map +1 -1
  230. package/dist/src/init/claudemd-generator.js +10 -14
  231. package/dist/src/init/claudemd-generator.js.map +1 -1
  232. package/dist/src/init/executor.d.ts.map +1 -1
  233. package/dist/src/init/executor.js +42 -100
  234. package/dist/src/init/executor.js.map +1 -1
  235. package/dist/src/init/helpers-generator.d.ts.map +1 -1
  236. package/dist/src/init/helpers-generator.js +2 -22
  237. package/dist/src/init/helpers-generator.js.map +1 -1
  238. package/dist/src/init/settings-generator.d.ts.map +1 -1
  239. package/dist/src/init/settings-generator.js +0 -13
  240. package/dist/src/init/settings-generator.js.map +1 -1
  241. package/dist/src/init/statusline-generator.d.ts.map +1 -1
  242. package/dist/src/init/statusline-generator.js +62 -0
  243. package/dist/src/init/statusline-generator.js.map +1 -1
  244. package/dist/src/init/types.d.ts +3 -9
  245. package/dist/src/init/types.d.ts.map +1 -1
  246. package/dist/src/init/types.js +0 -5
  247. package/dist/src/init/types.js.map +1 -1
  248. package/dist/src/knowledge/document-pipeline.d.ts.map +1 -1
  249. package/dist/src/knowledge/document-pipeline.js +18 -8
  250. package/dist/src/knowledge/document-pipeline.js.map +1 -1
  251. package/dist/src/mcp-client.d.ts.map +1 -1
  252. package/dist/src/mcp-client.js +0 -8
  253. package/dist/src/mcp-client.js.map +1 -1
  254. package/dist/src/mcp-server.d.ts.map +1 -1
  255. package/dist/src/mcp-server.js +14 -0
  256. package/dist/src/mcp-server.js.map +1 -1
  257. package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
  258. package/dist/src/mcp-tools/agent-tools.js +0 -17
  259. package/dist/src/mcp-tools/agent-tools.js.map +1 -1
  260. package/dist/src/mcp-tools/coherence/causal-infer.d.ts +5 -5
  261. package/dist/src/mcp-tools/coherence/causal-infer.d.ts.map +1 -1
  262. package/dist/src/mcp-tools/coherence/causal-infer.js +32 -46
  263. package/dist/src/mcp-tools/coherence/causal-infer.js.map +1 -1
  264. package/dist/src/mcp-tools/coherence/coherence-check.d.ts.map +1 -1
  265. package/dist/src/mcp-tools/coherence/coherence-check.js +1 -19
  266. package/dist/src/mcp-tools/coherence/coherence-check.js.map +1 -1
  267. package/dist/src/mcp-tools/coherence/consensus-verify.d.ts +2 -3
  268. package/dist/src/mcp-tools/coherence/consensus-verify.d.ts.map +1 -1
  269. package/dist/src/mcp-tools/coherence/consensus-verify.js +22 -20
  270. package/dist/src/mcp-tools/coherence/consensus-verify.js.map +1 -1
  271. package/dist/src/mcp-tools/coherence/memory-gate.d.ts +3 -2
  272. package/dist/src/mcp-tools/coherence/memory-gate.d.ts.map +1 -1
  273. package/dist/src/mcp-tools/coherence/memory-gate.js +32 -19
  274. package/dist/src/mcp-tools/coherence/memory-gate.js.map +1 -1
  275. package/dist/src/mcp-tools/coherence/quantum-topology.d.ts +4 -4
  276. package/dist/src/mcp-tools/coherence/quantum-topology.d.ts.map +1 -1
  277. package/dist/src/mcp-tools/coherence/quantum-topology.js +11 -17
  278. package/dist/src/mcp-tools/coherence/quantum-topology.js.map +1 -1
  279. package/dist/src/mcp-tools/coherence/spectral-analyze.d.ts +2 -3
  280. package/dist/src/mcp-tools/coherence/spectral-analyze.d.ts.map +1 -1
  281. package/dist/src/mcp-tools/coherence/spectral-analyze.js +51 -32
  282. package/dist/src/mcp-tools/coherence/spectral-analyze.js.map +1 -1
  283. package/dist/src/mcp-tools/coherence/types.d.ts +8 -11
  284. package/dist/src/mcp-tools/coherence/types.d.ts.map +1 -1
  285. package/dist/src/mcp-tools/coherence/types.js +3 -18
  286. package/dist/src/mcp-tools/coherence/types.js.map +1 -1
  287. package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -1
  288. package/dist/src/mcp-tools/embeddings-tools.js +1 -7
  289. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  290. package/dist/src/mcp-tools/graphify-tools.js +2 -2
  291. package/dist/src/mcp-tools/graphify-tools.js.map +1 -1
  292. package/dist/src/mcp-tools/guidance-tools.d.ts.map +1 -1
  293. package/dist/src/mcp-tools/guidance-tools.js +9 -19
  294. package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
  295. package/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -1
  296. package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
  297. package/dist/src/mcp-tools/hive-mind-tools.js +198 -40
  298. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
  299. package/dist/src/mcp-tools/hooks-advanced.d.ts +18 -0
  300. package/dist/src/mcp-tools/hooks-advanced.d.ts.map +1 -0
  301. package/dist/src/mcp-tools/hooks-advanced.js +25 -0
  302. package/dist/src/mcp-tools/hooks-advanced.js.map +1 -0
  303. package/dist/src/mcp-tools/hooks-intelligence.d.ts +4 -8
  304. package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
  305. package/dist/src/mcp-tools/hooks-intelligence.js +33 -482
  306. package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
  307. package/dist/src/mcp-tools/hooks-routing.d.ts +1 -3
  308. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
  309. package/dist/src/mcp-tools/hooks-routing.js +96 -202
  310. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  311. package/dist/src/mcp-tools/hooks-synthesis.d.ts +31 -0
  312. package/dist/src/mcp-tools/hooks-synthesis.d.ts.map +1 -0
  313. package/dist/src/mcp-tools/hooks-synthesis.js +196 -0
  314. package/dist/src/mcp-tools/hooks-synthesis.js.map +1 -0
  315. package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
  316. package/dist/src/mcp-tools/hooks-tools.js +10 -11
  317. package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
  318. package/dist/src/mcp-tools/index.d.ts +0 -3
  319. package/dist/src/mcp-tools/index.d.ts.map +1 -1
  320. package/dist/src/mcp-tools/index.js +0 -4
  321. package/dist/src/mcp-tools/index.js.map +1 -1
  322. package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
  323. package/dist/src/mcp-tools/memory-tools.js +24 -9
  324. package/dist/src/mcp-tools/memory-tools.js.map +1 -1
  325. package/dist/src/mcp-tools/monograph-tools.d.ts +6 -0
  326. package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
  327. package/dist/src/mcp-tools/monograph-tools.js +370 -95
  328. package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
  329. package/dist/src/mcp-tools/neural-tools.d.ts +8 -9
  330. package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -1
  331. package/dist/src/mcp-tools/neural-tools.js +249 -539
  332. package/dist/src/mcp-tools/neural-tools.js.map +1 -1
  333. package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -1
  334. package/dist/src/mcp-tools/performance-tools.js +5 -17
  335. package/dist/src/mcp-tools/performance-tools.js.map +1 -1
  336. package/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.js +2 -2
  337. package/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.js.map +1 -1
  338. package/dist/src/mcp-tools/quality/security-compliance/detect-secrets.d.ts +4 -4
  339. package/dist/src/mcp-tools/quality-tools.d.ts +7 -2
  340. package/dist/src/mcp-tools/quality-tools.d.ts.map +1 -1
  341. package/dist/src/mcp-tools/quality-tools.js +7 -257
  342. package/dist/src/mcp-tools/quality-tools.js.map +1 -1
  343. package/dist/src/mcp-tools/security-tools.d.ts.map +1 -1
  344. package/dist/src/mcp-tools/security-tools.js +103 -0
  345. package/dist/src/mcp-tools/security-tools.js.map +1 -1
  346. package/dist/src/memory/intelligence.d.ts +9 -9
  347. package/dist/src/memory/intelligence.d.ts.map +1 -1
  348. package/dist/src/memory/intelligence.js +71 -59
  349. package/dist/src/memory/intelligence.js.map +1 -1
  350. package/dist/src/memory/memory-bridge.d.ts +1 -0
  351. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  352. package/dist/src/memory/memory-bridge.js +47 -5
  353. package/dist/src/memory/memory-bridge.js.map +1 -1
  354. package/dist/src/memory/memory-read.d.ts.map +1 -1
  355. package/dist/src/memory/memory-read.js +1 -19
  356. package/dist/src/memory/memory-read.js.map +1 -1
  357. package/dist/src/suggest.d.ts.map +1 -1
  358. package/dist/src/suggest.js +1 -12
  359. package/dist/src/suggest.js.map +1 -1
  360. package/dist/src/transfer/store/discovery.d.ts +3 -2
  361. package/dist/src/transfer/store/discovery.d.ts.map +1 -1
  362. package/dist/src/transfer/store/discovery.js +22 -70
  363. package/dist/src/transfer/store/discovery.js.map +1 -1
  364. package/dist/src/update/checker.d.ts.map +1 -1
  365. package/dist/src/update/checker.js +0 -1
  366. package/dist/src/update/checker.js.map +1 -1
  367. package/dist/src/utils/cosine-similarity.d.ts +22 -0
  368. package/dist/src/utils/cosine-similarity.d.ts.map +1 -0
  369. package/dist/src/utils/cosine-similarity.js +38 -0
  370. package/dist/src/utils/cosine-similarity.js.map +1 -0
  371. package/dist/src/utils/input-guards.d.ts +51 -0
  372. package/dist/src/utils/input-guards.d.ts.map +1 -0
  373. package/dist/src/utils/input-guards.js +223 -0
  374. package/dist/src/utils/input-guards.js.map +1 -0
  375. package/dist/src/utils/json-file.d.ts +33 -0
  376. package/dist/src/utils/json-file.d.ts.map +1 -0
  377. package/dist/src/utils/json-file.js +57 -0
  378. package/dist/src/utils/json-file.js.map +1 -0
  379. package/dist/tsconfig.tsbuildinfo +1 -1
  380. package/package.json +9 -6
  381. package/scripts/sync-claude-assets.sh +16 -20
  382. package/.claude/agents/generated/case-analyst.md +0 -50
  383. package/.claude/agents/generated/channel-intelligence-director.md +0 -87
  384. package/.claude/agents/generated/chief-growth-officer.md +0 -88
  385. package/.claude/agents/generated/churn-analyst.md +0 -53
  386. package/.claude/agents/generated/code-reviewer.md +0 -55
  387. package/.claude/agents/generated/code-validator.md +0 -57
  388. package/.claude/agents/generated/complexity-scanner.md +0 -56
  389. package/.claude/agents/generated/content-seo-strategist.md +0 -90
  390. package/.claude/agents/generated/copy-editor.md +0 -45
  391. package/.claude/agents/generated/court-reporter.md +0 -50
  392. package/.claude/agents/generated/defender.md +0 -51
  393. package/.claude/agents/generated/devbot-orchestrator.md +0 -58
  394. package/.claude/agents/generated/devbot-planner.md +0 -63
  395. package/.claude/agents/generated/developer-community-strategist.md +0 -91
  396. package/.claude/agents/generated/editor-in-chief.md +0 -45
  397. package/.claude/agents/generated/fact-checker.md +0 -45
  398. package/.claude/agents/generated/impact-assessor.md +0 -54
  399. package/.claude/agents/generated/judge.md +0 -51
  400. package/.claude/agents/generated/outreach-partnership-strategist.md +0 -90
  401. package/.claude/agents/generated/prosecutor.md +0 -51
  402. package/.claude/agents/generated/reporter.md +0 -45
  403. package/.claude/agents/generated/social-media-strategist.md +0 -91
  404. package/.claude/agents/generated/video-visual-strategist.md +0 -90
  405. package/.claude/agents/reengineer-squad/boss.md +0 -113
  406. package/.claude/agents/reengineer-squad/critic-architect.md +0 -132
  407. package/.claude/agents/reengineer-squad/git-manager.md +0 -145
  408. package/.claude/agents/reengineer-squad/idea-generator.md +0 -95
  409. package/.claude/agents/reengineer-squad/implementer.md +0 -112
  410. package/.claude/agents/reengineer-squad/integration-planner.md +0 -112
  411. package/.claude/agents/reengineer-squad/source-analyst.md +0 -103
  412. package/.claude/agents/reengineer-squad/target-analyst.md +0 -118
  413. package/.claude/agents/reengineer-squad/tester.md +0 -105
  414. package/.claude/agents/sparc/architecture.md +0 -453
  415. package/.claude/agents/sparc/pseudocode.md +0 -299
  416. package/.claude/agents/sparc/refinement.md +0 -504
  417. package/.claude/agents/sparc/specification.md +0 -258
  418. package/.claude/agents/templates/implementer-sparc-coder.md +0 -231
  419. package/.claude/commands/sparc/analyzer.md +0 -35
  420. package/.claude/commands/sparc/architect.md +0 -36
  421. package/.claude/commands/sparc/ask.md +0 -56
  422. package/.claude/commands/sparc/batch-executor.md +0 -37
  423. package/.claude/commands/sparc/code.md +0 -48
  424. package/.claude/commands/sparc/coder.md +0 -37
  425. package/.claude/commands/sparc/debug.md +0 -42
  426. package/.claude/commands/sparc/debugger.md +0 -37
  427. package/.claude/commands/sparc/designer.md +0 -36
  428. package/.claude/commands/sparc/devops.md +0 -68
  429. package/.claude/commands/sparc/docs-writer.md +0 -39
  430. package/.claude/commands/sparc/documenter.md +0 -37
  431. package/.claude/commands/sparc/innovator.md +0 -37
  432. package/.claude/commands/sparc/integration.md +0 -42
  433. package/.claude/commands/sparc/mcp.md +0 -76
  434. package/.claude/commands/sparc/memory-manager.md +0 -57
  435. package/.claude/commands/sparc/optimizer.md +0 -37
  436. package/.claude/commands/sparc/orchestrator.md +0 -70
  437. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -42
  438. package/.claude/commands/sparc/refinement-optimization-mode.md +0 -42
  439. package/.claude/commands/sparc/researcher.md +0 -37
  440. package/.claude/commands/sparc/reviewer.md +0 -37
  441. package/.claude/commands/sparc/security-review.md +0 -39
  442. package/.claude/commands/sparc/sparc-modes.md +0 -120
  443. package/.claude/commands/sparc/sparc.md +0 -71
  444. package/.claude/commands/sparc/spec-pseudocode.md +0 -39
  445. package/.claude/commands/sparc/supabase-admin.md +0 -301
  446. package/.claude/commands/sparc/swarm-coordinator.md +0 -50
  447. package/.claude/commands/sparc/tdd.md +0 -37
  448. package/.claude/commands/sparc/tester.md +0 -37
  449. package/.claude/commands/sparc/tutorial.md +0 -38
  450. package/.claude/commands/sparc/workflow-manager.md +0 -37
  451. package/.claude/commands/sparc.md +0 -112
  452. package/.claude/helpers/auto-memory-hook.mjs +0 -503
  453. package/.claude/skills/sparc-methodology/SKILL.md +0 -950
  454. package/dist/src/capabilities/enrichment.d.ts +0 -44
  455. package/dist/src/capabilities/enrichment.d.ts.map +0 -1
  456. package/dist/src/capabilities/enrichment.js +0 -141
  457. package/dist/src/capabilities/enrichment.js.map +0 -1
  458. package/dist/src/commands/analyze-boundaries.d.ts +0 -14
  459. package/dist/src/commands/analyze-boundaries.d.ts.map +0 -1
  460. package/dist/src/commands/analyze-boundaries.js +0 -295
  461. package/dist/src/commands/analyze-boundaries.js.map +0 -1
  462. package/dist/src/commands/analyze-graph.d.ts +0 -14
  463. package/dist/src/commands/analyze-graph.d.ts.map +0 -1
  464. package/dist/src/commands/analyze-graph.js +0 -304
  465. package/dist/src/commands/analyze-graph.js.map +0 -1
  466. package/dist/src/commands/claims.d.ts +0 -10
  467. package/dist/src/commands/claims.d.ts.map +0 -1
  468. package/dist/src/commands/claims.js +0 -650
  469. package/dist/src/commands/claims.js.map +0 -1
  470. package/dist/src/commands/daemon.d.ts +0 -8
  471. package/dist/src/commands/daemon.d.ts.map +0 -1
  472. package/dist/src/commands/daemon.js +0 -681
  473. package/dist/src/commands/daemon.js.map +0 -1
  474. package/dist/src/commands/deployment.d.ts +0 -10
  475. package/dist/src/commands/deployment.d.ts.map +0 -1
  476. package/dist/src/commands/deployment.js +0 -706
  477. package/dist/src/commands/deployment.js.map +0 -1
  478. package/dist/src/commands/enrich.d.ts +0 -10
  479. package/dist/src/commands/enrich.d.ts.map +0 -1
  480. package/dist/src/commands/enrich.js +0 -58
  481. package/dist/src/commands/enrich.js.map +0 -1
  482. package/dist/src/commands/issues.d.ts +0 -21
  483. package/dist/src/commands/issues.d.ts.map +0 -1
  484. package/dist/src/commands/issues.js +0 -575
  485. package/dist/src/commands/issues.js.map +0 -1
  486. package/dist/src/commands/workflow.d.ts +0 -8
  487. package/dist/src/commands/workflow.d.ts.map +0 -1
  488. package/dist/src/commands/workflow.js +0 -677
  489. package/dist/src/commands/workflow.js.map +0 -1
  490. package/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
  491. package/dist/src/mcp-tools/workflow-tools.d.ts.map +0 -1
  492. package/dist/src/mcp-tools/workflow-tools.js +0 -717
  493. package/dist/src/mcp-tools/workflow-tools.js.map +0 -1
  494. package/dist/src/services/claim-service.d.ts +0 -198
  495. package/dist/src/services/claim-service.d.ts.map +0 -1
  496. package/dist/src/services/claim-service.js +0 -890
  497. package/dist/src/services/claim-service.js.map +0 -1
  498. package/dist/src/services/headless-worker-executor.d.ts +0 -311
  499. package/dist/src/services/headless-worker-executor.d.ts.map +0 -1
  500. package/dist/src/services/headless-worker-executor.js +0 -1183
  501. package/dist/src/services/headless-worker-executor.js.map +0 -1
  502. package/dist/src/services/worker-daemon.d.ts +0 -248
  503. package/dist/src/services/worker-daemon.d.ts.map +0 -1
  504. package/dist/src/services/worker-daemon.js +0 -1417
  505. package/dist/src/services/worker-daemon.js.map +0 -1
  506. package/dist/src/ui/.monomind/capture/active-run.json +0 -1
  507. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/real-events-1782290897.convs.jsonl +0 -3
  508. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/real-events-1782290897.jsonl +0 -11
  509. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/rigid-qa-restart-1782288201.jsonl +0 -540
  510. package/dist/src/ui/.monomind/orgs/system-trial-qa-threads.jsonl +0 -3
  511. package/dist/src/ui/.monomind/orgs/test-event-fix/runs/rigid-qa-restart-1782288201.jsonl +0 -2
@@ -36,21 +36,6 @@
36
36
  "category": "implementation",
37
37
  "primaryAgent": "coder"
38
38
  },
39
- {
40
- "skill": "sparc:tdd",
41
- "invoke": "Skill(\"sparc:tdd\")",
42
- "description": "Test-driven development — write failing tests first, then implementation",
43
- "keywords": [
44
- "tdd",
45
- "test driven",
46
- "tests first",
47
- "unit test",
48
- "spec",
49
- "red green refactor"
50
- ],
51
- "category": "testing",
52
- "primaryAgent": "tester"
53
- },
54
39
  {
55
40
  "skill": "agent-browser-testing",
56
41
  "invoke": "Skill(\"agent-browser-testing\")",
@@ -106,166 +91,6 @@
106
91
  "category": "testing",
107
92
  "primaryAgent": "agent-browser-testing"
108
93
  },
109
- {
110
- "skill": "sparc:architect",
111
- "invoke": "Skill(\"sparc:architect\")",
112
- "description": "System architecture design — patterns, DDD, scalability, API design",
113
- "keywords": [
114
- "architect",
115
- "design",
116
- "system design",
117
- "structure",
118
- "domain",
119
- "ddd",
120
- "patterns",
121
- "scalability"
122
- ],
123
- "category": "architecture",
124
- "primaryAgent": "architect"
125
- },
126
- {
127
- "skill": "sparc:security-review",
128
- "invoke": "Skill(\"sparc:security-review\")",
129
- "description": "Security analysis — vulnerabilities, CVEs, threat modeling, input validation",
130
- "keywords": [
131
- "security",
132
- "vulnerability",
133
- "cve",
134
- "threat",
135
- "injection",
136
- "xss",
137
- "auth",
138
- "exploit"
139
- ],
140
- "category": "security",
141
- "primaryAgent": "reviewer"
142
- },
143
- {
144
- "skill": "sparc:debugger",
145
- "invoke": "Skill(\"sparc:debugger\")",
146
- "description": "Systematic debugging — root cause analysis, error tracing, fix verification",
147
- "keywords": [
148
- "debug",
149
- "bug",
150
- "error",
151
- "crash",
152
- "fix",
153
- "broken",
154
- "not working",
155
- "exception",
156
- "trace"
157
- ],
158
- "category": "debugging",
159
- "primaryAgent": "coder"
160
- },
161
- {
162
- "skill": "sparc:optimizer",
163
- "invoke": "Skill(\"sparc:optimizer\")",
164
- "description": "Performance optimization — profiling, bottlenecks, memory, speed improvements",
165
- "keywords": [
166
- "optimize",
167
- "performance",
168
- "slow",
169
- "speed",
170
- "memory",
171
- "bottleneck",
172
- "profile",
173
- "latency"
174
- ],
175
- "category": "performance",
176
- "primaryAgent": "coder"
177
- },
178
- {
179
- "skill": "sparc:devops",
180
- "invoke": "Skill(\"sparc:devops\")",
181
- "description": "DevOps and deployment — CI/CD, Docker, infrastructure, pipelines",
182
- "keywords": [
183
- "deploy",
184
- "ci",
185
- "cd",
186
- "docker",
187
- "pipeline",
188
- "infrastructure",
189
- "kubernetes",
190
- "build",
191
- "release"
192
- ],
193
- "category": "devops",
194
- "primaryAgent": "devops"
195
- },
196
- {
197
- "skill": "sparc:documenter",
198
- "invoke": "Skill(\"sparc:documenter\")",
199
- "description": "Documentation generation — READMEs, API docs, architecture docs, inline comments",
200
- "keywords": [
201
- "document",
202
- "docs",
203
- "readme",
204
- "api docs",
205
- "explain",
206
- "write documentation",
207
- "comment"
208
- ],
209
- "category": "documentation",
210
- "primaryAgent": "researcher"
211
- },
212
- {
213
- "skill": "sparc:researcher",
214
- "invoke": "Skill(\"sparc:researcher\")",
215
- "description": "Research and analysis — investigate, explore, gather information, summarize",
216
- "keywords": [
217
- "research",
218
- "find",
219
- "search",
220
- "investigate",
221
- "explore",
222
- "analyse",
223
- "understand",
224
- "how does",
225
- "what kind",
226
- "what is",
227
- "list",
228
- "show me",
229
- "available",
230
- "skills",
231
- "agents",
232
- "capabilities"
233
- ],
234
- "category": "research",
235
- "primaryAgent": "researcher"
236
- },
237
- {
238
- "skill": "sparc:spec-pseudocode",
239
- "invoke": "Skill(\"sparc:spec-pseudocode\")",
240
- "description": "Specification and pseudocode — clarify requirements, write specs, plan logic",
241
- "keywords": [
242
- "spec",
243
- "specification",
244
- "requirements",
245
- "pseudocode",
246
- "plan",
247
- "design logic",
248
- "clarify"
249
- ],
250
- "category": "planning",
251
- "primaryAgent": "architect"
252
- },
253
- {
254
- "skill": "sparc:refactor",
255
- "invoke": "Skill(\"sparc:coder\")",
256
- "description": "Refactoring — clean up code, extract functions, improve structure without changing behavior",
257
- "keywords": [
258
- "refactor",
259
- "clean up",
260
- "restructure",
261
- "extract",
262
- "simplify",
263
- "technical debt",
264
- "improve code"
265
- ],
266
- "category": "implementation",
267
- "primaryAgent": "coder"
268
- },
269
94
  {
270
95
  "skill": "github:code-review",
271
96
  "invoke": "Skill(\"github:code-review\")",
@@ -772,20 +597,6 @@
772
597
  "category": "core",
773
598
  "primaryAgent": "coder"
774
599
  },
775
- {
776
- "skill": "sparc-methodology",
777
- "invoke": "Skill(\"sparc-methodology\")",
778
- "description": "SPARC development methodology — Specification, Pseudocode, Architecture, Refinement, Completion",
779
- "keywords": [
780
- "sparc",
781
- "methodology",
782
- "architecture",
783
- "specification",
784
- "development"
785
- ],
786
- "category": "core",
787
- "primaryAgent": "architect"
788
- },
789
600
  {
790
601
  "skill": "specialagent",
791
602
  "invoke": "Skill(\"specialagent\")",
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: github-toolkit
3
+ description: >
4
+ GitHub workflow guidance for monomind projects — issues, PRs, releases,
5
+ repo structure, and multi-package sync. Trigger on "open a PR", "manage
6
+ issues", "cut a release", "sync packages", or any GitHub Actions/repo
7
+ automation request. All GitHub operations use the `gh` CLI plus monomind's
8
+ MCP GitHub tools — there is no `monomind github` CLI command group.
9
+ ---
10
+
11
+ # GitHub Toolkit
12
+
13
+ Guidance for GitHub-integrated workflows in monomind projects. All GitHub
14
+ operations go through the `gh` CLI directly (for PRs, issues, releases) or
15
+ through monomind's MCP GitHub tools when running inside a swarm.
16
+
17
+ ## Core operations
18
+
19
+ - **Issues** — triage, label, and track via `gh issue` or `mcp__monomind__github_issue_track`.
20
+ See `.claude/commands/github/issue-tracker.md`.
21
+ - **Pull requests** — create, review, and merge via `gh pr` or `mcp__monomind__github_pr_manage`.
22
+ See `.claude/commands/github/pr-manager.md`.
23
+ - **Releases** — version bump, changelog, tag, and publish coordination.
24
+ See `.claude/commands/github/release-manager.md`.
25
+ - **Repo structure** — multi-repo layout and package boundary decisions.
26
+ See `.claude/commands/github/repo-architect.md`.
27
+ - **Multi-package sync** — version alignment and dependency sync across a monorepo.
28
+ See `.claude/commands/github/sync-coordinator.md`.
29
+ - **Integration modes overview** — which mode to use for which workflow.
30
+ See `.claude/commands/github/github-modes.md`.
31
+
32
+ ## Quick reference
33
+
34
+ ```bash
35
+ # Issues
36
+ gh issue list --state open
37
+ gh issue create --title "..." --body "..."
38
+
39
+ # Pull requests
40
+ gh pr create --title "..." --body "..."
41
+ gh pr view <number> --json reviews,statusCheckRollup
42
+
43
+ # Releases
44
+ gh release create v1.2.3 --generate-notes
45
+ ```
46
+
47
+ ## MCP tools (when running inside a swarm)
48
+
49
+ ```javascript
50
+ mcp__monomind__github_pr_manage({ action: "review", pr: 123 })
51
+ mcp__monomind__github_issue_track({ action: "list", state: "open" })
52
+ mcp__monomind__github_metrics({ repo: "owner/repo" })
53
+ ```
54
+
55
+ ## When to reach for the full docs
56
+
57
+ Each linked command file under `.claude/commands/github/` has the complete
58
+ option/flag reference and swarm-coordination patterns for its area — read
59
+ the relevant one before doing multi-step GitHub automation (e.g. spawning
60
+ a `pr-manager` or `release-manager` agent).
@@ -234,20 +234,6 @@ Task("Database Architect", "Design PostgreSQL schema...", "code-analyzer")
234
234
  Task("Test Engineer", "Create Jest test suite...", "tester")
235
235
  ```
236
236
 
237
- ### With SPARC Methodology
238
-
239
- ```bash
240
- # Use hive mind for SPARC workflow
241
- npx monomind sparc tdd "User authentication" --hive-mind
242
-
243
- # Spawns:
244
- # - Specification agent
245
- # - Architecture agent
246
- # - Coder agents
247
- # - Tester agents
248
- # - Reviewer agents
249
- ```
250
-
251
237
  ### With GitHub Integration
252
238
 
253
239
  ```bash
@@ -691,7 +677,6 @@ npx monomind hive-mind spawn "Review PR #456" \
691
677
  - `swarm-orchestration`: Basic swarm coordination
692
678
  - `consensus-mechanisms`: Distributed decision making
693
679
  - `memory-systems`: Advanced memory management
694
- - `sparc-methodology`: Structured development workflow
695
680
  - `github-integration`: Repository coordination
696
681
 
697
682
  ## References
@@ -1185,7 +1185,6 @@ npx monomind hook validate-config
1185
1185
  ### Integration with Other Skills
1186
1186
 
1187
1187
  This skill works seamlessly with:
1188
- - **SPARC Methodology** - Hooks enhance SPARC workflows
1189
1188
  - **Pair Programming** - Automated quality in pairing sessions
1190
1189
  - **Verification Quality** - Truth-score validation in hooks
1191
1190
  - **GitHub Workflows** - Git integration for commits/PRs
@@ -396,7 +396,7 @@ SUCCESS CRITERIA:
396
396
  - [ ] [Concrete checkable item 1]
397
397
  - [ ] [Concrete checkable item 2]
398
398
 
399
- AGENT: [agent slug, e.g. backend-dev | sparc-coder | frontend-dev]
399
+ AGENT: [agent slug, e.g. backend-dev | frontend-dev]
400
400
  SWARM: [topology agent-count consensus, e.g. \"hierarchical 4 raft\"]
401
401
 
402
402
  DEPENDENCIES: [task IDs, or \"none\"]
@@ -251,22 +251,21 @@ _entry=${_entry:-.}
251
251
  npx --yes madge --circular "$_entry/" 2>/dev/null; } | head -20
252
252
 
253
253
  # 6. Find god files (imported by many others)
254
- # NOTE: This step covers JS/TS/Vue and Python only.
255
- # For Go, Rust, Java, and other stacks, use mcp__monomind__monograph_god_nodes instead.
256
- # JS/TS/Vue: skip comment lines; perl extracts module name from from '...' or from "..."
257
- # --exclude-dir applied at grep level so exclusions work before -h strips filenames
254
+ # PREFERRED: use monograph (pre-computed graph index, faster and more accurate)
255
+ # Call mcp__monomind__monograph_god_nodes({}) first.
256
+ # Only fall back to grep below if monograph returns 0 results or the DB is not built.
257
+ #
258
+ # FALLBACK (grep-based, JS/TS/Vue and Python only):
258
259
  grep -rh "^[^/]*from ['\"]" . \
259
260
  --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx" --include="*.vue" \
260
261
  --exclude-dir=node_modules --exclude-dir=dist --exclude-dir=.git \
261
262
  2>/dev/null \
262
263
  | perl -ne 'if (/from\s+['"'"'"]([^'"'"'"\s]+)['"'"'"]/) { print "$1\n" }' \
263
264
  | sort | uniq -c | sort -rn | head -20
264
- # Python: count imports separately (no quotes in Python import syntax)
265
265
  grep -rh "^from \|^import " . --include="*.py" \
266
266
  --exclude-dir=node_modules --exclude-dir=dist --exclude-dir=.git \
267
267
  2>/dev/null \
268
268
  | awk '{print $2}' | sed 's/,.*//' | sed 's/\..*//' | grep -v '^$' | sort | uniq -c | sort -rn | head -20
269
- # Note: if monograph is built, prefer mcp__monomind__monograph_god_nodes — it uses the pre-computed graph index
270
269
  ```
271
270
 
272
271
  For each finding, produce a **Deduplication Action Table**:
@@ -48,19 +48,22 @@ Default `count = 1`.
48
48
 
49
49
  ```bash
50
50
  git log --oneline -30
51
- find . -maxdepth 3 -type f \( -name "*.ts" -o -name "*.js" -o -name "*.py" -o -name "*.go" -o -name "*.md" \) \
52
- ! -path "*/node_modules/*" ! -path "*/.git/*" ! -path "*/dist/*" | head -80
53
51
  cat package.json 2>/dev/null || cat pyproject.toml 2>/dev/null || cat go.mod 2>/dev/null || true
54
52
  head -120 README.md 2>/dev/null || true
55
- grep -rn "<PATTERNS>" --include="*.ts" --include="*.js" --include="*.py" --include="*.go" --include="*.md" \
56
- . 2>/dev/null | grep -v node_modules | grep -v dist | head -40
57
53
  ```
58
54
 
59
- Plus these MCP calls (also parallel):
55
+ Plus these MCP calls (also parallel — **preferred over grep for symbol/pattern search**):
56
+ - `mcp__monomind__monograph_query` — search for `<PATTERNS>` (see mode table below); replaces grep for symbol lookup
60
57
  - `mcp__monomind__monograph_god_nodes` — high-centrality modules (hotspots / where new features plug in)
61
58
  - `mcp__monomind__monograph_suggest` — query per mode below
62
59
  - `mcp__monomind__memory_search` — namespace `"mastermind:autodev"`, to exclude already-built work
63
60
 
61
+ **Fallback only** (if monograph returns 0 results or DB not built):
62
+ ```bash
63
+ grep -rn "<PATTERNS>" --include="*.ts" --include="*.js" --include="*.py" --include="*.go" --include="*.md" \
64
+ . 2>/dev/null | grep -v node_modules | grep -v dist | head -40
65
+ ```
66
+
64
67
  Mode-specific values:
65
68
 
66
69
  | | Improvement loop | Feature pipeline |
@@ -106,7 +106,7 @@ SCOPE: [exact file paths in scope]
106
106
  CONSTRAINTS: [must-not-break items, existing APIs to preserve]
107
107
  SUCCESS CRITERIA:
108
108
  - [ ] [checkable item]
109
- AGENT: [backend-dev | frontend-dev | tester | reviewer | sparc-coder]
109
+ AGENT: [backend-dev | frontend-dev | tester | reviewer]
110
110
  SWARM: hierarchical 4 raft
111
111
  DEPENDENCIES: [task IDs or \"none\"]
112
112
  OUTPUT FORMAT: unified output schema"
@@ -118,7 +118,6 @@ Spawn one Task agent per task (all in parallel where dependencies allow):
118
118
  - Frontend tasks: subagent_type "frontend-dev"
119
119
  - Testing tasks: subagent_type "tester"
120
120
  - Code review: subagent_type "reviewer"
121
- - TDD/SPARC work: subagent_type "sparc-coder"
122
121
 
123
122
  Also run /mastermind:do --board <board_id> to track execution.
124
123
 
@@ -148,11 +148,14 @@ Run the test suite and adversarial probes against the live monofence-ai detector
148
148
  ```
149
149
  MONOFENCE INPUT BOUNDARY SCAN (monofence_deep flag):
150
150
 
151
- Step 1 — Find LLM input boundary files using these patterns:
152
- grep -rl "detect\|isSafe\|prompt\|chat\|completion\|message" src/ --include="*.ts" --include="*.js"
153
- find . -name "*.ts" -path "*/routes/*" -o -name "*.ts" -path "*/handlers/*" \
154
- -o -name "*.ts" -path "*/controllers/*" -o -name "*.ts" -path "*/api/*" \
155
- -o -name "prompt*.ts" -o -name "*chat*.ts" -o -name "*completion*.ts"
151
+ Step 1 — Find LLM input boundary files:
152
+ PREFERRED: monograph_query({ query: "detect isSafe prompt chat completion message" })
153
+ monograph_neighbors({ name: "detect" }) // trace call chains into LLM boundaries
154
+ FALLBACK (if monograph returns 0 results):
155
+ grep -rl "detect\|isSafe\|prompt\|chat\|completion\|message" src/ --include="*.ts" --include="*.js"
156
+ find . -name "*.ts" -path "*/routes/*" -o -name "*.ts" -path "*/handlers/*" \
157
+ -o -name "*.ts" -path "*/controllers/*" -o -name "*.ts" -path "*/api/*" \
158
+ -o -name "prompt*.ts" -o -name "*chat*.ts" -o -name "*completion*.ts"
156
159
 
157
160
  Step 2 — For each boundary file found, extract string literals and template literals
158
161
  that flow into LLM calls (look for openai/anthropic/fetch calls).
@@ -75,8 +75,17 @@ find .claude -name "*.md" \
75
75
 
76
76
  ### 0B — Naming Convention Extraction (from actual monomind code)
77
77
 
78
- Extract the real conventions — not the stated ones — from the codebase itself:
78
+ Extract the real conventions — not the stated ones — from the codebase itself.
79
79
 
80
+ **Step 1 — monograph-based extraction (preferred):**
81
+ ```
82
+ # Use monograph for exported symbol discovery
83
+ monograph_query({ query: "export class interface" }) # all exported types
84
+ monograph_god_nodes({}) # high-centrality files (naming exemplars)
85
+ monograph_stats({}) # node counts by type
86
+ ```
87
+
88
+ **Step 2 — grep fallback (only if monograph returns 0 results or DB not built):**
80
89
  ```bash
81
90
  BASE=packages/@monomind/cli/src
82
91
 
@@ -143,10 +152,20 @@ Domain vocab: Agent, Memory, Swarm, Config, Node, Graph, Session, Task, Wo
143
152
 
144
153
  ### 0C — Dependency Direction Constraints
145
154
 
155
+ **Preferred: monograph-based dependency analysis:**
156
+ ```
157
+ # Use monograph for dependency direction mapping
158
+ monograph_community({}) # module clusters with import directions
159
+ monograph_context({ name: "types" }) # 360° view: importers vs imports
160
+ monograph_context({ name: "utils" })
161
+ monograph_context({ name: "core" })
162
+ monograph_context({ name: "commands" })
163
+ monograph_context({ name: "services" })
164
+ ```
165
+
166
+ **Fallback (only if monograph unavailable):**
146
167
  ```bash
147
168
  BASE=packages/@monomind/cli/src
148
-
149
- # Map import directions by directory layer
150
169
  for dir in types utils core commands services; do
151
170
  count=$(grep -rn "^import" "$BASE/$dir" --include="*.ts" 2>/dev/null | wc -l)
152
171
  refs=$(grep -rn "from.*/$dir/" "$BASE" --include="*.ts" 2>/dev/null | wc -l)
@@ -160,6 +179,13 @@ Extract the implied layering from the import ratio. High `imported_by` → leaf/
160
179
 
161
180
  ### 0D — Build Monomind Vocabulary Name Set (for collision detection)
162
181
 
182
+ **Preferred: monograph-based symbol enumeration:**
183
+ ```
184
+ monograph_query({ query: "export class interface function const type enum" })
185
+ # Extract names from results for collision checking
186
+ ```
187
+
188
+ **Fallback (only if monograph unavailable):**
163
189
  ```bash
164
190
  grep -rhn "^export" packages/@monomind/cli/src \
165
191
  --include="*.ts" | grep -v dist | \
@@ -200,6 +226,14 @@ Set `source_brand` to the PascalCase result (e.g., `Monomind`, `ClaudeFlow`, `So
200
226
 
201
227
  ### 1B — Repo-Map (Structural Index)
202
228
 
229
+ **If source project has a monograph index** (check with `monograph_health` against source_path):
230
+ ```
231
+ monograph_query({ query: "export class interface function" }) # all exported symbols
232
+ monograph_god_nodes({}) # high-centrality files
233
+ monograph_community({}) # module structure
234
+ ```
235
+
236
+ **Otherwise (foreign project without monograph — grep is expected here):**
203
237
  ```bash
204
238
  # File tree
205
239
  find "{source_path}" -maxdepth 4 \
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: memory-toolkit
3
+ description: >
4
+ Use monomind's persistent memory store (LanceDB + pure-JS HNSW) to save,
5
+ search, list, and retrieve cross-session knowledge — patterns, solutions,
6
+ decisions. Trigger on "remember this", "store in memory", "search memory",
7
+ "have we solved this before", "recall past decisions", or before starting
8
+ work that benefits from prior context (debugging, refactors, repeated tasks).
9
+ ---
10
+
11
+ # Memory Toolkit
12
+
13
+ Monomind ships a persistent, namespaced memory store backed by LanceDB with
14
+ a pure-JS HNSW index for approximate nearest-neighbor vector search. Use it
15
+ to avoid re-solving the same problem twice across sessions.
16
+
17
+ ## Before starting non-trivial work
18
+
19
+ Search for prior art first:
20
+
21
+ ```bash
22
+ npx monomind memory search --query "[task keywords]" --namespace patterns
23
+ npx monomind memory search --query "[task keywords]" --namespace solutions
24
+ ```
25
+
26
+ ## Store data
27
+
28
+ ```bash
29
+ # REQUIRED: --key and --value. OPTIONAL: --namespace (default: "default"), --ttl, --tags
30
+ npx monomind memory store --key "pattern-auth" --value "JWT with refresh tokens" --namespace patterns
31
+ npx monomind memory store --key "bug-fix-123" --value "Fixed null check in parser" --namespace solutions --tags "bugfix,auth"
32
+ ```
33
+
34
+ ## Search data (semantic / keyword / hybrid)
35
+
36
+ ```bash
37
+ # REQUIRED: --query. OPTIONAL: --namespace, --limit, --threshold, --type
38
+ npx monomind memory search --query "authentication patterns"
39
+ npx monomind memory search --query "JWT" --type keyword
40
+ npx monomind memory search --query "error handling" --namespace patterns --limit 5
41
+ ```
42
+
43
+ | Search type | Description | Best for |
44
+ | ----------- | ----------------------------- | -------------------------- |
45
+ | `semantic` | Vector similarity search | Concept / meaning matching |
46
+ | `keyword` | BM25 full-text search | Exact term matching |
47
+ | `hybrid` | Combined semantic + keyword | General purpose (default) |
48
+
49
+ Use `--build-hnsw` before searching large memory stores (1,000+ entries) —
50
+ it builds a pure-JS HNSW index for O(log n) queries instead of O(n) linear
51
+ scan (one-time build cost).
52
+
53
+ ## List and retrieve
54
+
55
+ ```bash
56
+ npx monomind memory list --namespace patterns --limit 10
57
+ npx monomind memory retrieve --key "pattern-auth" --namespace patterns
58
+ ```
59
+
60
+ ## MCP equivalents
61
+
62
+ ```javascript
63
+ mcp__monomind__memory_store({ key: "pattern-auth", value: "...", namespace: "patterns" })
64
+ mcp__monomind__memory_search({ query: "authentication patterns", namespace: "default", limit: 10, threshold: 0.7, type: "hybrid" })
65
+ ```
66
+
67
+ ## After completing non-trivial work
68
+
69
+ Store what worked so the next session (or agent) doesn't start from zero:
70
+
71
+ ```bash
72
+ npx monomind memory store --key "[short-name]" --value "[what worked and why]" --namespace patterns
73
+ ```
74
+
75
+ See also: `.claude/commands/memory/memory-search.md` for the full flag reference.
@@ -16,15 +16,18 @@ Read `reference/document.md` from the monodesign skill directory for the full pr
16
16
 
17
17
  ## Discovery
18
18
 
19
- **Extract from codebase:**
19
+ **Extract from codebase (monograph-first):**
20
+ ```
21
+ # Preferred: monograph for design token discovery
22
+ monograph_query({ query: "CSS custom properties variables tokens" })
23
+ monograph_query({ query: "font-family font-face typography" })
24
+ monograph_query({ query: "color theme palette" })
25
+ ```
26
+
27
+ **Fallback (if monograph returns 0 results or DB not built):**
20
28
  ```bash
21
- # Find CSS custom properties
22
29
  grep -r "^--" src/ --include="*.css" --include="*.scss" -h | sort -u
23
-
24
- # Find font declarations
25
30
  grep -r "font-family\|@font-face\|@import.*font" src/ -h | sort -u
26
-
27
- # Find color values
28
31
  grep -rE "#[0-9a-fA-F]{3,8}|oklch\(|rgb\(|hsl\(" src/ -h | sort -u | head -50
29
32
  ```
30
33
 
@@ -17,7 +17,7 @@ Every codebase with more than a few pages has an implicit design system — inco
17
17
  ## Discovery Phase
18
18
 
19
19
  **Color inventory**
20
- - Collect all color values used in the codebase (grep for `#`, `rgb`, `hsl`, `oklch`)
20
+ - Collect all color values used in the codebase (use `monograph_query({ query: "color rgb hsl oklch" })` first; fall back to grep for `#`, `rgb`, `hsl`, `oklch` if monograph returns 0 results)
21
21
  - Group by apparent purpose (backgrounds, text, accents, borders, shadows)
22
22
  - Identify the brand anchor color(s)
23
23
  - Spot inconsistencies (5 slightly different grays)
@@ -81,7 +81,7 @@ Decide by scanning first (Scan mode Step 1). If the scan finds no tokens, no com
81
81
 
82
82
  Search the codebase in priority order:
83
83
 
84
- 1. **CSS custom properties**: grep for `--color-`, `--font-`, `--spacing-`, `--radius-`, `--shadow-`, `--ease-`, `--duration-` declarations in CSS files (usually `src/styles/`, `public/css/`, `app/globals.css`, etc.). Record name, value, and the file it's defined in.
84
+ 1. **CSS custom properties**: use `monograph_query({ query: "color font spacing radius shadow ease duration CSS custom property" })` first; fall back to grep for `--color-`, `--font-`, `--spacing-`, `--radius-`, `--shadow-`, `--ease-`, `--duration-` declarations in CSS files if monograph returns 0 results. Record name, value, and the file it's defined in.
85
85
  2. **Tailwind config**: if `tailwind.config.{js,ts,mjs}` exists, read the `theme.extend` block for colors, fontFamily, spacing, borderRadius, boxShadow.
86
86
  3. **CSS-in-JS theme files**: styled-components, emotion, vanilla-extract, stitches; look for `theme.ts`, `tokens.ts`, or equivalent.
87
87
  4. **Design token files**: `tokens.json`, `design-tokens.json`, Style Dictionary output, W3C token community group format.
@@ -364,7 +364,7 @@ The goal is the same: give the user three variants to choose from AND persist th
364
364
 
365
365
  Use the error payload:
366
366
 
367
- - `element_not_in_source` with `generatedMatch: "public/docs/foo.html"`: the served HTML is generated. Find the generator (grep for writers of that path, e.g. `scripts/build-sub-pages.js`, an Astro/Next template) and locate the template or partial that emits this element.
367
+ - `element_not_in_source` with `generatedMatch: "public/docs/foo.html"`: the served HTML is generated. Find the generator (use `monograph_query({ query: "build generate template" })` or `monograph_neighbors` to trace writers of that path; fall back to grep if monograph returns 0 results, e.g. `scripts/build-sub-pages.js`, an Astro/Next template) and locate the template or partial that emits this element.
368
368
  - `element_not_found`: the element is runtime-injected. Look for the component that renders it (React/Vue/Svelte), the JS that assembles it, or the data source that feeds it.
369
369
  - `file_is_generated` with `file: "..."`: user pointed at a generated file explicitly. Same resolution as `element_not_in_source`.
370
370
 
@@ -45,7 +45,7 @@ take the higher one and move on. The first lazy solution that works is the
45
45
  right one — once you actually know what the change has to touch.
46
46
 
47
47
  **Bug fix = root cause, not symptom.** A report names a symptom. Before you
48
- edit, grep every caller of the function you're about to touch. The lazy fix IS
48
+ edit, find every caller of the function you're about to touch (use `monograph_neighbors` or `monograph_impact` first; fall back to grep only if monograph returns 0 results). The lazy fix IS
49
49
  the root-cause fix: one guard in the shared function is a smaller diff than a
50
50
  guard in every caller — and patching only the path the ticket names leaves
51
51
  every sibling caller still broken. Fix it once, where all callers route through.
@@ -62,7 +62,7 @@ The available domains and their agent counts are:
62
62
  Once the domain is selected, use only the agent names for that domain:
63
63
 
64
64
  ### development
65
- sparc-coder, coder, backend-dev, Frontend Developer, mobile-dev, ml-developer, Rapid Prototyper, base-template-generator, LSP/Index Engineer, macOS Spatial/Metal Engineer, Terminal Integration Specialist, Embedded Firmware Engineer, Solidity Smart Contract Engineer, WeChat Mini Program Developer, Feishu Integration Developer, Roblox Systems Scripter, Godot Gameplay Scripter, Unity Architect, Unreal Systems Engineer, visionOS Spatial Engineer
65
+ coder, backend-dev, Frontend Developer, mobile-dev, ml-developer, Rapid Prototyper, base-template-generator, LSP/Index Engineer, macOS Spatial/Metal Engineer, Terminal Integration Specialist, Embedded Firmware Engineer, Solidity Smart Contract Engineer, WeChat Mini Program Developer, Feishu Integration Developer, Roblox Systems Scripter, Godot Gameplay Scripter, Unity Architect, Unreal Systems Engineer, visionOS Spatial Engineer
66
66
 
67
67
  ### testing
68
68
  tdd-london-swarm, API Tester, production-validator, Evidence Collector, agent-browser-testing, Accessibility Auditor, Reality Checker, Code Reviewer, code-analyzer, feature-dev:code-reviewer
@@ -80,7 +80,7 @@ Data Engineer, AI Engineer, Database Optimizer, AI Data Remediation Engineer, Mo
80
80
  system-architect, Software Architect, Backend Architect, Plan, UX Architect, Workflow Architect
81
81
 
82
82
  ### research
83
- sparc:researcher, Explore, Trend Researcher, Technical Writer, api-docs
83
+ Explore, Trend Researcher, Technical Writer, api-docs
84
84
 
85
85
  ### marketing
86
86
  AI Citation Strategist, App Store Optimizer, Baidu SEO Specialist, Bilibili Content Strategist, Carousel Growth Engine, China E-Commerce Operator, Content Creator, Cross-Border E-Commerce Specialist, Developer Advocate, Douyin Strategist, Growth Hacker, Healthcare Marketing Compliance Specialist, Instagram Curator, Kuaishou Strategist, LinkedIn Content Creator, Podcast Strategist, Reddit Community Builder, SEO Specialist, Short-Video Editing Coach, Social Media Strategist, TikTok Strategist, Twitter Engager, WeChat Official Account Manager, Weibo Strategist, Xiaohongshu Specialist, Zhihu Strategist, Livestream Commerce Coach
@@ -125,7 +125,6 @@ Analytics Reporter, Executive Summary Generator, Finance Tracker, Support Respon
125
125
  Use this to convert the chosen agent name to a callable slug:
126
126
 
127
127
  ```
128
- sparc-coder → sparc-coder
129
128
  coder → coder
130
129
  backend-dev → backend-dev
131
130
  Frontend Developer → Frontend Developer
@@ -158,7 +157,6 @@ Software Architect → Software Architect
158
157
  Backend Architect → Backend Architect
159
158
  Plan → Plan
160
159
  UX Architect → UX Architect
161
- sparc:researcher → sparc:researcher
162
160
  Explore → Explore
163
161
  Trend Researcher → Trend Researcher
164
162
  Technical Writer → Technical Writer