maestro-flow 0.4.11 → 0.4.13

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 (253) hide show
  1. package/.agents/agents/cli-explore-agent.md +1 -3
  2. package/.agents/agents/cross-role-reviewer.md +173 -0
  3. package/.agents/agents/role-design-author.md +220 -0
  4. package/.agents/agents/ui-design-agent.md +1 -18
  5. package/.agents/agents/workflow-analyzer.md +1 -1
  6. package/.agents/agents/workflow-external-researcher.md +1 -1
  7. package/.agents/skills/learn-decompose/SKILL.md +6 -6
  8. package/.agents/skills/learn-follow/SKILL.md +4 -4
  9. package/.agents/skills/learn-investigate/SKILL.md +6 -6
  10. package/.agents/skills/learn-retro/SKILL.md +7 -7
  11. package/.agents/skills/learn-second-opinion/SKILL.md +4 -4
  12. package/.agents/skills/maestro/SKILL.md +61 -27
  13. package/.agents/skills/maestro-amend/SKILL.md +1 -0
  14. package/.agents/skills/maestro-analyze/SKILL.md +37 -4
  15. package/.agents/skills/maestro-blueprint/SKILL.md +133 -0
  16. package/.agents/skills/maestro-brainstorm/SKILL.md +120 -103
  17. package/.agents/skills/maestro-fork/SKILL.md +1 -1
  18. package/.agents/skills/maestro-guard/SKILL.md +3 -2
  19. package/.agents/skills/maestro-help/SKILL.md +48 -14
  20. package/.agents/skills/maestro-help/index/catalog.json +29 -11
  21. package/.agents/skills/maestro-help/phases/01-parse-intent.md +1 -1
  22. package/.agents/skills/maestro-help/phases/02-search-present.md +6 -4
  23. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  24. package/.agents/skills/maestro-impeccable/SKILL.md +13 -11
  25. package/.agents/skills/maestro-init/SKILL.md +3 -3
  26. package/.agents/skills/maestro-milestone-audit/SKILL.md +5 -3
  27. package/.agents/skills/maestro-milestone-complete/SKILL.md +7 -5
  28. package/.agents/skills/maestro-milestone-release/SKILL.md +1 -1
  29. package/.agents/skills/maestro-plan/SKILL.md +16 -4
  30. package/.agents/skills/maestro-ralph/SKILL.md +297 -226
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +82 -67
  32. package/.agents/skills/maestro-roadmap/SKILL.md +43 -81
  33. package/.agents/skills/manage-harvest/SKILL.md +1 -0
  34. package/.agents/skills/manage-issue-discover/SKILL.md +1 -1
  35. package/.agents/skills/manage-knowhow/SKILL.md +1 -1
  36. package/.agents/skills/manage-learn/SKILL.md +4 -4
  37. package/.agents/skills/quality-auto-test/SKILL.md +6 -6
  38. package/.agents/skills/quality-refactor/SKILL.md +1 -1
  39. package/.agents/skills/quality-retrospective/SKILL.md +2 -2
  40. package/.agents/skills/security-audit/SKILL.md +24 -0
  41. package/.agents/skills/spec-remove/SKILL.md +6 -2
  42. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  43. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  44. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  45. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  46. package/.agents/skills/team-lifecycle-v4/templates/epics.md +2 -2
  47. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  48. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  49. package/.agy/agents/cli-explore-agent.md +1 -3
  50. package/.agy/agents/cross-role-reviewer.md +170 -0
  51. package/.agy/agents/role-design-author.md +217 -0
  52. package/.agy/agents/ui-design-agent.md +1 -18
  53. package/.agy/agents/workflow-analyzer.md +1 -1
  54. package/.agy/agents/workflow-external-researcher.md +1 -1
  55. package/.agy/skills/learn-decompose/SKILL.md +6 -6
  56. package/.agy/skills/learn-follow/SKILL.md +4 -4
  57. package/.agy/skills/learn-investigate/SKILL.md +6 -6
  58. package/.agy/skills/learn-retro/SKILL.md +7 -7
  59. package/.agy/skills/learn-second-opinion/SKILL.md +4 -4
  60. package/.agy/skills/maestro/SKILL.md +61 -27
  61. package/.agy/skills/maestro-amend/SKILL.md +1 -0
  62. package/.agy/skills/maestro-analyze/SKILL.md +37 -4
  63. package/.agy/skills/maestro-blueprint/SKILL.md +133 -0
  64. package/.agy/skills/maestro-brainstorm/SKILL.md +120 -103
  65. package/.agy/skills/maestro-fork/SKILL.md +1 -1
  66. package/.agy/skills/maestro-guard/SKILL.md +3 -2
  67. package/.agy/skills/maestro-help/SKILL.md +48 -14
  68. package/.agy/skills/maestro-help/index/catalog.json +29 -11
  69. package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
  70. package/.agy/skills/maestro-help/phases/02-search-present.md +6 -4
  71. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  72. package/.agy/skills/maestro-impeccable/SKILL.md +13 -11
  73. package/.agy/skills/maestro-init/SKILL.md +3 -3
  74. package/.agy/skills/maestro-milestone-audit/SKILL.md +5 -3
  75. package/.agy/skills/maestro-milestone-complete/SKILL.md +7 -5
  76. package/.agy/skills/maestro-milestone-release/SKILL.md +1 -1
  77. package/.agy/skills/maestro-plan/SKILL.md +16 -4
  78. package/.agy/skills/maestro-ralph/SKILL.md +297 -226
  79. package/.agy/skills/maestro-ralph-execute/SKILL.md +82 -67
  80. package/.agy/skills/maestro-roadmap/SKILL.md +43 -81
  81. package/.agy/skills/manage-harvest/SKILL.md +1 -0
  82. package/.agy/skills/manage-issue-discover/SKILL.md +1 -1
  83. package/.agy/skills/manage-knowhow/SKILL.md +1 -1
  84. package/.agy/skills/manage-learn/SKILL.md +4 -4
  85. package/.agy/skills/quality-auto-test/SKILL.md +6 -6
  86. package/.agy/skills/quality-refactor/SKILL.md +1 -1
  87. package/.agy/skills/quality-retrospective/SKILL.md +2 -2
  88. package/.agy/skills/security-audit/SKILL.md +24 -0
  89. package/.agy/skills/spec-remove/SKILL.md +6 -2
  90. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  91. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  92. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  93. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  94. package/.agy/skills/team-lifecycle-v4/templates/epics.md +2 -2
  95. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  96. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  97. package/.claude/agents/cli-explore-agent.md +1 -3
  98. package/.claude/agents/cross-role-reviewer.md +171 -0
  99. package/.claude/agents/role-design-author.md +218 -0
  100. package/.claude/agents/ui-design-agent.md +1 -18
  101. package/.claude/agents/workflow-analyzer.md +1 -1
  102. package/.claude/agents/workflow-external-researcher.md +1 -1
  103. package/.claude/commands/learn-decompose.md +6 -6
  104. package/.claude/commands/learn-follow.md +4 -4
  105. package/.claude/commands/learn-investigate.md +6 -6
  106. package/.claude/commands/learn-retro.md +7 -7
  107. package/.claude/commands/learn-second-opinion.md +4 -4
  108. package/.claude/commands/maestro-amend.md +1 -0
  109. package/.claude/commands/maestro-analyze.md +37 -4
  110. package/.claude/commands/maestro-blueprint.md +131 -0
  111. package/.claude/commands/maestro-brainstorm.md +133 -116
  112. package/.claude/commands/maestro-fork.md +1 -1
  113. package/.claude/commands/maestro-guard.md +3 -2
  114. package/.claude/commands/maestro-impeccable.md +13 -11
  115. package/.claude/commands/maestro-init.md +3 -3
  116. package/.claude/commands/maestro-milestone-audit.md +5 -3
  117. package/.claude/commands/maestro-milestone-complete.md +7 -5
  118. package/.claude/commands/maestro-milestone-release.md +1 -1
  119. package/.claude/commands/maestro-plan.md +16 -4
  120. package/.claude/commands/maestro-ralph-execute.md +82 -67
  121. package/.claude/commands/maestro-ralph.md +297 -226
  122. package/.claude/commands/maestro-roadmap.md +43 -81
  123. package/.claude/commands/maestro.md +61 -27
  124. package/.claude/commands/manage-harvest.md +1 -0
  125. package/.claude/commands/manage-issue-discover.md +1 -1
  126. package/.claude/commands/manage-knowhow.md +1 -1
  127. package/.claude/commands/manage-learn.md +4 -4
  128. package/.claude/commands/quality-auto-test.md +6 -6
  129. package/.claude/commands/quality-refactor.md +1 -1
  130. package/.claude/commands/quality-retrospective.md +2 -2
  131. package/.claude/commands/security-audit.md +24 -0
  132. package/.claude/commands/spec-remove.md +6 -2
  133. package/.claude/skills/maestro-help/SKILL.md +48 -14
  134. package/.claude/skills/maestro-help/index/catalog.json +29 -11
  135. package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
  136. package/.claude/skills/maestro-help/phases/02-search-present.md +6 -4
  137. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  138. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  139. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  140. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  141. package/.claude/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  142. package/.claude/skills/team-lifecycle-v4/templates/epics.md +2 -2
  143. package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  144. package/.claude/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  145. package/.codex/skills/learn-decompose/SKILL.md +4 -4
  146. package/.codex/skills/learn-follow/SKILL.md +3 -3
  147. package/.codex/skills/learn-investigate/SKILL.md +3 -3
  148. package/.codex/skills/learn-retro/SKILL.md +3 -3
  149. package/.codex/skills/learn-second-opinion/SKILL.md +3 -3
  150. package/.codex/skills/maestro/SKILL.md +75 -38
  151. package/.codex/skills/maestro-amend/SKILL.md +157 -0
  152. package/.codex/skills/maestro-analyze/SKILL.md +72 -23
  153. package/.codex/skills/maestro-blueprint/SKILL.md +123 -0
  154. package/.codex/skills/maestro-brainstorm/SKILL.md +277 -46
  155. package/.codex/skills/maestro-composer/SKILL.md +1 -1
  156. package/.codex/skills/maestro-execute/SKILL.md +13 -4
  157. package/.codex/skills/maestro-fork/SKILL.md +2 -0
  158. package/.codex/skills/maestro-guard/SKILL.md +3 -2
  159. package/.codex/skills/maestro-help/SKILL.md +28 -18
  160. package/.codex/skills/maestro-help/catalog.json +29 -11
  161. package/.codex/skills/maestro-impeccable/SKILL.md +13 -11
  162. package/.codex/skills/maestro-init/SKILL.md +7 -7
  163. package/.codex/skills/maestro-plan/SKILL.md +27 -9
  164. package/.codex/skills/maestro-ralph/SKILL.md +740 -601
  165. package/.codex/skills/maestro-roadmap/SKILL.md +56 -72
  166. package/.codex/skills/maestro-update/SKILL.md +169 -0
  167. package/.codex/skills/maestro-verify/SKILL.md +11 -2
  168. package/.codex/skills/manage-codebase-rebuild/SKILL.md +9 -5
  169. package/.codex/skills/manage-harvest/SKILL.md +11 -3
  170. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  171. package/.codex/skills/manage-knowhow/SKILL.md +1 -1
  172. package/.codex/skills/manage-learn/SKILL.md +3 -3
  173. package/.codex/skills/quality-refactor/SKILL.md +2 -2
  174. package/.codex/skills/quality-retrospective/SKILL.md +12 -5
  175. package/.codex/skills/security-audit/SKILL.md +24 -0
  176. package/.codex/skills/spec-remove/SKILL.md +8 -2
  177. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  178. package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  179. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  180. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  181. package/.codex/skills/team-lifecycle-v4/templates/epics.md +2 -2
  182. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  183. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  184. package/README.md +8 -8
  185. package/README.zh-CN.md +8 -8
  186. package/dashboard/dist-server/dashboard/src/server/routes/settings.js +3 -3
  187. package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
  188. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  189. package/dist/src/agents/cli-agent-runner.js +13 -7
  190. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  191. package/dist/src/commands/spec.d.ts.map +1 -1
  192. package/dist/src/commands/spec.js +8 -1
  193. package/dist/src/commands/spec.js.map +1 -1
  194. package/dist/src/tools/spec-init.d.ts +16 -2
  195. package/dist/src/tools/spec-init.d.ts.map +1 -1
  196. package/dist/src/tools/spec-init.js +58 -187
  197. package/dist/src/tools/spec-init.js.map +1 -1
  198. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  199. package/dist/src/tools/spec-loader.js +16 -16
  200. package/dist/src/tools/spec-loader.js.map +1 -1
  201. package/dist/src/tools/spec-seeds.d.ts +33 -0
  202. package/dist/src/tools/spec-seeds.d.ts.map +1 -0
  203. package/dist/src/tools/spec-seeds.js +200 -0
  204. package/dist/src/tools/spec-seeds.js.map +1 -0
  205. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  206. package/dist/src/tools/spec-writer.js +7 -9
  207. package/dist/src/tools/spec-writer.js.map +1 -1
  208. package/dist/src/utils/update-notices.js +12 -0
  209. package/dist/src/utils/update-notices.js.map +1 -1
  210. package/package.json +1 -1
  211. package/templates/business-test-report.json +1 -1
  212. package/templates/index.json +1 -1
  213. package/templates/roadmap.md +15 -9
  214. package/templates/state.json +18 -17
  215. package/workflows/agy-instructions.md +2 -0
  216. package/workflows/analyze.md +79 -11
  217. package/workflows/auto-test.md +12 -7
  218. package/workflows/blueprint.md +431 -0
  219. package/workflows/brainstorm.md +617 -496
  220. package/workflows/business-test.md +7 -7
  221. package/workflows/claude-instructions.md +2 -0
  222. package/workflows/codebase-rebuild.md +4 -4
  223. package/workflows/codex-instructions.md +16 -83
  224. package/workflows/debug.md +1 -1
  225. package/workflows/harvest.md +184 -10
  226. package/workflows/impeccable.md +2 -0
  227. package/workflows/init.md +9 -8
  228. package/workflows/issue-analyze.md +14 -100
  229. package/workflows/issue-discover.md +2 -3
  230. package/workflows/issue-execute.md +1 -1
  231. package/workflows/issue-gaps-analyze.md +2 -0
  232. package/workflows/learn.md +1 -1
  233. package/workflows/maestro-chain-execute.md +10 -228
  234. package/workflows/maestro.md +2 -1
  235. package/workflows/milestone-audit.md +12 -4
  236. package/workflows/milestone-complete.md +14 -9
  237. package/workflows/milestone-release.md +82 -0
  238. package/workflows/plan.md +91 -25
  239. package/workflows/retrospective.md +1 -1
  240. package/workflows/roadmap-common.md +1 -1
  241. package/workflows/roadmap.md +14 -4
  242. package/workflows/spec-generate.md +26 -13
  243. package/workflows/specs-add.md +6 -1
  244. package/workflows/specs-load.md +6 -1
  245. package/workflows/specs-setup.md +6 -1
  246. package/workflows/sync.md +13 -0
  247. package/workflows/tools-spec.md +4 -0
  248. package/workflows/ui-design.md +5 -5
  249. package/workflows/ui-style.md +1 -1
  250. package/workflows/wiki-manage.md +2 -0
  251. package/.agents/agents/conceptual-planning-agent.md +0 -247
  252. package/.agy/agents/conceptual-planning-agent.md +0 -244
  253. package/.claude/agents/conceptual-planning-agent.md +0 -245
