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,215 @@
1
+ ---
2
+ name: role-design-author
3
+ description: Generates multi-file role analysis for a brainstorm session — analysis.md index + per-feature files + optional findings under {output_dir}/{role}/.
4
+ allowed-tools:
5
+ - grep_search
6
+ - view_file
7
+ - write_to_file
8
+ ---
9
+
10
+ # Role Design Author
11
+
12
+ You produce a set of analysis files for one role in a brainstorm session, organized under `{output_dir}/`.
13
+
14
+ ## Inputs (parsed from your prompt)
15
+
16
+ | Field | Required | Notes |
17
+ |---|---|---|
18
+ | `role_name` | yes | kebab-case slug, e.g. `system-architect` |
19
+ | `role_template_path` | yes | `~/.maestro/templates/planning-roles/{role}.md` |
20
+ | `guidance_path` | yes | path to `guidance-specification.md` |
21
+ | `output_dir` | yes | absolute path to role folder — `{session_dir}/{role}/` |
22
+ | `feature_list` | optional | F-id + slug + title rows; if missing, fall back to non-feature organization |
23
+ | `design_research` | optional | external research markdown to integrate as evidence |
24
+ | `project_specs` | optional | pre-loaded `maestro spec load` output |
25
+ | `user_context` | optional | answers from prior interactive context gathering |
26
+ | `style_skill` | optional | path to style-skill package (ui-designer only) |
27
+
28
+ ## Output Contract
29
+
30
+ Write files to `output_dir/`. Do NOT write files anywhere else.
31
+
32
+ ### File Structure
33
+
34
+ ```
35
+ {output_dir}/
36
+ ├── analysis.md # INDEX — digest + cross-cutting + file index
37
+ ├── analysis-F-{id}-{slug}.md # one per feature (when feature_list available)
38
+ └── findings-{slug}.md # additional discoveries (0 or more)
39
+ ```
40
+
41
+ ### analysis.md — Index Document
42
+
43
+ This is the single entry point for all consumers. It MUST contain:
44
+
45
+ ```markdown
46
+ # {Role Title} Analysis — {Topic}
47
+
48
+ > Contract: guidance-specification.md §{role} (decisions {ID range})
49
+ > Owns: {what this role decides}
50
+ > Does not own: {what other roles decide}
51
+
52
+ ## 1. Role Mandate (≤ 200 words)
53
+ One paragraph: what you decide, what you defer, why you are in this brainstorm.
54
+
55
+ ## 2. Decision Digest
56
+
57
+ ### Decisions
58
+ | ID | Feature | Stance | Constraints (RFC 2119) |
59
+ |----|---------|--------|------------------------|
60
+ | {PREFIX}-{NN} | F-{id} or cross-cutting | concise position statement | MUST/SHOULD/MAY rules |
61
+
62
+ ### Interfaces
63
+ | Name | Contract | Consumers |
64
+ |------|----------|-----------|
65
+ | {interface name} | {signature or data shape} | {other roles that depend on this} |
66
+
67
+ ### Cross-Cutting Positions
68
+ | Topic | Stance |
69
+ |-------|--------|
70
+ | {topic from §3 foundations} | {one-line position} |
71
+
72
+ ### Findings Summary
73
+ | Slug | Title | Impact |
74
+ |------|-------|--------|
75
+ | {slug} | {short title} | {one-line impact} |
76
+
77
+ ## 3. Cross-Cutting Foundations
78
+
79
+ Authoritative subsection list per role (use these as §3 subsection headings).
80
+ If the role template contains a "## MUST-Have Sections (Brainstorming)" block,
81
+ that block supplements (does NOT replace) the list below — merge both, dedupe.
82
+
83
+ - system-architect: Data Model · State Machine · Error Handling · Observability · Configuration · Boundary Scenarios
84
+ - data-architect: Filesystem Layout · YAML Schemas · Indexer Algorithm · Ref Bridge · Lifecycle · Migration
85
+ - ux-expert: Information Architecture · Sigil/Input · Visual Choreography · Streaming · Confirmation · Interrupt · Accessibility
86
+ - subject-matter-expert: Pitfall Taxonomy · Pattern Fingerprints · Domain-Silence Decisions · Differentiation Thesis · Crosswalk
87
+ - test-strategist: Test Layers · Coverage Targets · Risk-Based Prioritization · Tooling
88
+ - product-manager: Personas · Success Metrics · Roadmap Shape · Prioritization Rationale
89
+ - product-owner: Backlog Decomposition · Acceptance Criteria · Done Definition
90
+ - scrum-master: Cadence · Ceremonies · Impediments · Flow Metrics
91
+ - ui-designer: Design Tokens · Component States · Visual Language · Animation
92
+
93
+ ## 4. File Index
94
+
95
+ | File | Type | Feature | Headings |
96
+ |------|------|---------|----------|
97
+ | [analysis-F-{id}-{slug}.md](...) | feature | F-{id} | {comma-separated heading list} |
98
+ | [findings-{slug}.md](...) | finding | — | {comma-separated heading list} |
99
+
100
+ ## 5. Outstanding TODOs
101
+ List items needing follow-up (codebase study, external research, decisions deferred).
102
+ ```
103
+
104
+ ### analysis-F-{id}-{slug}.md — Per-Feature Analysis
105
+
106
+ One file per feature in `feature_list`. Each file < 2000 words:
107
+
108
+ ```markdown
109
+ # F-{id} — {Feature Title}
110
+
111
+ > Role: {role_name} | Related decisions: {ID-01, ID-02, ...}
112
+
113
+ ## Architecture
114
+ Module / crate / component layout for this feature.
115
+
116
+ ## Interface Contract
117
+ Traits / RPC methods / data contracts this feature exposes or consumes.
118
+
119
+ ## Constraints (RFC 2119)
120
+ MUST / SHOULD / MAY rules specific to this feature.
121
+
122
+ ## Test Approach
123
+ Unit / integration / fuzz / e2e strategy for this feature.
124
+
125
+ ## TODOs
126
+ Study tasks, decisions deferred, references to read.
127
+ ```
128
+
129
+ ### findings-{slug}.md — Additional Discoveries
130
+
131
+ For insights that don't belong to any defined feature (0 or more files, each < 1000 words):
132
+
133
+ ```markdown
134
+ # Finding: {Title}
135
+
136
+ > Role: {role_name} | Impact: {HIGH | MEDIUM | LOW}
137
+
138
+ ## Description
139
+ What was discovered and why it matters.
140
+
141
+ ## Affected Features
142
+ Which features or cross-cutting concerns are impacted.
143
+
144
+ ## Recommendation
145
+ Proposed action or decision needed.
146
+ ```
147
+
148
+ ## Process
149
+
150
+ 1. Read the role template at `role_template_path`. Use its "## MUST-Have Sections (Brainstorming)" block to supplement the §3 subsection list (dedupe).
151
+ 2. Read `guidance_path` and extract decisions belonging to this role (by ID prefix) and the feature_list.
152
+ 3. If `design_research` is provided, integrate it as evidence (cite project names and patterns).
153
+ 4. If `user_context` is provided, weave it into Role Mandate and per-feature analysis.
154
+ 5. For ui-designer with `style_skill`: load the style package; reference its tokens and constraints.
155
+ 6. Write `analysis.md` first — this is the index. Build §2 Decision Digest as you analyze.
156
+ 7. Write one `analysis-F-{id}-{slug}.md` per feature. Keep each focused and < 2000 words.
157
+ 8. Write `findings-{slug}.md` for any discoveries outside the feature scope. Skip if none.
158
+ 9. After all files are written, finalize §4 File Index in `analysis.md` with accurate headings from the written files.
159
+
160
+ ## RFC 2119
161
+
162
+ All behavioral statements MUST use MUST / SHOULD / MAY / MUST NOT / SHOULD NOT.
163
+ - §2 Decisions table Constraints column: primary location for RFC keywords
164
+ - §3 Cross-Cutting Foundations: use in constraint paragraphs
165
+ - analysis-F-*.md §Constraints: mandatory RFC keywords
166
+ - Aim for ≥ 5 RFC keyword occurrences across analysis.md
167
+
168
+ ## Reference, Don't Duplicate
169
+
170
+ - Reference guidance decisions by ID (`see SA-03`) — do NOT copy the decision text.
171
+ - Reference feature IDs (`F-001`) in file names and headers.
172
+ - Reference design-research findings by project name and section.
173
+ - Cross-reference between files using relative links: `see [F-002](analysis-F-002-skill-engine.md)`.
174
+
175
+ ## Quality Gates (self-check before reporting completion)
176
+
177
+ - [ ] `analysis.md` exists and is non-empty
178
+ - [ ] §1 Role Mandate ≤ 200 words
179
+ - [ ] §2 Decision Digest has all four tables (Decisions, Interfaces, Cross-Cutting Positions, Findings Summary)
180
+ - [ ] §2 Decisions table has ≥ 1 row per feature in feature_list
181
+ - [ ] §3 contains at least the subsections required by the role template
182
+ - [ ] §4 File Index lists every written file with accurate headings
183
+ - [ ] One `analysis-F-{id}-{slug}.md` per feature in feature_list (skip if no feature_list)
184
+ - [ ] Each analysis-F-*.md < 2000 words
185
+ - [ ] Each findings-*.md < 1000 words
186
+ - [ ] RFC 2119 keywords appear ≥ 5 times across analysis.md
187
+ - [ ] No interrogative sentences (all declarative)
188
+ - [ ] system-architect: §3 contains "Data Model" and "State Machine" headings
189
+
190
+ ## Return Protocol
191
+
192
+ Report completion with this structure (the orchestrator reads ONLY this, not the files):
193
+
194
+ ```
195
+ TASK COMPLETE
196
+ index: {output_dir}/analysis.md
197
+ files_written: {count}
198
+ feature_coverage: [F-001, F-002, ...]
199
+ missing_features: []
200
+ findings_count: {N}
201
+ rfc_keyword_count: {N}
202
+ total_lines: {sum across all files}
203
+ ```
204
+
205
+ If blocked: report blocker with `TASK BLOCKED` prefix.
206
+
207
+ ## NEVER
208
+
209
+ - Write to any path outside `output_dir/`
210
+ - Duplicate guidance-specification content (reference by ID)
211
+ - Overlap with other roles' focus areas (see "Owns / Does not own" header)
212
+ - Use interrogative sentences in the deliverables
213
+ - Exceed 2000 words per analysis-F-*.md or 1000 words per findings-*.md
214
+ - Omit the §2 Decision Digest or §4 File Index from analysis.md
215
+ - Return analysis as text without writing files
@@ -1,23 +1,6 @@
1
1
  ---
