maestro-flow 0.4.10 → 0.4.12

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 (354) hide show
  1. package/.agents/agents/cli-explore-agent.md +187 -0
  2. package/.agents/agents/cross-role-reviewer.md +173 -0
  3. package/.agents/agents/impeccable-agent.md +101 -0
  4. package/.agents/agents/role-design-author.md +218 -0
  5. package/.agents/agents/team-supervisor.md +145 -0
  6. package/.agents/agents/team-worker.md +239 -0
  7. package/.agents/agents/ui-design-agent.md +272 -0
  8. package/.agents/agents/workflow-analyzer.md +117 -0
  9. package/.agents/agents/workflow-codebase-mapper.md +79 -0
  10. package/.agents/agents/workflow-collab-planner.md +145 -0
  11. package/.agents/agents/workflow-debugger.md +105 -0
  12. package/.agents/agents/workflow-executor.md +134 -0
  13. package/.agents/agents/workflow-external-researcher.md +88 -0
  14. package/.agents/agents/workflow-integration-checker.md +85 -0
  15. package/.agents/agents/workflow-nyquist-auditor.md +87 -0
  16. package/.agents/agents/workflow-phase-researcher.md +87 -0
  17. package/.agents/agents/workflow-plan-checker.md +92 -0
  18. package/.agents/agents/workflow-planner.md +197 -0
  19. package/.agents/agents/workflow-project-researcher.md +76 -0
  20. package/.agents/agents/workflow-research-synthesizer.md +72 -0
  21. package/.agents/agents/workflow-reviewer.md +84 -0
  22. package/.agents/agents/workflow-roadmapper.md +83 -0
  23. package/.agents/agents/workflow-verifier.md +122 -0
  24. package/.agents/skills/codify-to-knowhow/SKILL.md +169 -0
  25. package/.agents/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
  26. package/.agents/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
  27. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
  28. package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
  29. package/.agents/skills/learn-decompose/SKILL.md +118 -0
  30. package/.agents/skills/learn-follow/SKILL.md +129 -0
  31. package/.agents/skills/learn-investigate/SKILL.md +154 -0
  32. package/.agents/skills/learn-retro/SKILL.md +159 -0
  33. package/.agents/skills/learn-second-opinion/SKILL.md +124 -0
  34. package/.agents/skills/maestro/SKILL.md +258 -0
  35. package/.agents/skills/maestro-amend/SKILL.md +165 -0
  36. package/.agents/skills/maestro-analyze/SKILL.md +161 -0
  37. package/.agents/skills/maestro-blueprint/SKILL.md +132 -0
  38. package/.agents/skills/maestro-brainstorm/SKILL.md +134 -0
  39. package/.agents/skills/maestro-collab/SKILL.md +174 -0
  40. package/.agents/skills/maestro-composer/SKILL.md +181 -0
  41. package/.agents/skills/maestro-execute/SKILL.md +133 -0
  42. package/.agents/skills/maestro-fork/SKILL.md +88 -0
  43. package/.agents/skills/maestro-guard/SKILL.md +103 -0
  44. package/.agents/skills/maestro-help/SKILL.md +300 -0
  45. package/.agents/skills/maestro-help/index/catalog.json +202 -0
  46. package/.agents/skills/maestro-help/phases/01-parse-intent.md +122 -0
  47. package/.agents/skills/maestro-help/phases/02-search-present.md +183 -0
  48. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +213 -0
  49. package/.agents/skills/maestro-impeccable/SKILL.md +251 -0
  50. package/.agents/skills/maestro-init/SKILL.md +80 -0
  51. package/.agents/skills/maestro-learn/SKILL.md +142 -0
  52. package/.agents/skills/maestro-merge/SKILL.md +66 -0
  53. package/.agents/skills/maestro-milestone-audit/SKILL.md +72 -0
  54. package/.agents/skills/maestro-milestone-complete/SKILL.md +79 -0
  55. package/.agents/skills/maestro-milestone-release/SKILL.md +98 -0
  56. package/.agents/skills/maestro-overlay/SKILL.md +180 -0
  57. package/.agents/skills/maestro-plan/SKILL.md +182 -0
  58. package/.agents/skills/maestro-player/SKILL.md +177 -0
  59. package/.agents/skills/maestro-quick/SKILL.md +67 -0
  60. package/.agents/skills/maestro-ralph/SKILL.md +756 -0
  61. package/.agents/skills/maestro-ralph-execute/SKILL.md +273 -0
  62. package/.agents/skills/maestro-roadmap/SKILL.md +131 -0
  63. package/.agents/skills/maestro-tools-execute/SKILL.md +119 -0
  64. package/.agents/skills/maestro-tools-register/SKILL.md +159 -0
  65. package/.agents/skills/maestro-ui-codify/SKILL.md +82 -0
  66. package/.agents/skills/maestro-update/SKILL.md +178 -0
  67. package/.agents/skills/maestro-verify/SKILL.md +111 -0
  68. package/.agents/skills/manage-codebase-rebuild/SKILL.md +77 -0
  69. package/.agents/skills/manage-codebase-refresh/SKILL.md +59 -0
  70. package/.agents/skills/manage-harvest/SKILL.md +96 -0
  71. package/.agents/skills/manage-issue/SKILL.md +75 -0
  72. package/.agents/skills/manage-issue-discover/SKILL.md +83 -0
  73. package/.agents/skills/manage-knowhow/SKILL.md +79 -0
  74. package/.agents/skills/manage-knowhow-capture/SKILL.md +81 -0
  75. package/.agents/skills/manage-learn/SKILL.md +67 -0
  76. package/.agents/skills/manage-status/SKILL.md +54 -0
  77. package/.agents/skills/manage-wiki/SKILL.md +64 -0
  78. package/.agents/skills/quality-auto-test/SKILL.md +138 -0
  79. package/.agents/skills/quality-debug/SKILL.md +122 -0
  80. package/.agents/skills/quality-refactor/SKILL.md +69 -0
  81. package/.agents/skills/quality-retrospective/SKILL.md +79 -0
  82. package/.agents/skills/quality-review/SKILL.md +130 -0
  83. package/.agents/skills/quality-sync/SKILL.md +53 -0
  84. package/.agents/skills/quality-test/SKILL.md +119 -0
  85. package/.agents/skills/security-audit/SKILL.md +157 -0
  86. package/.agents/skills/skill-iter-tune/SKILL.md +384 -0
  87. package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -0
  88. package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -0
  89. package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
  90. package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -0
  91. package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -0
  92. package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
  93. package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
  94. package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
  95. package/.agents/skills/spec-add/SKILL.md +70 -0
  96. package/.agents/skills/spec-load/SKILL.md +73 -0
  97. package/.agents/skills/spec-remove/SKILL.md +53 -0
  98. package/.agents/skills/spec-setup/SKILL.md +50 -0
  99. package/.agents/skills/team-coordinate/SKILL.md +268 -0
  100. package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
  101. package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
  102. package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -0
  103. package/.agents/skills/team-coordinate/roles/coordinator/role.md +365 -0
  104. package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
  105. package/.agents/skills/team-coordinate/specs/pipelines.md +97 -0
  106. package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -0
  107. package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -0
  108. package/.agents/skills/team-executor/SKILL.md +191 -0
  109. package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -0
  110. package/.agents/skills/team-executor/roles/executor/role.md +171 -0
  111. package/.agents/skills/team-executor/specs/session-schema.md +264 -0
  112. package/.agents/skills/team-lifecycle-v4/SKILL.md +211 -0
  113. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +96 -0
  114. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
  115. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
  116. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
  117. package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
  118. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
  119. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
  120. package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +69 -0
  121. package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +87 -0
  122. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
  123. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
  124. package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +71 -0
  125. package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +194 -0
  126. package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +89 -0
  127. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +97 -0
  128. package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
  129. package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
  130. package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
  131. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -0
  132. package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -0
  133. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
  134. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -0
  135. package/.agents/skills/team-quality-assurance/SKILL.md +149 -0
  136. package/.agents/skills/team-quality-assurance/roles/analyst/role.md +90 -0
  137. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
  138. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
  139. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -0
  140. package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
  141. package/.agents/skills/team-quality-assurance/roles/executor/role.md +68 -0
  142. package/.agents/skills/team-quality-assurance/roles/generator/role.md +70 -0
  143. package/.agents/skills/team-quality-assurance/roles/scout/role.md +77 -0
  144. package/.agents/skills/team-quality-assurance/roles/strategist/role.md +73 -0
  145. package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -0
  146. package/.agents/skills/team-quality-assurance/specs/team-config.json +131 -0
  147. package/.agents/skills/team-review/SKILL.md +149 -0
  148. package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
  149. package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
  150. package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -0
  151. package/.agents/skills/team-review/roles/coordinator/role.md +132 -0
  152. package/.agents/skills/team-review/roles/fixer/role.md +78 -0
  153. package/.agents/skills/team-review/roles/reviewer/role.md +70 -0
  154. package/.agents/skills/team-review/roles/scanner/role.md +81 -0
  155. package/.agents/skills/team-review/specs/dimensions.md +82 -0
  156. package/.agents/skills/team-review/specs/finding-schema.json +82 -0
  157. package/.agents/skills/team-review/specs/pipelines.md +102 -0
  158. package/.agents/skills/team-review/specs/team-config.json +27 -0
  159. package/.agents/skills/team-tech-debt/SKILL.md +130 -0
  160. package/.agents/skills/team-tech-debt/roles/assessor/role.md +79 -0
  161. package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
  162. package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
  163. package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -0
  164. package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -0
  165. package/.agents/skills/team-tech-debt/roles/executor/role.md +78 -0
  166. package/.agents/skills/team-tech-debt/roles/planner/role.md +71 -0
  167. package/.agents/skills/team-tech-debt/roles/scanner/role.md +92 -0
  168. package/.agents/skills/team-tech-debt/roles/validator/role.md +80 -0
  169. package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -0
  170. package/.agents/skills/team-tech-debt/specs/team-config.json +129 -0
  171. package/.agents/skills/team-testing/SKILL.md +145 -0
  172. package/.agents/skills/team-testing/roles/analyst/role.md +105 -0
  173. package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
  174. package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
  175. package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -0
  176. package/.agents/skills/team-testing/roles/coordinator/role.md +134 -0
  177. package/.agents/skills/team-testing/roles/executor/role.md +101 -0
  178. package/.agents/skills/team-testing/roles/generator/role.md +100 -0
  179. package/.agents/skills/team-testing/roles/strategist/role.md +85 -0
  180. package/.agents/skills/team-testing/specs/pipelines.md +101 -0
  181. package/.agents/skills/team-testing/specs/team-config.json +93 -0
  182. package/.agents/skills/wiki-connect/SKILL.md +64 -0
  183. package/.agents/skills/wiki-digest/SKILL.md +70 -0
  184. package/.agents/skills/workflow-skill-designer/SKILL.md +498 -0
  185. package/.agents/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
  186. package/.agents/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
  187. package/.agents/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
  188. package/.agents/skills/workflow-skill-designer/phases/04-validation.md +471 -0
  189. package/.agy/agents/cli-explore-agent.md +1 -3
  190. package/.agy/agents/cross-role-reviewer.md +170 -0
  191. package/.agy/agents/role-design-author.md +215 -0
  192. package/.agy/agents/ui-design-agent.md +1 -18
  193. package/.agy/agents/workflow-analyzer.md +1 -1
  194. package/.agy/agents/workflow-external-researcher.md +1 -1
  195. package/.agy/skills/maestro/SKILL.md +63 -27
  196. package/.agy/skills/maestro-analyze/SKILL.md +30 -4
  197. package/.agy/skills/maestro-blueprint/SKILL.md +132 -0
  198. package/.agy/skills/maestro-brainstorm/SKILL.md +119 -103
  199. package/.agy/skills/maestro-help/SKILL.md +48 -14
  200. package/.agy/skills/maestro-help/index/catalog.json +29 -11
  201. package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
  202. package/.agy/skills/maestro-help/phases/02-search-present.md +6 -4
  203. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  204. package/.agy/skills/maestro-init/SKILL.md +3 -3
  205. package/.agy/skills/maestro-milestone-audit/SKILL.md +5 -3
  206. package/.agy/skills/maestro-milestone-complete/SKILL.md +7 -5
  207. package/.agy/skills/maestro-plan/SKILL.md +14 -4
  208. package/.agy/skills/maestro-ralph/SKILL.md +368 -162
  209. package/.agy/skills/maestro-ralph-execute/SKILL.md +81 -67
  210. package/.agy/skills/maestro-roadmap/SKILL.md +42 -81
  211. package/.agy/skills/quality-auto-test/SKILL.md +1 -1
  212. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  213. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  214. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  215. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  216. package/.agy/skills/team-lifecycle-v4/templates/epics.md +2 -2
  217. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  218. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  219. package/.claude/agents/cli-explore-agent.md +1 -3
  220. package/.claude/agents/cross-role-reviewer.md +171 -0
  221. package/.claude/agents/role-design-author.md +216 -0
  222. package/.claude/agents/ui-design-agent.md +1 -18
  223. package/.claude/agents/workflow-analyzer.md +1 -1
  224. package/.claude/agents/workflow-external-researcher.md +1 -1
  225. package/.claude/commands/maestro-analyze.md +30 -4
  226. package/.claude/commands/maestro-blueprint.md +130 -0
  227. package/.claude/commands/maestro-brainstorm.md +132 -116
  228. package/.claude/commands/maestro-init.md +3 -3
  229. package/.claude/commands/maestro-milestone-audit.md +5 -3
  230. package/.claude/commands/maestro-milestone-complete.md +7 -5
  231. package/.claude/commands/maestro-plan.md +14 -4
  232. package/.claude/commands/maestro-ralph-execute.md +81 -67
  233. package/.claude/commands/maestro-ralph.md +368 -162
  234. package/.claude/commands/maestro-roadmap.md +42 -81
  235. package/.claude/commands/maestro.md +63 -27
  236. package/.claude/commands/quality-auto-test.md +1 -1
  237. package/.claude/skills/maestro-help/SKILL.md +48 -14
  238. package/.claude/skills/maestro-help/index/catalog.json +29 -11
  239. package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
  240. package/.claude/skills/maestro-help/phases/02-search-present.md +6 -4
  241. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  242. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  243. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  244. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  245. package/.claude/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  246. package/.claude/skills/team-lifecycle-v4/templates/epics.md +2 -2
  247. package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  248. package/.claude/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  249. package/.codex/skills/maestro/SKILL.md +84 -41
  250. package/.codex/skills/maestro-amend/SKILL.md +157 -0
  251. package/.codex/skills/maestro-analyze/SKILL.md +71 -23
  252. package/.codex/skills/maestro-blueprint/SKILL.md +122 -0
  253. package/.codex/skills/maestro-brainstorm/SKILL.md +135 -45
  254. package/.codex/skills/maestro-composer/SKILL.md +1 -1
  255. package/.codex/skills/maestro-execute/SKILL.md +13 -4
  256. package/.codex/skills/maestro-help/SKILL.md +28 -18
  257. package/.codex/skills/maestro-help/catalog.json +29 -11
  258. package/.codex/skills/maestro-init/SKILL.md +7 -7
  259. package/.codex/skills/maestro-plan/SKILL.md +27 -9
  260. package/.codex/skills/maestro-ralph/SKILL.md +740 -491
  261. package/.codex/skills/maestro-roadmap/SKILL.md +55 -72
  262. package/.codex/skills/maestro-update/SKILL.md +169 -0
  263. package/.codex/skills/maestro-verify/SKILL.md +11 -2
  264. package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
  265. package/.codex/skills/manage-harvest/SKILL.md +10 -2
  266. package/.codex/skills/quality-retrospective/SKILL.md +9 -2
  267. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  268. package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  269. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  270. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  271. package/.codex/skills/team-lifecycle-v4/templates/epics.md +2 -2
  272. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  273. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  274. package/README.md +8 -8
  275. package/README.zh-CN.md +8 -8
  276. package/dashboard/dist-server/dashboard/src/server/routes/settings.js +3 -3
  277. package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
  278. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  279. package/dist/src/agents/cli-agent-runner.js +13 -7
  280. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  281. package/dist/src/commands/install-backend.d.ts +12 -0
  282. package/dist/src/commands/install-backend.d.ts.map +1 -1
  283. package/dist/src/commands/install-backend.js +144 -0
  284. package/dist/src/commands/install-backend.js.map +1 -1
  285. package/dist/src/commands/spec.d.ts.map +1 -1
  286. package/dist/src/commands/spec.js +8 -1
  287. package/dist/src/commands/spec.js.map +1 -1
  288. package/dist/src/core/component-defs.d.ts +6 -0
  289. package/dist/src/core/component-defs.d.ts.map +1 -1
  290. package/dist/src/core/component-defs.js +97 -0
  291. package/dist/src/core/component-defs.js.map +1 -1
  292. package/dist/src/tools/spec-init.d.ts +16 -2
  293. package/dist/src/tools/spec-init.d.ts.map +1 -1
  294. package/dist/src/tools/spec-init.js +58 -187
  295. package/dist/src/tools/spec-init.js.map +1 -1
  296. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  297. package/dist/src/tools/spec-loader.js +16 -16
  298. package/dist/src/tools/spec-loader.js.map +1 -1
  299. package/dist/src/tools/spec-seeds.d.ts +33 -0
  300. package/dist/src/tools/spec-seeds.d.ts.map +1 -0
  301. package/dist/src/tools/spec-seeds.js +200 -0
  302. package/dist/src/tools/spec-seeds.js.map +1 -0
  303. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  304. package/dist/src/tools/spec-writer.js +7 -9
  305. package/dist/src/tools/spec-writer.js.map +1 -1
  306. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts +11 -0
  307. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -0
  308. package/dist/src/tui/install-ui/ExtraMcpConfig.js +61 -0
  309. package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -0
  310. package/dist/src/tui/install-ui/InstallConfirm.d.ts +3 -0
  311. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  312. package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
  313. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  314. package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
  315. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  316. package/dist/src/tui/install-ui/InstallExecution.js +14 -2
  317. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  318. package/dist/src/tui/install-ui/InstallFlow.d.ts +1 -1
  319. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  320. package/dist/src/tui/install-ui/InstallFlow.js +16 -3
  321. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  322. package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
  323. package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
  324. package/dist/src/tui/install-ui/InstallHub.js +8 -0
  325. package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
  326. package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
  327. package/dist/src/tui/install-ui/InstallResult.js +3 -1
  328. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  329. package/dist/src/utils/update-notices.js +31 -0
  330. package/dist/src/utils/update-notices.js.map +1 -1
  331. package/package.json +5 -2
  332. package/templates/business-test-report.json +1 -1
  333. package/templates/index.json +1 -1
  334. package/templates/roadmap.md +15 -9
  335. package/templates/state.json +18 -17
  336. package/workflows/analyze.md +79 -11
  337. package/workflows/auto-test.md +6 -6
  338. package/workflows/blueprint.md +431 -0
  339. package/workflows/brainstorm.md +603 -496
  340. package/workflows/business-test.md +7 -7
  341. package/workflows/codebase-rebuild.md +4 -4
  342. package/workflows/harvest.md +184 -10
  343. package/workflows/init.md +9 -8
  344. package/workflows/maestro.md +1 -1
  345. package/workflows/milestone-audit.md +12 -4
  346. package/workflows/milestone-complete.md +11 -6
  347. package/workflows/plan.md +88 -22
  348. package/workflows/roadmap-common.md +1 -1
  349. package/workflows/roadmap.md +13 -3
  350. package/workflows/spec-generate.md +24 -13
  351. package/workflows/ui-design.md +2 -2
  352. package/workflows/ui-style.md +1 -1
  353. package/.agy/agents/conceptual-planning-agent.md +0 -244
  354. package/.claude/agents/conceptual-planning-agent.md +0 -245
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: workflow-integration-checker
3
+ description: Cross-phase integration validation for milestone audits
4
+ allowed-tools:
5
+ - read_file
6
+ - find_files
7
+ - search
8
+ - shell
9
+ ---
10
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
11
+
12
+
13
+ # Integration Checker
14
+
15
+ ## Role
16
+ You validate cross-phase integration at milestone boundaries. You check that shared interfaces match across phases, data contracts are honored, and no cross-phase dependencies are broken. You are invoked during milestone audits to ensure phases compose correctly.
17
+
18
+ ## Search Tools
19
+ @~/.maestro/templates/search-tools.md — Follow search tool priority and selection patterns.
20
+
21
+ ## Schema Reference
22
+ N/A -- reads code artifacts, not task JSON.
23
+
24
+ ## Process
25
+
26
+ 1. **Identify interfaces** -- Scan for shared interfaces, types, APIs, and data contracts across phases
27
+ 2. **Check contract compliance** -- Verify that producers and consumers of each interface agree on shape:
28
+ - Type definitions match usage
29
+ - API request/response schemas are consistent
30
+ - Event names and payloads align
31
+ 3. **Check dependency health** -- Verify cross-phase imports resolve and function:
32
+ - Run import/require resolution
33
+ - Check for circular dependencies across phase boundaries
34
+ - Validate version compatibility of shared dependencies
35
+ 4. **Check data flow** -- Trace data through phase boundaries:
36
+ - Input/output formats match
37
+ - Error propagation is handled
38
+ - Edge cases at boundaries are covered
39
+ 5. **Write report** -- Output integration audit report
40
+
41
+ ## Input
42
+ - Completed phase artifacts (code, configs, tests)
43
+ - Phase/scratch definitions (resolved via state.json artifact registry)
44
+ - Task summaries from `.summaries/`
45
+ - **Codebase docs** (if `.workflow/codebase/` exists) — `ARCHITECTURE.md` for expected interface contracts and module boundaries across phases
46
+
47
+ ## Output Location
48
+ `.workflow/scratch/{milestone}/integration-audit.md`
49
+
50
+ ## Output
51
+ Integration audit report at the output location above:
52
+ ```
53
+ # Integration Audit: <Milestone>
54
+
55
+ ## Status: PASS | FAIL
56
+
57
+ ## Interface Checks
58
+ | Interface | Producer | Consumer | Status | Issue |
59
+ |-----------|----------|----------|--------|-------|
60
+ | UserAPI | Phase 1 | Phase 2 | PASS | - |
61
+ | AuthToken | Phase 1 | Phase 3 | FAIL | Type mismatch at field `expires` |
62
+
63
+ ## Dependency Health
64
+ - Cross-phase circular dependencies: <none | list>
65
+ - Shared dependency version conflicts: <none | list>
66
+
67
+ ## Data Flow Issues
68
+ - <Issue description with file:line references>
69
+
70
+ ## Recommendations
71
+ - <Specific fix for each FAIL item>
72
+ ```
73
+
74
+ ## Error Behavior
75
+ - If import resolution fails for a module: note as "unresolvable" in the Interface Checks table with the error message
76
+ - If a phase directory is missing or empty: skip that phase, note "Phase {N} artifacts not found" in the report
77
+ - If Bash commands (e.g., tsc, dependency checks) fail to run: fall back to static analysis via Grep/Read and note "dynamic analysis unavailable" in the report
78
+ - If .summaries/ is empty: proceed with code-only analysis and note "no task summaries available for cross-reference"
79
+
80
+ ## Constraints
81
+ - Read-only; never modify project files
82
+ - Every finding must include file:line evidence
83
+ - Check actual code, not just documentation
84
+ - Focus on boundaries between phases, not internal phase quality
85
+ - Report both failures and near-misses (things that work but are fragile)
@@ -0,0 +1,87 @@
1
+ ---
2
+ name: workflow-nyquist-auditor
3
+ description: Test coverage audit with gap detection and test stub generation
4
+ allowed-tools:
5
+ - read_file
6
+ - write_file
7
+ - find_files
8
+ - search
9
+ - shell
10
+ ---
11
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
12
+
13
+
14
+ # Nyquist Auditor
15
+
16
+ ## Role
17
+ You audit test coverage by mapping requirements to test files, calculating coverage metrics, identifying gaps, and generating test stubs for missing coverage. Named after the Nyquist theorem -- you ensure the testing "sample rate" is sufficient to capture the signal of correctness.
18
+
19
+ ## Search Tools
20
+ @~/.maestro/templates/search-tools.md — Follow search tool priority and selection patterns.
21
+
22
+ ## Schema Reference
23
+ - `@templates/validation.json` -- defines the validation artifact schema for coverage data and gap reporting
24
+
25
+ ## Process
26
+
27
+ 1. **Detect framework** -- Identify the test framework, runner, and conventions in use
28
+ 2. **Map requirements** -- Build a matrix of requirements/features to test files
29
+ 3. **Calculate coverage** -- Run coverage tools and analyze results:
30
+ - Line/branch coverage metrics
31
+ - Requirement-to-test traceability
32
+ - Untested code paths
33
+ 4. **Identify gaps** -- Find requirements without tests, and code without coverage
34
+ 5. **Generate stubs** -- Create test file stubs for identified gaps
35
+ 6. **Write report** -- Output validation artifacts
36
+
37
+ ## Input
38
+ - Requirements from spec, roadmap, or task definitions
39
+ - Existing test files and test configuration
40
+ - Source code to analyze coverage against
41
+ - **Project specs** — `maestro spec load --category test`: test conventions (framework, naming, patterns). Generated stubs must follow loaded conventions.
42
+ - **Codebase docs** (if `.workflow/codebase/` exists) — `FEATURES.md` for requirement→component mapping to improve coverage traceability
43
+
44
+ ## Output Location
45
+ - Validation artifacts: `.workflow/scratch/{slug}/validation.json`
46
+ - Test plan: `.workflow/scratch/{slug}/.tests/test-plan.json`
47
+ - Test results: `.workflow/scratch/{slug}/.tests/test-results.json`
48
+ - Coverage report: `.workflow/scratch/{slug}/.tests/coverage-report.json`
49
+ - Generated test stubs: appropriate test directories within the project source tree
50
+
51
+ ## Output
52
+ - `validation.json`:
53
+ ```json
54
+ {
55
+ "framework": "<detected framework>",
56
+ "coverage": {
57
+ "line": "<percentage>",
58
+ "branch": "<percentage>",
59
+ "requirement": "<percentage>"
60
+ },
61
+ "matrix": [
62
+ {"requirement": "REQ-001", "test_files": ["test/auth.test.ts"], "status": "covered"},
63
+ {"requirement": "REQ-002", "test_files": [], "status": "gap"}
64
+ ],
65
+ "gaps": [
66
+ {"type": "requirement", "id": "REQ-002", "suggested_test": "test/payment.test.ts"},
67
+ {"type": "code", "file": "src/utils.ts", "lines": "45-67", "reason": "no test coverage"}
68
+ ]
69
+ }
70
+ ```
71
+ - `.tests/test-plan.json` -- Planned tests with priorities
72
+ - `.tests/test-results.json` -- Latest test run results
73
+ - `.tests/coverage-report.json` -- Detailed coverage data
74
+ - Generated test stubs in appropriate test directories
75
+
76
+ ## Error Behavior
77
+ - If test framework cannot be detected: report `"framework": "unknown"` in validation.json and skip coverage calculation; focus on requirement-to-file mapping via static analysis
78
+ - If coverage tool fails to run (missing dependencies, config errors): set coverage percentages to `"unavailable"` and note the error in a `"errors"` array in validation.json
79
+ - If no test files exist at all: report 0% coverage across all metrics, generate stubs for all identified requirements
80
+ - If requirements source is missing: audit based on code-only analysis and note "requirement traceability unavailable" in the report
81
+
82
+ ## Constraints
83
+ - Test stubs must follow existing test conventions and patterns
84
+ - Never modify existing tests; only create new stubs
85
+ - Coverage metrics must come from actual tool output, not estimates
86
+ - Gaps must reference specific requirements or code locations
87
+ - Prioritize gaps by risk: critical paths first, edge cases second
@@ -0,0 +1,87 @@
1
+ ---
2
+ name: workflow-phase-researcher
3
+ description: Researches implementation approach for a specific roadmap phase
4
+ allowed-tools:
5
+ - read_file
6
+ - shell
7
+ - find_files
8
+ - search
9
+ - web_fetch
10
+ - write_file
11
+ ---
12
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
13
+
14
+
15
+ # Phase Researcher
16
+
17
+ ## Role
18
+ You research the implementation approach for a specific phase of the roadmap. You investigate libraries, patterns, and potential pitfalls relevant to that phase's goals, producing a research document that the planner consumes when creating tasks.
19
+
20
+ ## Search Tools
21
+ @~/.maestro/templates/search-tools.md
22
+
23
+ ## Process
24
+
25
+ 1. **Read phase definition** -- Load the phase from roadmap.md and understand its goals and constraints
26
+ 2. **Analyze requirements** -- Break phase goals into technical requirements
27
+ 3. **Research approaches** -- Investigate libraries, frameworks, APIs, and patterns suitable for the requirements
28
+ 4. **Review codebase context** -- Check `.workflow/codebase/` documents for existing patterns and constraints
29
+ 5. **Identify pitfalls** -- Research common mistakes and failure modes for the chosen approach
30
+ 6. **Document approach** -- Write a structured research document with recommendations
31
+
32
+ ## Input
33
+ - Phase definition from `.workflow/roadmap.md`
34
+ - Codebase analysis from `.workflow/codebase/` (if available)
35
+ - Research summary from `.workflow/research/SUMMARY.md` (if available)
36
+
37
+ ## Output
38
+ `.workflow/scratch/{slug}/research.md` (resolved via state.json artifact registry).
39
+
40
+ Structure:
41
+ ```
42
+ # Phase {NN}: {Name} - Research
43
+
44
+ ## Phase Goals
45
+ <Restated from roadmap>
46
+
47
+ ## Technical Requirements
48
+ - <Requirement 1>: <analysis>
49
+
50
+ ## Recommended Approach
51
+ ### Libraries & Tools
52
+ - <Library>: <version, purpose, trade-offs>
53
+
54
+ ### Patterns
55
+ - <Pattern>: <why suitable, examples>
56
+
57
+ ### Integration Points
58
+ - <How this connects to existing code or other phases>
59
+
60
+ ## Pitfalls & Mitigations
61
+ - <Pitfall>: <mitigation strategy>
62
+
63
+ ## Open Questions
64
+ - <Items needing resolution before planning>
65
+
66
+ ## References
67
+ - <Links to docs, examples, benchmarks>
68
+ ```
69
+
70
+ ## Schema Reference
71
+ N/A -- produces markdown research document
72
+
73
+ ## Output Location
74
+ `.workflow/scratch/{slug}/research.md`
75
+
76
+ ## Error Behavior
77
+ - If codebase analysis (`.workflow/codebase/`) is unavailable, note as limitation and proceed with external research only
78
+ - If research summary is unavailable, derive context from roadmap phase definition alone
79
+ - If web_fetch fails for external resources, document the intended lookup and proceed with available information
80
+ - If phase definition is ambiguous, list specific open questions rather than guessing
81
+
82
+ ## Constraints
83
+ - Research must be specific to the phase, not generic
84
+ - Recommend concrete libraries with versions, not abstract categories
85
+ - Identify integration points with existing codebase
86
+ - Flag blocking questions that must be resolved before planning
87
+ - Keep document under 300 lines
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: workflow-plan-checker
3
+ description: Validates plan quality with up to 3 revision rounds
4
+ allowed-tools:
5
+ - read_file
6
+ - write_file
7
+ - find_files
8
+ - search
9
+ ---
10
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
11
+
12
+
13
+ # Plan Checker
14
+
15
+ ## Role
16
+ You validate the quality of execution plans before they proceed to implementation. You check requirements coverage, feasibility, dependency correctness, and convergence criteria quality. You may request up to 3 rounds of revisions before either approving or escalating.
17
+
18
+ ## Schema Reference
19
+ - `@templates/task.json` -- `convergence.criteria` is the required field for task completion validation
20
+ - Each task's `convergence.criteria[]` array defines measurable, testable acceptance conditions
21
+ - The `files[]` array lists files the task will create or modify
22
+
23
+ ## Process
24
+
25
+ 1. **Load plan** -- Read plan.json and all .task/TASK-*.json files
26
+ 2. **Load requirements** -- Read spec, roadmap, and phase context for requirements baseline
27
+ 3. **Check coverage** -- Verify every requirement has at least one task addressing it
28
+ 4. **Check feasibility** -- Assess whether tasks are realistic in scope and description
29
+ 5. **Check dependencies** -- Validate dependency ordering (no circular deps, correct wave assignment)
30
+ 6. **Check convergence criteria** -- Evaluate each `convergence.criteria` item for specificity and testability:
31
+ - Each criterion must be objectively verifiable (not subjective like "works correctly")
32
+ - Each criterion must reference a concrete artifact, output, or behavior
33
+ - Criteria should be sufficient to prove the task is complete
34
+ 7. **Check files array** -- Verify each task's `files[]` array is consistent with its description
35
+ 8. **Report** -- Write check report with issues or approval
36
+
37
+ ### Revision Loop (max 3 rounds)
38
+ - If issues found: write report with specific issues and suggested fixes
39
+ - Planner revises and resubmits
40
+ - Re-check from step 1
41
+ - After 3 failed rounds: escalate with detailed issue list
42
+
43
+ ## Input
44
+ - `plan.json` and `.task/TASK-*.json` files
45
+ - Requirements source (spec, roadmap, phase context)
46
+ - **Project specs** — `maestro spec load --category arch`: verify tasks comply with architecture constraints and module boundaries
47
+
48
+ ## Output Location
49
+ `.workflow/scratch/{slug}/plan-check.md`
50
+
51
+ ## Output
52
+ Check report written to the output location above:
53
+ ```
54
+ # Plan Check Report
55
+
56
+ ## Status: APPROVED | NEEDS_REVISION | ESCALATED
57
+
58
+ ## Round: {N}/3
59
+
60
+ ## Coverage Analysis
61
+ - [x] REQ-001: Covered by TASK-001
62
+ - [ ] REQ-002: NOT COVERED -- <suggestion>
63
+
64
+ ## Feasibility Issues
65
+ - TASK-003: Too broad, should split into 2 tasks
66
+
67
+ ## Dependency Issues
68
+ - TASK-005 depends on TASK-007 but is in an earlier wave
69
+
70
+ ## Convergence Quality
71
+ - TASK-002 convergence.criteria[0]: Too vague ("works correctly") -- suggest: "API returns 200 with valid JSON matching schema in types/response.ts"
72
+ - TASK-004 convergence.criteria: Missing file-level verification -- suggest adding: "src/auth.ts exports AuthService class"
73
+
74
+ ## Files Array Consistency
75
+ - TASK-006: description mentions "update config" but files[] does not include any config file
76
+
77
+ ## Summary
78
+ <Overall assessment>
79
+ ```
80
+
81
+ ## Error Behavior
82
+ - If plan.json is missing or unparseable: report ESCALATED with "plan.json not found or invalid JSON"
83
+ - If .task/ directory is empty: report ESCALATED with "no task files found"
84
+ - If requirements source is unavailable: report NEEDS_REVISION with "cannot verify coverage without requirements baseline"
85
+ - If a single TASK-*.json is malformed: log the error for that task, continue checking remaining tasks
86
+
87
+ ## Constraints
88
+ - Maximum 3 revision rounds; then must approve or escalate
89
+ - Every issue must include a specific suggestion for fixing it
90
+ - Do not rewrite tasks yourself; only report issues for the planner to fix
91
+ - Coverage check must reference specific requirements, not general impressions
92
+ - Approve when plan is good enough, not perfect; avoid over-engineering
@@ -0,0 +1,197 @@
1
+ ---
2
+ name: workflow-planner
3
+ description: Creates execution plans with task decomposition, waves, and dependencies
4
+ allowed-tools:
5
+ - read_file
6
+ - write_file
7
+ - find_files
8
+ - search
9
+ - shell
10
+ ---
11
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
12
+
13
+
14
+ # Workflow Planner
15
+
16
+ ## Role
17
+ You create structured execution plans from context, research, and specifications. You group work into feature-level tasks, assign them to parallel waves, set dependencies only when truly needed, and define verifiable convergence criteria. You support both full planning (detailed) and quick mode (one task per feature, minimal waves).
18
+
19
+ ## Search Tools
20
+ @~/.maestro/templates/search-tools.md — Follow search tool priority and selection patterns.
21
+
22
+ ## Process
23
+
24
+ 1. **Load context** -- Read context.md decisions, spec references, doc-index, and phase research
25
+ 2. **Identify scope** -- Determine what needs to be built, modified, or configured
26
+ 3. **Decompose** -- Group work into feature-level tasks. One feature = one task (even if it touches 3-5 files). Do NOT split a single feature into multiple file-level tasks. Follow Task Grouping Rules below.
27
+ 4. **Assign waves** -- Group independent tasks into parallel waves; dependent tasks in later waves
28
+ 5. **Set dependencies** -- Define explicit task-to-task dependencies
29
+ 6. **Define convergence criteria** -- Write specific, testable success criteria for each task (min 2 per task)
30
+ 7. **Write plan** -- Output plan.json and individual task files
31
+
32
+ ### Quick Mode
33
+ When invoked with `quick` flag:
34
+ - **One task per feature** — never split a single feature into multiple tasks
35
+ - Single wave unless a genuine dependency chain exists
36
+ - Skip detailed dependency mapping; most tasks are independent
37
+ - Group unrelated simple changes into one "batch" task to minimize agent spawns
38
+ - Focus on getting to execution fast with minimal token overhead
39
+
40
+ ## Input
41
+ - `.workflow/scratch/{slug}/context.md` -- Context and decisions (resolved via state.json artifact registry)
42
+ - `.workflow/scratch/{slug}/research.md` -- Research (if available, resolved via artifact registry)
43
+ - Spec references and doc-index
44
+ - **Codebase docs** (if `.workflow/codebase/` exists) — `doc-index.json` for component mapping; `ARCHITECTURE.md` for module boundaries when decomposing tasks
45
+ - **Wiki prior knowledge** (if `maestro wiki` available) — `maestro wiki search "<phase keywords>"` for related decisions/constraints that inform task design
46
+ - **Project specs** (MANDATORY) -- Loaded via `maestro spec load --category arch`:
47
+ - Architecture constraints (module structure, layer boundaries, dependency rules)
48
+ - Coding conventions (naming, imports, patterns)
49
+ - All specs with `readMode: required` and `category: planning`
50
+ - **Must comply**: All generated tasks must respect loaded spec constraints
51
+ - Quick mode flag (optional)
52
+
53
+ ## Output
54
+ - `plan.json` with structure:
55
+ ```json
56
+ {
57
+ "summary": "<plan overview>",
58
+ "approach": "<implementation strategy>",
59
+ "task_ids": ["TASK-001", "TASK-002"],
60
+ "task_count": 3,
61
+ "complexity": "medium",
62
+ "estimated_time": "2h",
63
+ "recommended_execution": "Agent",
64
+ "waves": [
65
+ {"wave": 1, "tasks": ["TASK-001", "TASK-002"]},
66
+ {"wave": 2, "tasks": ["TASK-003"]}
67
+ ],
68
+ "data_flow": {
69
+ "diagram": null,
70
+ "stages": ["parse input", "transform", "write output"]
71
+ },
72
+ "design_decisions": [
73
+ "Use existing parser pattern from src/core/parser.ts"
74
+ ],
75
+ "shared_context": {
76
+ "patterns": ["repository pattern", "factory pattern"],
77
+ "conventions": ["ESM imports", "strict TypeScript"],
78
+ "dependencies": ["@modelcontextprotocol/sdk"]
79
+ },
80
+ "_metadata": {
81
+ "timestamp": "2025-01-01T00:00:00Z",
82
+ "source": "workflow-planner",
83
+ "planning_mode": "full",
84
+ "plan_type": "feature"
85
+ }
86
+ }
87
+ ```
88
+ - `.task/TASK-{NNN}.json` per task:
89
+ ```json
90
+ {
91
+ "id": "TASK-001",
92
+ "title": "<concise title>",
93
+ "description": "<what to implement>",
94
+ "type": "feature",
95
+ "priority": "medium",
96
+ "effort": "medium",
97
+ "action": "Implement",
98
+ "scope": "<module path>",
99
+ "focus_paths": ["src/tools/"],
100
+ "depends_on": [],
101
+ "parallel_group": null,
102
+ "convergence": {
103
+ "criteria": ["<testable criterion 1>", "<testable criterion 2>"],
104
+ "verification": "<command or steps to verify>",
105
+ "definition_of_done": "<business-language completion>"
106
+ },
107
+ "files": [
108
+ {
109
+ "path": "src/tools/new-tool.ts",
110
+ "action": "create",
111
+ "target": "NewTool class",
112
+ "change": "Create tool implementation with execute method"
113
+ }
114
+ ],
115
+ "implementation": [
116
+ "Create file with class skeleton",
117
+ "Implement execute method",
118
+ "Register in tool registry"
119
+ ],
120
+ "test": {
121
+ "commands": ["npm test -- --grep NewTool"],
122
+ "unit": ["test/tools/new-tool.test.ts"],
123
+ "integration": [],
124
+ "success_metrics": ["all tests pass", "no TypeScript errors"]
125
+ },
126
+ "reference": {
127
+ "pattern": "Follow existing tool pattern",
128
+ "files": ["src/tools/existing-tool.ts"],
129
+ "examples": null
130
+ },
131
+ "rationale": {
132
+ "chosen_approach": "<why this approach>",
133
+ "decision_factors": [],
134
+ "tradeoffs": null
135
+ },
136
+ "risks": [],
137
+ "meta": {
138
+ "status": "pending",
139
+ "estimated_time": "30m",
140
+ "risk": "low",
141
+ "autonomous": true,
142
+ "checkpoint": false,
143
+ "wave": 1,
144
+ "execution_group": null,
145
+ "executor": "agent"
146
+ }
147
+ }
148
+ ```
149
+
150
+ ## Task Grouping Rules (MANDATORY)
151
+
152
+ These rules prevent over-splitting that wastes tokens on unnecessary agent spawns:
153
+
154
+ 1. **Group by feature** — All changes for one feature = one task (even if 3-5 files). Never create separate tasks per file.
155
+ 2. **Group by context** — Related functional changes belong together. Don't split just because changes touch different files.
156
+ 3. **Minimize agent count** — Group simple unrelated changes into a single "batch" task to reduce overhead. Each agent spawn costs significant tokens.
157
+ 4. **Substantial tasks only** — Each task should represent 15-60 minutes of real work. If a task takes <5 minutes, merge it into another.
158
+ 5. **True dependencies only** — `depends_on` only when Task B genuinely needs Task A's output (e.g., "Task A defines the interface that Task B implements"). Sequential execution wastes time.
159
+ 6. **Prefer parallel** — Most tasks should be independent (no depends_on). Default to parallel waves.
160
+ 7. **Complexity-based sizing**:
161
+ - **Low** (single file, single concern, zero cross-module): **1 task**
162
+ - **Medium** (multiple files OR integration point): **1-4 tasks**
163
+ - **High** (cross-module, architectural, new subsystem): **4-10 tasks**
164
+
165
+ ## Constraints
166
+ - Each task must be substantial (15-60 min of work); group related changes, avoid file-per-task
167
+ - Each task must have convergence.criteria (min 2 testable conditions)
168
+ - convergence.criteria must be specific and testable (not "works correctly")
169
+ - files must use array format `[{path, action, target, change}]`
170
+ - Wave ordering must respect dependencies (no task before its dependency)
171
+ - Task descriptions must be clear enough for the executor to implement without ambiguity
172
+ - Keep task count minimal: 1-3 for simple changes, 3-8 for medium, 8-15 for large features. Default to fewer.
173
+ - Never include implementation details in plan; focus on what, not how
174
+ - Reference: @templates/task.json for task field names
175
+ - Reference: @templates/plan.json for plan field names
176
+
177
+ ## Schema Reference
178
+ - **Task schema**: `templates/task.json` -- Canonical field definitions for `.task/TASK-{NNN}.json` files
179
+ - **Plan schema**: `templates/plan.json` -- Canonical field definitions for `plan.json`
180
+ - All generated task JSON must conform to templates/task.json structure
181
+ - All generated plan JSON must conform to templates/plan.json structure
182
+ - Field `done_when` is deprecated; use `convergence.criteria` (array of testable strings)
183
+ - Field `files: ["path"]` is deprecated; use `files: [{path, action, target, change}]`
184
+ - Field `related_success_criteria` is deprecated and removed from task template; SC-to-Task traceability is handled via `convergence.criteria` referencing roadmap success criteria
185
+
186
+ ## Output Location
187
+ - **Scratch planning**: `.workflow/scratch/{slug}/plan.json` and `.workflow/scratch/{slug}/.task/TASK-{NNN}.json`
188
+ - **Plan notes** (collab mode): `.workflow/scratch/{slug}/plan-note.md`
189
+ - **Quick mode**: Same paths, fewer task files
190
+
191
+ ## Error Behavior
192
+ - **Missing context.md**: Stop and report -- planning requires context; do not guess
193
+ - **Missing research**: Proceed with warning -- note missing research in plan summary
194
+ - **Circular dependencies detected**: Stop and report -- fix dependency graph before continuing
195
+ - **Scope too large (>20 tasks)**: Checkpoint -- suggest splitting into sub-phases or using collab-planners
196
+ - **Ambiguous requirements**: Stop and report -- request clarification before decomposing
197
+ - **Checkpoints**: Return `## CHECKPOINT REACHED` with specific question when user input is needed
@@ -0,0 +1,76 @@
1
+ ---
2
+ name: workflow-project-researcher
3
+ description: Domain research for project initialization, spawned with different focus angles
4
+ allowed-tools:
5
+ - read_file
6
+ - shell
7
+ - find_files
8
+ - search
9
+ - web_fetch
10
+ - write_file
11
+ ---
12
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
13
+
14
+
15
+ # Project Researcher
16
+
17
+ ## Role
18
+ You are a domain researcher for project initialization. You explore a specific angle of the project domain (tech stack, architecture, features, or concerns) and produce a focused research document. You are typically spawned 4 times in parallel, each with a different focus angle.
19
+
20
+ ## Search Tools
21
+ @~/.maestro/templates/search-tools.md
22
+
23
+ ## Schema Reference
24
+ N/A -- produces markdown research documents, not task JSON artifacts.
25
+
26
+ ## Process
27
+
28
+ 1. **Receive angle** -- Read your assigned focus angle and project description
29
+ 2. **Explore domain** -- Research the domain using web searches, documentation, and existing codebase analysis
30
+ 3. **Identify options** -- For your angle, enumerate viable options with trade-offs
31
+ 4. **Document best practices** -- Capture industry patterns, anti-patterns, and recommendations
32
+ 5. **Write findings** -- Produce a structured research document in the designated output location
33
+
34
+ ## Input
35
+ - Project description and goals
36
+ - Focus angle: one of `tech` (stack options), `arch` (architecture patterns), `features` (capability survey), `concerns` (risks and pitfalls)
37
+ - Any existing codebase or prior research to build upon
38
+
39
+ ## Output Location
40
+ `.workflow/research/{FILENAME}` where FILENAME is determined by the focus angle:
41
+ - `tech` angle: `STACK.md`
42
+ - `arch` angle: `ARCHITECTURE.md`
43
+ - `features` angle: `FEATURES.md`
44
+ - `concerns` angle: `PITFALLS.md`
45
+
46
+ ## Output
47
+ Research document following the structure:
48
+ ```
49
+ # <Angle> Research
50
+
51
+ ## Summary
52
+ <3-5 sentence overview>
53
+
54
+ ## Findings
55
+ ### <Finding 1>
56
+ - Description, evidence, trade-offs
57
+
58
+ ## Recommendations
59
+ - Ranked list with rationale
60
+
61
+ ## Open Questions
62
+ - Items needing further investigation
63
+ ```
64
+
65
+ ## Error Behavior
66
+ - If web research fails (network errors, timeouts): proceed with codebase-only analysis and note "web research unavailable -- findings based on local analysis only" in the Summary section
67
+ - If assigned codebase path does not exist: produce research based on project description and web sources only; note "no existing codebase found" in the document
68
+ - If the focus angle is not one of the 4 recognized values: default to `concerns` angle and note the unrecognized angle in the document header
69
+ - If `.workflow/research/` directory does not exist: create it before writing the output file
70
+
71
+ ## Constraints
72
+ - Stay within your assigned angle; do not overlap with other researchers
73
+ - Provide evidence for claims (links, benchmarks, references)
74
+ - Flag uncertainties explicitly rather than guessing
75
+ - Keep documents under 500 lines; link to external resources for depth
76
+ - Do not make implementation decisions; provide options with trade-offs