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
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-roadmap
3
- description: Generate roadmap from requirements (light or full mode)
4
- argument-hint: "<requirement> [--mode light|full] [-y] [-c] [-m progressive|direct|auto] [--from-brainstorm SESSION-ID] [--revise [instructions]] [--review]"
3
+ description: Generate roadmap with milestone/phase structure from requirements or upstream context
4
+ argument-hint: "<requirement> [-y] [-c] [-m progressive|direct|auto] [--from <source>] [--revise [instructions]] [--review]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -13,16 +13,14 @@ allowed-tools:
13
13
  - AskUserQuestion
14
14
  ---
15
15
  <purpose>
16
- Unified roadmap generation with two execution paths:
16
+ Generate a milestone/phase roadmap from requirements or upstream context. Produces `.workflow/roadmap.md` with Milestone > Phase hierarchy ready for maestro-analyze and maestro-plan.
17
17
 
18
- - **Light mode** (default): Directly from requirements to roadmap. No specification documents.
19
- - **Full mode** (`--mode full`): 7-phase document chain (Product Brief PRD → Architecture → Epics → Roadmap) producing a complete specification package in `.workflow/.spec/` plus `.workflow/roadmap.md`.
20
-
21
- Additional operation modes (light mode only):
18
+ Operation modes:
19
+ - **Create** (default): Build roadmap from requirements or upstream context
22
20
  - **Revise** (`--revise`): Modify existing roadmap while preserving completed phase progress
23
21
  - **Review** (`--review`): Health assessment of current roadmap (read-only)
24
22
 
25
- Both modes produce `.workflow/roadmap.md` with milestone/phase structure ready for maestro-plan.
23
+ For formal specification documents (Product Brief, PRD, Architecture, Epics), use `/maestro-blueprint` instead.
26
24
  </purpose>
27
25
 
28
26
  <required_reading>
@@ -31,73 +29,67 @@ Both modes produce `.workflow/roadmap.md` with milestone/phase structure ready f
31
29
  </required_reading>
32
30
 
33
31
  <deferred_reading>
34
- - [roadmap.md](~/.maestro/workflows/roadmap.md) — read when mode is light (default)
35
- - [spec-generate.md](~/.maestro/workflows/spec-generate.md) — read when mode is full
36
- - [spec-config.json](~/.maestro/templates/spec-config.json) — read when initializing spec configuration (full mode)
32
+ - [roadmap.md](~/.maestro/workflows/roadmap.md) — read for roadmap generation workflow
37
33
  </deferred_reading>
38
34
 
39
35
  <context>
40
- $ARGUMENTS -- requirement text, @file reference, or brainstorm session reference.
36
+ $ARGUMENTS -- requirement text, @file reference, or upstream context source.
41
37
 
42
- **Flags (shared):**
43
- - `--mode light|full`: Execution path (default: light)
38
+ **Flags:**
44
39
  - `-y` / `--yes`: Auto mode — skip interactive questions, use recommended defaults
45
40
  - `-c` / `--continue`: Resume from last checkpoint
46
- - `--from-brainstorm SESSION-ID`: Import guidance-specification.md from a brainstorm session as seed
47
-
48
- **Flags (light mode only):**
49
41
  - `-m progressive|direct|auto`: Decomposition strategy (default: auto)
42
+ - `--from <source>`: Load upstream context package (brainstorm:ID, blueprint:BLP-xxx, analyze:ANL-xxx, @file, or path). Consumes context-package.json
43
+ - `--from-brainstorm SESSION-ID`: (backward compat alias for `--from brainstorm:ID`)
50
44
  - `--revise [instructions]`: Revise existing roadmap. If instructions provided, apply directly. If omitted, ask user. Preserves completed phase progress.
51
45
  - `--review`: Roadmap health assessment (read-only)
52
46
 
53
47
  **Input types:**
54
48
  - Direct text: `"Implement user authentication system with OAuth and 2FA"`
55
49
  - File reference: `@requirements.md`
56
- - Brainstorm import: `--from-brainstorm WFS-xxx`
50
+ - Context import: `--from brainstorm:BRN-001` or `--from analyze:ANL-xxx` or `--from blueprint:BLP-xxx`
57
51
  - No args + `--revise` / `--review`: Operate on existing `.workflow/roadmap.md`
58
52
 
59
53
  **Pipeline position:**
60
54
  ```
61
- maestro-brainstorm (optional upstream)
62
- guidance-specification.md
63
- maestro-init (project setup)
64
- project.md, state.json, config.json
65
- maestro-roadmap [--mode light] → roadmap.md directly
66
- maestro-roadmap --mode full → spec package + roadmap.md
55
+ maestro-brainstorm ─┐
56
+ maestro-blueprint ─┤ (optional upstream, parallel)
57
+ maestro-analyze ─┘ context-package.json
58
+
59
+ maestro-roadmap → .workflow/roadmap.md (Milestone > Phase hierarchy)
67
60
 
68
- maestro-plan → maestro-execute → maestro-verify
61
+ maestro-analyze {phase} → maestro-plan → maestro-execute → maestro-verify
69
62
  ```
70
63
 