@@ -13,106 +13,123 @@ allowed-tools:
13
13
  - view_file
14
14
  - write_to_file
15
15
  ---
16
- <purpose>
17
- Unified brainstorming combining interactive framework generation, multi-role parallel analysis, and cross-role synthesis. Two modes: Auto (full pipeline with guidance-specification → parallel role analysis → synthesis) and Single Role (individual role analysis for an existing session). Outputs structured artifacts in .brainstorming/ directory ready for downstream planning.
18
- </purpose>
19
-
20
- <required_reading>
21
- @~/.maestro/workflows/brainstorm.md
22
- </required_reading>
23
-
24
- <deferred_reading>
25
- - [scratch-index.json](~/.maestro/templates/scratch-index.json) — read when operating in scratch mode
26
- - [index.json](~/.maestro/templates/index.json) — read when operating in phase mode
27
- - [brainstorm-visualize.md](~/.maestro/workflows/brainstorm-visualize.md) — read when html-prototypes/ produced and user wants to browse them
28
- </deferred_reading>
29
-
30
- <context>
31
- $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
32
-
33
- **Auto mode**: topic text (e.g., "Build real-time collaboration platform") triggers full pipeline.
34
- **Single role mode**: valid role name (e.g., "system-architect") runs one role analysis.
35
- **All output** goes to `.workflow/scratch/{YYYYMMDD}-brainstorm-{slug}/`.
36
- **Artifact registration**: On completion, registers artifact (type=brainstorm) in state.json.
37
- **Output boundary**: ALL file writes MUST target `{output_dir}/` or `.workflow/state.json` only. NEVER modify source code or files outside these paths.
38
-
39
- **Valid roles**: data-architect, product-manager, product-owner, scrum-master, subject-matter-expert, system-architect, test-strategist, ui-designer, ux-expert
40
-
41
- **Flags**:
42
- - `--yes` / `-y`: Auto mode, skip interactive questions, use defaults
43
- - `--count N`: Number of roles to select (default 3, max 9)
44
- - `--session ID`: Use existing session
45
- - `--update`: Update existing analysis (single role)
46
- - `--skip-questions`: Skip context gathering questions
47
- - `--include-questions`: Force context gathering even if analysis exists
48
- - `--style-skill PKG`: Style package for ui-designer role
49
-
50
- ### Pre-load specs
51
- 1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for multi-role analysis — ensures roles respect documented decisions.
52
- 2. Optionalproceed without if unavailable.
53
-
54
- ### Role Knowledge
55
- 1. Browse accumulated knowledge for this role:
56
- `maestro wiki list --category arch`
57
- 2. Analyze the index, identify entries relevant to the current task
58
- 3. Load selected documents:
59
- `maestro wiki load <id1> [id2] [id3...]`
60
- 4. Review loaded knowledge before proceeding
61
- </context>
62
-
63
- <execution>
64
- Follow '~/.maestro/workflows/brainstorm.md' completely.
65
-
66
- **Next-step routing on completion:**
67
-
68
- Auto mode:
69
- - Project not initialized view_file(AbsolutePath="<agy-skills-dir>/maestro-init/SKILL.md") + execute inline
70
- - Project initialized, need spec package view_file(AbsolutePath="<agy-skills-dir>/maestro-roadmap/SKILL.md") + execute inline (args: "--mode full --from-brainstorm {session_id}")
71
- - Project initialized, quick roadmap view_file(AbsolutePath="<agy-skills-dir>/maestro-roadmap/SKILL.md") + execute inline (args: "--from-brainstorm {session_id}")
72
- - Need deeper analysis first → view_file(AbsolutePath="<agy-skills-dir>/maestro-analyze/SKILL.md") + execute inline (args: "{topic}")
73
- - `html-prototypes/` produced with 2+ files and user wants to browse load `~/.maestro/workflows/brainstorm-visualize.md` and launch visualizer server (optional, user-triggered)
74
- - DESIGN.md established during Step 3.5 → suggest: "Run `/maestro-impeccable build <feature-description>` to build with the established design system"
75
-
76
- Single role mode:
77
- - More roles needed → view_file(AbsolutePath="<agy-skills-dir>/maestro-brainstorm/SKILL.md") + execute inline (args: "{next_role} --session {session_id}")
78
- - All roles done, run synthesis → view_file(AbsolutePath="<agy-skills-dir>/maestro-brainstorm/SKILL.md") + execute inline (args: "{topic} --session {session_id}")
79
- </execution>
80
-
81
- <error_codes>
82
- | Code | Severity | Condition | Recovery |
83
- |------|----------|-----------|----------|
84
- | E001 | error | Topic or role argument required | Prompt user for topic text or role name |
85
- | E002 | error | No active session for single role mode | Guide user to run auto mode first |
86
- | E003 | error | Invalid role name | Show valid roles list |
87
- | W001 | warning | Fewer than 10 ideas in divergent phase | Proceed with available ideas |
88
- | W002 | warning | Project context (.workflow/) not found | Continue without project context |
89
- | W003 | warning | Role template not found | Use generic analysis structure |
90
- | W004 | warning | Validation score < 60 | Log warning, suggest manual review |
91
- | W005 | warning | External research agent failed | Continue without designResearchContext |
92
- </error_codes>
93
-
94
- <success_criteria>
95
- **Auto mode**:
96
- - [ ] guidance-specification.md with RFC 2119 keywords, terminology, non-goals, feature decomposition
97
- - [ ] design-research.md persisted when Step 1.7 external research ran (fail-soft: absence not a failure)
98
- - [ ] Spec Review Gate passed (Step 3.5) or `--yes` bypassed
99
- - [ ] Role analysis files for each selected NON-UI role in `.brainstorming/{role}/`
100
- - [ ] If `ui-designer` in selected_roles AND Step 3.5 ran: `.workflow/impeccable/DESIGN.md` exists (visual style established via impeccable explore)
101
- - [ ] If `ui-designer` in selected_roles: `ui-designer/analysis.md` exists with UX analysis (interaction flows, state design, information architecture)
102
- - [ ] Feature specs in `.brainstorming/feature-specs/` (or synthesis-specification.md)
103
- - [ ] UI-bearing feature specs reference DESIGN.md for visual constraints in Section 3 (Interface Contract)
104
- - [ ] feature-index.json and synthesis-changelog.md
105
- - [ ] Final Output Gate passed (Step 5.5) or `--yes` bypassed
106
- - [ ] All user decisions captured with Decision Recording Protocol
107
- - [ ] Session metadata updated with completion status
108
- - [ ] Confidence scored per role completion and after cross-role analysis
109
- - [ ] Readiness gate checked before spec generation
110
- - [ ] Pressure pass completed on at least 1 feature spec
111
- - [ ] Confidence summary appended to synthesis-changelog.md
112
-
113
- **Single role mode**:
114
- - [ ] analysis.md written to `{output_dir}/{role}/`
115
- - [ ] Feature-point organization used when feature list available
116
- - [ ] Framework reference included when guidance-specification.md exists
117
- - [ ] Session metadata updated
118
- </success_criteria>
16
+ <purpose>
17
+ Unified brainstorming combining interactive framework generation, multi-role parallel analysis, cross-role review, and resolution writeback. Two modes: Auto (full pipeline: guidance-specification → parallel {role}/ multi-file analysis → cross-role-reviewer compares Decision Digests for conflicts/gaps/synergies → user-confirmed resolutions patched into role files + logged in guidance §12) and Single Role (individual role analysis for an existing session). Outputs structured artifacts in `.workflow/scratch/brainstorm-{slug}-{date}/` ready for downstream planning (roadmap / analyze / blueprint consume `guidance-specification.md`).
18
+ </purpose>
19
+
20
+ <required_reading>
21
+ @~/.maestro/workflows/brainstorm.md
22
+ </required_reading>
23
+
24
+ <deferred_reading>
25
+ - [scratch-index.json](~/.maestro/templates/scratch-index.json) — read when operating in scratch mode
26
+ - [index.json](~/.maestro/templates/index.json) — read when operating in phase mode
27
+ - [brainstorm-visualize.md](~/.maestro/workflows/brainstorm-visualize.md) — read when html-prototypes/ produced and user wants to browse them
28
+ </deferred_reading>
29
+
30
+ <context>
31
+ $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
32
+
33
+ **Auto mode**: topic text (e.g., "Build real-time collaboration platform") triggers full pipeline.
34
+ **Single role mode**: valid role name (e.g., "system-architect") runs one role analysis.
35
+ **All output** goes to `.workflow/scratch/brainstorm-{slug}-{YYYYMMDD}/` (orchestrator MUST resolve this to an absolute path before passing to sub-agents).
36
+ **Artifact registration**: On completion, registers artifact (type=brainstorm) in state.json.
37
+ **Output boundary**: ALL file writes MUST target `{output_dir}/` or `.workflow/state.json` only. NEVER modify source code or files outside these paths.
38
+ **Produced files**: `guidance-specification.md`, `design-research.md` (optional), `{role}/analysis.md` + `{role}/analysis-F-*.md` + `{role}/findings-*.md` (per selected role).
39
+
40
+ **Valid roles**: data-architect, product-manager, product-owner, scrum-master, subject-matter-expert, system-architect, test-strategist, ui-designer, ux-expert
41
+
42
+ **Flags**:
43
+ - `--yes` / `-y`: Auto mode, skip interactive questions, use defaults
44
+ - `--count N`: Number of roles to select (default 3, max 9)
45
+ - `--session ID`: Use existing session
46
+ - `--update`: Update existing analysis (single role)
47
+ - `--skip-questions`: Skip context gathering questions
48
+ - `--include-questions`: Force context gathering even if analysis exists
49
+ - `--style-skill PKG`: Style package for ui-designer role
50
+
51
+ ### Pre-load specs
52
+ 1. **Architecture specs**: Run `maestro spec load --category arch` to load architecture constraints. Use as context for multi-role analysis ensures roles respect documented decisions.
53
+ 2. Optional — proceed without if unavailable.
54
+
55
+ ### Role Knowledge
56
+ 1. Browse accumulated knowledge for this role:
57
+ `maestro wiki list --category arch`
58
+ 2. Analyze the index, identify entries relevant to the current task
59
+ 3. Load selected documents:
60
+ `maestro wiki load <id1> [id2] [id3...]`
61
+ 4. Review loaded knowledge before proceeding
62
+ </context>
63
+
64
+ <interview_protocol>
65
+ Interview the user relentlessly until shared understanding is reached. Active only in interactive mode; skip when `--yes/-y`, `--skip-questions`, `--session` (existing session), or input is already specific.
66
+
67
+ - One decision per turn via ask_question with 2–4 options + a (Recommended) default. The user controls termination — keep interviewing until convergence; they can interrupt naturally or via `Other` at any time.
68
+ - Search-first when uncertain: before asking, resolve via `state.json`, the session directory, `maestro spec load`, `maestro wiki search`, Glob/Grep/Read, or — for open-ended multi-file scans — spawn `invoke_subagent([{ TypeName: "<TypeName>", Role: "<Role>", Prompt: "<Prompt>", Workspace: "inherit" }])` / `maestro delegate ... --role explore`. Never ask what code or memory can verify; never bounce your own ambiguity back to the user — search first, then ask only what truly needs human judgment.
69
+ - Writeback cadence: each time a decision settles, immediately append/update its row in `guidance-specification.md` §11 (create the section if absent). Do NOT batch writeback to the end — partial decisions must already be on disk before the next question.
70
+ - Branch jumps allowed: the user may switch freely between mode / role / upstream / sub-pipeline branches; sequence is not enforced, but every decision point must end with a definite answer.
71
+ - Scope guard: only ask about decisions owned by `brainstorm`. Do not pre-resolve roadmap/plan choices.
72
+
73
+ Decision points: mode (auto / single-role / review-only) / role selection and `--count` / `--from` upstream source / whether to enable design-research and the DESIGN.md sub-pipeline.
74
+
75
+ Exit: on consensus or explicit user signal to proceed, finalize session metadata. The §11 table (already populated incrementally) uses this schema:
76
+ `| # | Decision | Choice | Source (user / code / default) |`
77
+ </interview_protocol>
78
+
79
+ <execution>
80
+ Follow '~/.maestro/workflows/brainstorm.md' completely.
81
+
82
+ **Next-step routing on completion:**
83
+
84
+ Auto mode:
85
+ - Project not initialized view_file(AbsolutePath="<agy-skills-dir>/maestro-init/SKILL.md") + execute inline
86
+ - Project initialized, need formal spec package view_file(AbsolutePath="<agy-skills-dir>/maestro-blueprint/SKILL.md") + execute inline (args: "--from brainstorm:{artifact_id}")
87
+ - Project initialized, quick roadmap view_file(AbsolutePath="<agy-skills-dir>/maestro-roadmap/SKILL.md") + execute inline (args: "--from brainstorm:{artifact_id}")
88
+ - Need deeper analysis first view_file(AbsolutePath="<agy-skills-dir>/maestro-analyze/SKILL.md") + execute inline (args: "{topic} --from brainstorm:{artifact_id}")
89
+ - `html-prototypes/` produced with 2+ files and user wants to browse load `~/.maestro/workflows/brainstorm-visualize.md` and launch visualizer server (optional, user-triggered)
90
+ - DESIGN.md established during Step 3.5 suggest: "Run `/maestro-impeccable build <feature-description>` to build with the established design system"
91
+
92
+ Single role mode:
93
+ - More roles needed → view_file(AbsolutePath="<agy-skills-dir>/maestro-brainstorm/SKILL.md") + execute inline (args: "{next_role} --session {session_id}")
94
+ - All roles done, run synthesis → view_file(AbsolutePath="<agy-skills-dir>/maestro-brainstorm/SKILL.md") + execute inline (args: "{topic} --session {session_id}")
95
+ </execution>
96
+
97
+ <error_codes>
98
+ | Code | Severity | Condition | Recovery |
99
+ |------|----------|-----------|----------|
100
+ | E001 | error | Topic or role argument required | Prompt user for topic text or role name |
101
+ | E002 | error | No active session for single role mode | Guide user to run auto mode first |
102
+ | E003 | error | Invalid role name | Show valid roles list |
103
+ | E006 | error | `--review-only` but no `{role}/analysis.md` found | Run auto or single-role mode first |
104
+ | E007 | error | `--review-only` but `guidance-specification.md` missing | Run auto mode to generate guidance first |
105
+ | W001 | warning | Fewer than 10 ideas in divergent phase | Proceed with available ideas |
106
+ | W002 | warning | Project context (.workflow/) not found | Continue without project context |
107
+ | W003 | warning | Role template not found | Use generic analysis structure |
108
+ | W004 | warning | Validation score < 60 | Log warning, suggest manual review |
109
+ | W005 | warning | External research agent failed | Continue without designResearchContext |
110
+ | W006 | warning | Reviewer patch_targets heading drift (no match) | Skip that patch; report in final summary |
111
+ </error_codes>
112
+
113
+ <success_criteria>
114
+ **Auto mode**:
115
+ - [ ] Interactive mode: interview decision table written to `guidance-specification.md` §11 and session metadata
116
+ - [ ] `guidance-specification.md` with RFC 2119 keywords, terminology, non-goals, feature decomposition (§10), decision tracking (§11), cross-role resolutions placeholder (§12)
117
+ - [ ] `design-research.md` persisted when Step 1.7 external research ran (fail-soft: absence not a failure)
118
+ - [ ] If `ui-designer` in selected_roles AND Step 3.5 ran: `.workflow/impeccable/DESIGN.md` exists (visual style established via impeccable explore)
119
+ - [ ] `{role}/analysis.md` written for each selected role, containing §2 Decision Digest (4 tables) + §3 Cross-Cutting Foundations + §4 File Index
120
+ - [ ] `{role}/analysis-F-{id}-{slug}.md` written per feature (one file per feature, < 2000 words)
121
+ - [ ] `system-architect/analysis.md` §3 includes Data Model + State Machine when system-architect is selected
122
+ - [ ] `ui-designer/analysis.md` references DESIGN.md visual constraints when ui-designer is selected
123
+ - [ ] Each `{role}/analysis.md` §2 Decisions table has ≥ 1 row per feature
124
+ - [ ] Cross-role review (Step 4.5) executed; reviewer compares §2 Decision Digests; output includes `patch_targets[]` for every finding
125
+ - [ ] If findings exist: each accepted resolution applied via replace_file_content(annotate / strikeout / append) AND logged in `guidance-specification.md` §12 "Cross-Role Resolutions"
126
+ - [ ] If zero findings: final report explicitly states "No cross-role issues detected"; guidance §12 unchanged
127
+ - [ ] Heading-drift patch failures surfaced in final report (if any)
128
+ - [ ] Session metadata updated with completion status (review_findings_count, resolutions_applied, patches_skipped)
129
+
130
+ **Single role mode**:
131
+ - [ ] `{role}/analysis.md` written with §2 Decision Digest + §4 File Index
132
+ - [ ] `{role}/analysis-F-*.md` written when guidance §10 feature list available
133
+ - [ ] §2 Decisions table references guidance decision IDs
134
+ - [ ] Session metadata updated
135
+ </success_criteria>
@@ -21,7 +21,7 @@ Since `.workflow/` is gitignored, this command explicitly copies project context
21
21
 