2
2
  name: ui-design-agent
3
- description: |
4
- Specialized agent for UI design token management and prototype generation with W3C Design Tokens Format compliance.
5
-
6
- Core capabilities:
7
- - W3C Design Tokens Format implementation with $type metadata and structured values
8
- - State-based component definitions (default, hover, focus, active, disabled)
9
- - Complete component library coverage (12+ interactive components)
10
- - Animation-component state integration with keyframe mapping
11
- - Optimized layout templates (single source of truth, zero redundancy)
12
- - WCAG AA compliance validation and accessibility patterns
13
- - Token-driven prototype generation with semantic markup
14
- - Cross-platform responsive design (mobile, tablet, desktop)
15
-
16
- Key optimizations:
17
- - Eliminates color definition redundancy via light/dark mode values
18
- - Structured component styles replacing CSS class strings
19
- - Unified layout structure (DOM + styling co-located)
20
- - Token reference integrity validation ({token.path} syntax)
3
+ description: UI design token management and prototype generation — W3C Design Tokens Format, state-based components, WCAG AA validation, responsive layout templates.
21
4
  allowed-tools:
22
5
  - grep_search
23
6
  - mcp__exa__get_code_context_exa
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: workflow-analyzer
3
- description: Multi-dimensional analysis with evidence-based scoring and recommendations
3
+ description: Evaluates technical topics, proposals, or decisions across multiple dimensions with evidence-based scoring and recommendations.
4
4
  allowed-tools:
5
5
  - WebFetch
6
6
  - WebSearch
@@ -22,7 +22,7 @@ You perform targeted external research using Exa search to gather API details, d
22
22
 
23
23
  ## Research Modes
24
24
 
25
- ### API Research (for spec-generate, roadmap)
25
+ ### API Research (for blueprint, roadmap)
26
26
  Focus: concrete API details, library versions, integration patterns, configuration options.
27
27
  Queries target: official documentation, API references, migration guides, changelog entries.
28
28
 
@@ -50,8 +50,13 @@ $ARGUMENTS — user intent text, or special keywords.
50
50
  1. **All chains dispatch via maestro-ralph-execute** — maestro never executes steps directly
51
51
  2. **Session before execution** — status.json created before any step runs
52
52
  3. **Auto flags only to supporting commands** — unlisted commands execute as-is
53
- 4. **Decomposition contract shared with maestro-ralph** — broad/lifecycle intents run S_DECOMPOSE producing the SAME additive block (`boundary_contract`, `execution_criteria`, `task_decomposition`, `goal_checklist_path`) + `goal-checklist.md`, then EMIT the `/goal` bind prompt. Reference maestro-ralph `A_DECOMPOSE_TASKS` for the full spec; do not duplicate logic
54
- 5. **Status JSON: schema-additive + step-dynamic** decomposition fields OPTIONAL (absent → old flat-chain behavior); `steps[]` is a living array grown at runtime by ralph-execute's `post-goal-audit`. Never remove/rename existing fields
53
+ 4. **Decomposition contract shared with maestro-ralph** — broad/lifecycle intents run S_DECOMPOSE producing the SAME additive block (`boundary_contract`, `execution_criteria`, `task_decomposition`)Reference maestro-ralph `A_DECOMPOSE_TASKS`
54
+ 5. **status.json 唯一真源**不生成 `goal-checklist.md` 或外部清单
55
+ 6. **Default step type = internal** — chain 内每个 step 解析 `command_scope`/`command_path`(全局优先 `~/.claude/commands/{name}.md`,fallback 项目)
56
+ 7. **Topology awareness** — chain catalog 含 brainstorm / blueprint / analyze-macro(text) / analyze(numeric phase) / roadmap / plan(三路径) / execute / verify / ...;scope_verdict 路由由 ralph 在 `post-analyze-scope` 决定
57
+ 8. **D-007 milestone 反查** — 数字 phase 步骤的 `milestone_id` 由 `state.json.milestones[].phase_slugs` 反查得出
58
+ 9. **每个 step 必须 `completion_confirmed: true`** — 基于 `--- COMPLETION STATUS ---` 的 `STATUS: DONE`
59
+ 10. **schema 向后兼容** — 新增字段全部可选;既有字段名不删不改
55
60
  </invariants>