71
- **Note (full mode):** `maestro-init` MUST run before `--mode full`. It creates the `.workflow/` directory and project context.
72
-
73
64
  ### Pre-load specs
74
65
  1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for phase decomposition — ensures roadmap respects documented decisions and boundaries.
75
66
  2. Optional — proceed without if unavailable.
76
67
  </context>
77
68
 
78
- <execution>
69
+ <interview_protocol>
70
+ Interview the user relentlessly until shared understanding is reached. Active only in interactive mode; skip when `-y/--yes`, `--revise`, `--review`, `-c/--continue`, or input is already specific (clear requirement + mode).
79
71
 
80
- ### Mode routing
72
+ - One decision per turn via AskUserQuestion with 2–4 options + a (Recommended) default; every question must include a `Proceed now` option.
73
+ - Never ask what code can verify — resolve via `state.json`, existing `roadmap.md`, `project.md`, or `maestro spec load`.
74
+ - Walk the decision dependency tree strictly: mode → requirement scope → decomposition strategy → phase dependencies/order. Do not open the next branch until the current one is settled.
75
+ - Scope guard: only decide the shape of the roadmap. Do not pre-resolve intra-phase task breakdown — that belongs to `plan`.
81
76
 
82
- 1. Read `@~/.maestro/workflows/roadmap-common.md` (always shared logic)
83
- 2. Parse `--mode` flag:
84
- - `light` or omitted → read `@~/.maestro/workflows/roadmap.md`, follow its process
85
- - `full` → read `@~/.maestro/workflows/spec-generate.md`, follow its process
86
- 3. If `--revise` or `--review` present → force light mode (these are light-mode-only operations)
77
+ Decision points: scope (MVP / complete / phased) → strategy (progressive / direct / auto) → milestone boundaries → phase dependencies and order.
87
78
 
88
- ### Light mode (default)
79
+ Exit: on consensus or `Proceed now`, append the table below to a `Roadmap Decisions` section at the top of `.workflow/roadmap.md`:
80
+ `| # | Decision | Choice | Source (user / code / default) |`
81
+ </interview_protocol>
89
82
 
90
- Follow `~/.maestro/workflows/roadmap.md` completely.
83
+ <execution>
84
+
85
+ 1. Read `@~/.maestro/workflows/roadmap-common.md` (always — shared logic)
86
+ 2. Read `@~/.maestro/workflows/roadmap.md`, follow its process
91
87
 
92
88
  Sub-modes:
93
- - **Create** (default): Build roadmap from requirements
89
+ - **Create** (default): Build roadmap from requirements or upstream context
94
90
  - **Revise** (`--revise`): Follow workflow roadmap.md "Mode: Revise" section
95
91
  - **Review** (`--review`): Follow workflow roadmap.md "Mode: Review" section
96
92
 
97
- ### Full mode (`--mode full`)
98
-
99
- Follow `~/.maestro/workflows/spec-generate.md` completely.
100
-
101
93
  ### Next-step routing on completion
102
94
 
103
95
  | Condition | Suggestion |
@@ -106,63 +98,32 @@ Follow `~/.maestro/workflows/spec-generate.md` completely.
106
98
  | Simple project, ready to plan | /maestro-plan 1 |
107
99
  | Need UI design first | /maestro-impeccable build |
108
100
  | View project dashboard | /manage-status |
109
- | Need project setup (full mode) | /maestro-init |
101
+ | Need formal spec documents | /maestro-blueprint |
110
102
  </execution>
111
103
 
112
104
  <error_codes>
113
-
114
- **Shared:**
115
105
  | Code | Severity | Condition | Recovery |
116
106
  |------|----------|-----------|----------|
117
107
  | E001 | error | Requirement/idea text or @file required | Prompt user for input |
118
- | E002 | error | Brainstorm session not found (--from-brainstorm) | Show available sessions |
119
- | W001 | warning | CLI analysis failed, using fallback | Continue with available data |
120
- | W005 | warning | External research agent failed | Continue without apiResearchContext |
121
-
122
- **Light mode:**
123
- | Code | Severity | Condition | Recovery |
124
- |------|----------|-----------|----------|
108
+ | E002 | error | Context source not found (--from / --from-brainstorm) | Show available sessions/sources |
125
109
  | E003 | error | Circular dependency detected in phases | Prompt user to re-decompose |
126
110
  | E004 | error | roadmap.md not found (--revise/--review) | Run maestro-roadmap first |
127
111
  | E005 | error | Revision invalidates completed phase work | Warn user, ask to confirm or adjust |
112
+ | W001 | warning | CLI analysis failed, using fallback | Continue with available data |
128
113
  | W002 | warning | Max refinement rounds (5) reached | Force proceed with current roadmap |
129
-
130
- **Full mode:**
131
- | Code | Severity | Condition | Recovery |
132
- |------|----------|-----------|----------|
133
- | E006 | error | `.workflow/` not initialized | Run maestro-init first |
134
- | E007 | error | Phase 6 readiness Fail after 2 auto-fix iterations | Present manual fix options |
135
- | W002 | warning | Codebase exploration failed | Continue without codebase context |
136
- | W003 | warning | Glossary has < 5 terms | Note in readiness check |
137
- | W004 | warning | Review-level readiness score (60-79%) | Proceed with caveats |
114
+ | W005 | warning | External research agent failed | Continue without apiResearchContext |
138
115
  </error_codes>
