maestro-flow 0.3.8 → 0.3.9

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 (211) hide show
  1. package/.claude/commands/learn-decompose.md +3 -3
  2. package/.claude/commands/learn-follow.md +5 -5
  3. package/.claude/commands/learn-investigate.md +3 -3
  4. package/.claude/commands/learn-retro.md +6 -6
  5. package/.claude/commands/learn-second-opinion.md +3 -3
  6. package/.claude/commands/maestro-analyze.md +123 -99
  7. package/.claude/commands/maestro-brainstorm.md +2 -2
  8. package/.claude/commands/maestro-execute.md +137 -97
  9. package/.claude/commands/maestro-fork.md +111 -0
  10. package/.claude/commands/maestro-init.md +6 -6
  11. package/.claude/commands/maestro-merge.md +77 -0
  12. package/.claude/commands/maestro-milestone-audit.md +72 -60
  13. package/.claude/commands/maestro-milestone-complete.md +67 -59
  14. package/.claude/commands/maestro-milestone-release.md +6 -6
  15. package/.claude/commands/maestro-plan.md +151 -130
  16. package/.claude/commands/maestro-quick.md +4 -4
  17. package/.claude/commands/maestro-roadmap.md +5 -5
  18. package/.claude/commands/maestro-spec-generate.md +5 -5
  19. package/.claude/commands/maestro-ui-design.md +3 -3
  20. package/.claude/commands/maestro-verify.md +106 -87
  21. package/.claude/commands/maestro.md +10 -4
  22. package/.claude/commands/manage-codebase-rebuild.md +4 -4
  23. package/.claude/commands/manage-codebase-refresh.md +1 -1
  24. package/.claude/commands/manage-harvest.md +5 -5
  25. package/.claude/commands/manage-issue-discover.md +1 -1
  26. package/.claude/commands/manage-issue-execute.md +6 -6
  27. package/.claude/commands/manage-issue.md +6 -6
  28. package/.claude/commands/manage-learn.md +2 -2
  29. package/.claude/commands/manage-memory-capture.md +4 -4
  30. package/.claude/commands/manage-memory.md +2 -2
  31. package/.claude/commands/manage-status.md +24 -24
  32. package/.claude/commands/quality-business-test.md +5 -5
  33. package/.claude/commands/quality-debug.md +4 -4
  34. package/.claude/commands/quality-integration-test.md +4 -4
  35. package/.claude/commands/quality-refactor.md +3 -3
  36. package/.claude/commands/quality-retrospective.md +2 -2
  37. package/.claude/commands/quality-review.md +4 -4
  38. package/.claude/commands/quality-sync.md +3 -3
  39. package/.claude/commands/quality-test-gen.md +4 -4
  40. package/.claude/commands/quality-test.md +9 -9
  41. package/.claude/commands/spec-add.md +2 -2
  42. package/.claude/commands/spec-load.md +1 -1
  43. package/.claude/commands/spec-setup.md +5 -5
  44. package/.claude/commands/wiki-connect.md +3 -3
  45. package/.claude/commands/wiki-digest.md +4 -4
  46. package/.codex/skills/maestro-analyze/SKILL.md +52 -14
  47. package/.codex/skills/maestro-execute/SKILL.md +27 -26
  48. package/.codex/skills/maestro-milestone-audit/SKILL.md +103 -209
  49. package/.codex/skills/maestro-milestone-complete/SKILL.md +149 -158
  50. package/.codex/skills/maestro-plan/SKILL.md +47 -17
  51. package/.codex/skills/maestro-roadmap/SKILL.md +3 -2
  52. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
  53. package/.codex/skills/team-executor/roles/executor/commands/monitor.md +1 -1
  54. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
  55. package/.codex/skills/team-lifecycle-v4/specs/knowledge-transfer.md +2 -2
  56. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +1 -1
  57. package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +1 -1
  58. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
  59. package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +1 -1
  60. package/README.md +19 -14
  61. package/README.zh-CN.md +16 -12
  62. package/bin/maestro-mcp.js +1 -1
  63. package/chains/_intent-map.json +21 -9
  64. package/chains/_router.json +30 -77
  65. package/chains/brainstorm-driven.json +17 -6
  66. package/chains/full-lifecycle.json +22 -23
  67. package/chains/milestone-close.json +20 -7
  68. package/chains/milestone-fork-merge.json +50 -0
  69. package/chains/roadmap-driven.json +17 -6
  70. package/chains/spec-driven.json +17 -6
  71. package/dashboard/dist/assets/{ArtifactsPage-BmPOu8sO.js → ArtifactsPage-DZNCi6tn.js} +12 -7
  72. package/dashboard/dist/assets/ChatInput-Bvr-FeEq.js +49 -0
  73. package/dashboard/dist/assets/ChatPage-D9zTkJZo.js +22 -0
  74. package/dashboard/dist/assets/CollabPage-B4NAHXS2.js +1 -0
  75. package/dashboard/dist/assets/ExecutionPanel-CFt4LJyq.js +1 -0
  76. package/dashboard/dist/assets/KanbanPage-C8USth6H.js +21 -0
  77. package/dashboard/dist/assets/{MarkdownRenderer-BjZ43aSa.js → MarkdownRenderer-X4af_WNb.js} +1 -1
  78. package/dashboard/dist/assets/McpPage-BKfCVIyU.js +21 -0
  79. package/dashboard/dist/assets/OutputPanel-BlBQFJSW.js +1 -0
  80. package/dashboard/dist/assets/ProblemsPanel-De3DLvoI.js +1 -0
  81. package/dashboard/dist/assets/{RequirementBoardPage-B7yRL0s_.js → RequirementBoardPage-Bf1trzqs.js} +2 -2
  82. package/dashboard/dist/assets/{RequirementPage-D8J_-b6O.js → RequirementPage-Bllxe2XI.js} +10 -5
  83. package/dashboard/dist/assets/{SpecsPage-6lO8v8_C.js → SpecsPage-9lwxKT27.js} +2 -2
  84. package/dashboard/dist/assets/{SupervisorPage-Ds5N378a.js → SupervisorPage-SusdfHFq.js} +1 -1
  85. package/dashboard/dist/assets/{TeamsPage-DrkKr17T.js → TeamsPage-DsuM6OwC.js} +2 -2
  86. package/dashboard/dist/assets/TreeBrowser-Q12qobZs.js +6 -0
  87. package/dashboard/dist/assets/WorkflowPage-D_Fzdy3_.js +6 -0
  88. package/dashboard/dist/assets/{arrow-left-CadP5YgU.js → arrow-left-Bqtb2hle.js} +1 -1
  89. package/dashboard/dist/assets/{check-5xufDzS8.js → check-u6fGOwQO.js} +1 -1
  90. package/dashboard/dist/assets/{chevron-right-CYbpR4ev.js → chevron-right-Csu22t58.js} +1 -1
  91. package/dashboard/dist/assets/{circle-Bm-5Q-Yh.js → circle-CMrkbRNg.js} +1 -1
  92. package/dashboard/dist/assets/{circle-alert-BqcYuT7x.js → circle-alert-c3tH1P4z.js} +1 -1
  93. package/dashboard/dist/assets/{circle-check-big-yyzAFysU.js → circle-check-big-TDSeWstm.js} +1 -1
  94. package/dashboard/dist/assets/{circle-check-DEVzW_lm.js → circle-check-gYxxSYuH.js} +1 -1
  95. package/dashboard/dist/assets/{code-BBdC8Wmw.js → code-CFN2uX9V.js} +1 -1
  96. package/dashboard/dist/assets/{columns-3-CQ9Trztr.js → columns-3-38xIDlzy.js} +1 -1
  97. package/dashboard/dist/assets/{download-DayuF-sn.js → download-DC7KkKyP.js} +1 -1
  98. package/dashboard/dist/assets/{folder-CqXeSKeC.js → folder-CWq_lAnf.js} +1 -1
  99. package/dashboard/dist/assets/index-DWG-WrzT.js +231 -0
  100. package/dashboard/dist/assets/{index-Dru5HYy0.js → index-Do71weNR.js} +1 -1
  101. package/dashboard/dist/assets/index-GUNJodSR.css +1 -0
  102. package/dashboard/dist/assets/{list-DBOD6IUt.js → list-CgIP_2A-.js} +1 -1
  103. package/dashboard/dist/assets/{minus-fQI1Syn2.js → minus-DYoN5UGk.js} +1 -1
  104. package/dashboard/dist/assets/{pen-line-Bkbbngl5.js → pen-line-Bh_WKYHm.js} +1 -1
  105. package/dashboard/dist/assets/{proxy-teW12DdZ.js → proxy-BKxDAKTj.js} +1 -1
  106. package/dashboard/dist/assets/{search-Bq3ygFUW.js → search-SieXnOgr.js} +1 -1
  107. package/dashboard/dist/assets/{shallow-22ZN8sFt.js → shallow-Bme1JY57.js} +1 -1
  108. package/dashboard/dist/assets/{table-BEYtdWc4.js → table-llyEtj-7.js} +1 -1
  109. package/dashboard/dist/assets/terminal-BB3Xfuv5.js +6 -0
  110. package/dashboard/dist/assets/{trash-2-DMqGBgcF.js → trash-2-C8f4vFFM.js} +1 -1
  111. package/dashboard/dist/assets/{zap-9DVkGVtt.js → zap-4uwlzVm0.js} +1 -1
  112. package/dashboard/dist/index.html +2 -2
  113. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +8 -4
  114. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
  115. package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.d.ts +1 -0
  116. package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.js +2 -1
  117. package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.js.map +1 -1
  118. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js +20 -10
  119. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js.map +1 -1
  120. package/dashboard/dist-server/dashboard/src/server/routes/git.d.ts +2 -0
  121. package/dashboard/dist-server/dashboard/src/server/routes/git.js +79 -0
  122. package/dashboard/dist-server/dashboard/src/server/routes/git.js.map +1 -0
  123. package/dashboard/dist-server/dashboard/src/server/routes/index.js +3 -0
  124. package/dashboard/dist-server/dashboard/src/server/routes/index.js.map +1 -1
  125. package/dashboard/dist-server/dashboard/src/server/routes/workspace.js +43 -0
  126. package/dashboard/dist-server/dashboard/src/server/routes/workspace.js.map +1 -1
  127. package/dashboard/dist-server/dashboard/src/server/state/state-manager.js +43 -3
  128. package/dashboard/dist-server/dashboard/src/server/state/state-manager.js.map +1 -1
  129. package/dashboard/package.json +59 -59
  130. package/dist/src/cli.js +3 -1
  131. package/dist/src/cli.js.map +1 -1
  132. package/dist/src/commands/{team.d.ts → collab.d.ts} +2 -2
  133. package/dist/src/commands/collab.d.ts.map +1 -0
  134. package/dist/src/commands/{team.js → collab.js} +391 -24
  135. package/dist/src/commands/collab.js.map +1 -0
  136. package/dist/src/commands/msg.d.ts.map +1 -1
  137. package/dist/src/commands/msg.js +4 -3
  138. package/dist/src/commands/msg.js.map +1 -1
  139. package/dist/src/hooks/team-monitor.d.ts.map +1 -1
  140. package/dist/src/hooks/team-monitor.js +16 -0
  141. package/dist/src/hooks/team-monitor.js.map +1 -1
  142. package/dist/src/tools/collab-adapter.d.ts +85 -0
  143. package/dist/src/tools/collab-adapter.d.ts.map +1 -0
  144. package/dist/src/tools/collab-adapter.js +320 -0
  145. package/dist/src/tools/collab-adapter.js.map +1 -0
  146. package/dist/src/tools/namespace-guard.d.ts +2 -0
  147. package/dist/src/tools/namespace-guard.d.ts.map +1 -1
  148. package/dist/src/tools/namespace-guard.js +12 -0
  149. package/dist/src/tools/namespace-guard.js.map +1 -1
  150. package/dist/src/tools/phase-gate-evaluator.d.ts +45 -0
  151. package/dist/src/tools/phase-gate-evaluator.d.ts.map +1 -0
  152. package/dist/src/tools/phase-gate-evaluator.js +42 -0
  153. package/dist/src/tools/phase-gate-evaluator.js.map +1 -0
  154. package/dist/src/tools/team-members.d.ts +18 -0
  155. package/dist/src/tools/team-members.d.ts.map +1 -1
  156. package/dist/src/tools/team-members.js +50 -0
  157. package/dist/src/tools/team-members.js.map +1 -1
  158. package/dist/src/tools/team-tasks.d.ts +120 -0
  159. package/dist/src/tools/team-tasks.d.ts.map +1 -0
  160. package/dist/src/tools/team-tasks.js +365 -0
  161. package/dist/src/tools/team-tasks.js.map +1 -0
  162. package/dist/src/tools/transition-recorder.d.ts +3 -0
  163. package/dist/src/tools/transition-recorder.d.ts.map +1 -1
  164. package/dist/src/tools/transition-recorder.js +52 -1
  165. package/dist/src/tools/transition-recorder.js.map +1 -1
  166. package/dist/src/utils/get-version.d.ts.map +1 -1
  167. package/dist/src/utils/get-version.js +15 -4
  168. package/dist/src/utils/get-version.js.map +1 -1
  169. package/package.json +1 -1
  170. package/templates/config.json +7 -0
  171. package/templates/worktree-scope.json +10 -0
  172. package/templates/worktrees.json +27 -0
  173. package/workflows/analyze.md +86 -36
  174. package/workflows/brainstorm.md +17 -37
  175. package/workflows/execute.md +94 -28
  176. package/workflows/fork.md +309 -0
  177. package/workflows/init.md +10 -1
  178. package/workflows/issue.md +66 -7
  179. package/workflows/maestro-coordinate.md +23 -16
  180. package/workflows/maestro.md +52 -35
  181. package/workflows/merge.md +285 -0
  182. package/workflows/milestone-audit.md +89 -70
  183. package/workflows/milestone-complete.md +89 -156
  184. package/workflows/plan.md +122 -17
  185. package/workflows/retrospective.md +3 -3
  186. package/workflows/roadmap.md +11 -3
  187. package/workflows/spec-generate.md +9 -0
  188. package/workflows/status.md +76 -27
  189. package/workflows/ui-design.md +14 -12
  190. package/workflows/verify.md +44 -8
  191. package/.claude/commands/maestro-phase-add.md +0 -63
  192. package/.claude/commands/maestro-phase-transition.md +0 -75
  193. package/.codex/skills/maestro-phase-add/SKILL.md +0 -154
  194. package/.codex/skills/maestro-phase-transition/SKILL.md +0 -173
  195. package/chains/singles/phase-add.json +0 -31
  196. package/chains/singles/phase-transition.json +0 -23
  197. package/dashboard/dist/assets/ChatInput-CL8YDfOU.js +0 -67
  198. package/dashboard/dist/assets/ChatPage-CT-ozBK2.js +0 -8
  199. package/dashboard/dist/assets/CollabPage-C0rWMden.js +0 -1
  200. package/dashboard/dist/assets/KanbanPage-C6WbAlwI.js +0 -16
  201. package/dashboard/dist/assets/McpPage-BPIXADQi.js +0 -16
  202. package/dashboard/dist/assets/TreeBrowser-g_QUKemL.js +0 -11
  203. package/dashboard/dist/assets/WorkflowPage-X8aNkDEr.js +0 -6
  204. package/dashboard/dist/assets/git-branch-SqFf4Ru5.js +0 -6
  205. package/dashboard/dist/assets/index-D2Mtyw7I.css +0 -1
  206. package/dashboard/dist/assets/index-nufWop4p.js +0 -231
  207. package/dashboard/dist/assets/wrench-B84-zdLI.js +0 -11
  208. package/dist/src/commands/team.d.ts.map +0 -1
  209. package/dist/src/commands/team.js.map +0 -1
  210. package/workflows/phase-add.md +0 -252
  211. package/workflows/phase-transition.md +0 -399