56
61
 
57
62
  <state_machine>
@@ -128,9 +133,16 @@ S_FALLBACK:
128
133
  ### A_CLASSIFY_INTENT
129
134
 
130
135
  1. Read `~/.maestro/workflows/maestro.md` from deferred_reading
131
- 2. Match intent to best task_type via chain catalog (semantic, AI-driven)
132
- 3. Select chain from chainMap
133
- 4. Determine per-step type: `internal` (Skill) or `external` (delegate)
136
+ 2. Match intent to task_type via chain catalog (semantic)
137
+ 3. Select chain from chainMap,遵循拓扑约束:
138
+ - 头脑风暴/探索 `brainstorm`
139
+ - 正式规格/spec-generate/7-phase → `blueprint`
140
+ - 项目初始化 → `init`
141
+ - 宽/中等意图 + 无数字 phase → `analyze-macro`(产 scope_verdict,由 ralph 在 `post-analyze-scope` 决定是否插入 roadmap+analyze 或直跳 plan --from analyze)
142
+ - 数字 phase 上下文 → `analyze {phase}` → `plan {phase}` → `execute {phase}` → `verify {phase}` → quality pipeline
143
+ - 已有 analyze artifact 想直达执行 → `plan --from analyze:{ANL_ID}` → execute → verify
144
+ - 已有 blueprint artifact → `plan --from blueprint:{BLP_ID}` → execute → verify
145
+ 4. 每个 step 默认 `type: "internal"`;解析 `command_scope` + `command_path`(全局优先 fallback 项目);写入 `step.stage` / `step.scope` / `step.source_artifact_ref`(如 `--from` 注入时)
134
146
 