139
116
 
140
117
  <success_criteria>
141
-
142
- **Light mode:**
118
+ - [ ] Interactive mode: interview decision table appended to `.workflow/roadmap.md` "Roadmap Decisions" section
143
119
  - [ ] Requirement parsed with goal, constraints, stakeholders
120
+ - [ ] Milestones defined with deliverable targets and version tags
144
121
  - [ ] Decomposition strategy selected (progressive or direct)
145
- - [ ] Phases defined with success criteria, dependencies, and requirement mappings
122
+ - [ ] Phases defined within milestones with success criteria, dependencies, and requirement mappings
146
123
  - [ ] Every Active requirement from project.md mapped to exactly one phase
147
124
  - [ ] No circular dependencies in phase ordering
148
125
  - [ ] User approved roadmap (or auto-approved with -y)
149
- - [ ] `.workflow/roadmap.md` written with phase details, scope decisions, and progress table
126
+ - [ ] `.workflow/roadmap.md` written with Milestone > Phase hierarchy, scope decisions, and progress table
150
127
  - [ ] No phase directories created (phases are labels in roadmap, not directories)
151
-
152
- **Full mode (in addition to light mode criteria for roadmap):**
153
- - [ ] `spec-config.json` created with session metadata and phase tracking
154
- - [ ] `product-brief.md` with vision, goals, scope, multi-perspective synthesis
155
- - [ ] `glossary.json` with 5+ core terms for cross-document consistency
156
- - [ ] `requirements/` directory with `_index.md` + individual `REQ-*.md` + `NFR-*.md` files
157
- - [ ] All requirements have RFC 2119 keywords and acceptance criteria
158
- - [ ] `architecture/` directory with `_index.md` + individual `ADR-*.md` files
159
- - [ ] Architecture includes state machine, config model, error handling, observability (service type)
160
- - [ ] `epics/` directory with `_index.md` + individual `EPIC-*.md` files
161
- - [ ] Cross-Epic dependency map (Mermaid) and MVP subset tagged
162
- - [ ] `readiness-report.md` with 4-dimension quality scores and traceability matrix
163
- - [ ] `spec-summary.md` with one-page executive summary
164
- - [ ] All documents have valid YAML frontmatter with session_id
165
- - [ ] Glossary terms used consistently across all documents
166
- - [ ] Readiness gate: Pass (>=80%) or Review (>=60%) with documented caveats
167
- - [ ] `.workflow/roadmap.md` written
128
+ - [ ] Artifact registered in state.json with milestone entries
168
129
  </success_criteria>
@@ -49,8 +49,13 @@ $ARGUMENTS — user intent text, or special keywords.
49
49
  1. **All chains dispatch via maestro-ralph-execute** — maestro never executes steps directly
50
50
  2. **Session before execution** — status.json created before any step runs
51
51
  3. **Auto flags only to supporting commands** — unlisted commands execute as-is
