maestro-flow 0.3.37 → 0.3.39

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 (186) hide show
  1. package/.claude/agents/workflow-analyzer.md +2 -0
  2. package/.claude/agents/workflow-debugger.md +2 -0
  3. package/.claude/agents/workflow-executor.md +2 -0
  4. package/.claude/agents/workflow-integration-checker.md +1 -0
  5. package/.claude/agents/workflow-nyquist-auditor.md +1 -0
  6. package/.claude/agents/workflow-planner.md +2 -0
  7. package/.claude/agents/workflow-reviewer.md +2 -0
  8. package/.claude/agents/workflow-verifier.md +2 -0
  9. package/.claude/commands/learn-decompose.md +176 -176
  10. package/.claude/commands/learn-follow.md +167 -167
  11. package/.claude/commands/learn-investigate.md +221 -221
  12. package/.claude/commands/learn-retro.md +303 -303
  13. package/.claude/commands/learn-second-opinion.md +167 -167
  14. package/.claude/commands/maestro-amend.md +300 -300
  15. package/.claude/commands/maestro-analyze.md +126 -126
  16. package/.claude/commands/maestro-brainstorm.md +100 -100
  17. package/.claude/commands/maestro-composer.md +354 -354
  18. package/.claude/commands/maestro-execute.md +120 -114
  19. package/.claude/commands/maestro-fork.md +86 -86
  20. package/.claude/commands/maestro-init.md +78 -78
  21. package/.claude/commands/maestro-learn.md +140 -140
  22. package/.claude/commands/maestro-link-coordinate.md +1 -1
  23. package/.claude/commands/maestro-merge.md +61 -61
  24. package/.claude/commands/maestro-milestone-release.md +96 -96
  25. package/.claude/commands/maestro-overlay.md +178 -178
  26. package/.claude/commands/maestro-plan.md +150 -138
  27. package/.claude/commands/maestro-player.md +404 -404
  28. package/.claude/commands/maestro-quick.md +56 -56
  29. package/.claude/commands/maestro-ralph-execute.md +7 -18
  30. package/.claude/commands/maestro-ralph.md +9 -3
  31. package/.claude/commands/maestro-roadmap.md +1 -1
  32. package/.claude/commands/maestro-ui-design.md +93 -93
  33. package/.claude/commands/maestro-update.md +176 -176
  34. package/.claude/commands/maestro-verify.md +96 -90
  35. package/.claude/commands/maestro.md +121 -121
  36. package/.claude/commands/manage-codebase-rebuild.md +75 -75
  37. package/.claude/commands/manage-codebase-refresh.md +57 -57
  38. package/.claude/commands/manage-harvest.md +94 -94
  39. package/.claude/commands/manage-issue-discover.md +77 -77
  40. package/.claude/commands/manage-issue.md +73 -73
  41. package/.claude/commands/manage-knowhow-capture.md +193 -193
  42. package/.claude/commands/manage-knowhow.md +77 -77
  43. package/.claude/commands/manage-learn.md +67 -67
  44. package/.claude/commands/manage-status.md +51 -51
  45. package/.claude/commands/manage-wiki.md +62 -62
  46. package/.claude/commands/quality-auto-test.md +1 -1
  47. package/.claude/commands/quality-debug.md +121 -115
  48. package/.claude/commands/quality-refactor.md +55 -55
  49. package/.claude/commands/quality-retrospective.md +78 -78
  50. package/.claude/commands/quality-review.md +114 -108
  51. package/.claude/commands/quality-sync.md +51 -51
  52. package/.claude/commands/quality-test.md +103 -103
  53. package/.claude/commands/spec-add.md +49 -49
  54. package/.claude/commands/spec-load.md +51 -51
  55. package/.claude/commands/spec-remove.md +51 -51
  56. package/.claude/commands/spec-setup.md +51 -51
  57. package/.claude/commands/wiki-connect.md +62 -62
  58. package/.claude/commands/wiki-digest.md +69 -69
  59. package/.codex/skills/learn-decompose/SKILL.md +113 -113
  60. package/.codex/skills/learn-follow/SKILL.md +1 -1
  61. package/.codex/skills/learn-investigate/SKILL.md +83 -83
  62. package/.codex/skills/learn-retro/SKILL.md +83 -83
  63. package/.codex/skills/learn-second-opinion/SKILL.md +86 -86
  64. package/.codex/skills/maestro/SKILL.md +304 -304
  65. package/.codex/skills/maestro-analyze/SKILL.md +9 -8
  66. package/.codex/skills/maestro-brainstorm/SKILL.md +442 -397
  67. package/.codex/skills/maestro-composer/SKILL.md +213 -213
  68. package/.codex/skills/maestro-execute/SKILL.md +346 -318
  69. package/.codex/skills/maestro-fork/SKILL.md +56 -2
  70. package/.codex/skills/maestro-init/SKILL.md +40 -16
  71. package/.codex/skills/maestro-learn/SKILL.md +80 -80
  72. package/.codex/skills/maestro-link-coordinate/SKILL.md +257 -257
  73. package/.codex/skills/maestro-merge/SKILL.md +1 -1
  74. package/.codex/skills/maestro-milestone-audit/SKILL.md +1 -1
  75. package/.codex/skills/maestro-milestone-complete/SKILL.md +40 -9
  76. package/.codex/skills/maestro-milestone-release/SKILL.md +70 -70
  77. package/.codex/skills/maestro-overlay/SKILL.md +1 -1
  78. package/.codex/skills/maestro-plan/SKILL.md +19 -4
  79. package/.codex/skills/maestro-player/SKILL.md +323 -323
  80. package/.codex/skills/maestro-quick/SKILL.md +1 -1
  81. package/.codex/skills/maestro-ralph/SKILL.md +681 -578
  82. package/.codex/skills/maestro-roadmap/SKILL.md +518 -468
  83. package/.codex/skills/maestro-ui-design/SKILL.md +109 -12
  84. package/.codex/skills/maestro-verify/SKILL.md +27 -9
  85. package/.codex/skills/manage-codebase-rebuild/SKILL.md +3 -2
  86. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  87. package/.codex/skills/manage-harvest/SKILL.md +91 -91
  88. package/.codex/skills/manage-issue/SKILL.md +19 -6
  89. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  90. package/.codex/skills/manage-knowhow/SKILL.md +95 -95
  91. package/.codex/skills/manage-knowhow-capture/SKILL.md +110 -110
  92. package/.codex/skills/manage-learn/SKILL.md +1 -1
  93. package/.codex/skills/manage-status/SKILL.md +1 -1
  94. package/.codex/skills/manage-wiki/SKILL.md +55 -55
  95. package/.codex/skills/quality-auto-test/SKILL.md +547 -547
  96. package/.codex/skills/quality-debug/SKILL.md +339 -334
  97. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  98. package/.codex/skills/quality-retrospective/SKILL.md +292 -292
  99. package/.codex/skills/quality-review/SKILL.md +365 -364
  100. package/.codex/skills/quality-sync/SKILL.md +1 -1
  101. package/.codex/skills/quality-test/SKILL.md +498 -498
  102. package/.codex/skills/spec-add/SKILL.md +101 -101
  103. package/.codex/skills/spec-load/SKILL.md +77 -77
  104. package/.codex/skills/spec-map/SKILL.md +1 -1
  105. package/.codex/skills/spec-remove/SKILL.md +69 -69
  106. package/.codex/skills/spec-setup/SKILL.md +1 -1
  107. package/.codex/skills/team-coordinate/SKILL.md +2 -1
  108. package/.codex/skills/team-executor/SKILL.md +116 -115
  109. package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -1
  110. package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +14 -6
  111. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +16 -4
  112. package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +7 -1
  113. package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +16 -4
  114. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +8 -2
  115. package/.codex/skills/team-quality-assurance/SKILL.md +2 -1
  116. package/.codex/skills/team-quality-assurance/roles/scout/role.md +9 -2
  117. package/.codex/skills/team-review/SKILL.md +2 -1
  118. package/.codex/skills/team-review/roles/reviewer/role.md +10 -1
  119. package/.codex/skills/team-review/roles/scanner/role.md +10 -1
  120. package/.codex/skills/team-tech-debt/SKILL.md +144 -143
  121. package/.codex/skills/team-tech-debt/roles/executor/role.md +9 -5
  122. package/.codex/skills/team-tech-debt/roles/scanner/role.md +10 -0
  123. package/.codex/skills/team-tech-debt/roles/validator/role.md +8 -2
  124. package/.codex/skills/team-testing/SKILL.md +2 -1
  125. package/.codex/skills/team-testing/roles/executor/role.md +8 -2
  126. package/.codex/skills/team-testing/roles/generator/role.md +8 -2
  127. package/.codex/skills/wiki-connect/SKILL.md +73 -73
  128. package/.codex/skills/wiki-digest/SKILL.md +87 -87
  129. package/README.md +6 -0
  130. package/README.zh-CN.md +6 -0
  131. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +4 -0
  132. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
  133. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +118 -7
  134. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  135. package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
  136. package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +2 -0
  137. package/dashboard/dist-server/src/agents/cli-agent-runner.js +4 -0
  138. package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
  139. package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
  140. package/dashboard/dist-server/src/commands/delegate.js +18 -0
  141. package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
  142. package/dashboard/dist-server/src/config/cli-tools-config.d.ts +6 -0
  143. package/dashboard/dist-server/src/config/cli-tools-config.js +2 -0
  144. package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
  145. package/dist/shared/agent-types.d.ts +2 -0
  146. package/dist/shared/agent-types.d.ts.map +1 -1
  147. package/dist/src/agents/cli-agent-runner.d.ts +2 -0
  148. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  149. package/dist/src/agents/cli-agent-runner.js +4 -0
  150. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  151. package/dist/src/commands/config.d.ts.map +1 -1
  152. package/dist/src/commands/config.js +29 -1
  153. package/dist/src/commands/config.js.map +1 -1
  154. package/dist/src/commands/delegate.d.ts +2 -0
  155. package/dist/src/commands/delegate.d.ts.map +1 -1
  156. package/dist/src/commands/delegate.js +18 -0
  157. package/dist/src/commands/delegate.js.map +1 -1
  158. package/dist/src/commands/launcher.d.ts.map +1 -1
  159. package/dist/src/commands/launcher.js +27 -4
  160. package/dist/src/commands/launcher.js.map +1 -1
  161. package/dist/src/config/cli-tools-config.d.ts +6 -0
  162. package/dist/src/config/cli-tools-config.d.ts.map +1 -1
  163. package/dist/src/config/cli-tools-config.js +2 -0
  164. package/dist/src/config/cli-tools-config.js.map +1 -1
  165. package/dist/src/core/overlay/applier.d.ts.map +1 -1
  166. package/dist/src/core/overlay/applier.js +65 -5
  167. package/dist/src/core/overlay/applier.js.map +1 -1
  168. package/dist/src/core/overlay/loader.d.ts.map +1 -1
  169. package/dist/src/core/overlay/loader.js +9 -4
  170. package/dist/src/core/overlay/loader.js.map +1 -1
  171. package/dist/src/core/overlay/types.d.ts +2 -0
  172. package/dist/src/core/overlay/types.d.ts.map +1 -1
  173. package/dist/src/core/overlay/types.js +2 -0
  174. package/dist/src/core/overlay/types.js.map +1 -1
  175. package/dist/src/tui/tools-ui/ToolsDashboard.d.ts.map +1 -1
  176. package/dist/src/tui/tools-ui/ToolsDashboard.js +1 -1
  177. package/dist/src/tui/tools-ui/ToolsDashboard.js.map +1 -1
  178. package/dist/src/tui/tools-ui/ToolsOverview.d.ts.map +1 -1
  179. package/dist/src/tui/tools-ui/ToolsOverview.js +51 -4
  180. package/dist/src/tui/tools-ui/ToolsOverview.js.map +1 -1
  181. package/package.json +1 -1
  182. package/shared/agent-types.ts +2 -0
  183. package/workflows/delegate-protocol.codex.md +65 -0
  184. package/workflows/issue-analyze.md +2 -3
  185. package/workflows/issue-gaps-analyze.codex.md +260 -0
  186. package/workflows/issue-gaps-analyze.md +214 -0