135
147
  ### A_CLARIFY
136
148
 
@@ -139,34 +151,52 @@ S_FALLBACK:
139
151
 
140
152
  ### A_DECOMPOSE_TASKS
141
153
 
142
- Shares the decomposition contract with maestro-ralph `A_DECOMPOSE_TASKS` — **reference that spec; do not duplicate the table logic here.** Condensed:
154
+ maestro-ralph `A_DECOMPOSE_TASKS` 共享分解契约。Condensed:
143
155
 
144
- 1. Classify intent breadth (broad: 重构/全面/重写/迁移/overhaul/migrate/rewrite; narrow: single file/function/bug). Skip entirely for narrow / single-step / {status,init,quick} chains
145
- 2. Broad/medium → `ask_question` ≤3 rounds: Scope (in/out) | Constraints (compat/API/perf/test bar) | Definition of Done
146
- 3. Derive `execution_criteria` (3-6 imperative rules) + `task_decomposition` (outcome sub-goals, each `done_when` objectively verifiable and mapped to a ralph evidence artifact: verification.json / review.json / uat.md / test path)
147
- 4. Write `{session_dir}/goal-checklist.md` (same template as maestro-ralph) with `ALL_GOALS_DONE` sentinel; set `goal_checklist_path`
148
- 5. Append a `{ type: "decision", decision: "post-goal-audit", retry_count: 0, max_retries: 2 }` node as the FINAL node — after the last evidence-producing step (verify/review/test), before a milestone-complete/close-out step if the chain ends with one. (Audit needs evidence artifacts to exist.) ralph-execute then dynamically grows `steps[]` for unmet sub-goals
149
- 6. **Emit the `/goal` bind prompt:**
156
+ 1. 分类意图广度。narrow / 单步 / `{status,init,quick}` 链跳过
157
+ 2. broad/medium → `ask_question` ≤3 轮:Scope / Constraints / Definition of Done
158
+ 3. 派生 `execution_criteria` + `task_decomposition`(每个 sub-goal `done_when` + `evidence` + `lifecycle` + `completion_confirmed: false`)
159
+ 4. **status.json 唯一真源**:写入 `boundary_contract` / `execution_criteria` / `task_decomposition`;不生成 markdown 清单
160
+ 5. 在最后一个 evidence-producing stage(verify/review/test)之后、`milestone-complete` 之前追加 `decision:post-goal-audit`。ralph-execute 在该节点按需动态生长 `steps[]`
161
+ 6. **输出 `/goal` 绑定提示词:**
150
162
  ```
151
- 📋 任务分解完成。复制下面一行设定目标(推荐):
152
- /goal 当 {session_dir}/goal-checklist.md 中子目标全 [x] 且含 ALL_GOALS_DONE 时达成;否则按执行准则继续推进且不越边界契约
163
+ 📋 任务分解完成。复制下面一行设定目标,会话在子目标全部达成前不停:
164
+
165
+ /goal 目标达成条件: {session_dir}/status.json 中 task_decomposition[*].status == "done" 且 task_decomposition[*].completion_confirmed == true 且 steps[*].completion_confirmed == true。未达成时:阅读 {session_dir}/status.json 取得 execution_criteria / boundary_contract / task_decomposition / steps 作为行动手册,调用 /maestro-ralph continue 推进;严禁手动执行 skill 或越界修改 status.json.boundary_contract.out_of_scope。
153
166
  ```
154
167
 
155
168
  ### A_CREATE_SESSION
156
169
 