52
- 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
53
- 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
52
+ 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`
53
+ 5. **status.json 唯一真源**不生成 `goal-checklist.md` 或外部清单
54
+ 6. **Default step type = internal** — chain 内每个 step 解析 `command_scope`/`command_path`(全局优先 `~/.claude/commands/{name}.md`,fallback 项目)
55
+ 7. **Topology awareness** — chain catalog 含 brainstorm / blueprint / analyze-macro(text) / analyze(numeric phase) / roadmap / plan(三路径) / execute / verify / ...;scope_verdict 路由由 ralph 在 `post-analyze-scope` 决定
56
+ 8. **D-007 milestone 反查** — 数字 phase 步骤的 `milestone_id` 由 `state.json.milestones[].phase_slugs` 反查得出
57
+ 9. **每个 step 必须 `completion_confirmed: true`** — 基于 `--- COMPLETION STATUS ---` 的 `STATUS: DONE`
58
+ 10. **schema 向后兼容** — 新增字段全部可选;既有字段名不删不改
54
59
  </invariants>
55
60
 
56
61
  <state_machine>
@@ -127,9 +132,16 @@ S_FALLBACK:
127
132
  ### A_CLASSIFY_INTENT
128
133
 
129
134
  1. Read `~/.maestro/workflows/maestro.md` from deferred_reading
130
- 2. Match intent to best task_type via chain catalog (semantic, AI-driven)
131
- 3. Select chain from chainMap
132
- 4. Determine per-step type: `internal` (Skill) or `external` (delegate)
135
+ 2. Match intent to task_type via chain catalog (semantic)
136
+ 3. Select chain from chainMap,遵循拓扑约束:
137
+ - 头脑风暴/探索 `brainstorm`
138
+ - 正式规格/spec-generate/7-phase → `blueprint`
139
+ - 项目初始化 → `init`
140
+ - 宽/中等意图 + 无数字 phase → `analyze-macro`(产 scope_verdict,由 ralph 在 `post-analyze-scope` 决定是否插入 roadmap+analyze 或直跳 plan --from analyze)
141
+ - 数字 phase 上下文 → `analyze {phase}` → `plan {phase}` → `execute {phase}` → `verify {phase}` → quality pipeline
142
+ - 已有 analyze artifact 想直达执行 → `plan --from analyze:{ANL_ID}` → execute → verify
143
+ - 已有 blueprint artifact → `plan --from blueprint:{BLP_ID}` → execute → verify
144
+ 4. 每个 step 默认 `type: "internal"`;解析 `command_scope` + `command_path`(全局优先 fallback 项目);写入 `step.stage` / `step.scope` / `step.source_artifact_ref`(如 `--from` 注入时)
133
145
 
134
146
  ### A_CLARIFY
135
147
 
@@ -138,34 +150,52 @@ S_FALLBACK:
138
150
 
139
151
  ### A_DECOMPOSE_TASKS
140
152
 
141
- Shares the decomposition contract with maestro-ralph `A_DECOMPOSE_TASKS` — **reference that spec; do not duplicate the table logic here.** Condensed:
153
+ maestro-ralph `A_DECOMPOSE_TASKS` 共享分解契约。Condensed:
142
154
 
143
- 1. Classify intent breadth (broad: 重构/全面/重写/迁移/overhaul/migrate/rewrite; narrow: single file/function/bug). Skip entirely for narrow / single-step / {status,init,quick} chains
144
- 2. Broad/medium → `AskUserQuestion` ≤3 rounds: Scope (in/out) | Constraints (compat/API/perf/test bar) | Definition of Done
145
- 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)
146
- 4. Write `{session_dir}/goal-checklist.md` (same template as maestro-ralph) with `ALL_GOALS_DONE` sentinel; set `goal_checklist_path`
147
- 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
148
- 6. **Emit the `/goal` bind prompt:**
155
+ 1. 分类意图广度。narrow / 单步 / `{status,init,quick}` 链跳过
156
+ 2. broad/medium → `AskUserQuestion` ≤3 轮:Scope / Constraints / Definition of Done
157
+ 3. 派生 `execution_criteria` + `task_decomposition`(每个 sub-goal `done_when` + `evidence` + `lifecycle` + `completion_confirmed: false`)
158
+ 4. **status.json 唯一真源**:写入 `boundary_contract` / `execution_criteria` / `task_decomposition`;不生成 markdown 清单
159
+ 5. 在最后一个 evidence-producing stage(verify/review/test)之后、`milestone-complete` 之前追加 `decision:post-goal-audit`。ralph-execute 在该节点按需动态生长 `steps[]`
160
+ 6. **输出 `/goal` 绑定提示词:**
149
161
  ```
150
- 📋 任务分解完成。复制下面一行设定目标(推荐):
151
- /goal 当 {session_dir}/goal-checklist.md 中子目标全 [x] 且含 ALL_GOALS_DONE 时达成;否则按执行准则继续推进且不越边界契约
162
+ 📋 任务分解完成。复制下面一行设定目标,会话在子目标全部达成前不停:
163
+
164
+ /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。
152
165
  ```
153
166
 
154
167
  ### A_CREATE_SESSION
155
168
 
156
- 1. Read `.workflow/state.json` for project context (phase, milestone)
157
- 2. Create `.workflow/.maestro/maestro-{YYYYMMDD-HHMMSS}/status.json`:
169
+ 1. Read `.workflow/state.json` 获取 phase / milestone(含 D-007 反查 `phase_slugs`);读最新 macro analyze artifact 注入 `scope_verdict` + `analyze_macro_id`(如存在);读最新 blueprint artifact 注入 `blueprint_id`
170
+ 2. Create `.workflow/.maestro/maestro-{YYYYMMDD-HHMMSS}/status.json`(与 ralph 共用 schema):
158
171
  ```json