22
22
  Also supports `--sync` mode to pull latest main branch changes and shared artifacts into an active worktree (prevents source and artifact drift for long-lived worktrees).
23
23
 
24
- Produces `.workflow/worktrees.json` registry in the main worktree and `.workflow/worktree-scope.json` marker in the worktree.
24
+ Produces `.workflow/worktrees.json` registry in the main worktree and `.workflow/worktree-scope.json` marker in the worktree, and writes a scoped `state.json` inside the worktree containing only the forked milestone's artifacts.
25
25
  </purpose>
26
26
 
27
27
  <required_reading>
@@ -77,10 +77,11 @@ Read `.workflow/config.json`. If file missing, initialize with empty guard secti
77
77
  - Write config
78
78
 
79
79
  **`deny <path>`:**
80
- - Normalize path to forward slashes
80
+ - Normalize path to forward slashes, ensure trailing slash for directories
81
+ - If `guard.mode` is `allow`, switch to `deny` and clear paths with warning
81
82
  - Set `guard.mode = "deny"`
82
83
  - Add path to `guard.paths` (deduplicate)
83
- - Set `guard.enabled = true` if not already
84
+ - Set `guard.enabled = true` if not already (symmetric with `allow`: adding a deny path auto-enables the guard)
84
85
  - Write config