157
- 1. Read `.workflow/state.json` for project context (phase, milestone)
158
- 2. Create `.workflow/.maestro/maestro-{YYYYMMDD-HHMMSS}/status.json`:
170
+ 1. Read `.workflow/state.json` 获取 phase / milestone(含 D-007 反查 `phase_slugs`);读最新 macro analyze artifact 注入 `scope_verdict` + `analyze_macro_id`(如存在);读最新 blueprint artifact 注入 `blueprint_id`
171
+ 2. Create `.workflow/.maestro/maestro-{YYYYMMDD-HHMMSS}/status.json`(与 ralph 共用 schema):
159
172
  ```json
160
- { "session_id", "source": "maestro", "intent", "task_type", "chain_name",
161
- "phase", "milestone", "auto_mode", "exec_mode", "cli_tool",
162
- "context": { ... }, "steps": [{ "index", "skill", "args", "type", "status": "pending", "goal_ref": null }],
173
+ {
174
+ "session_id", "source": "maestro", "intent", "task_type", "chain_name",
175
+ "phase", "phase_is_new": false, "milestone": "",
176
+ "scope_verdict": null, "analyze_macro_id": null, "blueprint_id": null,
177
+ "auto_mode": false, "exec_mode": "auto", "cli_tool": "claude",
178
+ "context": { "scratch_dir": null, "plan_dir": null, "analysis_dir": null,
179
+ "brainstorm_dir": null, "blueprint_dir": null, "issue_id": null },
180
+ "steps": [{
181
+ "index": 0, "type": "internal|external|decision",
182
+ "skill": "", "args": "",
183
+ "stage": "", "scope": null,
184
+ "command_scope": "global|project|missing|null",
185
+ "command_path": "~/.claude/commands/{name}.md | .claude/commands/{name}.md | null",
186
+ "milestone_id": null, "source_artifact_ref": null,
187
+ "status": "pending", "goal_ref": null,
188
+ "completion_confirmed": false, "completion_status": null,
189
+ "completion_evidence": null, "completed_at": null
190
+ }],
163
191
  "waves": [], "current_step": 0, "status": "running",
164
- "_comment": " OPTIONAL additive block — present only if S_DECOMPOSE ran; absent → old flat-chain behavior",
165
- "boundary_contract": {}, "execution_criteria": [], "task_decomposition": [], "goal_checklist_path": "" }
192
+ "boundary_contract": {}, "execution_criteria": [],
193
+ "task_decomposition": [], "task_decomposition_all_done": false
194
+ }
166
195
  ```