@@ -145,9 +145,9 @@ Build the decomposition report grouped by dimension:
145
145
  6. Display summary with counts and next steps
146
146
 
147
147
  **Next-step routing:**
148
- - Follow-along on a specific pattern → `Skill({ skill: "learn-follow", args: "<anchor-file>" })`
149
- - Get second opinion on findings → `Skill({ skill: "learn-second-opinion", args: "<target>" })`
150
- - Add all new patterns to specs → `Skill({ skill: "spec-add", args: "pattern ..." })` per pattern
148
+ - Follow-along on a specific pattern → `/learn-follow <anchor-file>`
149
+ - Get second opinion on findings → `/learn-second-opinion <target>`
150
+ - Add all new patterns to specs → `/spec-add pattern ...` per pattern
151
151
  </execution>
152
152
 
153
153
  <error_codes>
@@ -134,17 +134,17 @@ Build a structured summary document:
134
134
  5. Display summary with key findings and next steps
135
135
 
136
136
  **Next-step routing:**
137
- - Deep dive into a discovered pattern → `Skill({ skill: "learn-decompose", args: "<path>" })`
138
- - Add undocumented pattern to specs → `Skill({ skill: "spec-add", args: "pattern <description>" })`
139
- - Get second opinion on a finding → `Skill({ skill: "learn-second-opinion", args: "<file>" })`
140
- - Browse related wiki entries → `Skill({ skill: "wiki-digest", args: "<topic>" })`
137
+ - Deep dive into a discovered pattern → `/learn-decompose <path>`
138
+ - Add undocumented pattern to specs → `/spec-add pattern <description>`
139
+ - Get second opinion on a finding → `/learn-second-opinion <file>`
140
+ - Browse related wiki entries → `/wiki-digest <topic>`
141
141
  </execution>
