@monoes/monomindcli 2.9.7 → 2.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/.claude/agents/design/design-monodesign.md +1 -2
  2. package/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +1 -2
  3. package/.claude/agents/engineering/engineering-ai-engineer.md +1 -2
  4. package/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +0 -1
  5. package/.claude/agents/engineering/engineering-backend-architect.md +1 -2
  6. package/.claude/agents/engineering/engineering-code-reviewer.md +1 -2
  7. package/.claude/agents/engineering/engineering-data-engineer.md +1 -2
  8. package/.claude/agents/engineering/engineering-database-optimizer.md +1 -2
  9. package/.claude/agents/engineering/engineering-devops-automator.md +1 -2
  10. package/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +1 -2
  11. package/.claude/agents/engineering/engineering-feishu-integration-developer.md +1 -2
  12. package/.claude/agents/engineering/engineering-frontend-developer.md +1 -2
  13. package/.claude/agents/engineering/engineering-git-workflow-master.md +1 -2
  14. package/.claude/agents/engineering/engineering-incident-response-commander.md +0 -1
  15. package/.claude/agents/engineering/engineering-mobile-app-builder.md +1 -2
  16. package/.claude/agents/engineering/engineering-rapid-prototyper.md +1 -2
  17. package/.claude/agents/engineering/engineering-security-engineer.md +1 -2
  18. package/.claude/agents/engineering/engineering-senior-developer.md +1 -2
  19. package/.claude/agents/engineering/engineering-software-architect.md +1 -2
  20. package/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +1 -2
  21. package/.claude/agents/engineering/engineering-sre.md +0 -1
  22. package/.claude/agents/engineering/engineering-technical-writer.md +1 -2
  23. package/.claude/agents/engineering/engineering-threat-detection-engineer.md +0 -1
  24. package/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +1 -2
  25. package/.claude/agents/github/code-review-swarm.md +0 -1
  26. package/.claude/agents/github/github-modes.md +0 -1
  27. package/.claude/agents/github/issue-tracker.md +0 -1
  28. package/.claude/agents/github/multi-repo-swarm.md +0 -1
  29. package/.claude/agents/github/pr-manager.md +0 -1
  30. package/.claude/agents/github/project-board-sync.md +0 -1
  31. package/.claude/agents/github/release-manager.md +0 -1
  32. package/.claude/agents/github/repo-architect.md +0 -1
  33. package/.claude/agents/github/swarm-issue.md +0 -1
  34. package/.claude/agents/github/swarm-pr.md +0 -1
  35. package/.claude/agents/github/sync-coordinator.md +0 -1
  36. package/.claude/agents/github/workflow-automation.md +0 -1
  37. package/.claude/agents/marketing/marketing-competitive-content.md +1 -2
  38. package/.claude/agents/marketing/marketing-cro-specialist.md +1 -2
  39. package/.claude/agents/marketing/marketing-email-specialist.md +1 -2
  40. package/.claude/agents/marketing/marketing-launch-strategist.md +1 -2
  41. package/.claude/agents/marketing/marketing-pricing-strategist.md +1 -2
  42. package/.claude/agents/specialized/agentic-identity-trust.md +0 -1
  43. package/.claude/agents/specialized/agents-orchestrator.md +1 -2
  44. package/.claude/agents/specialized/automation-governance-architect.md +1 -2
  45. package/.claude/agents/specialized/blockchain-security-auditor.md +1 -2
  46. package/.claude/agents/specialized/compliance-auditor.md +1 -2
  47. package/.claude/agents/specialized/identity-graph-operator.md +0 -1
  48. package/.claude/agents/specialized/lsp-index-engineer.md +1 -2
  49. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -1
  50. package/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +0 -1
  51. package/.claude/agents/specialized/specialized-developer-advocate.md +1 -2
  52. package/.claude/agents/specialized/specialized-document-generator.md +1 -2
  53. package/.claude/agents/specialized/specialized-mcp-builder.md +1 -2
  54. package/.claude/agents/specialized/specialized-model-qa.md +0 -1
  55. package/.claude/agents/specialized/specialized-workflow-architect.md +1 -2
  56. package/.claude/agents/specialized/zk-steward.md +1 -2
  57. package/.claude/agents/testing/production-validator.md +0 -1
  58. package/.claude/agents/testing/tdd-london-swarm.md +0 -1
  59. package/.claude/agents/testing/testing-accessibility-auditor.md +0 -1
  60. package/.claude/agents/testing/testing-api-tester.md +1 -2
  61. package/.claude/agents/testing/testing-evidence-collector.md +1 -2
  62. package/.claude/agents/testing/testing-performance-benchmarker.md +1 -2
  63. package/.claude/agents/testing/testing-test-results-analyzer.md +1 -2
  64. package/.claude/agents/testing/testing-tool-evaluator.md +1 -2
  65. package/.claude/agents/testing/testing-workflow-optimizer.md +1 -2
  66. package/.claude/commands/hooks/README.md +1 -1
  67. package/.claude/commands/memory/README.md +6 -7
  68. package/.claude/commands/monitoring/README.md +1 -1
  69. package/.claude/helpers/control-start.cjs +27 -7
  70. package/.claude/helpers/handlers/route-handler.cjs +22 -3
  71. package/.claude/helpers/handlers/session-handler.cjs +43 -0
  72. package/.claude/helpers/intelligence.cjs +27 -6
  73. package/.claude/helpers/statusline.cjs +45 -11
  74. package/.claude/skills/agentic-jujutsu/SKILL.md +17 -15
  75. package/.claude/skills/hive-mind-advanced/SKILL.md +212 -559
  76. package/.claude/skills/hooks-automation/SKILL.md +1 -1
  77. package/.claude/skills/mastermind-adapters/SKILL.md +0 -11
  78. package/.claude/skills/mastermind-agents/SKILL.md +0 -11
  79. package/.claude/skills/mastermind-backup/SKILL.md +0 -11
  80. package/.claude/skills/mastermind-bootstrap/SKILL.md +0 -11
  81. package/.claude/skills/mastermind-delegation/SKILL.md +14 -12
  82. package/.claude/skills/mastermind-idea/SKILL.md +0 -5
  83. package/.claude/skills/mastermind-monitor/SKILL.md +0 -15
  84. package/.claude/skills/mastermind-org-settings/SKILL.md +0 -11
  85. package/.claude/skills/mastermind-plugins/SKILL.md +0 -11
  86. package/.claude/skills/mastermind-protocol/SKILL.md +6 -124
  87. package/.claude/skills/mastermind-repeat/SKILL.md +0 -25
  88. package/.claude/skills/mastermind-review/SKILL.md +1 -1
  89. package/.claude/skills/mastermind-stoporg/SKILL.md +0 -19
  90. package/.claude/skills/memory-toolkit/SKILL.md +12 -11
  91. package/.claude/skills/monodesign/scripts/detector/engines/browser/drivers.mjs +8 -1
  92. package/.claude/skills/pair-programming/SKILL.md +1 -1
  93. package/.claude/skills/performance-analysis/SKILL.md +228 -484
  94. package/.claude/skills/specialagent/SKILL.md +31 -133
  95. package/.claude/skills/swarm-advanced/SKILL.md +2 -2
  96. package/.claude/skills/swarm-orchestration/SKILL.md +220 -150
  97. package/.claude/skills/verification-quality/SKILL.md +247 -571
  98. package/README.md +3 -3
  99. package/dist/src/commands/agent-lifecycle.js +3 -3
  100. package/dist/src/commands/agent-lifecycle.js.map +1 -1
  101. package/dist/src/commands/autopilot.d.ts.map +1 -1
  102. package/dist/src/commands/autopilot.js +7 -1
  103. package/dist/src/commands/autopilot.js.map +1 -1
  104. package/dist/src/commands/doc.d.ts.map +1 -1
  105. package/dist/src/commands/doc.js +14 -3
  106. package/dist/src/commands/doc.js.map +1 -1
  107. package/dist/src/commands/doctor-env-checks.d.ts +1 -1
  108. package/dist/src/commands/doctor-env-checks.d.ts.map +1 -1
  109. package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
  110. package/dist/src/commands/doctor-project-checks.js +3 -37
  111. package/dist/src/commands/doctor-project-checks.js.map +1 -1
  112. package/dist/src/commands/doctor.d.ts.map +1 -1
  113. package/dist/src/commands/doctor.js +30 -1
  114. package/dist/src/commands/doctor.js.map +1 -1
  115. package/dist/src/commands/hooks-coverage-commands.d.ts.map +1 -1
  116. package/dist/src/commands/hooks-coverage-commands.js +75 -67
  117. package/dist/src/commands/hooks-coverage-commands.js.map +1 -1
  118. package/dist/src/commands/hooks-workers.d.ts.map +1 -1
  119. package/dist/src/commands/hooks-workers.js +41 -10
  120. package/dist/src/commands/hooks-workers.js.map +1 -1
  121. package/dist/src/commands/hooks.js +1 -1
  122. package/dist/src/commands/index.d.ts +1 -1
  123. package/dist/src/commands/index.d.ts.map +1 -1
  124. package/dist/src/commands/index.js +20 -4
  125. package/dist/src/commands/index.js.map +1 -1
  126. package/dist/src/commands/init.d.ts.map +1 -1
  127. package/dist/src/commands/init.js +80 -7
  128. package/dist/src/commands/init.js.map +1 -1
  129. package/dist/src/commands/mcp.d.ts.map +1 -1
  130. package/dist/src/commands/mcp.js +78 -2
  131. package/dist/src/commands/mcp.js.map +1 -1
  132. package/dist/src/commands/neural-optimize.d.ts.map +1 -1
  133. package/dist/src/commands/neural-optimize.js +27 -5
  134. package/dist/src/commands/neural-optimize.js.map +1 -1
  135. package/dist/src/commands/org-observe.d.ts.map +1 -1
  136. package/dist/src/commands/org-observe.js +37 -30
  137. package/dist/src/commands/org-observe.js.map +1 -1
  138. package/dist/src/commands/org.d.ts.map +1 -1
  139. package/dist/src/commands/org.js +129 -2
  140. package/dist/src/commands/org.js.map +1 -1
  141. package/dist/src/commands/performance.js +1 -1
  142. package/dist/src/commands/performance.js.map +1 -1
  143. package/dist/src/commands/security-cve.d.ts.map +1 -1
  144. package/dist/src/commands/security-cve.js +1 -11
  145. package/dist/src/commands/security-cve.js.map +1 -1
  146. package/dist/src/commands/security-misc.d.ts +0 -9
  147. package/dist/src/commands/security-misc.d.ts.map +1 -1
  148. package/dist/src/commands/security-misc.js +33 -54
  149. package/dist/src/commands/security-misc.js.map +1 -1
  150. package/dist/src/commands/security-scan.d.ts.map +1 -1
  151. package/dist/src/commands/security-scan.js +3 -11
  152. package/dist/src/commands/security-scan.js.map +1 -1
  153. package/dist/src/commands/swarm.d.ts.map +1 -1
  154. package/dist/src/commands/swarm.js +7 -2
  155. package/dist/src/commands/swarm.js.map +1 -1
  156. package/dist/src/commands/ui.d.ts +8 -0
  157. package/dist/src/commands/ui.d.ts.map +1 -0
  158. package/dist/src/commands/ui.js +94 -0
  159. package/dist/src/commands/ui.js.map +1 -0
  160. package/dist/src/init/claudemd-generator.d.ts.map +1 -1
  161. package/dist/src/init/claudemd-generator.js +7 -9
  162. package/dist/src/init/claudemd-generator.js.map +1 -1
  163. package/dist/src/init/executor.d.ts.map +1 -1
  164. package/dist/src/init/executor.js +13 -3
  165. package/dist/src/init/executor.js.map +1 -1
  166. package/dist/src/init/kimi-generator.d.ts +3 -2
  167. package/dist/src/init/kimi-generator.d.ts.map +1 -1
  168. package/dist/src/init/kimi-generator.js +45 -13
  169. package/dist/src/init/kimi-generator.js.map +1 -1
  170. package/dist/src/init/statusline-generator.d.ts +1 -1
  171. package/dist/src/init/statusline-generator.js +1 -1
  172. package/dist/src/init/write-capabilities.js +7 -7
  173. package/dist/src/init/write-capabilities.js.map +1 -1
  174. package/dist/src/knowledge/document-pipeline.d.ts.map +1 -1
  175. package/dist/src/knowledge/document-pipeline.js +1 -0
  176. package/dist/src/knowledge/document-pipeline.js.map +1 -1
  177. package/dist/src/knowledge/eval/golden-set.d.ts.map +1 -1
  178. package/dist/src/knowledge/eval/golden-set.js +21 -32
  179. package/dist/src/knowledge/eval/golden-set.js.map +1 -1
  180. package/dist/src/mcp-tools/embeddings-tools.js +2 -2
  181. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  182. package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
  183. package/dist/src/mcp-tools/hooks-intelligence.js +29 -3
  184. package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
  185. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
  186. package/dist/src/mcp-tools/hooks-routing.js +32 -19
  187. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  188. package/dist/src/mcp-tools/monograph/query-tools.d.ts.map +1 -1
  189. package/dist/src/mcp-tools/monograph/query-tools.js +48 -18
  190. package/dist/src/mcp-tools/monograph/query-tools.js.map +1 -1
  191. package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -1
  192. package/dist/src/mcp-tools/performance-tools.js +15 -10
  193. package/dist/src/mcp-tools/performance-tools.js.map +1 -1
  194. package/dist/src/memory/embedding-operations.d.ts +4 -0
  195. package/dist/src/memory/embedding-operations.d.ts.map +1 -1
  196. package/dist/src/memory/embedding-operations.js +125 -32
  197. package/dist/src/memory/embedding-operations.js.map +1 -1
  198. package/dist/src/memory/hnsw-operations.d.ts +1 -1
  199. package/dist/src/memory/hnsw-operations.js +1 -1
  200. package/dist/src/memory/memory-bridge.d.ts +8 -0
  201. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  202. package/dist/src/memory/memory-bridge.js +37 -8
  203. package/dist/src/memory/memory-bridge.js.map +1 -1
  204. package/dist/src/memory/memory-read.d.ts +1 -1
  205. package/dist/src/memory/memory-read.js +2 -2
  206. package/dist/src/memory/memory-read.js.map +1 -1
  207. package/dist/src/orgrt/antigravity-runner.d.ts.map +1 -1
  208. package/dist/src/orgrt/antigravity-runner.js +6 -6
  209. package/dist/src/orgrt/antigravity-runner.js.map +1 -1
  210. package/dist/src/orgrt/checkpoint-ops.d.ts +11 -1
  211. package/dist/src/orgrt/checkpoint-ops.d.ts.map +1 -1
  212. package/dist/src/orgrt/checkpoint-ops.js +18 -86
  213. package/dist/src/orgrt/checkpoint-ops.js.map +1 -1
  214. package/dist/src/orgrt/checkpoint.d.ts +1 -1
  215. package/dist/src/orgrt/checkpoint.d.ts.map +1 -1
  216. package/dist/src/orgrt/checkpoint.js +3 -3
  217. package/dist/src/orgrt/checkpoint.js.map +1 -1
  218. package/dist/src/orgrt/daemon.d.ts +9 -1
  219. package/dist/src/orgrt/daemon.d.ts.map +1 -1
  220. package/dist/src/orgrt/daemon.js +267 -139
  221. package/dist/src/orgrt/daemon.js.map +1 -1
  222. package/dist/src/orgrt/decisions.d.ts +13 -0
  223. package/dist/src/orgrt/decisions.d.ts.map +1 -1
  224. package/dist/src/orgrt/decisions.js +95 -0
  225. package/dist/src/orgrt/decisions.js.map +1 -1
  226. package/dist/src/orgrt/forwarder.d.ts.map +1 -1
  227. package/dist/src/orgrt/forwarder.js +148 -15
  228. package/dist/src/orgrt/forwarder.js.map +1 -1
  229. package/dist/src/orgrt/kimicode-runner.js +1 -1
  230. package/dist/src/orgrt/kimicode-runner.js.map +1 -1
  231. package/dist/src/orgrt/opencode-runner.js +1 -1
  232. package/dist/src/orgrt/opencode-runner.js.map +1 -1
  233. package/dist/src/orgrt/session.d.ts +27 -1
  234. package/dist/src/orgrt/session.d.ts.map +1 -1
  235. package/dist/src/orgrt/session.js +67 -6
  236. package/dist/src/orgrt/session.js.map +1 -1
  237. package/dist/src/orgrt/task-dag.d.ts +11 -1
  238. package/dist/src/orgrt/task-dag.d.ts.map +1 -1
  239. package/dist/src/orgrt/task-dag.js +93 -2
  240. package/dist/src/orgrt/task-dag.js.map +1 -1
  241. package/dist/src/orgrt/templates.d.ts.map +1 -1
  242. package/dist/src/orgrt/templates.js +26 -2
  243. package/dist/src/orgrt/templates.js.map +1 -1
  244. package/dist/src/orgrt/types.d.ts +77 -1
  245. package/dist/src/orgrt/types.d.ts.map +1 -1
  246. package/dist/src/orgrt/types.js +28 -2
  247. package/dist/src/orgrt/types.js.map +1 -1
  248. package/dist/src/orgrt/vercel-providers.d.ts.map +1 -1
  249. package/dist/src/orgrt/vercel-providers.js +9 -4
  250. package/dist/src/orgrt/vercel-providers.js.map +1 -1
  251. package/dist/src/orgrt/vercel-runner.d.ts +0 -23
  252. package/dist/src/orgrt/vercel-runner.d.ts.map +1 -1
  253. package/dist/src/orgrt/vercel-runner.js +38 -7
  254. package/dist/src/orgrt/vercel-runner.js.map +1 -1
  255. package/dist/tsconfig.tsbuildinfo +1 -1
  256. package/package.json +3 -3
  257. package/.claude/commands/mastermind/approvev1.md +0 -94
  258. package/.claude/commands/mastermind/architect.md +0 -52
  259. package/.claude/commands/mastermind/autodev.md +0 -28
  260. package/.claude/commands/mastermind/build.md +0 -23
  261. package/.claude/commands/mastermind/finish.md +0 -17
  262. package/.claude/commands/mastermind/runorgv1.md +0 -159
  263. package/.claude/commands/mastermind/taskdev.md +0 -23
  264. package/.claude/commands/mastermind/tdd.md +0 -19
  265. package/.claude/commands/mastermind/verify.md +0 -19
  266. package/.claude/skills/mastermind-approvev1/SKILL.md +0 -191
  267. package/.claude/skills/mastermind-architect/SKILL.md +0 -862
  268. package/.claude/skills/mastermind-autodev/SKILL.md +0 -360
  269. package/.claude/skills/mastermind-build/SKILL.md +0 -169
  270. package/.claude/skills/mastermind-companies/SKILL.md +0 -256
  271. package/.claude/skills/mastermind-content/SKILL.md +0 -197
  272. package/.claude/skills/mastermind-costs/SKILL.md +0 -151
  273. package/.claude/skills/mastermind-finance/SKILL.md +0 -166
  274. package/.claude/skills/mastermind-finish/SKILL.md +0 -251
  275. package/.claude/skills/mastermind-heartbeatv1/SKILL.md +0 -167
  276. package/.claude/skills/mastermind-instance-settings/SKILL.md +0 -315
  277. package/.claude/skills/mastermind-marketing/SKILL.md +0 -228
  278. package/.claude/skills/mastermind-marketing/references/copywriting-frameworks.md +0 -181
  279. package/.claude/skills/mastermind-marketing/references/persuasion-psychology.md +0 -158
  280. package/.claude/skills/mastermind-ops/SKILL.md +0 -168
  281. package/.claude/skills/mastermind-org-chart/SKILL.md +0 -209
  282. package/.claude/skills/mastermind-project-detail/SKILL.md +0 -249
  283. package/.claude/skills/mastermind-project-workspace/SKILL.md +0 -244
  284. package/.claude/skills/mastermind-projects/SKILL.md +0 -167
  285. package/.claude/skills/mastermind-runorgv1/SKILL.md +0 -731
  286. package/.claude/skills/mastermind-sales/SKILL.md +0 -170
  287. package/.claude/skills/mastermind-taskdev/SKILL.md +0 -377
  288. package/.claude/skills/mastermind-taskdev/code-quality-reviewer-prompt.md +0 -60
  289. package/.claude/skills/mastermind-taskdev/final-reviewer-prompt.md +0 -144
  290. package/.claude/skills/mastermind-taskdev/implementer-prompt.md +0 -114
  291. package/.claude/skills/mastermind-taskdev/spec-reviewer-prompt.md +0 -80
  292. package/.claude/skills/mastermind-tdd/SKILL.md +0 -424
  293. package/.claude/skills/mastermind-verify/SKILL.md +0 -196
  294. package/.claude/skills/mastermind-wiki/SKILL.md +0 -314
  295. package/.claude/skills/monolean-review/SKILL.md +0 -57