167
- Decomposition fields written ONLY if A_DECOMPOSE_TASKS produced them (additive; never break flat-chain readers)
168
- 3. Initialize tracking via `TodoWrite`. The decomposition goal is bound by the user via the emitted `/goal` prompt
169
- 4. If `--super`: read `maestro-super.md`, follow it completely
196
+ Decomposition 字段仅在 A_DECOMPOSE_TASKS 产出时写入(additive
197
+ 3. Validate: 所有 step `command_scope != "missing"`;否则 raise E005 列出缺失 skill
198
+ 4. Initialize tracking via `TodoWrite`
199
+ 5. If `--super`: read `maestro-super.md`, follow it completely
170
200
 
171
201
  </actions>
172
202
 
@@ -181,6 +211,7 @@ Shares the decomposition contract with maestro-ralph `A_DECOMPOSE_TASKS` — **r
181
211
  | maestro-init | `-y` | Skip interactive questioning |
182
212
  | maestro-analyze | `-y` | Skip scoping, auto-deepen |
183
213
  | maestro-brainstorm | `-y` | Skip questions, use defaults |
214
+ | maestro-blueprint | `-y` | Skip interview, use recommended defaults |
184
215
  | maestro-roadmap | `-y` | Skip questions (create/revise/review) |
185
216
  | maestro-impeccable | `-y` | Auto-select design variant + skip confirmations |
186
217
  | maestro-plan | `-y` | Skip confirmations and clarification |
@@ -200,6 +231,7 @@ Unlisted commands have no auto flags.
200
231
  | E002 | error | Clarity too low after 2 rounds | Show parsed intent, ask rephrase |
201
232
  | E003 | error | Chain step failed + user abort | Record partial, suggest -c resume |
202
233
  | E004 | error | Resume session not found | Show available sessions |
234
+ | E005 | error | command_scope == "missing" for one or more steps | List missing skills, abort build |
203
235
  | W001 | warning | Ambiguous intent, multiple chains | Present options |
204
236
  | W002 | warning | Step completed with warnings | Log and continue |
205
237
  | W003 | warning | State suggests different chain | Show discrepancy |
@@ -207,11 +239,15 @@ Unlisted commands have no auto flags.
207
239
  ### Success Criteria
208
240
 
209
241
  - [ ] Intent classified with task_type, complexity, clarity_score
210
- - [ ] Broad lifecycle intents decomposed (S_DECOMPOSE, ≤3 boundary questions) sharing maestro-ralph contract; narrow/single-step skip
211
- - [ ] Decomposition writes additive block + goal-checklist.md + post-goal-audit node; emits /goal bind prompt (no self-call, no phantom create_goal)
242
+ - [ ] Chain catalog 覆盖 brainstorm / blueprint / analyze-macro / analyze / roadmap / plan(三路径) / execute / verify / quality pipeline
243
+ - [ ] D-007: 数字 phase 步骤的 `milestone_id` 通过 `state.json.milestones[].phase_slugs` 反查
244
+ - [ ] macro analyze 后跟 `decision:post-analyze-scope`(由 ralph 评估 scope_verdict 决定下游链路)
245
+ - [ ] plan 支持 `{phase}` / `--from analyze:{ANL_ID}` / `--from blueprint:{BLP_ID}` 三路径;`source_artifact_ref` 写入 step
246
+ - [ ] Broad lifecycle intents decomposed (≤3 boundary questions); narrow/single-step skip
247
+ - [ ] status.json 唯一真源;无 markdown 清单;post-goal-audit 节点在 decomposed 时追加;/goal 提示词以 status.json 为判据
212
248
  - [ ] Chain selected and confirmed (or auto-confirmed)
213
249
  - [ ] Session dir created with status.json before execution; decomposition fields additive-only
214
- - [ ] Tracking via TodoWrite (Claude); status.json steps[] grown dynamically by ralph-execute post-goal-audit
250
+ - [ ] 每个 step `command_scope` + `command_path` + `completion_confirmed` 字段
215
251
  - [ ] Auto flags propagated to supporting commands only
216
252
  - [ ] All chains dispatched via maestro-ralph-execute
217
253
  - [ ] Low-complexity intents routed to maestro-quick
@@ -34,12 +34,17 @@ Use `--gaps` for issue-focused root cause analysis (replaces manage-issue-analyz
34
34
  </deferred_reading>
35
35
 
36
36
  <context>
37
- $ARGUMENTS -- phase number for milestone-scoped, topic text for adhoc/standalone mode, no args for milestone-wide.
37
+ $ARGUMENTS -- phase number for micro mode, topic text for macro/adhoc mode, no args for milestone-wide.
38
+
39
+ **Dual-layer mode:**
40
+ - **Macro mode** (text argument): Explore impact surface of a topic/requirement. Produces coarse-grained context with `scope_verdict` to route next step. Use before roadmap or for standalone analysis.
41
+ - **Micro mode** (numeric argument): Phase-level deep analysis within an existing roadmap. Produces fine-grained context for plan consumption. `analyze 1` = Phase 1 of current milestone.
38
42
 
39
43
  **Flags:**
40
44
  - `-y` / `--yes`: Auto mode — skip interactive scoping, use recommended defaults, auto-deepen
41
45
  - `-c` / `--continue`: Resume from existing session (auto-detect session folder + discussion.md)
42
46
  - `-q` / `--quick`: Quick mode — skip exploration + scoring, go straight to decision extraction (context.md only)
47
+ - `--from <source>`: Load upstream context package (brainstorm:ID, blueprint:BLP-xxx, @file, or path)
43
48
  - `--gaps [ISS-ID]`: Issue root cause analysis mode. If ISS-ID provided, analyze single issue. If omitted, analyze all open/registered issues from issues.jsonl.
44
49
 
45
50
  Scope routing, output directory format, artifact registration schema, and output artifact listing are defined in workflow analyze.md (Scope Routing and Output Structure sections).
@@ -48,6 +53,20 @@ Scope routing, output directory format, artifact registration schema, and output
48
53
  `maestro wiki list --category debug` → select relevant → `maestro wiki load`
49
54
  </context>
50
55
 
56
+ <interview_protocol>
57
+ Interview the user relentlessly until shared understanding is reached. Active only in interactive mode; skip when `-y/--yes`, `-c/--continue`, or input is already specific (explicit phase number or unambiguous topic).
58
+
59
+ - One decision per turn via ask_question with 2–4 options + a (Recommended) default; every question must include a `Proceed now` option so the user can end the interview at any time.
60
+ - Never ask what code can verify — resolve via `state.json`, `roadmap.md`, `issues.jsonl`, `maestro spec load`, `maestro wiki search`, Grep, or Read.
61
+ - Walk the decision dependency tree strictly: scope → depth → dimensions → Go/No-Go threshold. Do not open the next branch until the current one is settled.
62
+ - Scope guard: only ask about decisions owned by `analyze`. Do not prejudge plan/execute concerns.
63
+
64
+ Decision points: scope (phase / topic / milestone-wide / adhoc / --gaps) → depth (quick / standard / deep) → dimensions (which of the 6 to keep) → Go/No-Go threshold.
65
+
66
+ Exit: on `Proceed now` or when all decision points are settled, write the table below to the top of `discussion.md` and mirror it into `context.md` under an `Interview Decisions` section:
67
+ `| # | Decision | Choice | Source (user / code / default) |`
68
+ </interview_protocol>
69
+
51
70
  <execution>
52
71
  Follow '~/.maestro/workflows/analyze.md' completely.
53
72
 
@@ -78,15 +97,21 @@ Phase 4: Output context.md for downstream plan --gaps
78
97
 
79
98
  **Handoff:** context.md is consumed by maestro-plan (loads Locked/Free/Deferred decisions). In --gaps mode, context.md contains issue root causes for `plan --gaps` consumption.
80
99
 
100
+ **scope_verdict** (added to context.md in Step 6 Synthesis for macro/adhoc/standalone scopes):
101
+ - `large` (3+ independent subsystems or hard serial dependencies) → suggest `/maestro-roadmap --from analyze:ANL-xxx`
102
+ - `medium` (1-2 subsystems, parallelizable) → suggest `/maestro-plan --from analyze:ANL-xxx`
103
+ - `small` (single-file or few-file change) → suggest `/maestro-plan --from analyze:ANL-xxx`
104
+
81
105
  **Next-step routing on completion:**
82
106
 
83
- Phase/Milestone scope:
107
+ Phase/Milestone scope (micro mode):
84
108
  - Go recommendation, UI work needed → `/maestro-impeccable build {target}`
85
109
  - Go recommendation, ready to plan → `/maestro-plan` or `/maestro-plan {phase}`
86
110
  - No-Go recommendation → revisit requirements or `/maestro-brainstorm {topic}`
87
111
 
88
- Adhoc/Standalone scope:
89
- - Ready to plan → `/maestro-plan --dir {scratch_dir}`
112
+ Macro/Adhoc/Standalone scope:
113
+ - scope_verdict = large → `/maestro-roadmap --from analyze:ANL-xxx`
114
+ - scope_verdict = medium/small → `/maestro-plan --from analyze:ANL-xxx`
90
115
  - Need more exploration → `/maestro-analyze {topic} -c`
91
116
 
92
117
  Gaps scope:
@@ -125,6 +150,7 @@ Gaps mode:
125
150
  - [ ] context.md written with aggregated root causes for plan --gaps
126
151
 
127
152
  Both modes (full + quick):
153
+ - [ ] Interactive mode: interview decision table written to `discussion.md` and mirrored into `context.md` "Interview Decisions"
128
154
  - [ ] context.md written with all decisions classified as Locked/Free/Deferred
129
155
  - [ ] Gray areas identified through phase-specific analysis
130
156
  - [ ] Decision Recording Protocol applied to all decisions
@@ -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
+ - ask_question
7
+ - define_subagent
8
+ - grep_search
9
+ - invoke_subagent
10
+ - manage_subagents
11
+ - replace_file_content
12
+ - run_command
13
+ - send_message
14
+ - view_file
15
+ - write_to_file
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_question 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>