142
142
 
143
143
  <error_codes>
144
144
  | Code | Severity | Condition | Recovery |
145
145
  |------|----------|-----------|----------|
146
146
  | E001 | error | Target not resolvable (file not found, wiki ID not found, search returned 0) | Check path/ID, or rephrase topic for search |
147
- | E002 | error | `.workflow/` not initialized | Run `Skill({ skill: "maestro-init" })` first |
147
+ | E002 | error | `.workflow/` not initialized | Run `/maestro-init` first |
148
148
  | W001 | warning | Wiki graph unavailable (no .workflow/ wiki entries) — skipping context web | Proceed with code-only context (imports/exports) |
149
149
  | W002 | warning | coding-conventions.md not found — skipping convention comparison | Patterns flagged as "unknown convention status" |
150
150
  | W003 | warning | Target is very large (>1000 lines) — auto-switching to shallow depth | Use --depth deep to override |
@@ -162,9 +162,9 @@ Write final `report.md`:
162
162
  3. Display summary with answer and next steps
163
163
 
164
164
  **Next-step routing:**
165
- - Save finding to specs → `Skill({ skill: "spec-add", args: "debug <finding>" })`
166
- - Follow-along on discovered code → `Skill({ skill: "learn-follow", args: "<path>" })`
167
- - Decompose patterns found → `Skill({ skill: "learn-decompose", args: "<module>" })`
165
+ - Save finding to specs → `/spec-add debug <finding>`
166
+ - Follow-along on discovered code → `/learn-follow <path>`
167
+ - Decompose patterns found → `/learn-decompose <module>`
168
168
  - Create wiki entry for understanding → `maestro wiki create --type note`
