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,132 @@
1
+ ---
2
+ name: maestro-blueprint
3
+ description: Generate formal specification package (Product Brief, PRD, Architecture, Epics) through 6-phase document chain
4
+ argument-hint: "<idea or @file> [-y] [-c] [--from <source>]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
12
+ - delegate_subagent
13
+ - ask_user
14
+ ---
15
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
16
+
17
+ <purpose>
18
+ Formal specification document chain producing a complete specification package through 6 sequential phases with multi-CLI analysis and interactive refinement. Pure documentation — no code generation, no roadmap generation.
19
+
20
+ Parallel to `brainstorm` as an upstream origin command:
21
+ - **brainstorm** = divergent exploration (lightweight, multi-role creative)
22
+ - **blueprint** = convergent documentation (heavyweight, 6-phase formal spec chain)
23
+
24
+ Output: `.workflow/blueprint/BLP-{slug}-{date}/` containing Product Brief, PRD, Architecture, and Epics.
25
+ </purpose>
26
+
27
+ <required_reading>
28
+ @~/.maestro/workflows/blueprint.md
29
+ </required_reading>
30
+
31
+ <deferred_reading>
32
+ - [blueprint-config.json](~/.maestro/templates/blueprint-config.json) — read when initializing blueprint configuration
33
+ </deferred_reading>
34
+
35
+ <context>
36
+ $ARGUMENTS -- idea text, @file reference, or upstream context source.
37
+
38
+ **Flags:**
39
+ - `-y` / `--yes`: Auto mode — skip interactive questions, use recommended defaults
40
+ - `-c` / `--continue`: Resume from last checkpoint (reads blueprint-config.json)
41
+ - `--from <source>`: Load upstream context package (brainstorm:ID, @file, or path). Consumes context-package.json
42
+ - `--from-brainstorm SESSION-ID`: (backward compat alias for `--from brainstorm:ID`)
43
+
44
+ **Input types:**
45
+ - Direct text: `"Build a real-time collaboration platform with WebSocket"`
46
+ - File reference: `@requirements.md`
47
+ - Context import: `--from brainstorm:BRN-001` or `--from @requirements.md` or `--from path/`
48
+ - Resume: `-c` (resumes from first incomplete phase)
49
+
50
+ **Pipeline position:**
51
+ ```
52
+ maestro-brainstorm (optional upstream)
53
+ ↓ guidance-specification.md / context-package.json
54
+ maestro-blueprint
55
+ ↓ .workflow/blueprint/BLP-{slug}-{date}/
56
+ maestro-analyze → maestro-roadmap → maestro-plan
57
+ ```
58
+
59
+ **Output boundary**: ALL file writes MUST target `.workflow/blueprint/BLP-{slug}-{date}/` or `.workflow/state.json` only. NEVER modify source code or files outside these paths.
60
+
61
+ ### Pre-load specs
62
+ 1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for architecture decisions (Phase 4).
63
+ 2. Optional — proceed without if unavailable.
64
+ </context>
65
+
66
+ <interview_protocol>
67
+ Interview the user relentlessly about every aspect of the spec until shared understanding is reached. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one; if a question can be answered by exploring the codebase, explore the codebase instead. Active only in interactive mode; skip when `-y/--yes`, `-c/--continue`, or input is already specific (clear idea + scope).
68
+
69
+ - Ask one question per turn via ask_user and wait for the user's feedback before continuing; every question must carry a recommended answer marked `(Recommended)`, 2–4 options total, and a `Proceed now` option.
70
+ - Never ask what code can verify — resolve via `state.json`, existing artifacts, `maestro spec load`, or direct codebase exploration (Glob/Grep/Read) instead of prompting.
71
+ - Walk the decision dependency tree depth-first: scope → spec type → focus areas → requirement priorities. Do not open the next branch until the current one is settled.
72
+ - Scope guard: only decide the shape of the specification. Do not pre-resolve roadmap phases or plan tasks — those belong to downstream commands.
73
+
74
+ Decision points: scope (full product / feature set / single feature) → spec type (service / api / library / platform) → focus areas → whether to run codebase exploration.
75
+
76
+ Exit: on consensus or `Proceed now`, persist decisions in blueprint-config.json and proceed to Phase 1.
77
+ </interview_protocol>
78
+
79
+ <execution>
80
+ Follow `~/.maestro/workflows/blueprint.md` completely.
81
+
82
+ ### Phase chain
83
+
84
+ ```
85
+ P0: Spec Study → P1: Discovery → P1.5: Req Expansion → P2: Product Brief → P3: PRD → P4: Architecture → P5: Epics → P6: Readiness Check
86
+ ```
87
+
88
+ P6 gate: Pass (>=80%) → Handoff | Review (60-79%) → Handoff w/caveats | Fail (<60%) → P6.5 Auto-Fix (max 2 iter) → re-check
89
+
90
+ ### Next-step routing on completion
91
+
92
+ | Condition | Suggestion |
93
+ |-----------|-----------|
94
+ | Need codebase analysis | /maestro-analyze {topic} --from blueprint:BLP-xxx |
95
+ | Ready for roadmap | /maestro-roadmap --from blueprint:BLP-xxx |
96
+ | Small scope, direct plan | /maestro-plan --from blueprint:BLP-xxx |
97
+ | Need project setup | /maestro-init |
98
+ </execution>
99
+
100
+ <error_codes>
101
+ | Code | Severity | Condition | Recovery |
102
+ |------|----------|-----------|----------|
103
+ | E001 | error | Idea text or @file required | Prompt user for input |
104
+ | E002 | error | Context source not found (--from) | Show available sessions/sources |
105
+ | E006 | error | `.workflow/` not initialized | Run maestro-init first |
106
+ | E007 | error | Phase 6 readiness Fail after 2 auto-fix iterations | Present manual fix options |
107
+ | W001 | warning | CLI analysis failed, using fallback | Continue with available data |
108
+ | W002 | warning | Codebase exploration failed | Continue without codebase context |
109
+ | W003 | warning | Glossary has < 5 terms | Note in readiness check |
110
+ | W004 | warning | Review-level readiness score (60-79%) | Proceed with caveats |
111
+ | W005 | warning | External research agent failed | Continue without apiResearchContext |
112
+ </error_codes>
113
+
114
+ <success_criteria>
115
+ - [ ] Interactive mode: interview decisions persisted in blueprint-config.json
116
+ - [ ] `blueprint-config.json` created with session metadata and phase tracking
117
+ - [ ] `product-brief.md` with vision, goals, scope, multi-perspective synthesis
118
+ - [ ] `glossary.json` with 5+ core terms for cross-document consistency
119
+ - [ ] `requirements/` directory with `_index.md` + individual `REQ-*.md` + `NFR-*.md` files
120
+ - [ ] All requirements have RFC 2119 keywords and acceptance criteria
121
+ - [ ] `architecture/` directory with `_index.md` + individual `ADR-*.md` files
122
+ - [ ] Architecture includes state machine, config model, error handling, observability (service type)
123
+ - [ ] `epics/` directory with `_index.md` + individual `EPIC-*.md` files
124
+ - [ ] Cross-Epic dependency map (Mermaid) and MVP subset tagged
125
+ - [ ] `readiness-report.md` with 4-dimension quality scores and traceability matrix
126
+ - [ ] `blueprint-summary.md` with one-page executive summary
127
+ - [ ] All documents have valid YAML frontmatter with session_id
128
+ - [ ] Glossary terms used consistently across all documents
129
+ - [ ] Readiness gate: Pass (>=80%) or Review (>=60%) with documented caveats
130
+ - [ ] Artifact registered in state.json (type=blueprint)
131
+ - [ ] context-package.json generated for downstream consumption
132
+ </success_criteria>
@@ -0,0 +1,134 @@
1
+ ---
2
+ name: maestro-brainstorm
3
+ description: Use when exploring ideas, evaluating approaches, or needing multi-perspective analysis before implementation
4
+ argument-hint: "[topic|role-name] [--yes] [--count N] [--session ID] [--update] [--skip-questions] [--include-questions] [--style-skill PKG]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - shell
9
+ - find_files
10
+ - search
11
+ - delegate_subagent
12
+ - ask_user
13
+ ---
14
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
15
+
16
+ <purpose>
17
+ Unified brainstorming combining interactive framework generation, multi-role parallel analysis, cross-role review, and resolution writeback. Two modes: Auto (full pipeline: guidance-specification → parallel {role}/ multi-file analysis → cross-role-reviewer compares Decision Digests for conflicts/gaps/synergies → user-confirmed resolutions patched into role files + logged in guidance §12) and Single Role (individual role analysis for an existing session). Outputs structured artifacts in `.workflow/scratch/brainstorm-{slug}-{date}/` ready for downstream planning (roadmap / analyze / blueprint consume `guidance-specification.md`).
18
+ </purpose>
19
+
20
+ <required_reading>
21
+ @~/.maestro/workflows/brainstorm.md
22
+ </required_reading>
23
+
24
+ <deferred_reading>
25
+ - [scratch-index.json](~/.maestro/templates/scratch-index.json) — read when operating in scratch mode
26
+ - [index.json](~/.maestro/templates/index.json) — read when operating in phase mode
27
+ - [brainstorm-visualize.md](~/.maestro/workflows/brainstorm-visualize.md) — read when html-prototypes/ produced and user wants to browse them
28
+ </deferred_reading>
29
+
30
+ <context>
31
+ $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
32
+
33
+ **Auto mode**: topic text (e.g., "Build real-time collaboration platform") triggers full pipeline.
34
+ **Single role mode**: valid role name (e.g., "system-architect") runs one role analysis.
35
+ **All output** goes to `.workflow/scratch/{YYYYMMDD}-brainstorm-{slug}/`.
36
+ **Artifact registration**: On completion, registers artifact (type=brainstorm) in state.json.
37
+ **Output boundary**: ALL file writes MUST target `{output_dir}/` or `.workflow/state.json` only. NEVER modify source code or files outside these paths.
38
+ **Produced files**: `guidance-specification.md`, `design-research.md` (optional), `{role}/analysis.md` + `{role}/analysis-F-*.md` + `{role}/findings-*.md` (per selected role).
39
+
40
+ **Valid roles**: data-architect, product-manager, product-owner, scrum-master, subject-matter-expert, system-architect, test-strategist, ui-designer, ux-expert
41
+
42
+ **Flags**:
43
+ - `--yes` / `-y`: Auto mode, skip interactive questions, use defaults
44
+ - `--count N`: Number of roles to select (default 3, max 9)
45
+ - `--session ID`: Use existing session
46
+ - `--update`: Update existing analysis (single role)
47
+ - `--skip-questions`: Skip context gathering questions
48
+ - `--include-questions`: Force context gathering even if analysis exists
49
+ - `--style-skill PKG`: Style package for ui-designer role
50
+
51
+ ### Pre-load specs
52
+ 1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for multi-role analysis — ensures roles respect documented decisions.
53
+ 2. Optional — proceed without if unavailable.
54
+
55
+ ### Role Knowledge
56
+ 1. Browse accumulated knowledge for this role:
57
+ `maestro wiki list --category arch`
58
+ 2. Analyze the index, identify entries relevant to the current task
59
+ 3. Load selected documents:
60
+ `maestro wiki load <id1> [id2] [id3...]`
61
+ 4. Review loaded knowledge before proceeding
62
+ </context>
63
+
64
+ <interview_protocol>
65
+ Interview the user relentlessly until shared understanding is reached. Active only in interactive mode; skip when `--yes/-y`, `--skip-questions`, `--session` (existing session), or input is already specific.
66
+
67
+ - One decision per turn via ask_user with 2–4 options + a (Recommended) default; every question must include a `Proceed now` option.
68
+ - Never ask what code can verify — resolve via `state.json`, the session directory, `maestro spec load`, or `maestro wiki search`.
69
+ - Branch jumps allowed: the user may switch freely between mode / role / upstream / sub-pipeline branches; sequence is not enforced, but every decision point must end with a definite answer.
70
+ - Scope guard: only ask about decisions owned by `brainstorm`. Do not pre-resolve roadmap/plan choices.
71
+
72
+ Decision points: mode (auto / single-role / review-only) / role selection and `--count` / `--from` upstream source / whether to enable design-research and the DESIGN.md sub-pipeline.
73
+
74
+ Exit: on consensus or `Proceed now`, write the table below into `guidance-specification.md` §11 and session metadata:
75
+ `| # | Decision | Choice | Source (user / code / default) |`
76
+ </interview_protocol>
77
+
78
+ <execution>
79
+ Follow '~/.maestro/workflows/brainstorm.md' completely.
80
+
81
+ **Next-step routing on completion:**
82
+
83
+ Auto mode:
84
+ - Project not initialized → invoke_skill({ skill: "maestro-init" })
85
+ - Project initialized, need formal spec package → invoke_skill({ skill: "maestro-blueprint", args: "--from brainstorm:{artifact_id}" })
86
+ - Project initialized, quick roadmap → invoke_skill({ skill: "maestro-roadmap", args: "--from brainstorm:{artifact_id}" })
87
+ - Need deeper analysis first → invoke_skill({ skill: "maestro-analyze", args: "{topic} --from brainstorm:{artifact_id}" })
88
+ - `html-prototypes/` produced with 2+ files and user wants to browse → load `~/.maestro/workflows/brainstorm-visualize.md` and launch visualizer server (optional, user-triggered)
89
+ - DESIGN.md established during Step 3.5 → suggest: "Run `/maestro-impeccable build <feature-description>` to build with the established design system"
90
+
91
+ Single role mode:
92
+ - More roles needed → invoke_skill({ skill: "maestro-brainstorm", args: "{next_role} --session {session_id}" })
93
+ - All roles done, run synthesis → invoke_skill({ skill: "maestro-brainstorm", args: "{topic} --session {session_id}" })
94
+ </execution>
95
+
96
+ <error_codes>
97
+ | Code | Severity | Condition | Recovery |
98
+ |------|----------|-----------|----------|
99
+ | E001 | error | Topic or role argument required | Prompt user for topic text or role name |
100
+ | E002 | error | No active session for single role mode | Guide user to run auto mode first |
101
+ | E003 | error | Invalid role name | Show valid roles list |
102
+ | E006 | error | `--review-only` but no `{role}/analysis.md` found | Run auto or single-role mode first |
103
+ | E007 | error | `--review-only` but `guidance-specification.md` missing | Run auto mode to generate guidance first |
104
+ | W001 | warning | Fewer than 10 ideas in divergent phase | Proceed with available ideas |
105
+ | W002 | warning | Project context (.workflow/) not found | Continue without project context |
106
+ | W003 | warning | Role template not found | Use generic analysis structure |
107
+ | W004 | warning | Validation score < 60 | Log warning, suggest manual review |
108
+ | W005 | warning | External research agent failed | Continue without designResearchContext |
109
+ | W006 | warning | Reviewer patch_targets heading drift (no match) | Skip that patch; report in final summary |
110
+ </error_codes>
111
+
112
+ <success_criteria>
113
+ **Auto mode**:
114
+ - [ ] Interactive mode: interview decision table written to `guidance-specification.md` §11 and session metadata
115
+ - [ ] `guidance-specification.md` with RFC 2119 keywords, terminology, non-goals, feature decomposition (§10), decision tracking (§11), cross-role resolutions placeholder (§12)
116
+ - [ ] `design-research.md` persisted when Step 1.7 external research ran (fail-soft: absence not a failure)
117
+ - [ ] If `ui-designer` in selected_roles AND Step 3.5 ran: `.workflow/impeccable/DESIGN.md` exists (visual style established via impeccable explore)
118
+ - [ ] `{role}/analysis.md` written for each selected role, containing §2 Decision Digest (4 tables) + §3 Cross-Cutting Foundations + §4 File Index
119
+ - [ ] `{role}/analysis-F-{id}-{slug}.md` written per feature (one file per feature, < 2000 words)
120
+ - [ ] `system-architect/analysis.md` §3 includes Data Model + State Machine when system-architect is selected
121
+ - [ ] `ui-designer/analysis.md` references DESIGN.md visual constraints when ui-designer is selected
122
+ - [ ] Each `{role}/analysis.md` §2 Decisions table has ≥ 1 row per feature
123
+ - [ ] Cross-role review (Step 4.5) executed; reviewer compares §2 Decision Digests; output includes `patch_targets[]` for every finding
124
+ - [ ] If findings exist: each accepted resolution applied via edit_file(annotate / strikeout / append) AND logged in `guidance-specification.md` §12 "Cross-Role Resolutions"
125
+ - [ ] If zero findings: final report explicitly states "No cross-role issues detected"; guidance §12 unchanged
126
+ - [ ] Heading-drift patch failures surfaced in final report (if any)
127
+ - [ ] Session metadata updated with completion status (review_findings_count, resolutions_applied, patches_skipped)
128
+
129
+ **Single role mode**:
130
+ - [ ] `{role}/analysis.md` written with §2 Decision Digest + §4 File Index
131
+ - [ ] `{role}/analysis-F-*.md` written when guidance §10 feature list available
132
+ - [ ] §2 Decisions table references guidance decision IDs
133
+ - [ ] Session metadata updated
134
+ </success_criteria>
@@ -0,0 +1,174 @@
1
+ ---
2
+ name: maestro-collab
3
+ description: Use when a question needs cross-verification from multiple CLI tools or diverse analytical perspectives
4
+ argument-hint: "<requirement> [--tools gemini,qwen,claude] [--mode analysis|write] [--rule <template>] [-y]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - shell
9
+ - find_files
10
+ - search
11
+ - delegate_subagent
12
+ - ask_user
13
+ ---
14
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
15
+
16
+
17
+ <purpose>
18
+ Fan-out requirement to multiple CLI tools in parallel → cross-verify for consensus/conflicts → synthesize into unified report with downstream artifacts (context.md + conclusions.json).
19
+ </purpose>
20
+
21
+ <context>
22
+ $ARGUMENTS — requirement text and optional flags.
23
+
24
+ **Flags**:
25
+ - `--tools <list>`: Comma-separated CLI tools (default: first 3 enabled)
26
+ - `--mode analysis|write`: Delegate mode (default: analysis)
27
+ - `--rule <template>`: Shared rule template for all delegates
28
+ - `-y`: Skip plan confirmation
29
+
30
+ **Pre-load** (optional): `maestro spec load --category arch` + `maestro wiki list --category arch` → include in delegate prompts.
31
+
32
+ **Output**: `.workflow/scratch/{YYYYMMDD}-collab-{slug}/`
33
+ - `collab-report.md` — merged findings with consensus/conflict/unique tags
34
+ - `context.md` — Locked/Free/Deferred decisions (plan compatible)
35
+ - `conclusions.json` — structured: session_id, tools[], consensus_level, recommendation, confidence, dimensions[], decisions[]
36
+ - `per-tool/{tool}-output.md` — raw outputs
37
+ </context>
38
+
39
+ <state_machine>
40
+
41
+ <states>
42
+ S_PARSE — 解析参数、提取 flags PERSIST: —
43
+ S_DISCOVER — 发现可用 CLI 工具 PERSIST: —
44
+ S_CONFIRM — 展示计划、用户确认(-y 跳过) PERSIST: —
45
+ S_FANOUT — 构建 prompt、并行启动 delegate、STOP PERSIST: —
46
+ S_COLLECT — 回调到达、收集结果 PERSIST: per-tool outputs
47
+ S_CROSS_VERIFY — 分类发现(共识/冲突/独有) PERSIST: —
48
+ S_SYNTHESIZE — 解决冲突、生成 3 个输出文件 PERSIST: outputs
49
+ S_REGISTER — 注册 CLB artifact PERSIST: state.json
50
+ S_REPORT — 显示摘要 + next-step routing PERSIST: —
51
+ </states>
52
+
53
+ <transitions>
54
+
55
+ S_PARSE:
56
+ → S_DISCOVER WHEN: requirement non-empty DO: extract requirement, tools, mode, rule, autoYes
57
+ → S_PARSE WHEN: requirement empty DO: ask_user for requirement
58
+
59
+ S_DISCOVER:
60
+ → S_CONFIRM WHEN: eligible tools >= 2 DO: A_DISCOVER_TOOLS
61
+ → ERROR(E002) WHEN: eligible tools < 2
62
+
63
+ S_CONFIRM:
64
+ → S_FANOUT WHEN: autoYes DO: A_SETUP_SESSION
65
+ → S_FANOUT WHEN: user confirms "执行" DO: A_SETUP_SESSION
66
+ → S_DISCOVER WHEN: user selects "修改工具选择" DO: re-select tools, validate >= 2
67
+ → END WHEN: user cancels
68
+
69
+ S_FANOUT:
70
+ → S_COLLECT DO: A_PARALLEL_DELEGATE then STOP — wait for callbacks
71
+
72
+ S_COLLECT:
73
+ → S_CROSS_VERIFY WHEN: all callbacks arrived DO: A_COLLECT_OUTPUTS
74
+ → ERROR(E004) WHEN: all delegates failed
75
+ GUARD: 1+ succeeded → continue with partial results (W001)
76
+
77
+ S_CROSS_VERIFY:
78
+ → S_SYNTHESIZE DO: A_CLASSIFY_FINDINGS
79
+
80
+ S_SYNTHESIZE:
81
+ → S_REGISTER DO: A_GENERATE_OUTPUTS
82
+
83
+ S_REGISTER:
84
+ → S_REPORT DO: append CLB artifact to state.json (type: collab, scope: adhoc)
85
+
86
+ S_REPORT:
87
+ → END DO: display summary (requirement, tools, consensus_level, per-tool status, artifact id, output dir)
88
+
89
+ </transitions>
90
+
91
+ <actions>
92
+
93
+ ### A_DISCOVER_TOOLS
94
+
95
+ ```
96
+ shell("maestro tools list --json 2>/dev/null || cat ~/.maestro/cli-tools.json")
97
+ ```
98
+ Filter: enabled == true. If --mode write: exclude type == "api-endpoint".
99
+ Auto-select (no --tools): first 3 eligible in config order.
100
+
101
+ ### A_SETUP_SESSION
102
+
103
+ Create: `.workflow/scratch/{YYYYMMDD}-collab-{slug}/` + `per-tool/`.
104
+
105
+ ### A_PARALLEL_DELEGATE
106
+
107
+ 1. Build shared prompt:
108
+ ```
109
+ PURPOSE: {requirement}; success = actionable findings with evidence
110
+ TASK: {auto-decomposed into 3-5 specific verbs}
111
+ MODE: {delegateMode}
112
+ CONTEXT: @**/*
113
+ EXPECTED: Structured findings with file:line refs, confidence (0-100), prioritized recommendations
114
+ CONSTRAINTS: {from requirement}
115
+ ```
116
+ 2. Launch ALL delegates in ONE message — multiple `shell(run_in_background: true)`:
117
+ ```
118
+ maestro delegate "${prompt}" --to {tool} --mode ${mode} [--rule ${rule}]
119
+ ```
120
+ 3. **STOP immediately after launch. Wait for background callbacks.**
121
+
122
+ ### A_COLLECT_OUTPUTS
123
+
124
+ On each callback: `maestro delegate output <id>` → write `per-tool/{tool}-output.md`.
125
+
126
+ ### A_CLASSIFY_FINDINGS
127
+
128
+ Read all per-tool outputs. For each finding:
129
+
130
+ | Condition | Tag |
131
+ |-----------|-----|
132
+ | 2+ tools agree | CONSENSUS |
133
+ | Tools disagree | CONFLICT |
134
+ | 1 tool only | UNIQUE |
135
+
136
+ consensus_level = consensus_count / total_findings * 100.
137
+ If consensus_level < 40%: W003.
138
+
139
+ ### A_GENERATE_OUTPUTS
140
+
141
+ Resolve conflicts via evidence-weighted voting:
142
+ - Higher confidence wins; more specific evidence (file:line) wins over general; tied → SUGGESTED
143
+
144
+ Write 3 files:
145
+ 1. **collab-report.md**: Summary, Consensus Findings, Resolved Conflicts, Unresolved Items, Unique Insights, Recommendations, Per-Tool Confidence table
146
+ 2. **context.md**: Locked (CONSENSUS items), Free (UNIQUE with strong evidence), Deferred (UNRESOLVED conflicts). Standard Locked/Free/Deferred format for plan compatibility.
147
+ 3. **conclusions.json**: session_id, subject, mode, tools[], consensus_level, recommendation (Go/No-Go/Conditional), confidence, dimensions[{name, score, findings}], decisions[{title, classification, source_tools, rationale}]
148
+
149
+ </actions>
150
+
151
+ </state_machine>
152
+
153
+ <error_codes>
154
+ | Code | Condition | Recovery |
155
+ |------|-----------|----------|
156
+ | E002 | Fewer than 2 eligible tools | Check cli-tools.json, enable more tools |
157
+ | E004 | All delegates failed | Abort with per-tool error details |
158
+ | W001 | One tool failed | Continue with remaining (partial degradation) |
159
+ | W003 | consensus_level < 40% | Flag in summary, recommend manual review |
160
+ </error_codes>
161
+
162
+ <success_criteria>
163
+ - [ ] All delegates launched in parallel via shell(run_in_background: true), STOP after launch
164
+ - [ ] Cross-verification: consensus/conflict/unique classification with consensus_level
165
+ - [ ] 3 output files produced (collab-report.md, context.md, conclusions.json)
166
+ - [ ] CLB artifact registered in state.json
167
+ - [ ] Partial degradation: continued if 1+ tools succeeded
168
+ </success_criteria>
169
+
170
+ <next_step_routing>
171
+ - Deep feasibility → `/maestro-analyze "{topic}"`
172
+ - Plan from conclusions → `/maestro-plan --dir {dir}`
173
+ - Expand → `/maestro-brainstorm "{topic}"`
174
+ </next_step_routing>
@@ -0,0 +1,181 @@
1
+ ---
2
+ name: maestro-composer
3
+ description: Compose reusable workflow templates from natural language
4
+ argument-hint: "<workflow-description> [--resume] [--edit <template-path>]"
5
+ allowed-tools:
6
+ - read_file
7
+ - write_file
8
+ - edit_file
9
+ - shell
10
+ - find_files
11
+ - search
12
+ - delegate_subagent
13
+ - ask_user
14
+ - invoke_skill
15
+ ---
16
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
17
+
18
+ <purpose>
19
+ Interactive workflow template composer. Parse natural language → resolve executors → inject checkpoints → build DAG → persist to `~/.maestro/templates/workflows/`. Progressive disclosure — specs loaded only when phase needs them.
20
+
21
+ Three entry modes: **New design** (default), **Resume** (`--resume`), **Edit** (`--edit <path>`).
22
+ </purpose>
23
+
24
+ <deferred_reading>
25
+ - [node-catalog](~/.maestro/templates/workflows/specs/node-catalog.md) — read at Phase 2 (Resolve)
26
+ - [template-schema](~/.maestro/templates/workflows/specs/template-schema.md) — read at Phase 5 (Persist)
27
+ </deferred_reading>
28
+
29
+ <context>
30
+ $ARGUMENTS — natural language description, or flags.
31
+
32
+ **Flags**: `--resume` (resume in-progress design), `--edit <path>` (edit existing template)
33
+
34
+ **Constants**:
35
+ - Template dir: `~/.maestro/templates/workflows/`
36
+ - Template index: `~/.maestro/templates/workflows/index.json`
37
+ - Design drafts: `.workflow/templates/design-drafts/`
38
+ - Template ID: `wft-<slug>-<YYYYMMDD>`, Node ID: `N-<seq>`, Checkpoint: `CP-<seq>`
39
+ - Max nodes: 20
40
+
41
+ ### Pre-load specs
42
+ 1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for node resolution — ensures workflow design respects documented patterns.
43
+ 2. **Coding specs**: Run `maestro spec load --category coding` to load coding conventions. Informs executor argument defaults and context injection.
44
+ 3. Optional — proceed without if unavailable.
45
+ </context>
46
+
47
+ <state_machine>
48
+
49
+ <states>
50
+ S_ROUTE — 入口路由(new/resume/edit) PERSIST: —
51
+ S_PARSE — 语义意图提取 PERSIST: intent.json
52
+ S_CONFIRM_1 — 确认解析结果 PERSIST: —
53
+ S_RESOLVE — 映射步骤到 executor 节点 PERSIST: nodes.json
54
+ S_CONFIRM_2 — 确认节点映射 PERSIST: —
55
+ S_ENRICH — 注入 checkpoint + 构建 DAG PERSIST: dag.json
56
+ S_CONFIRM_3 — 可视化 pipeline + 用户审批 PERSIST: —
57
+ S_PERSIST — 组装 JSON + 保存模板 PERSIST: template file + index
58
+ </states>
59
+
60
+ <transitions>
61
+
62
+ S_ROUTE:
63
+ → S_PARSE WHEN: no flags (new design)
64
+ → S_RESOLVE WHEN: --resume DO: load draft, skip to last incomplete phase
65
+ → S_CONFIRM_3 WHEN: --edit <path> DO: load template, show pipeline, ask edits
66
+
67
+ S_PARSE:
68
+ → S_CONFIRM_1 DO: A_PARSE_INTENT
69
+
70
+ S_CONFIRM_1:
71
+ → S_RESOLVE WHEN: user confirms "Looks good"
72
+ → S_PARSE WHEN: user selects "Edit steps" or "Add step"
73
+ → END WHEN: user cancels DO: save draft
74
+
75
+ S_RESOLVE:
76
+ → S_CONFIRM_2 DO: A_RESOLVE_NODES (read deferred: node-catalog)
77
+
78
+ S_CONFIRM_2:
79
+ → S_ENRICH WHEN: user confirms "Continue"
80
+ → S_RESOLVE WHEN: user changes executor or node type
81
+ → S_PARSE WHEN: user selects "Back to intent"
82
+ → END WHEN: user cancels DO: save draft
83
+
84
+ S_ENRICH:
85
+ → S_CONFIRM_3 DO: A_BUILD_DAG
86
+
87
+ S_CONFIRM_3:
88
+ → S_PERSIST WHEN: user confirms "Confirm & Save"
89
+ → S_CONFIRM_3 WHEN: user edits/adds/removes node DO: apply change, re-render
90
+ → S_ENRICH WHEN: user selects "Re-run checkpoints"
91
+ → END WHEN: user cancels DO: save draft
92
+
93
+ S_PERSIST:
94
+ → END DO: A_SAVE_TEMPLATE (read deferred: template-schema)
95
+
96
+ </transitions>
97
+
98
+ <actions>
99
+
100
+ ### A_PARSE_INTENT
101
+
102
+ 1. Parse description (if empty: ask_user for workflow description)
103
+ 2. Extract candidate nodes via semantic signals:
104
+
105
+ | Signal | Type hint |
106
+ |--------|-----------|
107
+ | "analyze", "review", "explore" | analysis (cli) |
108
+ | "plan", "design", "spec" | planning (skill) |
109
+ | "implement", "build", "code", "fix" | execution (skill) |
110
+ | "test", "validate", "verify" | testing (skill) |
111
+ | "then", "next", "after" | sequential edge |
112
+ | "parallel", "simultaneously" | parallel edge |
113
+
114
+ 3. Extract variables (inputs that vary per run)
115
+ 4. Classify: task type + complexity (simple 1-3 / medium 4-7 / complex 8+)
116
+ 5. Write `intent.json` to design drafts dir
117
+ 6. Display: parsed steps, variables, task type, complexity
118
+
119
+ ### A_RESOLVE_NODES
120
+
121
+ Read deferred `node-catalog.md` (fallback to built-in mapping):
122
+
123
+ | Type hint | Default executor |
124
+ |-----------|-----------------|
125
+ | planning | `maestro-plan` |
126
+ | execution | `maestro-execute` |
127
+ | testing | `quality-test` |
128
+ | review | `quality-review` |
129
+ | brainstorm | `maestro-brainstorm` |
130
+ | analysis | `maestro delegate --role analyze` |
131
+ | verify | `maestro-verify` |
132
+ | refactor | `quality-refactor` |
133
+ | debug | `quality-debug` |
134
+
135
+ Build `args_template` with variable placeholders. Context injection: planning-after-analysis → `--context {prev_output_path}`, execution-after-planning → `--resume-session {prev_session_id}`.
136
+ Write `nodes.json`. Display resolved node list.
137
+
138
+ ### A_BUILD_DAG
139
+
140
+ 1. Build sequential edges (fan-out/fan-in for parallel groups)
141
+ 2. Auto-inject checkpoints:
142
+
143
+ | Rule | Condition |
144
+ |------|-----------|
145
+ | Artifact boundary | Source outputs plan/spec/analysis/review |
146
+ | Execution gate | Target contains `execute` |
147
+ | Long-running | Target is maestro-plan, maestro-roadmap --mode full |
148
+ | Post-testing | Source contains `test` or `auto-test` |
149
+ | User-defined | type_hint == checkpoint |
150
+
151
+ 3. Finalize context_schema from {variable} references
152
+ 4. Validate: no cycles, no orphans, all reachable
153
+ 5. Write `dag.json`
154
+ 6. Display ASCII pipeline visualization
155
+
156
+ ### A_SAVE_TEMPLATE
157
+
158
+ Read deferred `template-schema.md` (fallback to built-in structure).
159
+ Assemble template JSON: template_id, name, nodes, edges, checkpoints, context_schema, execution_mode.
160
+ Write to `~/.maestro/templates/workflows/<slug>.json`. Update index.json.
161
+ Display: path, ID, node count, variables, execute/edit commands. Clean up draft dir.
162
+
163
+ </actions>
164
+
165
+ </state_machine>
166
+
167
+ <error_codes>
168
+ | Code | Condition | Recovery |
169
+ |------|-----------|----------|
170
+ | E002 | 0 steps extracted | Ask user to rephrase with action verbs |
171
+ | E003 | Node count > 20 | Suggest splitting into sub-workflows |
172
+ | E005 | DAG cycle detected | Show cycle, ask user to resolve |
173
+ | E006 | Edit template not found (--edit) | Show available templates |
174
+ | W001 | Ambiguous step→executor mapping | Show candidates, let user choose |
175
+ </error_codes>
176
+
177
+ <success_criteria>
178
+ - [ ] Each phase has interactive confirmation gate
179
+ - [ ] Template JSON written with nodes, edges, checkpoints, context_schema
180
+ - [ ] Index updated; deferred specs loaded only when phase needs them
181
+ </success_criteria>