85
86
 
86
87
  **Step 4: Confirm**
@@ -50,7 +50,7 @@ Single source of truth: **[index/catalog.json](index/catalog.json)**
50
50
 
51
51
  | Field | Purpose |
52
52
  |-------|---------|
53
- | `commands[]` | 55 个 slash 命令,含分类和描述 |
53
+ | `commands[]` | 56 个 slash 命令,含分类和描述 |
54
54
  | `skills[]` | 10 个 Skill,含分类和描述 |
55
55
  | `agents[]` | 22 个 Agent,含分类和描述 |
56
56
  | `cli_commands[]` | 21 个终端命令 |
@@ -178,24 +178,25 @@ $ARGUMENTS → Parse:
178
178
 
179
179
  ## Command Catalog Quick Reference
180
180
 
181
- ### 核心工作流 (core)
181
+ ### 上游起源 + 核心 (core)
182
182
 
183
183
  | 命令 | 用途 |
184
184
  |------|------|
185
185
  | `/maestro` | 智能协调器,自动路由 |
186
186
  | `/maestro-init` | 项目初始化 |
187
- | `/maestro-roadmap` | 路线图生成 |
187
+ | `/maestro-brainstorm` | 头脑风暴 — 发散探索,多角色创意 |
188
+ | `/maestro-blueprint` | 正式规格文档化 — 7-phase 收敛规格链 |
189
+ | `/maestro-roadmap` | 路线图编排 — 消费上游 context,纯 Milestone > Phase 分解 |
188
190
  | `/maestro-quick` | 快速任务 |