169
169
  </execution>
170
170
 
@@ -257,12 +257,12 @@ Write `.workflow/learning/retro-{date}.json` with structured data.
257
257
  4. Display summary
258
258
 
259
259
  **Next-step routing:**
260
- - Browse insights → `Skill({ skill: "manage-learn", args: "list --tag retro" })`
261
- - Deep dive on high-churn file → `Skill({ skill: "learn-follow", args: "<path>" })`
262
- - Fix test gaps → `Skill({ skill: "quality-test-gen", args: "<area>" })`
263
- - Create issue for questionable decision → `Skill({ skill: "manage-issue", args: "create ..." })`
264
- - Investigate stale decision → `Skill({ skill: "learn-investigate", args: "<question>" })`
265
- - Full phase retrospective → `Skill({ skill: "quality-retrospective" })`
260
+ - Browse insights → `/manage-learn list --tag retro`
261
+ - Deep dive on high-churn file → `/learn-follow <path>`
262
+ - Fix test gaps → `/quality-test-gen <area>`
263
+ - Create issue for questionable decision → `/manage-issue create ...`
264
+ - Investigate stale decision → `/learn-investigate <question>`
265
+ - Full phase retrospective → `/quality-retrospective`
266
266
  </execution>
267
267
 
268
268
  <error_codes>
@@ -136,9 +136,9 @@ Across all perspectives (or from single agent in challenge/consult):
136
136
  4. Display summary with verdict and recommendations
137
137
 
138
138
  **Next-step routing:**
139
- - Create issue for a finding → `Skill({ skill: "manage-issue", args: "create <description>" })`
140
- - Decompose patterns found → `Skill({ skill: "learn-decompose", args: "<path>" })`
141
- - Follow-along on the code → `Skill({ skill: "learn-follow", args: "<path>" })`
139
+ - Create issue for a finding → `/manage-issue create <description>`
140
+ - Decompose patterns found → `/learn-decompose <path>`
141
+ - Follow-along on the code → `/learn-follow <path>`
142
142
  </execution>
143
143
 
144
144
  <error_codes>