@@ -1,121 +1,121 @@
1
- ---
2
- name: maestro
3
- description: Intelligent coordinator - analyze intent + read project state → select optimal command chain → dispatch to unified executor
4
- argument-hint: "\"intent text\" [-y] [-c] [--dry-run] [--exec auto|cli|internal] [--tool <name>] [--super]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- - TodoWrite
15
- ---
16
- <purpose>
17
- Orchestrate all maestro commands automatically based on user intent and current project state.
18
- Two routing modes:
19
- 1. **Intent-based**: User describes a goal → classify task type → select/compose command chain → confirm → execute
20
- 2. **State-based**: Read .workflow/state.json → determine next logical step → suggest/execute (triggered by `continue`/`next`)
21
-
22
- Per-step type selection (default: auto):
23
- - **skill**: Execute via Skill() in current session — output visible in conversation, synchronous, user can intervene
24
- - **cli**: Heavy execution steps via CLI delegate — context isolation, template-driven prompts
25
-
26
- Produces session directory at `.workflow/.maestro/{session_id}/` with status.json tracking chain progress.
27
- Dispatches to unified executor (`maestro-ralph-execute`) for sequential step execution with artifact propagation.
28
- </purpose>
29
-
30
- <deferred_reading>
31
- - [maestro.md](~/.maestro/workflows/maestro.md) — read at execution start (Steps 1-3: intent analysis, chain selection, session setup; Step 4 dispatches to unified executor)
32
- - [maestro-super.md](~/.maestro/workflows/maestro-super.md) — read when `--super` flag is active
33
- </deferred_reading>
34
-
35
- <context>
36
- $ARGUMENTS — user intent text, or special keywords.
37
-
38
- **Special keywords:**
39
- - `continue` / `next` / `go` — State-based routing: read state.json, determine next step, execute
40
- - `status` — Shortcut to Skill({ skill: "manage-status" })
41
-
42
- **Flags:**
43
- - `-y` / `--yes` — Auto mode: skip clarification, skip confirmation, auto-skip on errors. Propagates to downstream commands that support it.
44
- - `-c` / `--continue` — Resume previous coordinator session from `.workflow/.maestro/*/status.json`
45
- - `--dry-run` — Show planned chain without executing
46
- - `--exec <mode>` — Execution engine: `auto` (default), `cli`, `internal`. `internal` = Skill() in current session; `cli` = delegate to external CLI. Auto selects per step based on command complexity.
47
- - `--tool <name>` — CLI tool for delegate execution (default: claude). Only used when engine=cli.
48
- - `--super` — Super mode: deliver production-ready complete software system. See Super Mode section below.
49
-
50
- **State files read:**
51
- - `.workflow/state.json` — project state machine + artifact registry
52
- - `.workflow/roadmap.md` — milestone/phase structure
53
- - `.workflow/scratch/*/plan.json` — plan metadata (via artifact registry paths)
54
- </context>
55
-
56
- <execution>
57
- **Resume mode (`-c`):** Skip selection workflow entirely — scan `.workflow/.maestro/` for latest session, then `Skill({ skill: "maestro-ralph-execute" })`. The unified executor discovers the running session and resumes from the next pending step. **End.**
58
-
59
- **Normal mode:** Read `~/.maestro/workflows/maestro.md` from deferred_reading, then follow it completely.
60
-
61
- **Auto mode (`-y`) propagation:**
62
-
63
- When `-y` is active, maestro propagates auto flags to downstream commands. Only commands that explicitly support auto mode receive the flag — others execute normally (no forced flags).
64
-
65
- | Command | Auto Flag | Effect |
66
- |---------|-----------|--------|
67
- | maestro-init | `-y` | Skip interactive questioning |
68
- | maestro-analyze | `-y` | Skip interactive scoping, auto-deepen |
69
- | maestro-brainstorm | `-y` | Skip interactive questions, use defaults |
70
- | maestro-roadmap | `-y` | Skip interactive questions, use defaults (create/revise/review) |
71
- | maestro-ui-design | `-y` | Skip interactive selection, pick top variant |
72
- | maestro-plan | `-y` | Skip confirmations and clarification |
73
- | maestro-execute | `-y` | Skip confirmations, blocked auto-continue |
74
- | maestro-verify | *(none)* | No interactive prompts |
75
- | quality-auto-test | `-y` | Skip plan confirmation |
76
- | quality-review | *(none)* | No interactive prompts, auto-detects level |
77
- | quality-test | `-y --auto-fix` | Auto-trigger gap-fix loop on failures |
78
- | quality-debug | *(none)* | No interactive prompts |
79
- | quality-retrospective | `-y` | Accept all routing recommendations without prompting |
80
- | maestro-milestone-audit | *(none)* | No interactive prompts |
81
- | maestro-milestone-complete | `-y` | Skip knowledge promotion inquiry |
82
- | manage-learn | *(none)* | No interactive prompts |
83
-
84
- Commands not listed (manage-*, spec-*, milestone-*) have no auto flags and execute as-is.
85
-
86
- In auto mode, maestro also:
87
- - Skips intent clarification (workflow Step 2d)
88
- - Skips chain confirmation (workflow Step 3d)
89
- - Auto-skips on step errors (retry once, then skip and continue)
90
-
91
- **Super mode (`--super`):** Read `maestro-super.md` from deferred_reading, then follow it completely.
92
- </execution>
93
-
94
- <error_codes>
95
- | Code | Severity | Description | Recovery |
96
- |------|----------|-------------|----------|
97
- | E001 | error | No intent and project not initialized | Prompt for intent or suggest maestro-init |
98
- | E002 | error | Clarity too low after 2 clarification rounds | Show parsed intent, ask user to rephrase |
99
- | E003 | error | Chain step failed + user chose abort | Record partial progress, suggest resume with -c |
100
- | E004 | error | Resume session not found | Show available sessions |
101
- | W001 | warning | Intent ambiguous, multiple chains possible | Present options, let user choose |
102
- | W002 | warning | Chain step completed with warnings | Log and continue |
103
- | W003 | warning | State suggests different chain than intent | Show discrepancy, let user decide |
104
- </error_codes>
105
-
106
- <success_criteria>
107
- - [ ] Intent classified with task_type, complexity, clarity_score
108
- - [ ] Project state read and incorporated into routing
109
- - [ ] Command chain selected and confirmed (or auto-confirmed with -y)
110
- - [ ] Per-step type selected (auto routes heavy steps to "cli", observable steps to "skill")
111
- - [ ] Auto flags correctly propagated to supporting commands only
112
- - [ ] Session directory created at .workflow/.maestro/{session_id}/
113
- - [ ] status.json created with unified schema (source: "maestro", steps[] with type field)
114
- - [ ] Low-complexity intents routed to maestro-quick
115
- - [ ] All chains dispatched via unified executor (maestro-ralph-execute) with status.json tracking
116
- - [ ] Phase numbers auto-detected and passed to downstream commands
117
- - [ ] (super mode) Requirements expanded and validated via CLI delegate before roadmap creation
118
- - [ ] (super mode) Each milestone scored ≥ 80% before advancing
119
- - [ ] (super mode) All milestones completed with no user intervention
120
- - [ ] (super mode) Final system builds, starts, and passes all tests
121
- </success_criteria>
1
+ ---
2
+ name: maestro
3
+ description: Auto-route intent to optimal command chain
4
+ argument-hint: "\"intent text\" [-y] [-c] [--dry-run] [--exec auto|cli|internal] [--tool <name>] [--super]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ - TodoWrite
15
+ ---
16
+ <purpose>
17
+ Orchestrate all maestro commands automatically based on user intent and current project state.
18
+ Two routing modes:
19
+ 1. **Intent-based**: User describes a goal → classify task type → select/compose command chain → confirm → execute
20
+ 2. **State-based**: Read .workflow/state.json → determine next logical step → suggest/execute (triggered by `continue`/`next`)
21
+
22
+ Per-step type selection (default: auto):
23
+ - **skill**: Execute via Skill() in current session — output visible in conversation, synchronous, user can intervene
24
+ - **cli**: Heavy execution steps via CLI delegate — context isolation, template-driven prompts
25
+
26
+ Produces session directory at `.workflow/.maestro/{session_id}/` with status.json tracking chain progress.
27
+ Dispatches to unified executor (`maestro-ralph-execute`) for sequential step execution with artifact propagation.
28
+ </purpose>
29
+
30
+ <deferred_reading>
31
+ - [maestro.md](~/.maestro/workflows/maestro.md) — read at execution start (Steps 1-3: intent analysis, chain selection, session setup; Step 4 dispatches to unified executor)
32
+ - [maestro-super.md](~/.maestro/workflows/maestro-super.md) — read when `--super` flag is active
33
+ </deferred_reading>
34
+
35
+ <context>
36
+ $ARGUMENTS — user intent text, or special keywords.
37
+
38
+ **Special keywords:**
39
+ - `continue` / `next` / `go` — State-based routing: read state.json, determine next step, execute
40
+ - `status` — Shortcut to Skill({ skill: "manage-status" })
41
+
42
+ **Flags:**
43
+ - `-y` / `--yes` — Auto mode: skip clarification, skip confirmation, auto-skip on errors. Propagates to downstream commands that support it.
44
+ - `-c` / `--continue` — Resume previous coordinator session from `.workflow/.maestro/*/status.json`
45
+ - `--dry-run` — Show planned chain without executing
46
+ - `--exec <mode>` — Execution engine: `auto` (default), `cli`, `internal`. `internal` = Skill() in current session; `cli` = delegate to external CLI. Auto selects per step based on command complexity.
47
+ - `--tool <name>` — CLI tool for delegate execution (default: claude). Only used when engine=cli.
48
+ - `--super` — Super mode: deliver production-ready complete software system. See Super Mode section below.
49
+
50
+ **State files read:**
51
+ - `.workflow/state.json` — project state machine + artifact registry
52
+ - `.workflow/roadmap.md` — milestone/phase structure
53
+ - `.workflow/scratch/*/plan.json` — plan metadata (via artifact registry paths)
54
+ </context>
55
+
56
+ <execution>
57
+ **Resume mode (`-c`):** Skip selection workflow entirely — scan `.workflow/.maestro/` for latest session, then `Skill({ skill: "maestro-ralph-execute" })`. The unified executor discovers the running session and resumes from the next pending step. **End.**
58
+
59
+ **Normal mode:** Read `~/.maestro/workflows/maestro.md` from deferred_reading, then follow it completely.
60
+
61
+ **Auto mode (`-y`) propagation:**
62
+
63
+ When `-y` is active, maestro propagates auto flags to downstream commands. Only commands that explicitly support auto mode receive the flag — others execute normally (no forced flags).
64
+
65
+ | Command | Auto Flag | Effect |
66
+ |---------|-----------|--------|
67
+ | maestro-init | `-y` | Skip interactive questioning |
68
+ | maestro-analyze | `-y` | Skip interactive scoping, auto-deepen |
69
+ | maestro-brainstorm | `-y` | Skip interactive questions, use defaults |
70
+ | maestro-roadmap | `-y` | Skip interactive questions, use defaults (create/revise/review) |
71
+ | maestro-ui-design | `-y` | Skip interactive selection, pick top variant |
72
+ | maestro-plan | `-y` | Skip confirmations and clarification |
73
+ | maestro-execute | `-y` | Skip confirmations, blocked auto-continue |
74
+ | maestro-verify | *(none)* | No interactive prompts |
75
+ | quality-auto-test | `-y` | Skip plan confirmation |
76
+ | quality-review | *(none)* | No interactive prompts, auto-detects level |
77
+ | quality-test | `-y --auto-fix` | Auto-trigger gap-fix loop on failures |
78
+ | quality-debug | *(none)* | No interactive prompts |
79
+ | quality-retrospective | `-y` | Accept all routing recommendations without prompting |
80
+ | maestro-milestone-audit | *(none)* | No interactive prompts |
81
+ | maestro-milestone-complete | `-y` | Skip knowledge promotion inquiry |
82
+ | manage-learn | *(none)* | No interactive prompts |
83
+
84
+ Commands not listed (manage-*, spec-*, milestone-*) have no auto flags and execute as-is.
85
+
86
+ In auto mode, maestro also:
87
+ - Skips intent clarification (workflow Step 2d)
88
+ - Skips chain confirmation (workflow Step 3d)
89
+ - Auto-skips on step errors (retry once, then skip and continue)
90
+
91
+ **Super mode (`--super`):** Read `maestro-super.md` from deferred_reading, then follow it completely.
92
+ </execution>
93
+
94
+ <error_codes>
95
+ | Code | Severity | Description | Recovery |
96
+ |------|----------|-------------|----------|
97
+ | E001 | error | No intent and project not initialized | Prompt for intent or suggest maestro-init |
98
+ | E002 | error | Clarity too low after 2 clarification rounds | Show parsed intent, ask user to rephrase |
99
+ | E003 | error | Chain step failed + user chose abort | Record partial progress, suggest resume with -c |
100
+ | E004 | error | Resume session not found | Show available sessions |
101
+ | W001 | warning | Intent ambiguous, multiple chains possible | Present options, let user choose |
102
+ | W002 | warning | Chain step completed with warnings | Log and continue |
103
+ | W003 | warning | State suggests different chain than intent | Show discrepancy, let user decide |
104
+ </error_codes>
105
+
106
+ <success_criteria>
107
+ - [ ] Intent classified with task_type, complexity, clarity_score
108
+ - [ ] Project state read and incorporated into routing
109
+ - [ ] Command chain selected and confirmed (or auto-confirmed with -y)
110
+ - [ ] Per-step type selected (auto routes heavy steps to "cli", observable steps to "skill")
111
+ - [ ] Auto flags correctly propagated to supporting commands only
112
+ - [ ] Session directory created at .workflow/.maestro/{session_id}/
113
+ - [ ] status.json created with unified schema (source: "maestro", steps[] with type field)
114
+ - [ ] Low-complexity intents routed to maestro-quick
115
+ - [ ] All chains dispatched via unified executor (maestro-ralph-execute) with status.json tracking
116
+ - [ ] Phase numbers auto-detected and passed to downstream commands
117
+ - [ ] (super mode) Requirements expanded and validated via CLI delegate before roadmap creation
118
+ - [ ] (super mode) Each milestone scored ≥ 80% before advancing
119
+ - [ ] (super mode) All milestones completed with no user intervention
120
+ - [ ] (super mode) Final system builds, starts, and passes all tests
121
+ </success_criteria>
@@ -1,75 +1,75 @@
1
- ---
2
- name: manage-codebase-rebuild
3
- description: Full rebuild of codebase documentation - scans project, builds doc-index.json, generates all tech-registry and feature-maps
4
- argument-hint: "[--focus <area>] [--force] [--skip-commit]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
-
16
- <purpose>
17
- Perform a full rebuild of the .workflow/codebase/ documentation system from scratch. Scans the entire project source to identify components, features, requirements, and ADRs, then spawns parallel workflow-codebase-mapper agents to generate all documentation artifacts. This is a destructive operation that overwrites existing codebase docs.
18
-
19
- Can run before or after `/maestro-init` -- works on any codebase with source files. Also serves the previous `spec-map` use case via `--focus <area>` for scoped dimension analysis.
20
- </purpose>
21
-
22
- <required_reading>
23
- @~/.maestro/workflows/codebase-rebuild.md
24
- </required_reading>
25
-
26
- <context>
27
- $ARGUMENTS -- optional flags.
28
-
29
- **Flags:**
30
- - `--focus <area>` -- Scope mapper agents to a single domain (e.g., `auth`, `api`, `database`). When omitted, all 4 mappers run on the full codebase.
31
- - `--force` -- Skip confirmation prompt and proceed directly
32
- - `--skip-commit` -- Do not auto-commit after rebuild
33
-
34
- **Mapper agent assignments (when `--focus` omitted):**
35
- | Agent | Focus | Output file |
36
- |-------|-------|-------------|
37
- | Mapper 1 | **Tech stack** -- languages, frameworks, dependencies, build system | `tech-stack.md` |
38
- | Mapper 2 | **Architecture** -- layers, module boundaries, data flow, entry points | `architecture.md` |
39
- | Mapper 3 | **Features** -- capabilities, API surface, user-facing functionality | `features.md` |
40
- | Mapper 4 | **Cross-cutting concerns** -- error handling, logging, auth, config, testing | `concerns.md` |
41
-
42
- **State files:**
43
- - `.workflow/` -- must be initialized (project.md, state.json exist)
44
- - `.workflow/codebase/` -- target directory (will be cleared and rebuilt)
45
- - `.workflow/codebase/doc-index.json` -- generated documentation index
46
- </context>
47
-
48
- <execution>
49
- Follow '~/.maestro/workflows/codebase-rebuild.md' completely.
50
-
51
- **When `--focus <area>` is set:** pass the area string to each mapper agent as scoping context; only regenerate the docs relevant to that scope (leave others untouched unless missing).
52
-
53
- **Next-step routing on completion:**
54
- - View updated project state → `/manage-status`
55
- - Incremental updates later → `/manage-codebase-refresh`
56
- </execution>
57
-
58
- <error_codes>
59
- | Code | Severity | Condition | Recovery |
60
- |------|----------|-----------|----------|
61
- | E001 | error | .workflow/ not initialized | Run maestro-init first to create .workflow/ |
62
- | W001 | warning | A mapper agent failed (partial results) | Retry failed mapper or accept partial results |
63
- | W002 | warning | `.workflow/codebase/` already exists -- user prompted for rebuild/skip | check_existing |
64
- </error_codes>
65
-
66
- <success_criteria>
67
- - [ ] User confirmed rebuild (or --force used)
68
- - [ ] .workflow/codebase/ cleared and rebuilt from scratch (or scoped subset when --focus set)
69
- - [ ] All 4 mapper agents spawned (failures logged as W001)
70
- - [ ] doc-index.json generated and valid
71
- - [ ] All documentation files regenerated
72
- - [ ] state.json updated with rebuild timestamp
73
- - [ ] project.md Tech Stack section updated if changes detected
74
- - [ ] Next step routing: `/manage-status` or `/manage-codebase-refresh` for incremental updates later
75
- </success_criteria>
1
+ ---
2
+ name: manage-codebase-rebuild
3
+ description: Rebuild all codebase documentation from scratch
4
+ argument-hint: "[--focus <area>] [--force] [--skip-commit]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+
16
+ <purpose>
17
+ Perform a full rebuild of the .workflow/codebase/ documentation system from scratch. Scans the entire project source to identify components, features, requirements, and ADRs, then spawns parallel workflow-codebase-mapper agents to generate all documentation artifacts. This is a destructive operation that overwrites existing codebase docs.
18
+
19
+ Can run before or after `/maestro-init` -- works on any codebase with source files. Also serves the previous `spec-map` use case via `--focus <area>` for scoped dimension analysis.
20
+ </purpose>
21
+
22
+ <required_reading>
23
+ @~/.maestro/workflows/codebase-rebuild.md
24
+ </required_reading>
25
+
26
+ <context>
27
+ $ARGUMENTS -- optional flags.
28
+
29
+ **Flags:**
30
+ - `--focus <area>` -- Scope mapper agents to a single domain (e.g., `auth`, `api`, `database`). When omitted, all 4 mappers run on the full codebase.
31
+ - `--force` -- Skip confirmation prompt and proceed directly
32
+ - `--skip-commit` -- Do not auto-commit after rebuild
33
+
34
+ **Mapper agent assignments (when `--focus` omitted):**
35
+ | Agent | Focus | Output file |
36
+ |-------|-------|-------------|
37
+ | Mapper 1 | **Tech stack** -- languages, frameworks, dependencies, build system | `tech-stack.md` |
38
+ | Mapper 2 | **Architecture** -- layers, module boundaries, data flow, entry points | `architecture.md` |
39
+ | Mapper 3 | **Features** -- capabilities, API surface, user-facing functionality | `features.md` |
40
+ | Mapper 4 | **Cross-cutting concerns** -- error handling, logging, auth, config, testing | `concerns.md` |
41
+
42
+ **State files:**
43
+ - `.workflow/` -- must be initialized (project.md, state.json exist)
44
+ - `.workflow/codebase/` -- target directory (will be cleared and rebuilt)
45
+ - `.workflow/codebase/doc-index.json` -- generated documentation index
46
+ </context>
47
+
48
+ <execution>
49
+ Follow '~/.maestro/workflows/codebase-rebuild.md' completely.
50
+
51
+ **When `--focus <area>` is set:** pass the area string to each mapper agent as scoping context; only regenerate the docs relevant to that scope (leave others untouched unless missing).
52
+
53
+ **Next-step routing on completion:**
54
+ - View updated project state → `/manage-status`
55
+ - Incremental updates later → `/manage-codebase-refresh`
56
+ </execution>
57
+
58
+ <error_codes>
59
+ | Code | Severity | Condition | Recovery |
60
+ |------|----------|-----------|----------|
61
+ | E001 | error | .workflow/ not initialized | Run maestro-init first to create .workflow/ |
62
+ | W001 | warning | A mapper agent failed (partial results) | Retry failed mapper or accept partial results |
63
+ | W002 | warning | `.workflow/codebase/` already exists -- user prompted for rebuild/skip | check_existing |
64
+ </error_codes>
65
+
66
+ <success_criteria>
67
+ - [ ] User confirmed rebuild (or --force used)
68
+ - [ ] .workflow/codebase/ cleared and rebuilt from scratch (or scoped subset when --focus set)
69
+ - [ ] All 4 mapper agents spawned (failures logged as W001)
70
+ - [ ] doc-index.json generated and valid
71
+ - [ ] All documentation files regenerated
72
+ - [ ] state.json updated with rebuild timestamp
73
+ - [ ] project.md Tech Stack section updated if changes detected
74
+ - [ ] Next step routing: `/manage-status` or `/manage-codebase-refresh` for incremental updates later
75
+ </success_criteria>
@@ -1,57 +1,57 @@
1
- ---
2
- name: manage-codebase-refresh
3
- description: Incremental refresh of codebase docs based on recent changes
4
- argument-hint: "[--since <date>] [--deep]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
-
16
- <purpose>
17
- Incrementally refresh .workflow/codebase/ documentation based on changes since the last rebuild or refresh. Detects which files have changed (via git diff), identifies which codebase docs are affected, selectively re-runs mapper agents on those areas only, and updates timestamps. Much faster than a full rebuild for ongoing maintenance.
18
- </purpose>
19
-
20
- <required_reading>
21
- @~/.maestro/workflows/codebase-refresh.md
22
- </required_reading>
23
-
24
- <context>
25
- $ARGUMENTS -- optional flags.
26
-
27
- **Flags:**
28
- - `--since <date>` -- Override change detection window (ISO date or relative like "3d")
29
- - `--deep` -- Force deeper re-scan even for files with minor changes
30
-
31
- **State files:**
32
- - `.workflow/` -- must be initialized
33
- - `.workflow/codebase/` -- must contain existing docs (from prior rebuild)
34
- - `.workflow/codebase/doc-index.json` -- documentation index with timestamps
35
- - `.workflow/state.json` -- contains `codebase_last_rebuilt` timestamp
36
- </context>
37
-
38
- <execution>
39
- Follow '~/.maestro/workflows/codebase-refresh.md' completely.
40
- </execution>
41
-
42
- <error_codes>
43
- | Code | Meaning |
44
- |------|----------------------------------------------------------|
45
- | E001 | .workflow/ not initialized |
46
- | E002 | No codebase/ docs exist, use codebase-rebuild instead |
47
- | W001 | No changes detected since last refresh |
48
- </error_codes>
49
-
50
- <success_criteria>
51
- - [ ] Changed files detected via git diff since last refresh
52
- - [ ] Affected documentation entries identified from doc-index.json
53
- - [ ] Only affected docs refreshed (selective mapper re-run)
54
- - [ ] doc-index.json timestamps updated per affected entry
55
- - [ ] state.json updated with codebase_last_refreshed timestamp
56
- - [ ] Next step routing: `/manage-status` or `/spec-load` to use updated docs
57
- </success_criteria>
1
+ ---
2
+ name: manage-codebase-refresh
3
+ description: Refresh codebase docs from recent changes
4
+ argument-hint: "[--since <date>] [--deep]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+
16
+ <purpose>
17
+ Incrementally refresh .workflow/codebase/ documentation based on changes since the last rebuild or refresh. Detects which files have changed (via git diff), identifies which codebase docs are affected, selectively re-runs mapper agents on those areas only, and updates timestamps. Much faster than a full rebuild for ongoing maintenance.
18
+ </purpose>
19
+
20
+ <required_reading>
21
+ @~/.maestro/workflows/codebase-refresh.md
22
+ </required_reading>
23
+
24
+ <context>
25
+ $ARGUMENTS -- optional flags.
26
+
27
+ **Flags:**
28
+ - `--since <date>` -- Override change detection window (ISO date or relative like "3d")
29
+ - `--deep` -- Force deeper re-scan even for files with minor changes
30
+
31
+ **State files:**
32
+ - `.workflow/` -- must be initialized
33
+ - `.workflow/codebase/` -- must contain existing docs (from prior rebuild)
34
+ - `.workflow/codebase/doc-index.json` -- documentation index with timestamps
35
+ - `.workflow/state.json` -- contains `codebase_last_rebuilt` timestamp
36
+ </context>
37
+
38
+ <execution>
39
+ Follow '~/.maestro/workflows/codebase-refresh.md' completely.
40
+ </execution>
41
+
42
+ <error_codes>
43
+ | Code | Meaning |
44
+ |------|----------------------------------------------------------|
45
+ | E001 | .workflow/ not initialized |
46
+ | E002 | No codebase/ docs exist, use codebase-rebuild instead |
47
+ | W001 | No changes detected since last refresh |
48
+ </error_codes>
49
+
50
+ <success_criteria>
51
+ - [ ] Changed files detected via git diff since last refresh
52
+ - [ ] Affected documentation entries identified from doc-index.json
53
+ - [ ] Only affected docs refreshed (selective mapper re-run)
54
+ - [ ] doc-index.json timestamps updated per affected entry
55
+ - [ ] state.json updated with codebase_last_refreshed timestamp
56
+ - [ ] Next step routing: `/manage-status` or `/spec-load` to use updated docs
57
+ </success_criteria>