159
- { "session_id", "source": "maestro", "intent", "task_type", "chain_name",
160
- "phase", "milestone", "auto_mode", "exec_mode", "cli_tool",
161
- "context": { ... }, "steps": [{ "index", "skill", "args", "type", "status": "pending", "goal_ref": null }],
172
+ {
173
+ "session_id", "source": "maestro", "intent", "task_type", "chain_name",
174
+ "phase", "phase_is_new": false, "milestone": "",
175
+ "scope_verdict": null, "analyze_macro_id": null, "blueprint_id": null,
176
+ "auto_mode": false, "exec_mode": "auto", "cli_tool": "claude",
177
+ "context": { "scratch_dir": null, "plan_dir": null, "analysis_dir": null,
178
+ "brainstorm_dir": null, "blueprint_dir": null, "issue_id": null },
179
+ "steps": [{
180
+ "index": 0, "type": "internal|external|decision",
181
+ "skill": "", "args": "",
182
+ "stage": "", "scope": null,
183
+ "command_scope": "global|project|missing|null",
184
+ "command_path": "~/.claude/commands/{name}.md | .claude/commands/{name}.md | null",
185
+ "milestone_id": null, "source_artifact_ref": null,
186
+ "status": "pending", "goal_ref": null,
187
+ "completion_confirmed": false, "completion_status": null,
188
+ "completion_evidence": null, "completed_at": null
189
+ }],
162
190
  "waves": [], "current_step": 0, "status": "running",
163
- "_comment": " OPTIONAL additive block — present only if S_DECOMPOSE ran; absent → old flat-chain behavior",
164
- "boundary_contract": {}, "execution_criteria": [], "task_decomposition": [], "goal_checklist_path": "" }
191
+ "boundary_contract": {}, "execution_criteria": [],
192
+ "task_decomposition": [], "task_decomposition_all_done": false
193
+ }
165
194
  ```
166
- Decomposition fields written ONLY if A_DECOMPOSE_TASKS produced them (additive; never break flat-chain readers)
167
- 3. Initialize tracking via `TodoWrite`. The decomposition goal is bound by the user via the emitted `/goal` prompt
168
- 4. If `--super`: read `maestro-super.md`, follow it completely
195
+ Decomposition 字段仅在 A_DECOMPOSE_TASKS 产出时写入(additive
196
+ 3. Validate: 所有 step `command_scope != "missing"`;否则 raise E005 列出缺失 skill
197
+ 4. Initialize tracking via `TodoWrite`
198
+ 5. If `--super`: read `maestro-super.md`, follow it completely
169
199
 
170
200
  </actions>
171
201
 
@@ -180,6 +210,7 @@ Shares the decomposition contract with maestro-ralph `A_DECOMPOSE_TASKS` — **r
180
210
  | maestro-init | `-y` | Skip interactive questioning |
181
211
  | maestro-analyze | `-y` | Skip scoping, auto-deepen |
182
212
  | maestro-brainstorm | `-y` | Skip questions, use defaults |
213
+ | maestro-blueprint | `-y` | Skip interview, use recommended defaults |
183
214
  | maestro-roadmap | `-y` | Skip questions (create/revise/review) |
184
215
  | maestro-impeccable | `-y` | Auto-select design variant + skip confirmations |
185
216
  | maestro-plan | `-y` | Skip confirmations and clarification |
@@ -199,6 +230,7 @@ Unlisted commands have no auto flags.
199
230
  | E002 | error | Clarity too low after 2 rounds | Show parsed intent, ask rephrase |
200
231
  | E003 | error | Chain step failed + user abort | Record partial, suggest -c resume |
201
232
  | E004 | error | Resume session not found | Show available sessions |
233
+ | E005 | error | command_scope == "missing" for one or more steps | List missing skills, abort build |
202
234
  | W001 | warning | Ambiguous intent, multiple chains | Present options |
203
235
  | W002 | warning | Step completed with warnings | Log and continue |
204
236
  | W003 | warning | State suggests different chain | Show discrepancy |
@@ -206,11 +238,15 @@ Unlisted commands have no auto flags.
206
238
  ### Success Criteria
207
239
 
208
240
  - [ ] Intent classified with task_type, complexity, clarity_score
209
- - [ ] Broad lifecycle intents decomposed (S_DECOMPOSE, ≤3 boundary questions) sharing maestro-ralph contract; narrow/single-step skip
210
- - [ ] Decomposition writes additive block + goal-checklist.md + post-goal-audit node; emits /goal bind prompt (no self-call, no phantom create_goal)
241
+ - [ ] Chain catalog 覆盖 brainstorm / blueprint / analyze-macro / analyze / roadmap / plan(三路径) / execute / verify / quality pipeline
242
+ - [ ] D-007: 数字 phase 步骤的 `milestone_id` 通过 `state.json.milestones[].phase_slugs` 反查
243
+ - [ ] macro analyze 后跟 `decision:post-analyze-scope`(由 ralph 评估 scope_verdict 决定下游链路)
244
+ - [ ] plan 支持 `{phase}` / `--from analyze:{ANL_ID}` / `--from blueprint:{BLP_ID}` 三路径;`source_artifact_ref` 写入 step
245
+ - [ ] Broad lifecycle intents decomposed (≤3 boundary questions); narrow/single-step skip
246
+ - [ ] status.json 唯一真源;无 markdown 清单;post-goal-audit 节点在 decomposed 时追加;/goal 提示词以 status.json 为判据
211
247
  - [ ] Chain selected and confirmed (or auto-confirmed)
212
248
  - [ ] Session dir created with status.json before execution; decomposition fields additive-only
213
- - [ ] Tracking via TodoWrite (Claude); status.json steps[] grown dynamically by ralph-execute post-goal-audit
249
+ - [ ] 每个 step `command_scope` + `command_path` + `completion_confirmed` 字段
214
250
  - [ ] Auto flags propagated to supporting commands only
215
251
  - [ ] All chains dispatched via maestro-ralph-execute
216
252
  - [ ] Low-complexity intents routed to maestro-quick
@@ -15,7 +15,7 @@ allowed-tools:
15
15
  Run unified automated testing via CSV layer pipeline. Reads project state to auto-select the optimal scenario source — PRD specs (when spec package exists), coverage gaps (when Nyquist audit found gaps), or code exploration (default). All sources converge into a CSV pipeline: discover infrastructure → plan → build scenarios.csv → write tests per layer (spawn_agents_on_csv parallel) → execute → diagnose failures (spawn_agents_on_csv parallel) → iterate → report.
16
16
 
17
17
  Key mechanisms:
18
- - **Intelligent routing**: Reads `.tests/`, `.workflow/.spec/`, `verification.json` to auto-select source — no mode flag needed
18
+ - **Intelligent routing**: Reads `.tests/`, `.workflow/blueprint/`, `verification.json` to auto-select source — no mode flag needed
19
19
  - **CSV parallel test writing**: Per-layer `spawn_agents_on_csv` — each agent writes one test file independently
20
20
  - **CSV parallel failure diagnosis**: Failed scenarios dispatched via `spawn_agents_on_csv` for classification + fix
21
21
  - **Unified iteration engine**: Nested inner loop (fix test_defects via diagnosis CSV, max 3/layer) + outer loop (adaptive strategy, max N iterations)
@@ -47,7 +47,7 @@ Single source of truth: **[index/catalog.json](index/catalog.json)**
47
47
 
48
48
  | Field | Purpose |
49
49
  |-------|---------|
50
- | `commands[]` | 55 个 slash 命令,含分类和描述 |
50
+ | `commands[]` | 56 个 slash 命令,含分类和描述 |
51
51
  | `skills[]` | 10 个 Skill,含分类和描述 |
52
52
  | `agents[]` | 22 个 Agent,含分类和描述 |
53
53
  | `cli_commands[]` | 21 个终端命令 |
@@ -175,24 +175,25 @@ $ARGUMENTS → Parse:
175
175
 
176
176
  ## Command Catalog Quick Reference
177
177
 
178
- ### 核心工作流 (core)
178
+ ### 上游起源 + 核心 (core)
179
179
 
180
180
  | 命令 | 用途 |
181
181
  |------|------|
182
182
  | `/maestro` | 智能协调器,自动路由 |
183
183
  | `/maestro-init` | 项目初始化 |
184
- | `/maestro-roadmap` | 路线图生成 |
184
+ | `/maestro-brainstorm` | 头脑风暴 — 发散探索,多角色创意 |
185
+ | `/maestro-blueprint` | 正式规格文档化 — 7-phase 收敛规格链 |
186
+ | `/maestro-roadmap` | 路线图编排 — 消费上游 context,纯 Milestone > Phase 分解 |
185
187
  | `/maestro-quick` | 快速任务 |
186
- | `/maestro-brainstorm` | 头脑风暴 |
187
188
  | `/maestro-overlay` | Overlay 管理 |
188
189
  | `/maestro-amend` | 修正补丁 |
189
190
 
190
- ### Phase 管线 (pipeline)
191
+ ### 理解层 + 执行管线 (pipeline)
191
192
 
192
193
  | 命令 | 用途 |
193
194
  |------|------|
194
- | `/maestro-analyze` | 多维分析 |
195
- | `/maestro-plan` | 任务规划 |
195
+ | `/maestro-analyze` | 双层分析 — 宏观(文本参数)探索影响面 / 微观(数字参数)Phase 级深入 |
196
+ | `/maestro-plan` | 任务规划 — 支持 `--from analyze:ANL-xxx` 直达 |
196
197
  | `/maestro-execute` | 任务执行 |
197
198
  | `/maestro-verify` | 验证确认 |
198
199
 
@@ -220,11 +221,44 @@ $ARGUMENTS → Parse:
220
221
 
221
222
  ## Workflow Mapping
222
223
 
223
- | 任务类型 | 推荐工作流 | 命令序列 |
224
- |---------|-----------|---------|
225
- | 新项目 | 初始化路径 | `/maestro-init` → `/maestro-roadmap` |
226
- | 正常开发 | 主干管线 | `/maestro-analyze` → `/maestro-plan` → `/maestro-execute` → `/maestro-verify` |
227
- | 快速修复 | 快速渠道 | `/maestro-quick "修复描述"` |
224
+ ### 层级模型
225
+
226
+ ```
227
+ Roadmap > Milestone > Phase > Task
228
+ ```
229
+
230
+ - **Roadmap** = 项目级常驻规划文档
231
+ - **Milestone** = 可独立交付的版本节点(v0.1.0-rc1, v0.2.0)
232
+ - **Phase** = Milestone 内的同步屏障执行阶段
233
+ - **Task** = Phase 内的具体代码修改单元(wave DAG 管理并行)
234
+
235
+ ### 命令拓扑
236
+
237
+ ```
238
+ 上游起源层(并列,可选)
239
+ brainstorm(发散/轻量) | blueprint(收敛/重型)
240
+
241
+ 理解层
242
+ analyze 双层: 宏观(文本参数) → scope_verdict | 微观(数字参数) → Phase 级决策
243
+
244
+ 编排层(可选)
245
+ roadmap — 消费上游 context,纯 Milestone > Phase 分解
246
+
247
+ 执行层
248
+ plan → execute → verify
249
+ ```
250
+
251
+ ### 合法路径
252
+
253
+ | 路径 | 场景 | 命令序列 |
254
+ |------|------|---------|
255
+ | Path A | 完整新项目 | `brainstorm` → `blueprint`(可选) → `analyze "topic"` → `roadmap` → `analyze 1` → `plan 1` → `execute` → `verify` |
256
+ | Path B | 旧项目大功能 | `analyze "feature X"` → `roadmap` → `analyze 1` → `plan 1` → `execute` → `verify` |
257
+ | Path C | 中等功能 | `analyze "feature X"` → `plan --from analyze:ANL-xxx` → `execute` → `verify` |
258
+ | Path D | 小改动 | `plan "fix auth bug"` → `execute` → `verify` |
259
+ | Path E | 纯规格文档 | `blueprint "project idea"` → (供人阅读) |
260
+ | Path F | 纯探索 | `brainstorm "idea"` → (供人决策) |
261
+ | 快速修复 | 已知简单问题 | `/maestro-quick "修复描述"` |
228
262
  | Bug 追踪 | Issue 闭环 | `/manage-issue-discover` → `/manage-issue create` → analyze/plan/execute → close |
229
263
  | 全自动 | /maestro 入口 | `/maestro -y "任务描述"` |
230
264
  | 代码审查 | 质量管线 | `/quality-review` → `/quality-auto-test` → `/quality-test` |
@@ -256,9 +290,9 @@ $ARGUMENTS → Parse:
256
290
 
257
291
  ## Statistics
258
292
 
259
- - **Slash 命令**: 55 个(7 个分类)
293
+ - **Slash 命令**: 56 个(7 个分类)
260
294
  - **CLI 命令**: 21 个
261
295
  - **Skills**: 10 个(3 个分类)
262
296
  - **Agents**: 22 个(5 个分类)
263
297
  - **Guide 文档**: 17 个
264
- - **工作流**: 4 个主要模板
298
+ - **工作流路径**: 6 个合法路径 (Path A-F) + 3 个辅助流程
@@ -7,10 +7,11 @@
7
7
  "commands": [
8
8
  {"name": "maestro", "command": "/maestro", "category": "core", "description": "智能协调器 — 根据意图和项目状态自动选择最优命令链", "source": "../../commands/maestro.md"},
9
9
  {"name": "maestro-init", "command": "/maestro-init", "category": "core", "description": "项目初始化 — 创建 .workflow/ 目录结构和状态文件", "source": "../../commands/maestro-init.md"},
10
- {"name": "maestro-roadmap", "command": "/maestro-roadmap", "category": "core", "description": "路线图生成基于目标创建里程碑和 Phase 分解", "source": "../../commands/maestro-roadmap.md"},
11
- {"name": "maestro-brainstorm", "command": "/maestro-brainstorm", "category": "core", "description": "多角色头脑风暴生成分析文档和功能规格", "source": "../../commands/maestro-brainstorm.md"},
12
- {"name": "maestro-analyze", "command": "/maestro-analyze", "category": "pipeline", "description": "多维度分析Phase 分析、CLI 辅助探索、gap 分析", "source": "../../commands/maestro-analyze.md"},
13
- {"name": "maestro-plan", "command": "/maestro-plan", "category": "pipeline", "description": "任务规划生成执行计划、碰撞检测、gap 修复计划", "source": "../../commands/maestro-plan.md"},
10
+ {"name": "maestro-roadmap", "command": "/maestro-roadmap", "category": "core", "description": "路线图编排消费上游 context,纯 Milestone > Phase 分解(不做技术探索)", "source": "../../commands/maestro-roadmap.md"},
11
+ {"name": "maestro-brainstorm", "command": "/maestro-brainstorm", "category": "core", "description": "头脑风暴发散探索,多角色创意,上游起源命令", "source": "../../commands/maestro-brainstorm.md"},
12
+ {"name": "maestro-blueprint", "command": "/maestro-blueprint", "category": "core", "description": "正式规格文档化7-phase 收敛规格链,上游起源命令,产出 .workflow/blueprint/", "source": "../../commands/maestro-blueprint.md"},
13
+ {"name": "maestro-analyze", "command": "/maestro-analyze", "category": "pipeline", "description": "双层分析宏观(文本参数)探索影响面+scope_verdict / 微观(数字参数)Phase 级深入", "source": "../../commands/maestro-analyze.md"},
14
+ {"name": "maestro-plan", "command": "/maestro-plan", "category": "pipeline", "description": "任务规划 — 支持 --from analyze:ANL-xxx 直达、碰撞检测、gap 修复计划", "source": "../../commands/maestro-plan.md"},
14
15
  {"name": "maestro-execute", "command": "/maestro-execute", "category": "pipeline", "description": "任务执行 — wave 并行执行、delegate 编排、自动提交", "source": "../../commands/maestro-execute.md"},
15
16
  {"name": "maestro-verify", "command": "/maestro-verify", "category": "pipeline", "description": "验证确认 — 成果检查、gap 发现、下一阶段建议", "source": "../../commands/maestro-verify.md"},
16
17
  {"name": "maestro-quick", "command": "/maestro-quick", "category": "core", "description": "快速任务 — 跳过 Phase 管线直接完成,支持 --full/--discuss 模式", "source": "../../commands/maestro-quick.md"},
@@ -149,16 +150,33 @@
149
150
  "essential_commands": [
150
151
  "/maestro",
151
152
  "/maestro-init",
152
- "/maestro-roadmap",
153
+ "/maestro-brainstorm",
154
+ "/maestro-blueprint",
153
155
  "/maestro-analyze",
156
+ "/maestro-roadmap",
154
157
  "/maestro-plan",
155
158
  "/maestro-execute",
156
159
  "/maestro-verify",
157
- "/maestro-quick",
158
- "/quality-review",
159
- "/manage-issue"
160
+ "/maestro-quick"
160
161
  ],
161
162
  "workflows": {
163
+ "topology": {
164
+ "hierarchy": "Roadmap > Milestone > Phase > Task",
165
+ "layers": {
166
+ "upstream_origin": ["brainstorm (发散/轻量)", "blueprint (收敛/重型)"],
167
+ "understanding": "analyze 双层: 宏观(文本参数) + 微观(数字参数)",
168
+ "orchestration": "roadmap (可选,消费上游 context)",
169
+ "execution": ["plan", "execute", "verify"]
170
+ }
171
+ },
172
+ "paths": {
173
+ "A_full_project": "brainstorm → blueprint(可选) → analyze 宏观 → roadmap → analyze 微观 → plan → execute → verify",
174
+ "B_large_feature": "analyze 宏观 → roadmap → analyze 微观 → plan → execute → verify",
175
+ "C_medium_feature": "analyze 宏观 → plan --from analyze:ANL-xxx → execute → verify",
176
+ "D_small_fix": "plan → execute → verify",
177
+ "E_spec_only": "blueprint → (供人阅读)",
178
+ "F_explore_only": "brainstorm → (供人决策)"
179
+ },
162
180
  "main_pipeline": {
163
181
  "name": "主干管线",
164
182
  "phases": ["analyze", "plan", "execute", "verify"],
@@ -176,9 +194,9 @@
176
194
  },
177
195
  "init_paths": {
178
196
  "name": "初始化路径",
179
- "minimal": "/maestro-init → /maestro-roadmap",
180
- "from_brainstorm": "/maestro-brainstorm → /maestro-init --from-brainstorm → /maestro-roadmap",
181
- "full_spec": "/maestro-init → /maestro-spec-generate"
197
+ "from_brainstorm": "/maestro-brainstorm → /maestro-init --from brainstorm:<id> → /maestro-analyze 宏观",
198
+ "from_blueprint": "/maestro-blueprint → /maestro-init → /maestro-analyze 宏观",
199
+ "direct": "/maestro-init → /maestro-analyze 宏观"
182
200
  }
183
201
  }
184
202
  }
@@ -59,7 +59,7 @@ const commandPrefixes = ["/", "maestro-", "manage-", "quality-", "spec-", "learn
59
59
  // Known command names from catalog (without prefix)
60
60
  const knownCommands = [
61
61
  "maestro", "analyze", "plan", "execute", "verify", "init", "roadmap",
62
- "brainstorm", "quick", "overlay", "amend", "fork", "merge", "collab",
62
+ "brainstorm", "blueprint", "quick", "overlay", "amend", "fork", "merge", "collab",
63
63
  "milestone-audit", "milestone-complete", "milestone-release",
64
64
  "composer", "player", "ralph", "ralph-execute", "learn",
65
65
  "impeccable", "ui-codify", "update",
@@ -70,7 +70,7 @@
70
70
  | 命令 | Guide 文档 |
71
71
  |------|-----------|
72
72
  | maestro-analyze/plan/execute/verify | `guide/command-usage-guide.md` (主干管线) |
73
- | maestro-init/roadmap | `guide/quick-start-guide.md` |
73
+ | maestro-init/roadmap/blueprint | `guide/quick-start-guide.md` |
74
74
  | maestro-ralph | `guide/maestro-ralph-guide.md` |
75
75
  | maestro (协调器) | `guide/maestro-coordinator-guide.md` |
76
76
  | manage-* | `guide/command-usage-guide.md` (管理) |
@@ -91,9 +91,11 @@
91
91
  | 当前状态 | 推荐命令 | 原因 |
92
92
  |---------|---------|------|
93
93
  | 无 .workflow/ | `/maestro-init` | 项目未初始化,需要先创建工作区 |
94
- | init 完成,无 roadmap | `/maestro-roadmap` | 需要路线图指导后续 Phase |
95
- | roadmap 完成,phase=pending | `/maestro-analyze` | 准备开始分析阶段 |
96
- | analyze 完成 | `/maestro-plan` | 分析完成,进入规划 |
94
+ | init 完成,无上游 context | `/maestro-brainstorm` 或 `/maestro-analyze "topic"` | 先探索再规划;brainstorm 用于发散,analyze 宏观用于代码库分析 |
95
+ | analyze 完成,scope_verdict=large | `/maestro-roadmap --from analyze:ANL-xxx` | 大范围需求,需要 Milestone > Phase 分解 |
96
+ | analyze 完成,scope_verdict=medium/small | `/maestro-plan --from analyze:ANL-xxx` | 跳过 roadmap,直接规划(Path C) |
97
+ | roadmap 完成,phase=pending | `/maestro-analyze 1` | 微观分析:Phase 级深入探索 |
98
+ | analyze (微观) 完成 | `/maestro-plan 1` | Phase 级规划 |
97
99
  | plan 完成 | `/maestro-execute` | 规划完成,开始执行 |
98
100
  | execute 完成 | `/maestro-verify` | 执行完成,验证成果 |
99
101
  | verify 有 gaps | `/maestro-analyze --gaps` | 发现差距,重新分析 |