@@ -1,99 +1,123 @@
1
- ---
2
- name: maestro-analyze
3
- description: Multi-dimensional analysis with CLI exploration, decision extraction, and intent tracking
4
- argument-hint: "<phase|topic> [-y] [-c] [-q]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
- <purpose>
16
- Perform multi-dimensional analysis of a technical proposal, decision, or architecture choice through iterative CLI-assisted exploration and interactive discussion. Produces a discussion timeline (discussion.md) with evolving understanding, multi-perspective findings, Decision Recording Protocol, Intent Coverage tracking, and a final conclusions package with Go/No-Go recommendation.
17
-
18
- Combines structured 6-dimension scoring with iterative deepening and decision extraction. Replaces both analysis and decision-capture workflows — produces analysis.md (scoring) AND context.md (Locked/Free/Deferred decisions for plan).
19
-
20
- Use `-q` for quick decision extraction only (skip exploration + scoring).
21
- </purpose>
22
-
23
- <required_reading>
24
- @~/.maestro/workflows/analyze.md
25
- </required_reading>
26
-
27
- <deferred_reading>
28
- - [scratch-index.json](~/.maestro/templates/scratch-index.json) — read when operating in scratch mode
29
- - [index.json](~/.maestro/templates/index.json) — read when operating in phase mode
30
- </deferred_reading>
31
-
32
- <context>
33
- $ARGUMENTS -- phase number for phase mode, topic text for scratch mode, with optional flags.
34
-
35
- **Flags:**
36
- - `-y` / `--yes`: Auto mode skip interactive scoping, use recommended defaults, auto-deepen
37
- - `-c` / `--continue`: Resume from existing session (auto-detect session folder + discussion.md)
38
- - `-q` / `--quick`: Quick mode — skip exploration + scoring, go straight to decision extraction (context.md only)
39
-
40
- **Phase mode** (number): resolves phase directory from state.json + roadmap, updates index.json status to "exploring".
41
- **Scratch mode** (text): creates `.workflow/scratch/analyze-{slug}-{date}/` with index.json from scratch-index template (type="analyze").
42
-
43
- **Output artifacts:**
44
- | Artifact | Mode | Description |
45
- |----------|------|-------------|
46
- | `context.md` | both | Locked/Free/Deferred decisions for downstream plan |
47
- | `discussion.md` | full | Full discussion timeline with TOC, Current Understanding, rounds, decisions, intent coverage |
48
- | `analysis.md` | full | Executive summary with 6-dimension scores and risk matrix |
49
- | `conclusions.json` | full | Final synthesis with recommendations, decision trail, intent coverage |
50
- | `explorations.json` | full | Codebase exploration findings (single perspective) |
51
- | `perspectives.json` | full | Multi-perspective findings with synthesis (if multi-perspective) |
52
- </context>
53
-
54
- <execution>
55
- Follow '~/.maestro/workflows/analyze.md' completely.
56
-
57
- **Handoff:** context.md is consumed by maestro-plan (Step 4 loads Locked/Free/Deferred decisions).
58
-
59
- **Next-step routing on completion:**
60
-
61
- Phase mode:
62
- - Go recommendation, UI work needed → Skill({ skill: "maestro-ui-design", args: "{phase}" })
63
- - Go recommendation, ready to plan → Skill({ skill: "maestro-plan", args: "{phase}" })
64
- - No-Go recommendation → revisit requirements or Skill({ skill: "maestro-brainstorm", args: "{topic}" })
65
-
66
- Scratch mode:
67
- - Ready to plan → Skill({ skill: "maestro-plan", args: "--dir {scratch_dir}" })
68
- - Need more exploration → Skill({ skill: "maestro-analyze", args: "{topic} -c" })
69
- </execution>
70
-
71
- <error_codes>
72
- | Code | Severity | Condition | Recovery |
73
- |------|----------|-----------|----------|
74
- | E001 | error | Analysis subject required (no arguments provided) | Prompt user for phase number or topic text |
75
- | E002 | error | Phase directory not found | List available phases, prompt user to select |
76
- | W001 | warning | CLI exploration failed | Continue with available context, note limitation |
77
- | W002 | warning | CLI analysis timeout | Retry with shorter prompt, or skip perspective |
78
- | W003 | warning | Insufficient evidence for scoring dimensions | Note low-confidence dimensions, proceed with available evidence |
79
- | W004 | warning | Max rounds reached (5) | Force synthesis, offer continuation option |
80
- </error_codes>
81
-
82
- <success_criteria>
83
- Full mode:
84
- - [ ] CLI exploration completed with code anchors and call chains
85
- - [ ] discussion.md created with full timeline, TOC, Current Understanding
86
- - [ ] analysis.md written with all 6 dimensions scored with evidence
87
- - [ ] conclusions.json created with recommendations and decision trail
88
- - [ ] Intent Coverage tracked and verified (no unresolved ❌ items)
89
-
90
- Both modes (full + quick):
91
- - [ ] context.md written with all decisions classified as Locked/Free/Deferred
92
- - [ ] Gray areas identified through phase-specific analysis
93
- - [ ] Decision Recording Protocol applied to all decisions
94
- - [ ] Scope creep redirected to Deferred section
95
- - [ ] Deferred items auto-created as issues (if any)
96
- - [ ] project.md Key Decisions updated with Locked decisions (phase mode)
97
- - [ ] Next step routed (ui-design/plan for Go, brainstorm for No-Go)
98
- - [ ] index.json timestamps updated
99
- </success_criteria>
1
+ ---
2
+ name: maestro-analyze
3
+ description: Multi-dimensional analysis with CLI exploration, decision extraction, and intent tracking
4
+ argument-hint: "[phase|topic] [-y] [-c] [-q]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+ <purpose>
16
+ Perform multi-dimensional analysis of a technical proposal, decision, or architecture choice through iterative CLI-assisted exploration and interactive discussion. Produces a discussion timeline (discussion.md) with evolving understanding, multi-perspective findings, Decision Recording Protocol, Intent Coverage tracking, and a final conclusions package with Go/No-Go recommendation.
17
+
18
+ Combines structured 6-dimension scoring with iterative deepening and decision extraction. Replaces both analysis and decision-capture workflows — produces analysis.md (scoring) AND context.md (Locked/Free/Deferred decisions for plan).
19
+
20
+ Use `-q` for quick decision extraction only (skip exploration + scoring).
21
+ </purpose>
22
+
23
+ <required_reading>
24
+ @~/.maestro/workflows/analyze.md
25
+ </required_reading>
26
+
27
+ <deferred_reading>
28
+ - [state.json](~/.maestro/templates/state.json) — read when registering artifact
29
+ </deferred_reading>
30
+
31
+ <context>
32
+ $ARGUMENTS -- phase number for milestone-scoped, topic text for adhoc/standalone mode, no args for milestone-wide.
33
+
34
+ **Flags:**
35
+ - `-y` / `--yes`: Auto mode — skip interactive scoping, use recommended defaults, auto-deepen
36
+ - `-c` / `--continue`: Resume from existing session (auto-detect session folder + discussion.md)
37
+ - `-q` / `--quick`: Quick mode skip exploration + scoring, go straight to decision extraction (context.md only)
38
+
39
+ **Scope routing (per architecture):**
40
+
41
+ | Invocation | Precondition | Scope | Behavior |
42
+ |-----------|-------------|-------|----------|
43
+ | `analyze` (no args) | init + roadmap | milestone | Analyze current milestone's all phases |
44
+ | `analyze 1` | init + roadmap | phase | Analyze phase 1 only |
45
+ | `analyze "topic"` (has milestone) | none | adhoc | Analyze topic, affiliated with current milestone |
46
+ | `analyze "topic"` (no milestone) | none | standalone | Analyze topic, no milestone affiliation |
47
+
48
+ **Scope detection rule**: Text argument + `state.json.current_milestone` non-null adhoc. Text argument + no milestone standalone. No args + no roadmap → error (need topic or roadmap).
49
+
50
+ **Output directory**: `scratch/analyze-{slug}-{date}/` (relative to `.workflow/`)
51
+
52
+ **Artifact registration**: On completion, register artifact in `state.json.artifacts[]`:
53
+ ```jsonc
54
+ {
55
+ "id": "ANL-{NNN}",
56
+ "type": "analyze",
57
+ "milestone": "{current_milestone or null}",
58
+ "phase": "{phase_number or null}",
59
+ "scope": "{milestone|phase|adhoc|standalone}",
60
+ "path": "scratch/analyze-{slug}-{date}",
61
+ "status": "completed",
62
+ "depends_on": null,
63
+ "harvested": false,
64
+ "created_at": "...",
65
+ "completed_at": "..."
66
+ }
67
+ ```
68
+
69
+ **Output artifacts:**
70
+ | Artifact | Mode | Description |
71
+ |----------|------|-------------|
72
+ | `context.md` | both | Locked/Free/Deferred decisions for downstream plan |
73
+ | `discussion.md` | full | Full discussion timeline with TOC, Current Understanding, rounds, decisions, intent coverage |
74
+ | `analysis.md` | full | Executive summary with 6-dimension scores and risk matrix |
75
+ | `conclusions.json` | full | Final synthesis with recommendations, decision trail, intent coverage |
76
+ | `explorations.json` | full | Codebase exploration findings (single perspective) |
77
+ | `perspectives.json` | full | Multi-perspective findings with synthesis (if multi-perspective) |
78
+ </context>
79
+
80
+ <execution>
81
+ Follow '~/.maestro/workflows/analyze.md' completely.
82
+
83
+ **Handoff:** context.md is consumed by maestro-plan (loads Locked/Free/Deferred decisions).
84
+
85
+ **Next-step routing on completion:**
86
+
87
+ Phase/Milestone scope:
88
+ - Go recommendation, UI work needed `/maestro-ui-design {phase}`
89
+ - Go recommendation, ready to plan → `/maestro-plan` or `/maestro-plan {phase}`
90
+ - No-Go recommendation revisit requirements or `/maestro-brainstorm {topic}`
91
+
92
+ Adhoc/Standalone scope:
93
+ - Ready to plan `/maestro-plan --dir {scratch_dir}`
94
+ - Need more exploration `/maestro-analyze {topic} -c`
95
+ </execution>
96
+
97
+ <error_codes>
98
+ | Code | Severity | Condition | Recovery |
99
+ |------|----------|-----------|----------|
100
+ | E001 | error | No args and no roadmap (cannot determine scope) | Prompt user for topic text or create roadmap first |
101
+ | W001 | warning | CLI exploration failed | Continue with available context, note limitation |
102
+ | W002 | warning | CLI analysis timeout | Retry with shorter prompt, or skip perspective |
103
+ | W003 | warning | Insufficient evidence for scoring dimensions | Note low-confidence dimensions, proceed with available evidence |
104
+ | W004 | warning | Max rounds reached (5) | Force synthesis, offer continuation option |
105
+ </error_codes>
106
+
107
+ <success_criteria>
108
+ Full mode:
109
+ - [ ] CLI exploration completed with code anchors and call chains
110
+ - [ ] discussion.md created with full timeline, TOC, Current Understanding
111
+ - [ ] analysis.md written with all 6 dimensions scored with evidence
112
+ - [ ] conclusions.json created with recommendations and decision trail
113
+ - [ ] Intent Coverage tracked and verified (no unresolved ❌ items)
114
+
115
+ Both modes (full + quick):
116
+ - [ ] context.md written with all decisions classified as Locked/Free/Deferred
117
+ - [ ] Gray areas identified through phase-specific analysis
118
+ - [ ] Decision Recording Protocol applied to all decisions
119
+ - [ ] Scope creep redirected to Deferred section
120
+ - [ ] Deferred items auto-created as issues (if any)
121
+ - [ ] Artifact registered in state.json with correct scope/milestone/phase
122
+ - [ ] Next step routed (ui-design/plan for Go, brainstorm for No-Go)
123
+ </success_criteria>
@@ -30,8 +30,8 @@ $ARGUMENTS -- topic text for auto mode, or role name for single role mode.
30
30
 