@@ -1,170 +0,0 @@
1
- ---
2
- name: mastermind-sales
3
- description: Mastermind sales domain — outreach sequences, proposals, pipeline management. Spawns a Sales Manager coordinating outbound strategy and proposal writing agents.
4
- type: domain-skill
5
- default_mode: confirm
6
- ---
7
-
8
- # Mastermind Sales Domain
9
-
10
- This skill is invoked by `mastermind:master` or directly via `/mastermind:sales`.
11
-
12
- ---
13
-
14
- ## Inputs
15
-
16
- - `brain_context`: BRAIN CONTEXT block (injected by master, or loaded standalone via mastermind-protocol/SKILL.md brain load)
17
- - `prompt`: the sales goal for this run
18
- - `project_name`: monotask space name
19
- - `board_id`: monotask board ID (set by master, or created standalone)
20
- - `mode`: auto | confirm
21
-
22
- ---
23
-
24
- ## Complexity Assessment
25
-
26
- Assess the prompt to determine execution mode:
27
-
28
- **Simple (direct execution):** Single output, single agent:
29
- - "Draft a cold email to the CTO of Acme Corp"
30
- - "Write a one-paragraph executive summary for this proposal"
31
- → Use a single Outbound Strategist or Proposal Strategist agent. Skip manager delegation.
32
-
33
- **Complex (spawn Sales Manager agent):** Any of these:
34
- - Full outreach sequence (ICP + targeting + multi-touch sequence)
35
- - RFP or proposal requiring research + executive summary + pricing
36
- - Pipeline review and deal strategy across multiple opportunities
37
- - Account expansion plan
38
- → Spawn Sales Manager agent with full briefing.
39
-
40
- ---
41
-
42
- ## Standalone Execution (when called without master)
43
-
44
- If this skill is invoked directly (not by master):
45
-
46
- 1. Load brain context following mastermind-protocol/SKILL.md Brain Load Procedure (namespace: `sales`)
47
- 2. Run intake from mastermind-intake/SKILL.md if prompt is vague
48
- 3. Follow mastermind-protocol/SKILL.md Monotask Space+Board Setup Procedure:
49
- ```bash
50
- project_name="${project_name:-$(basename "$PWD")}"
51
- space_id=$(monotask space list 2>/dev/null | awk -F' \| ' -v n="$project_name" '$2==n{print $1}' | head -1)
52
- [ -z "$space_id" ] && space_id=$(monotask space create "$project_name" 2>&1 | grep -oE '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
53
- [ -z "$space_id" ] && { echo "ERROR: Could not find or create space '$project_name'"; exit 1; }
54
- board_id=$(monotask board create "sales" --json | jq -r '.id // empty')
55
- [ -z "$board_id" ] && { echo "ERROR: Failed to create sales board"; exit 1; }
56
- monotask space boards add "$space_id" "$board_id" >/dev/null 2>&1 || true
57
- todo_col=$(monotask column create "$board_id" "Todo" --json | jq -r '.id')
58
- doing_col=$(monotask column create "$board_id" "Doing" --json | jq -r '.id')
59
- done_col=$(monotask column create "$board_id" "Done" --json | jq -r '.id')
60
- ```
61
- 4. Proceed with complexity assessment below
62
- 5. At end: follow mastermind-protocol/SKILL.md Brain Write Procedure (namespace: `sales`)
63
-
64
- ---
65
-
66
- ## Complex Execution — Sales Manager Agent
67
-
68
- Spawn a Sales Manager agent via Task tool:
69
-
70
- ```javascript
71
- Task({
72
- subagent_type: "coordinator",
73
- description: `You are the Sales Manager for project <project_name>.
74
-
75
- CONTEXT: <date> | Project: <project_name> | Spawned by: mastermind:sales
76
-
77
- BRAIN CONTEXT:
78
- <brain_context>
79
-
80
- YOUR BOARD: <board_id>
81
- YOUR GOAL: <prompt>
82
-
83
- STEP 1 — PLAN
84
- Decompose the sales goal into coordinated workstreams. For each workstream, identify:
85
- - Target segment or specific account
86
- - Which sales motion applies (outbound, proposal, pipeline review, expansion)
87
- - Deliverable needed (email sequence, proposal doc, deal strategy, account plan)
88
- - Dependencies between workstreams (e.g. research before outreach)
89
-
90
- STEP 2 — CREATE TASKS
91
- For each workstream, create a monotask card on the project board.
92
- First look up column IDs and assign shell variables:
93
- ```bash
94
- columns=$(monotask column list "$BOARD_ID" --json)
95
- COL_TODO_ID=$(echo "$columns" | jq -r '.[] | select(.title == "Todo" or .title == "Backlog") | .id' | head -1)
96
- COL_DONE_ID=$(echo "$columns" | jq -r '.[] | select(.title == "Done") | .id' | head -1)
97
- ```
98
- Then create the card:
99
- ```bash
100
- result=$(monotask card create "$BOARD_ID" "$COL_TODO_ID" "<short summary of workstream goal, ≤80 chars>" --json)
101
- CARD_ID=$(echo "$result" | jq -r '.id // empty')
102
- monotask card set-description "$BOARD_ID" "$CARD_ID" "[specific sales workstream goal]"
103
- monotask card comment add "$BOARD_ID" "$CARD_ID" "CONTEXT: <date> | Project: <project_name> | Created by: Sales Manager
104
- BRAIN MEMORY: [paste most relevant 3-5 brain context excerpts]
105
- SCOPE: [target accounts, segments, deal stage, decision makers]
106
- CONSTRAINTS: [brand voice, compliance, do-not-contact lists, pricing floors]
107
- SUCCESS CRITERIA:
108
- - [ ] [checkable item]
109
- AGENT: [Outbound Strategist | Proposal Strategist | Deal Strategist | Account Strategist | researcher]
110
- SWARM: hierarchical 4 raft
111
- DEPENDENCIES: [task IDs or \"none\"]
112
- OUTPUT FORMAT: unified output schema"
113
- ```
114
-
115
- STEP 3 — EXECUTE
116
- Spawn one Task agent per workstream:
117
- - Outbound and prospecting: subagent_type "Outbound Strategist"
118
- - Proposal writing: subagent_type "Proposal Strategist"
119
- - Deal qualification: subagent_type "Deal Strategist"
120
- - Account expansion: subagent_type "Account Strategist"
121
- - Competitive research: subagent_type "researcher"
122
-
123
- Also run /mastermind:do --board <board_id> to track execution.
124
-
125
- STEP 4 — COLLECT AND RETURN
126
- Collect all agent outputs. Return to caller:
127
-
128
- domain: sales
129
- status: complete | partial | blocked
130
- artifacts:
131
- - path: [email sequences, proposal documents, account plans]
132
- type: copy
133
- decisions:
134
- - what: [ICP definition, messaging strategy, deal approach]
135
- why: [reasoning]
136
- confidence: [0.0-1.0]
137
- outcome: pending | shipped
138
- lessons:
139
- - what_worked: [which approaches resonated or were most efficient]
140
- - what_didnt: [what needed more personalization or research]
141
- next_actions:
142
- - [e.g. "run mastermind:research to validate ICP assumptions"]
143
- - [e.g. "run mastermind:content to produce case studies for proposals"]
144
- board_url: monotask://<project_name>/sales
145
- run_id: <ISO8601-timestamp>`,
146
- run_in_background: true
147
- })
148
- ```
149
-
150
- ---
151
-
152
- ## Simple Execution
153
-
154
- For simple tasks (single agent, single output):
155
-
156
- 1. Spawn one Task agent with the sales request as a self-contained briefing
157
- 2. Collect output
158
- 3. Return unified output schema with `status: complete`
159
-
160
- ---
161
-
162
- ## Domain Swarm Defaults
163
-
164
- | Task Type | Agent | Swarm |
165
- |---|---|---|
166
- | Full outreach campaign | coordinator + outbound + researcher | hierarchical 4 raft specialized |
167
- | Proposal / RFP response | coordinator + proposal writer | hierarchical 4 raft specialized |
168
- | Deal strategy | Deal Strategist | hierarchical 3 raft specialized |
169
- | Account expansion plan | Account Strategist | hierarchical 3 raft specialized |
170
- | Single email or cold message | Outbound Strategist | single agent |
@@ -1,377 +0,0 @@
1
- ---
2
- name: mastermind-taskdev
3
- description: Execute implementation plans with independent tasks using fresh subagents per task, with two-stage review (spec compliance then code quality) after each.
4
- type: domain-skill
5
- default_mode: auto
6
- ---
7
-
8
- # Mastermind Taskdev
9
-
10
- Execute a plan by dispatching a fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
11
-
12
- **Why subagents:** You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
13
-
14
- **Core principle:** Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration
15
-
16
- **Narration:** between tool calls, narrate at most one short line — the progress ledger and the tool results carry the record.
17
-
18
- **Continuous execution:** Do not pause to check in with your human partner between tasks. Execute all tasks from the plan without stopping. The only reasons to stop are: BLOCKED status you cannot resolve, ambiguity that genuinely prevents progress, or all tasks complete. "Should I continue?" prompts and progress summaries waste their time — they asked you to execute the plan, so execute it.
19
-
20
- ---
21
-
22
- ## When to Use
23
-
24
- ```dot
25
- digraph when_to_use {
26
- "Have implementation plan?" [shape=diamond];
27
- "Tasks mostly independent?" [shape=diamond];
28
- "Stay in this session?" [shape=diamond];
29
- "mastermind:taskdev" [shape=box];
30
- "mastermind:execute" [shape=box];
31
- "Manual execution or brainstorm first" [shape=box];
32
-
33
- "Have implementation plan?" -> "Tasks mostly independent?" [label="yes"];
34
- "Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"];
35
- "Tasks mostly independent?" -> "Stay in this session?" [label="yes"];
36
- "Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
37
- "Stay in this session?" -> "mastermind:taskdev" [label="yes"];
38
- "Stay in this session?" -> "mastermind:execute" [label="no - parallel session"];
39
- }
40
- ```
41
-
42
- **vs. mastermind:execute (parallel session):**
43
- - Same session (no context switch)
44
- - Fresh subagent per task (no context pollution)
45
- - Two-stage review after each task: spec compliance first, then code quality
46
- - Faster iteration (no human-in-loop between tasks)
47
-
48
- ---
49
-
50
- ## Inputs
51
-
52
- - `brain_context`: BRAIN CONTEXT block (loaded via mastermind-protocol/SKILL.md brain load)
53
- - `plan_file`: absolute path to the plan `.md` file to execute
54
- - `params`: any additional flags or context
55
- - `mode`: auto | confirm
56
-
57
- ---
58
-
59
- ## The Process
60
-
61
- ```dot
62
- digraph process {
63
- rankdir=TB;
64
-
65
- subgraph cluster_per_task {
66
- label="Per Task";
67
- "Dispatch implementer subagent (./implementer-prompt.md)" [shape=box];
68
- "Implementer subagent asks questions?" [shape=diamond];
69
- "Answer questions, provide context" [shape=box];
70
- "Implementer subagent implements, tests, commits, self-reviews" [shape=box];
71
- "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [shape=box];
72
- "Spec reviewer subagent confirms code matches spec?" [shape=diamond];
73
- "Implementer subagent fixes spec gaps" [shape=box];
74
- "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [shape=box];
75
- "Code quality reviewer subagent approves?" [shape=diamond];
76
- "Implementer subagent fixes quality issues" [shape=box];
77
- "Mark task complete in TodoWrite" [shape=box];
78
- }
79
-
80
- "Read plan, note context and global constraints, create TodoWrite" [shape=box];
81
- "More tasks remain?" [shape=diamond];
82
- "Dispatch final code reviewer subagent for entire implementation" [shape=box];
83
- "Use mastermind:finish" [shape=box style=filled fillcolor=lightgreen];
84
-
85
- "Read plan, note context and global constraints, create TodoWrite" -> "Dispatch implementer subagent (./implementer-prompt.md)";
86
- "Dispatch implementer subagent (./implementer-prompt.md)" -> "Implementer subagent asks questions?";
87
- "Implementer subagent asks questions?" -> "Answer questions, provide context" [label="yes"];
88
- "Answer questions, provide context" -> "Dispatch implementer subagent (./implementer-prompt.md)";
89
- "Implementer subagent asks questions?" -> "Implementer subagent implements, tests, commits, self-reviews" [label="no"];
90
- "Implementer subagent implements, tests, commits, self-reviews" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)";
91
- "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" -> "Spec reviewer subagent confirms code matches spec?";
92
- "Spec reviewer subagent confirms code matches spec?" -> "Implementer subagent fixes spec gaps" [label="no"];
93
- "Implementer subagent fixes spec gaps" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [label="re-review"];
94
- "Spec reviewer subagent confirms code matches spec?" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="yes"];
95
- "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" -> "Code quality reviewer subagent approves?";
96
- "Code quality reviewer subagent approves?" -> "Implementer subagent fixes quality issues" [label="no"];
97
- "Implementer subagent fixes quality issues" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="re-review"];
98
- "Code quality reviewer subagent approves?" -> "Mark task complete in TodoWrite" [label="yes"];
99
- "Mark task complete in TodoWrite" -> "More tasks remain?";
100
- "More tasks remain?" -> "Dispatch implementer subagent (./implementer-prompt.md)" [label="yes"];
101
- "More tasks remain?" -> "Dispatch final code reviewer subagent for entire implementation" [label="no"];
102
- "Dispatch final code reviewer subagent for entire implementation" -> "Use mastermind:finish";
103
- }
104
- ```
105
-
106
- ---
107
-
108
- ## Pre-Flight Plan Review
109
-
110
- Before dispatching Task 1, scan the plan once for conflicts:
111
-
112
- - tasks that contradict each other or the plan's Global Constraints
113
- - anything the plan explicitly mandates that the review rubric treats as a defect (a test that asserts nothing, verbatim duplication of a logic block)
114
-
115
- Present everything you find to your human partner as one batched question — each finding beside the plan text that mandates it, asking which governs — before execution begins, not one interrupt per discovery mid-plan. If the scan is clean, proceed without comment. The review loop remains the net for conflicts that only emerge from implementation. (In auto mode: resolve each conflict yourself, state the resolution explicitly, and log it as a decision with confidence.)
116
-
117
- ---
118
-
119
- ## Model Selection
120
-
121
- Use the least powerful model that can handle each role to conserve cost and increase speed.
122
-
123
- **Mechanical implementation tasks** (isolated functions, clear specs, 1-2 files): use a fast, cheap model. Most implementation tasks are mechanical when the plan is well-specified.
124
-
125
- **Integration and judgment tasks** (multi-file coordination, pattern matching, debugging): use a standard model.
126
-
127
- **Architecture and design tasks**: use the most capable available model. The final whole-branch review is one of these — dispatch it on the most capable available model, not the session default.
128
-
129
- **Review tasks**: choose the model with the same judgment, scaled to the diff's size, complexity, and risk. A small mechanical diff does not need the most capable model; a subtle concurrency change does.
130
-
131
- **Always specify the model explicitly when dispatching a subagent.** An omitted model inherits your session's model — often the most capable and most expensive — which silently defeats this section.
132
-
133
- **Turn count beats token price.** Wall-clock and context cost scale with how many turns a subagent takes, and the cheapest models routinely take 2-3× the turns on multi-step work — costing more overall. Use a mid-tier model as the floor for reviewers and for implementers working from prose descriptions. When the task's plan text contains the complete code to write, the implementation is transcription plus testing: use the cheapest tier for that implementer. Single-file mechanical fixes also take the cheapest tier.
134
-
135
- **Task complexity signals:**
136
- - Touches 1-2 files with a complete spec → cheap model
137
- - Touches multiple files with integration concerns → standard model
138
- - Requires design judgment or broad codebase understanding → most capable model
139
-
140
- ---
141
-
142
- ## Handling Implementer Status
143
-
144
- Implementer subagents report one of four statuses. Handle each appropriately:
145
-
146
- **DONE:** Generate the task's diff file from the BASE you recorded before dispatching the implementer (never `HEAD~1` — it silently drops all but the last commit of a multi-commit task), then proceed to spec compliance review with the brief, report, and diff file paths.
147
-
148
- **DONE_WITH_CONCERNS:** The implementer completed the work but flagged doubts. Read the concerns before proceeding. If the concerns are about correctness or scope, address them before review. If they're observations (e.g., "this file is getting large"), note them and proceed to review.
149
-
150
- **NEEDS_CONTEXT:** The implementer needs information that wasn't provided. Provide the missing context and re-dispatch.
151
-
152
- **BLOCKED:** The implementer cannot complete the task. Assess the blocker:
153
- 1. If it's a context problem, provide more context and re-dispatch with the same model
154
- 2. If the task requires more reasoning, re-dispatch with a more capable model
155
- 3. If the task is too large, break it into smaller pieces
156
- 4. If the plan itself is wrong, escalate to the human
157
-
158
- **Never** ignore an escalation or force the same model to retry without changes. If the implementer said it's stuck, something needs to change.
159
-
160
- **Async dispatches:** reviewer and implementer subagents may complete asynchronously even when dispatched synchronously. Wait for each result before acting on it — never proceed to the next gate, and never touch the files a dispatched subagent is working on, while its result is pending.
161
-
162
- ---
163
-
164
- ## Handling Reviewer ⚠️ Items
165
-
166
- A reviewer may report "⚠️ Cannot verify from diff" items — requirements that live in unchanged code or span tasks. These do not block the rest of the review, but you must resolve each one yourself before marking the task complete: you hold the plan and cross-task context the reviewer lacks. If you confirm an item is a real gap, treat it as a failed spec review — send it back to the implementer and re-review.
167
-
168
- ---
169
-
170
- ## Constructing Reviewer Prompts
171
-
172
- Per-task reviews are task-scoped gates. The broad review happens once, at the final whole-branch review. When you fill a reviewer template:
173
-
174
- - Do not add open-ended directives like "check all uses" or "run race tests if useful" without a concrete, task-specific reason
175
- - Do not ask a reviewer to re-run tests the implementer already ran on the same code — the implementer's report carries the test evidence
176
- - Do not pre-judge findings for the reviewer — never instruct a reviewer to ignore or not flag a specific issue. If you believe a finding would be a false positive, let the reviewer raise it and adjudicate it in the review loop. If the prompt you are writing contains "do not flag," "don't treat X as a defect," "at most Minor," or "the plan chose" — stop: you are pre-judging, usually to spare yourself a review loop.
177
- - The global-constraints block you hand the reviewer is its attention lens. Copy the binding requirements verbatim from the plan's Global Constraints section or the spec: exact values, exact formats, and the stated relationships between components ("same layout as X", "matches Y"). The reviewer's template already carries the process rules — the constraints block is for what THIS project's spec demands.
178
- - Hand the reviewer its diff as a file: run `git log --oneline BASE..HEAD`, `git diff --stat BASE..HEAD`, and `git diff -U10 BASE..HEAD`, redirected to one uniquely named file (e.g. `.monomind/taskdev/task-N-review.diff`), and pass the reviewer that path. The output never enters your own context, and the reviewer sees the commit list, stat summary, and full diff with context in one Read call. Use the BASE you recorded before dispatching the implementer — never `HEAD~1`, which silently truncates multi-commit tasks.
179
- - A dispatch prompt describes one task, not the session's history. Do not paste accumulated prior-task summaries ("state after Tasks 1-3") into later dispatches. A fresh subagent needs its task, the interfaces it touches, and the global constraints. Nothing else.
180
- - Dispatch fix subagents for Critical and Important findings. Record Minor findings in the progress ledger as you go, and point the final whole-branch review at that list so it can triage which must be fixed before merge. A roll-up nobody reads is a silent discard.
181
- - A finding labeled plan-mandated — or any finding that conflicts with what the plan's text requires — is the human's decision, like any plan contradiction: present the finding and the plan text, ask which governs. Do not dismiss the finding because the plan mandates it, and do not dispatch a fix that contradicts the plan without asking. (In auto mode: resolve it explicitly, log the decision, and prefer the spec over the plan's example code.)
182
- - The final whole-branch review gets a diff file too: generate it from the merge base (`git merge-base main HEAD`) to HEAD and include the path in the final review dispatch, so the final reviewer reads one file instead of re-deriving the branch diff with git commands.
183
- - Every fix dispatch carries the implementer contract: the fix subagent re-runs the tests covering its change and reports the results. Name the covering test files in the dispatch — a one-line fix does not need the whole suite. Before re-dispatching the reviewer, confirm the fix report contains the covering tests, the command run, and the output.
184
- - If the final whole-branch review returns findings, dispatch ONE fix subagent with the complete findings list — not one fixer per finding. Per-finding fixers each rebuild context and re-run suites; a real session's final-review fix wave cost more than all its tasks combined.
185
-
186
- ---
187
-
188
- ## File Handoffs
189
-
190
- Everything you paste into a dispatch prompt — and everything a subagent prints back — stays resident in your context for the rest of the session and is re-read on every later turn. Hand artifacts over as files:
191
-
192
- - **Task brief:** before dispatching an implementer, extract the task's full text from the plan into a uniquely named file (e.g. `.monomind/taskdev/task-N-brief.md`). Compose the dispatch so the brief stays the single source of requirements. Your dispatch should contain: (1) one line on where this task fits in the project; (2) the brief path, introduced as "read this first — it is your requirements, with the exact values to use verbatim"; (3) interfaces and decisions from earlier tasks that the brief cannot know; (4) your resolution of any ambiguity you noticed in the brief; (5) the report-file path and report contract. Exact values (numbers, magic strings, signatures, test cases) appear only in the brief.
193
- - **Report file:** name the implementer's report file after the brief (brief `…/task-N-brief.md` → report `…/task-N-report.md`) and put it in the dispatch prompt. The implementer writes the full report there and returns only status, commits, a one-line test summary, and concerns.
194
- - **Reviewer inputs:** each reviewer gets three paths — the same brief file, the report file, and the diff file — plus the global constraints that bind the task.
195
- - Fix dispatches append their fix report (with test results) to the same report file and return a short summary; re-reviews read the updated file.
196
-
197
- ---
198
-
199
- ## Durable Progress
200
-
201
- Conversation memory does not survive compaction. Controllers that lost their place have re-dispatched entire completed task sequences — the single most expensive failure observed. Track progress in a ledger file, not only in todos.
202
-
203
- - At skill start, check for a ledger: `cat "$(git rev-parse --show-toplevel)/.monomind/taskdev/progress.md"`. Tasks listed there as complete are DONE — do not re-dispatch them; resume at the first task not marked complete.
204
- - When a task's reviews come back clean, append one line to the ledger in the same message as your other bookkeeping: `Task N: complete (commits <base7>..<head7>, spec ✅ quality ✅)`.
205
- - The ledger is your recovery map: the commits it names exist in git even when your context no longer remembers creating them. After compaction, trust the ledger and `git log` over your own recollection.
206
- - The ledger is git-ignored scratch; if it's destroyed, recover from `git log`.
207
-
208
- ---
209
-
210
- ## Prompt Templates
211
-
212
- - `./implementer-prompt.md` - Dispatch implementer subagent
213
- - `./spec-reviewer-prompt.md` - Dispatch spec compliance reviewer subagent
214
- - `./code-quality-reviewer-prompt.md` - Dispatch code quality reviewer subagent
215
- - `./final-reviewer-prompt.md` - Dispatch the final whole-branch reviewer (most capable model, diff as a file)
216
-
217
- ---
218
-
219
- ## Example Workflow
220
-
221
- ```
222
- You: I'm using mastermind:taskdev to execute this plan.
223
-
224
- [Read plan file once: docs/mastermind/plans/feature-plan.md]
225
- [Check ledger .monomind/taskdev/progress.md — empty, starting fresh]
226
- [Create TodoWrite with all tasks]
227
-
228
- Task 1: Hook installation script
229
-
230
- [Extract Task 1 brief to .monomind/taskdev/task-1-brief.md; record BASE]
231
- [Dispatch implementer with brief + report paths + scene-setting context]
232
-
233
- Implementer: "Before I begin - should the hook be installed at user or system level?"
234
-
235
- You: "User level (~/.config/monomind/hooks/)"
236
-
237
- Implementer: "Got it. Implementing now..."
238
- [Later] Implementer:
239
- - Implemented install-hook command
240
- - Added tests, 5/5 passing
241
- - Self-review: Found I missed --force flag, added it
242
- - Committed
243
-
244
- [Generate diff file from recorded BASE, dispatch spec compliance reviewer]
245
- Spec reviewer: ✅ Spec compliant - all requirements met, nothing extra
246
-
247
- [Dispatch code quality reviewer with the same diff file]
248
- Code reviewer: Strengths: Good test coverage, clean. Issues: None. Approved.
249
-
250
- [Mark Task 1 complete]
251
-
252
- Task 2: Recovery modes
253
-
254
- [Extract Task 2 brief to .monomind/taskdev/task-2-brief.md; record BASE]
255
- [Dispatch implementer with brief + report paths + Task 1 interfaces]
256
-
257
- Implementer: [No questions, proceeds]
258
- Implementer:
259
- - Added verify/repair modes
260
- - 8/8 tests passing
261
- - Self-review: All good
262
- - Committed
263
-
264
- [Dispatch spec compliance reviewer]
265
- Spec reviewer: ❌ Issues:
266
- - Missing: Progress reporting (spec says "report every 100 items")
267
- - Extra: Added --json flag (not requested)
268
-
269
- [Implementer fixes issues]
270
- Implementer: Removed --json flag, added progress reporting
271
-
272
- [Spec reviewer reviews again]
273
- Spec reviewer: ✅ Spec compliant now
274
-
275
- [Dispatch code quality reviewer]
276
- Code reviewer: Strengths: Solid. Issues (Important): Magic number (100)
277
-
278
- [Implementer fixes]
279
- Implementer: Extracted PROGRESS_INTERVAL constant
280
-
281
- [Code reviewer reviews again]
282
- Code reviewer: ✅ Approved
283
-
284
- [Mark Task 2 complete]
285
-
286
- ...
287
-
288
- [After all tasks]
289
- [Dispatch final code-reviewer]
290
- Final reviewer: All requirements met, ready to merge
291
-
292
- Done!
293
- ```
294
-
295
- ---
296
-
297
- ## Advantages
298
-
299
- **vs. Manual execution:**
300
- - Subagents follow TDD naturally
301
- - Fresh context per task (no confusion)
302
- - Parallel-safe (subagents don't interfere)
303
- - Subagent can ask questions (before AND during work)
304
-
305
- **vs. mastermind:execute:**
306
- - Same session (no handoff)
307
- - Continuous progress (no waiting)
308
- - Review checkpoints automatic
309
-
310
- **Efficiency gains:**
311
- - Controller curates exactly what context is needed; bulk artifacts move as files (briefs, reports, diffs), not pasted text
312
- - Subagent gets complete information upfront
313
- - Questions surfaced before work begins (not after)
314
-
315
- **Quality gates:**
316
- - Self-review catches issues before handoff
317
- - Two-stage review: spec compliance, then code quality
318
- - Review loops ensure fixes actually work
319
- - Spec compliance prevents over/under-building
320
- - Code quality ensures implementation is well-built
321
-
322
- **Cost:**
323
- - More subagent invocations (implementer + 2 reviewers per task)
324
- - Controller does more prep work (extracting all tasks upfront)
325
- - Review loops add iterations
326
- - But catches issues early (cheaper than debugging later)
327
-
328
- ---
329
-
330
- ## Red Flags
331
-
332
- **Never:**
333
- - Start implementation on main/master branch without explicit user consent
334
- - Skip reviews (spec compliance OR code quality)
335
- - Proceed with unfixed issues
336
- - Dispatch multiple implementation subagents in parallel (conflicts)
337
- - Make a subagent read the whole plan file (hand it its task-brief file instead)
338
- - Skip scene-setting context (subagent needs to understand where task fits)
339
- - Ignore subagent questions (answer before letting them proceed)
340
- - Accept "close enough" on spec compliance (spec reviewer found issues = not done)
341
- - Skip review loops (reviewer found issues = implementer fixes = review again)
342
- - Let implementer self-review replace actual review (both are needed)
343
- - **Start code quality review before spec compliance is ✅** (wrong order)
344
- - Move to next task while either review has open Critical/Important issues
345
- - Tell a reviewer what not to flag, or pre-rate a finding's severity in the dispatch prompt ("treat it as Minor at most") — the plan's example code is a starting point, not evidence that its weaknesses were chosen
346
- - Dispatch a reviewer without a diff file — generate it first from the recorded BASE and name the path in the prompt
347
- - Re-dispatch a task the progress ledger already marks complete — check the ledger (and `git log`) after any compaction or resume
348
-
349
- **If subagent asks questions:**
350
- - Answer clearly and completely
351
- - Provide additional context if needed
352
- - Don't rush them into implementation
353
-
354
- **If reviewer finds issues:**
355
- - Implementer (same subagent) fixes them
356
- - Reviewer reviews again
357
- - Repeat until approved
358
- - Don't skip the re-review
359
-
360
- **If subagent fails task:**
361
- - Dispatch fix subagent with specific instructions
362
- - Don't try to fix manually (context pollution)
363
-
364
- ---
365
-
366
- ## Integration
367
-
368
- **Required workflow skills:**
369
- - `Skill("mastermind-plan")` - Creates the plan this skill executes
370
- - `Skill("mastermind-review")` - Code review template for reviewer subagents
371
- - `Skill("mastermind-finish")` - Complete development after all tasks done
372
-
373
- **Subagents should use:**
374
- - `Skill("mastermind-tdd")` - Subagents follow TDD for each task
375
-
376
- **Alternative workflow:**
377
- - `Skill("mastermind-execute")` - Use for parallel session instead of same-session execution
@@ -1,60 +0,0 @@
1
- # Code Quality Reviewer Prompt Template
2
-
3
- Use this template when dispatching a code quality reviewer subagent from `mastermind:taskdev`.
4
-
5
- **Purpose:** Verify implementation is well-built — clean, tested, maintainable.
6
-
7
- **Only dispatch AFTER spec compliance review passes (✅).** Never run this first.
8
-
9
- ```
10
- Task tool (general-purpose):
11
- description: "Code quality review for Task N: [task name]"
12
- prompt: |
13
- You are reviewing the code quality of a recently implemented task.
14
-
15
- ## Task Summary
16
-
17
- [From implementer's report — what was built]
18
-
19
- ## Diff to Review
20
-
21
- Read this file — it contains the commit list, stat summary, and full
22
- diff from [BASE_SHA] to [HEAD_SHA]:
23
-
24
- [DIFF_FILE_PATH — e.g. .monomind/taskdev/task-N-review.diff]
25
-
26
- ## What to Check
27
-
28
- **Code quality:**
29
- - Is the code clean and maintainable?
30
- - Are names clear and accurate (match what things do, not how they work)?
31
- - Is there duplication that could be DRY'd up?
32
- - Are there magic numbers or hardcoded strings that should be constants?
33
-
34
- **File structure:**
35
- - Does each file have one clear responsibility with a well-defined interface?
36
- - Are units decomposed so they can be understood and tested independently?
37
- - Is the implementation following the file structure from the plan?
38
- - Did this task create new files that are already large, or significantly grow
39
- existing files? (Focus on what this change contributed, not pre-existing sizes.)
40
-
41
- **Tests:**
42
- - Do tests actually verify behavior (not just mock behavior)?
43
- - Is test coverage adequate for the functionality added?
44
- - Are tests readable and well-named?
45
-
46
- **YAGNI / over-engineering:**
47
- - Was anything built that wasn't needed?
48
- - Is any abstraction premature?
49
-
50
- ## Report Format
51
-
52
- Return:
53
- - **Strengths:** What was done well
54
- - **Issues (Critical):** Must fix before proceeding
55
- - **Issues (Important):** Should fix — notable quality problems
56
- - **Issues (Minor):** Nice to have — low priority
57
- - **Assessment:** ✅ Approved | ❌ Needs fixes
58
-
59
- If issues are found, the implementer will fix them and you will re-review.
60
- ```