189
- | `/maestro-brainstorm` | 头脑风暴 |
190
191
  | `/maestro-overlay` | Overlay 管理 |
191
192
  | `/maestro-amend` | 修正补丁 |
192
193
 
193
- ### Phase 管线 (pipeline)
194
+ ### 理解层 + 执行管线 (pipeline)
194
195
 
195
196
  | 命令 | 用途 |
196
197
  |------|------|
197
- | `/maestro-analyze` | 多维分析 |
198
- | `/maestro-plan` | 任务规划 |
198
+ | `/maestro-analyze` | 双层分析 — 宏观(文本参数)探索影响面 / 微观(数字参数)Phase 级深入 |
199
+ | `/maestro-plan` | 任务规划 — 支持 `--from analyze:ANL-xxx` 直达 |
199
200
  | `/maestro-execute` | 任务执行 |
200
201
  | `/maestro-verify` | 验证确认 |
201
202
 
@@ -223,11 +224,44 @@ $ARGUMENTS → Parse:
223
224
 
224
225
  ## Workflow Mapping
225
226
 
226
- | 任务类型 | 推荐工作流 | 命令序列 |
227
- |---------|-----------|---------|
228
- | 新项目 | 初始化路径 | `/maestro-init` → `/maestro-roadmap` |
229
- | 正常开发 | 主干管线 | `/maestro-analyze` → `/maestro-plan` → `/maestro-execute` → `/maestro-verify` |
230
- | 快速修复 | 快速渠道 | `/maestro-quick "修复描述"` |
227
+ ### 层级模型
228
+
229
+ ```
230
+ Roadmap > Milestone > Phase > Task
231
+ ```
232
+
233
+ - **Roadmap** = 项目级常驻规划文档
234
+ - **Milestone** = 可独立交付的版本节点(v0.1.0-rc1, v0.2.0)
235
+ - **Phase** = Milestone 内的同步屏障执行阶段
236
+ - **Task** = Phase 内的具体代码修改单元(wave DAG 管理并行)
237
+
238
+ ### 命令拓扑
239
+
240
+ ```
241
+ 上游起源层(并列,可选)
242
+ brainstorm(发散/轻量) | blueprint(收敛/重型)
243
+
244
+ 理解层
245
+ analyze 双层: 宏观(文本参数) → scope_verdict | 微观(数字参数) → Phase 级决策
246
+
247
+ 编排层(可选)
248
+ roadmap — 消费上游 context,纯 Milestone > Phase 分解
249
+
250
+ 执行层
251
+ plan → execute → verify
252
+ ```
253
+
254
+ ### 合法路径
255
+
256
+ | 路径 | 场景 | 命令序列 |
257
+ |------|------|---------|
258
+ | Path A | 完整新项目 | `brainstorm` → `blueprint`(可选) → `analyze "topic"` → `roadmap` → `analyze 1` → `plan 1` → `execute` → `verify` |
259
+ | Path B | 旧项目大功能 | `analyze "feature X"` → `roadmap` → `analyze 1` → `plan 1` → `execute` → `verify` |
260
+ | Path C | 中等功能 | `analyze "feature X"` → `plan --from analyze:ANL-xxx` → `execute` → `verify` |
261
+ | Path D | 小改动 | `plan "fix auth bug"` → `execute` → `verify` |
262
+ | Path E | 纯规格文档 | `blueprint "project idea"` → (供人阅读) |
263
+ | Path F | 纯探索 | `brainstorm "idea"` → (供人决策) |
264
+ | 快速修复 | 已知简单问题 | `/maestro-quick "修复描述"` |
231
265
  | Bug 追踪 | Issue 闭环 | `/manage-issue-discover` → `/manage-issue create` → analyze/plan/execute → close |
232
266
  | 全自动 | /maestro 入口 | `/maestro -y "任务描述"` |
233
267
  | 代码审查 | 质量管线 | `/quality-review` → `/quality-auto-test` → `/quality-test` |
@@ -259,9 +293,9 @@ $ARGUMENTS → Parse:
259
293
 
260
294
  ## Statistics
261
295
 
262
- - **Slash 命令**: 55 个(7 个分类)
296
+ - **Slash 命令**: 56 个(7 个分类)
263
297
  - **CLI 命令**: 21 个
264
298
  - **Skills**: 10 个(3 个分类)
265
299
  - **Agents**: 22 个(5 个分类)
266
300
  - **Guide 文档**: 17 个
267
- - **工作流**: 4 个主要模板
301
+ - **工作流路径**: 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` | 发现差距,重新分析 |