31
31
  **Auto mode**: topic text (e.g., "Build real-time collaboration platform") triggers full pipeline.
32
32
  **Single role mode**: valid role name (e.g., "system-architect") runs one role analysis.
33
- **Phase mode** (number): resolves phase directory, creates .brainstorming/ inside it.
34
- **Scratch mode** (text): creates `.workflow/scratch/brainstorm-{slug}-{date}/`.
33
+ **All output** goes to `.workflow/scratch/brainstorm-{slug}-{date}/`.
34
+ **Artifact registration**: On completion, registers artifact (type=brainstorm) in state.json.
35
35
 
36
36
  **Valid roles**: data-architect, product-manager, product-owner, scrum-master, subject-matter-expert, system-architect, test-strategist, ui-designer, ux-expert
37
37
 
@@ -1,97 +1,137 @@
1
- ---
2
- name: maestro-execute
3
- description: Execute phase plan with wave-based parallel execution and atomic commits
4
- argument-hint: "<phase> [--auto-commit] [--method agent|cli|auto] [--executor <tool>] [--dir <path>]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
- <purpose>
16
- Execute all tasks in a phase plan using wave-based parallel execution with dependency-aware ordering. Invoked after Skill({ skill: "maestro-plan" }) produces a confirmed plan.json. Produces task summaries, updated task statuses, commits, and execution progress in index.json.
17
- </purpose>
18
-
19
- <required_reading>
20
- @~/.maestro/workflows/execute.md
21
- </required_reading>
22
-
23
- <deferred_reading>
24
- - [task.json](~/.maestro/templates/task.json) — read when reading task definitions
25
- - [index.json](~/.maestro/templates/index.json) — read when updating phase index
26
- </deferred_reading>
27
-
28
- <context>
29
- Phase: $ARGUMENTS (required -- phase number or slug)
30
-
31
- **Flags:**
32
- - `--auto-commit` -- Automatically commit after each task completion
33
- - `--method agent|cli|auto` -- Override execution method (default: from config.json or index.json)
34
- - `--executor <tool>` -- Default CLI tool: gemini|codex|qwen|opencode|claude (used when method is cli or auto)
35
- - `--dir <path>` -- Use arbitrary directory instead of phase resolution (scratch mode, skip roadmap validation)
36
-
37
- Context files resolved from `.workflow/phases/{NN}-{slug}/` (or `--dir` path):
38
- - index.json (phase metadata + plan.waves + execution progress)
39
- - plan.json (plan overview)
40
- - .task/TASK-{NNN}.json (individual task definitions, lazy-loaded per wave)
41
-
42
- **executionContext handoff:** If received from Skill({ skill: "maestro-plan" }) confirmation, skip disk reload and use in-memory plan + explorations + clarifications.
43
- </context>
44
-
45
- <execution>
46
- ### Pre-flight: team conflict check
47
-
48
- Before any task execution, run:
49
- ```
50
- Bash("maestro team preflight --phase <phase-number>")
51
- ```
52
- If exit code is 1, the command prints warnings about teammates active on the same phase. Present the warnings to the user and ask whether to proceed. If the user confirms or says "force", continue. If they decline, abort with a clear message.
53
-
54
- If exit code is 0, or `maestro team preflight` is unavailable (e.g., team mode not enabled), continue normally.
55
-
56
- Follow '~/.maestro/workflows/execute.md' completely.
57
-
58
- **Report format on completion:**
59
-
60
- ```
61
- === EXECUTION COMPLETE ===
62
- Phase: {phase_name}
63
- Completed: {completed_count}/{total_count} tasks
64
- Failed: {failed_count} tasks
65
- Waves: {waves_executed}/{total_waves}
66
-
67
- Summaries: {phase_dir}/.summaries/
68
- Tasks: {phase_dir}/.task/
69
-
70
- Next steps:
71
- Skill({ skill: "maestro-verify", args: "{phase}" }) -- Verify execution results
72
- Skill({ skill: "manage-status" }) -- View project dashboard
73
- ```
74
-
75
- If this was a gap-fix execution (plan originated from `--gaps`), emphasize re-verification:
76
- "Gap-fix execution complete. Run Skill({ skill: "maestro-verify", args: "{phase}" }) to confirm gaps are resolved."
77
-
78
- If failed tasks exist, suggest Skill({ skill: "quality-debug" }) for investigation.
79
- </execution>
80
-
81
- <error_codes>
82
- | Code | Severity | Condition | Recovery |
83
- |------|----------|-----------|----------|
84
- | E001 | error | Phase argument required | Check arguments format, re-run with correct input |
85
- | E002 | error | Phase directory not found | Check arguments format, re-run with correct input |
86
- | E003 | error | plan.json not found in phase directory | Verify plan.json exists, run maestro-plan first |
87
- | E004 | error | No pending tasks, all tasks already completed | Check task statuses, reset if needed |
88
- | W001 | warning | Executor completed with partial failures | Check task dependencies, retry failed wave |
89
- </error_codes>
90
-
91
- <success_criteria>
92
- - [ ] All pending tasks executed (completed or explicitly failed)
93
- - [ ] `.summaries/TASK-{NNN}-summary.md` written for each completed task
94
- - [ ] `.task/TASK-{NNN}.json` statuses updated
95
- - [ ] index.json execution progress updated
96
- - [ ] state.json project progress updated
97
- </success_criteria>
1
+ ---
2
+ name: maestro-execute
3
+ description: Execute plan with wave-based parallel execution and atomic commits
4
+ argument-hint: "[phase] [--auto-commit] [--method agent|cli|auto] [--executor <tool>] [--dir <path>]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+ <purpose>
16
+ Execute all tasks in a plan using wave-based parallel execution with dependency-aware ordering. Each plan is executed independently (plans串行, plan内wave并行). Task summaries are written to the plan's scratch directory under `.summaries/`. Registers EXC artifact in state.json.
17
+
18
+ Invoked after /maestro-plan produces a confirmed plan. When called without args on a milestone, finds all pending plans and executes them sequentially.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/execute.md
23
+ </required_reading>
24
+
25
+ <deferred_reading>
26
+ - [task.json](~/.maestro/templates/task.json) — read when reading task definitions
27
+ - [state.json](~/.maestro/templates/state.json) — read when registering artifact
28
+ </deferred_reading>
29
+
30
+ <context>
31
+ $ARGUMENTS — phase number, or no args for milestone-wide execution, with optional flags.
32
+
33
+ **Flags:**
34
+ - `--auto-commit` -- Automatically commit after each task completion
35
+ - `--method agent|cli|auto` -- Override execution method (default: from config.json)
36
+ - `--executor <tool>` -- Default CLI tool: gemini|codex|qwen|opencode|claude
37
+ - `--dir <path>` -- Execute specific plan directory (e.g., `scratch/plan-auth-2026-04-20`)
38
+
39
+ **Scope routing:**
40
+
41
+ | Invocation | Behavior |
42
+ |-----------|----------|
43
+ | `execute` (no args) | Find all pending plans for current milestone, execute sequentially |
44
+ | `execute 1` | Find pending plans for phase 1, execute sequentially |
45
+ | `execute --dir scratch/plan-xxx` | Execute the specific plan |
46
+
47
+ **Resolution logic (no-args / phase):**
48
+ ```
49
+ 1. Read state.json.artifacts
50
+ 2. Filter: milestone=target, type=plan, status=completed, AND no corresponding EXC artifact
51
+ 3. If phase specified: further filter by phase=target
52
+ 4. Sort by phase dependency order (roadmap phase order), adhoc last
53
+ 5. Execute each plan sequentially
54
+ ```
55
+
56
+ **Output**: Task summaries written to plan's scratch dir:
57
+ ```
58
+ scratch/plan-{slug}-{date}/
59
+ ├── plan.json
60
+ ├── .task/
61
+ │ ├── TASK-001.json # status updated to completed|blocked
62
+ │ └── TASK-002.json
63
+ └── .summaries/ execute writes here
64
+ ├── TASK-001-summary.md
65
+ └── TASK-002-summary.md
66
+ ```
67
+
68
+ **Incremental learning extraction**: After each plan completes, extract strategy adjustments / patterns / pitfalls from `.summaries/` and append to `specs/learnings.md`. Mark artifact `harvested: true`.
69
+
70
+ **Artifact registration**: For each plan executed, register in `state.json.artifacts[]`:
71
+ ```jsonc
72
+ {
73
+ "id": "EXC-{NNN}",
74
+ "type": "execute",
75
+ "milestone": "{current_milestone or null}",
76
+ "phase": "{phase or null}",
77
+ "scope": "{inherited from plan}",
78
+ "path": "{same as plan path}",
79
+ "status": "completed",
80
+ "depends_on": "PLN-{NNN}",
81
+ "harvested": false,
82
+ "created_at": "...",
83
+ "completed_at": "..."
84
+ }
85
+ ```
86
+ </context>
87
+
88
+ <execution>
89
+ ### Pre-flight: team conflict check
90
+
91
+ Before any task execution, run:
92
+ ```
93
+ Bash("maestro collab preflight --phase <phase-number>")
94
+ ```
95
+ If exit code is 1, present warnings and ask whether to proceed.
96
+
97
+ Follow '~/.maestro/workflows/execute.md' completely.
98
+
99
+ **Report format on completion:**
100
+
101
+ ```
102
+ === EXECUTION COMPLETE ===
103
+ Plans executed: {plans_count}
104
+ Completed: {completed_count}/{total_count} tasks
105
+ Failed: {failed_count} tasks
106
+
107
+ Summaries: {plan_dir}/.summaries/
108
+ Tasks: {plan_dir}/.task/
109
+
110
+ Next steps:
111
+ /maestro-verify -- Verify execution results
112
+ /maestro-verify --dir {dir} -- Verify specific plan
113
+ /manage-status -- View project dashboard
114
+ ```
115
+
116
+ If failed tasks exist, suggest /quality-debug for investigation.
117
+ </execution>
118
+
119
+ <error_codes>
120
+ | Code | Severity | Condition | Recovery |
121
+ |------|----------|-----------|----------|
122
+ | E001 | error | No pending plans found | Verify plans exist, run maestro-plan first |
123
+ | E002 | error | Plan directory not found | Check --dir path |
124
+ | E003 | error | plan.json not found in directory | Verify plan.json exists, run maestro-plan first |
125
+ | E004 | error | No pending tasks, all tasks already completed | Check task statuses, reset if needed |
126
+ | W001 | warning | Executor completed with partial failures | Check task dependencies, retry failed wave |
127
+ </error_codes>
128
+
129
+ <success_criteria>
130
+ - [ ] All pending plans identified and executed sequentially
131
+ - [ ] Within each plan: waves executed in parallel, waves串行
132
+ - [ ] `.summaries/TASK-{NNN}-summary.md` written for each completed task
133
+ - [ ] `.task/TASK-{NNN}.json` statuses updated (completed|blocked)
134
+ - [ ] EXC artifact registered in state.json for each plan executed
135
+ - [ ] Incremental learnings extracted to specs/learnings.md
136
+ - [ ] state.json updated with execution progress
137
+ </success_criteria>