maestro-flow-one 0.2.33 → 0.2.35

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 (48) hide show
  1. package/maestro-flow/commands/learn/investigate.md +151 -152
  2. package/maestro-flow/commands/learn/second-opinion.md +118 -122
  3. package/maestro-flow/commands/lifecycle/analyze.md +215 -266
  4. package/maestro-flow/commands/lifecycle/blueprint.md +189 -204
  5. package/maestro-flow/commands/lifecycle/brainstorm.md +209 -213
  6. package/maestro-flow/commands/lifecycle/companion.md +531 -531
  7. package/maestro-flow/commands/lifecycle/composer.md +188 -179
  8. package/maestro-flow/commands/lifecycle/execute.md +183 -184
  9. package/maestro-flow/commands/lifecycle/fork.md +111 -110
  10. package/maestro-flow/commands/lifecycle/grill.md +175 -176
  11. package/maestro-flow/commands/lifecycle/guard.md +103 -102
  12. package/maestro-flow/commands/lifecycle/impeccable.md +311 -268
  13. package/maestro-flow/commands/lifecycle/init.md +130 -131
  14. package/maestro-flow/commands/lifecycle/merge.md +87 -80
  15. package/maestro-flow/commands/lifecycle/next.md +253 -257
  16. package/maestro-flow/commands/lifecycle/overlay.md +188 -178
  17. package/maestro-flow/commands/lifecycle/plan.md +225 -211
  18. package/maestro-flow/commands/lifecycle/quick.md +83 -77
  19. package/maestro-flow/commands/lifecycle/roadmap.md +173 -186
  20. package/maestro-flow/commands/lifecycle/swarm-workflow.md +243 -264
  21. package/maestro-flow/commands/lifecycle/tools-execute.md +122 -117
  22. package/maestro-flow/commands/lifecycle/tools-register.md +162 -157
  23. package/maestro-flow/commands/lifecycle/ui-codify.md +117 -100
  24. package/maestro-flow/commands/lifecycle/universal-workflow.md +548 -561
  25. package/maestro-flow/commands/lifecycle/update.md +122 -119
  26. package/maestro-flow/commands/manage/codebase-rebuild.md +87 -85
  27. package/maestro-flow/commands/manage/harvest.md +97 -95
  28. package/maestro-flow/commands/manage/issue-discover.md +83 -81
  29. package/maestro-flow/commands/manage/issue.md +72 -73
  30. package/maestro-flow/commands/manage/kg-extractors.md +128 -0
  31. package/maestro-flow/commands/manage/knowhow-capture.md +92 -82
  32. package/maestro-flow/commands/manage/knowhow.md +83 -79
  33. package/maestro-flow/commands/manage/knowledge-audit.md +105 -88
  34. package/maestro-flow/commands/manage/status.md +62 -52
  35. package/maestro-flow/commands/manage/wiki.md +82 -71
  36. package/maestro-flow/commands/milestone/audit.md +4 -10
  37. package/maestro-flow/commands/milestone/complete.md +6 -7
  38. package/maestro-flow/commands/milestone/release.md +136 -145
  39. package/maestro-flow/commands/quality/auto-test.md +153 -136
  40. package/maestro-flow/commands/quality/debug.md +159 -120
  41. package/maestro-flow/commands/quality/refactor.md +105 -67
  42. package/maestro-flow/commands/quality/retrospective.md +123 -77
  43. package/maestro-flow/commands/quality/review.md +155 -128
  44. package/maestro-flow/commands/quality/sync.md +88 -52
  45. package/maestro-flow/commands/quality/test.md +147 -117
  46. package/maestro-flow/commands/spec/add.md +77 -70
  47. package/maestro-flow/commands/spec/setup.md +49 -52
  48. package/package.json +1 -1
@@ -1,186 +1,173 @@
1
- ---
2
- name: maestro-roadmap
3
- description: Generate roadmap with milestone/phase structure from requirements or upstream context
4
- argument-hint: "<requirement> [-y] [-c] [-m progressive|direct|auto] [--from <source>] [--revise [instructions]] [--review]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
- <purpose>
16
- Generate a milestone/phase roadmap from requirements or upstream context. Produces `.workflow/roadmap.md` with Milestone > Phase hierarchy ready for maestro-analyze and maestro-plan.
17
-
18
- Operation modes:
19
- - **Create** (default): Build roadmap from requirements or upstream context
20
- - **Revise** (`--revise`): Modify existing roadmap while preserving completed phase progress
21
- - **Review** (`--review`): Health assessment of current roadmap (read-only)
22
-
23
- For formal specification documents (Product Brief, PRD, Architecture, Epics), use `/maestro-blueprint` instead.
24
- </purpose>
25
-
26
- <required_reading>
27
- @~/.maestro/workflows/roadmap-common.md
28
- @~/.maestro/templates/roadmap.md
29
- </required_reading>
30
-
31
- <deferred_reading>
32
- - [roadmap.md](~/.maestro/workflows/roadmap.md) — read for roadmap generation workflow
33
- </deferred_reading>
34
-
35
- <context>
36
- $ARGUMENTS -- requirement text, @file reference, or upstream context source.
37
-
38
- **Flags:**
39
-
40
- | Flag | Effect | Default |
41
- |------|--------|---------|
42
- | `-y` / `--yes` | Auto mode skip interactive questions, use recommended defaults | false |
43
- | `-c` / `--continue` | Resume from last checkpoint | false |
44
- | `-m progressive\|direct\|auto` | Decomposition strategy | auto |
45
- | `--from <source>` | Load upstream context package (brainstorm:ID, blueprint:BLP-xxx, analyze:ANL-xxx, @file, or path). Consumes context-package.json | — |
46
- | `--from-brainstorm SESSION-ID` | Backward compat alias for `--from brainstorm:ID` | — |
47
- | `--revise [instructions]` | Revise existing roadmap. If instructions provided, apply directly. If omitted, ask user. Preserves completed phase progress. | — |
48
- | `--review` | Roadmap health assessment (read-only) | |
49
-
50
- **Input types:**
51
- - Direct text: `"Implement user authentication system with OAuth and 2FA"`
52
- - File reference: `@requirements.md`
53
- - Context import: `--from brainstorm:BRN-001` or `--from analyze:ANL-xxx` or `--from blueprint:BLP-xxx`
54
- - No args + `--revise` / `--review`: Operate on existing `.workflow/roadmap.md`
55
-
56
- **Pipeline position:**
57
- ```
58
- maestro-brainstorm ─┐
59
- maestro-blueprint ─┤ (optional upstream, parallel)
60
- maestro-analyze ─┘ context-package.json
61
-
62
- maestro-roadmap.workflow/roadmap.md (Milestone > Phase hierarchy)
63
-
64
- maestro-analyze {phase} maestro-plan maestro-execute
65
- ```
66
-
67
- ### Pre-load
68
-
69
- 1. **Specs**: `maestro spec load --category arch` — load architecture constraints for phase decomposition
70
- 2. **Wiki search**: `maestro search "{requirement keywords}" --json` → prior knowledge
71
- 3. All optionalproceed without if unavailable
72
- </context>
73
-
74
- <interview_protocol>
75
- Follows @~/.maestro/workflows/interview-mechanics.md standard.
76
-
77
- **Interaction mode**: convergent menu-driven
78
- **Decision tree** (strict order): mode (create / revise / review) → requirement scope (MVP / complete / phased) → decomposition strategy (progressive / direct / auto) → milestone boundaries → phase dependencies and order
79
- **Scope guard**: only roadmap shape; do not pre-resolve intra-phase task breakdown (belongs to plan)
80
- **Writeback target**: .workflow/roadmap.md "Roadmap Decisions" section (create if absent)
81
- **Additional skip conditions**: --revise, --review (skip to respective mode)
82
- **Exit condition**: on consensus or explicit user signal → finalize Roadmap Decisions section
83
- </interview_protocol>
84
-
85
- <execution>
86
-
87
- 1. Read `@~/.maestro/workflows/roadmap-common.md` (always shared logic)
88
- 2. Read `@~/.maestro/workflows/roadmap.md`, follow its process
89
-
90
- Sub-modes:
91
- - **Create** (default): Build roadmap from requirements or upstream context
92
- - **Revise** (`--revise`): Follow workflow roadmap.md "Mode: Revise" section
93
- - **Review** (`--review`): Follow workflow roadmap.md "Mode: Review" section
94
-
95
- ### Phase Gates (MANDATORY, BLOCKING Create mode)
96
-
97
- **GATE 1: Input Decomposition**
98
- - REQUIRED: Requirement parsed with goal, constraints, stakeholders.
99
- - REQUIRED: Upstream context loaded via --from (if specified).
100
-
101
- **GATE 2: Decomposition → Refinement**
102
- - REQUIRED: Milestones defined with deliverable targets.
103
- - REQUIRED: Phases defined within milestones with dependencies.
104
- - REQUIRED: Every Active requirement from project.md mapped to exactly one phase.
105
- - REQUIRED: No circular dependencies in phase ordering.
106
-
107
- **GATE 3: Refinement → Completion**
108
- - REQUIRED: User approved roadmap (or auto-approved with -y).
109
- - REQUIRED: `.workflow/roadmap.md` written with Milestone > Phase hierarchy.
110
- - REQUIRED: Artifact registered in state.json with milestone entries.
111
-
112
- ### Artifact Verification (before completion)
113
-
114
- ```
115
- REQUIRED_ARTIFACTS = [
116
- ".workflow/roadmap.md" // Milestone > Phase hierarchy with progress table
117
- ]
118
- ```
119
- If missing: DO NOT report completion.
120
-
121
- </execution>
122
-
123
- <completion>
124
- ### Standalone report
125
-
126
- ```
127
- === ROADMAP READY ===
128
- Milestones: {count}
129
- Phases: {total_phases}
130
- Strategy: {progressive|direct|auto}
131
- Output: .workflow/roadmap.md
132
- --- COMPLETION STATUS ---
133
- Status: {DONE|DONE_WITH_CONCERNS}
134
- Concerns: {if any}
135
- ```
136
-
137
- ### Ralph-invoked completion
138
-
139
- End the step by calling the CLI (no text block output):
140
- ```
141
- maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
142
- ```
143
-
144
- Status verdicts:
145
- - **DONE** Normal completion
146
- - **DONE_WITH_CONCERNS** — Completed with caveats; pass `--concerns`
147
- - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
148
- - **BLOCKED** — External hard blocker; pass `--reason`
149
-
150
- ### Next-step routing
151
-
152
- | Condition | Suggestion |
153
- |-----------|-----------|
154
- | Roadmap approved, need analysis | `/maestro-analyze 1` |
155
- | Simple project, ready to plan | `/maestro-plan 1` |
156
- | Need UI design first | `/maestro-impeccable build` |
157
- | View project dashboard | `/manage-status` |
158
- | Need formal spec documents | `/maestro-blueprint` |
159
- </completion>
160
-
161
- <error_codes>
162
- | Code | Severity | Condition | Recovery |
163
- |------|----------|-----------|----------|
164
- | E001 | error | Requirement/idea text or @file required | Prompt user for input |
165
- | E002 | error | Context source not found (--from / --from-brainstorm) | Show available sessions/sources |
166
- | E003 | error | Circular dependency detected in phases | Prompt user to re-decompose |
167
- | E004 | error | roadmap.md not found (--revise/--review) | Run maestro-roadmap first |
168
- | E005 | error | Revision invalidates completed phase work | Warn user, ask to confirm or adjust |
169
- | W001 | warning | CLI analysis failed, using fallback | Continue with available data |
170
- | W002 | warning | Max refinement rounds (5) reached | Force proceed with current roadmap |
171
- | W005 | warning | External research agent failed | Continue without apiResearchContext |
172
- </error_codes>
173
-
174
- <success_criteria>
175
- - [ ] Interactive mode: interview decision table appended to `.workflow/roadmap.md` "Roadmap Decisions" section
176
- - [ ] Requirement parsed with goal, constraints, stakeholders
177
- - [ ] Milestones defined with deliverable targets and version tags
178
- - [ ] Decomposition strategy selected (progressive or direct)
179
- - [ ] Phases defined within milestones with success criteria, dependencies, and requirement mappings
180
- - [ ] Every Active requirement from project.md mapped to exactly one phase
181
- - [ ] No circular dependencies in phase ordering
182
- - [ ] User approved roadmap (or auto-approved with -y)
183
- - [ ] `.workflow/roadmap.md` written with Milestone > Phase hierarchy, scope decisions, and progress table
184
- - [ ] No phase directories created (phases are labels in roadmap, not directories)
185
- - [ ] Artifact registered in state.json with milestone entries
186
- </success_criteria>
1
+ ---
2
+ name: maestro-roadmap
3
+ description: Generate roadmap with milestone/phase structure from requirements or upstream context
4
+ argument-hint: "<requirement> [-y] [-c] [-m progressive|direct|auto] [--from <source>] [--revise [instructions]] [--review]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+ <purpose>
16
+ Generate milestone/phase roadmap from requirements or upstream context. Three modes: create (default), revise (`--revise`), review (`--review`). For formal spec documents, use `/maestro-blueprint`.
17
+
18
+ Pipeline: brainstorm/blueprint/analyze → **roadmap** → analyze {phase} → plan → execute.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/roadmap-common.md
23
+ @~/.maestro/templates/roadmap.md
24
+ </required_reading>
25
+
26
+ <deferred_reading>
27
+ - [roadmap.md](~/.maestro/workflows/roadmap.md) — read for roadmap generation workflow
28
+ </deferred_reading>
29
+
30
+ <context>
31
+ $ARGUMENTS -- requirement text, @file reference, or upstream context source.
32
+
33
+ **Flags:**
34
+
35
+ | Flag | Effect | Default |
36
+ |------|--------|---------|
37
+ | `-y` / `--yes` | Auto mode — skip interactive questions, use recommended defaults | false |
38
+ | `-c` / `--continue` | Resume from last checkpoint | false |
39
+ | `-m progressive\|direct\|auto` | Decomposition strategy | auto |
40
+ | `--from <source>` | Load upstream context package (brainstorm:ID, blueprint:BLP-xxx, analyze:ANL-xxx, @file, or path). Consumes context-package.json | |
41
+ | `--from-brainstorm SESSION-ID` | Backward compat alias for `--from brainstorm:ID` | — |
42
+ | `--revise [instructions]` | Revise existing roadmap. If instructions provided, apply directly. If omitted, ask user. Preserves completed phase progress. | |
43
+ | `--review` | Roadmap health assessment (read-only) | |
44
+
45
+ **Input types:**
46
+ - Direct text: `"Implement user authentication system with OAuth and 2FA"`
47
+ - File reference: `@requirements.md`
48
+ - Context import: `--from brainstorm:BRN-001` or `--from analyze:ANL-xxx` or `--from blueprint:BLP-xxx`
49
+ - No args + `--revise` / `--review`: Operate on existing `.workflow/roadmap.md`
50
+
51
+ ### Pre-load
52
+
53
+ 1. **Specs**: `maestro spec load --category arch` load architecture constraints for phase decomposition
54
+ 2. **Wiki search**: `maestro search "{requirement keywords}" --json` prior knowledge
55
+ 3. All optional — proceed without if unavailable
56
+ </context>
57
+
58
+ <interview_protocol>
59
+ Follows @~/.maestro/workflows/interview-mechanics.md standard.
60
+
61
+ **Interaction mode**: convergent menu-driven
62
+ **Decision tree** (strict order): mode (create / revise / review) requirement scope (MVP / complete / phased) → decomposition strategy (progressive / direct / auto) → milestone boundaries → phase dependencies and order
63
+ **Scope guard**: only roadmap shape; do not pre-resolve intra-phase task breakdown (belongs to plan)
64
+ **Writeback target**: .workflow/roadmap.md "Roadmap Decisions" section (create if absent)
65
+ **Additional skip conditions**: --revise, --review (skip to respective mode)
66
+ **Exit condition**: on consensus or explicit user signal → finalize Roadmap Decisions section
67
+ </interview_protocol>
68
+
69
+ <execution>
70
+
71
+ 1. Read `@~/.maestro/workflows/roadmap-common.md` (always shared logic)
72
+ 2. Read `@~/.maestro/workflows/roadmap.md`, follow its process
73
+
74
+ Sub-modes:
75
+ - **Create** (default): Build roadmap from requirements or upstream context
76
+ - **Revise** (`--revise`): Follow workflow roadmap.md "Mode: Revise" section
77
+ - **Review** (`--review`): Follow workflow roadmap.md "Mode: Review" section
78
+
79
+ ### Phase Gates (MANDATORY, BLOCKING Create mode)
80
+
81
+ **GATE 1: Input Decomposition**
82
+ - REQUIRED: Requirement parsed with goal, constraints, stakeholders.
83
+ - REQUIRED: Upstream context loaded via --from (if specified).
84
+ - BLOCKED if missing: cannot decompose without parsed requirement.
85
+
86
+ **GATE 2: Decomposition → Refinement**
87
+ - REQUIRED: Milestones defined with deliverable targets.
88
+ - REQUIRED: Phases defined within milestones with dependencies.
89
+ - REQUIRED: Every Active requirement from project.md mapped to exactly one phase.
90
+ - REQUIRED: No circular dependencies in phase ordering (E003 if detected).
91
+ - BLOCKED if incomplete: finish milestone/phase decomposition before refinement.
92
+
93
+ **GATE 3: Refinement Completion**
94
+ - REQUIRED: User approved roadmap (or auto-approved with -y).
95
+ - REQUIRED: `.workflow/roadmap.md` written with Milestone > Phase hierarchy.
96
+ - REQUIRED: Artifact registered in state.json with milestone entries.
97
+ - BLOCKED if missing: do not report completion without written roadmap.
98
+
99
+ ### Artifact Verification (before completion)
100
+
101
+ ```
102
+ REQUIRED_ARTIFACTS = [
103
+ ".workflow/roadmap.md" // Milestone > Phase hierarchy with progress table
104
+ ]
105
+ ```
106
+ If missing: DO NOT report completion.
107
+
108
+ </execution>
109
+
110
+ <completion>
111
+ ### Standalone report
112
+
113
+ ```
114
+ === ROADMAP READY ===
115
+ Milestones: {count}
116
+ Phases: {total_phases}
117
+ Strategy: {progressive|direct|auto}
118
+ Output: .workflow/roadmap.md
119
+ --- COMPLETION STATUS ---
120
+ Status: {DONE|DONE_WITH_CONCERNS}
121
+ Concerns: {if any}
122
+ ```
123
+
124
+ ### Ralph-invoked completion
125
+
126
+ End the step by calling the CLI (no text block output):
127
+ ```
128
+ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
129
+ ```
130
+
131
+ Status verdicts:
132
+ - **DONE** Normal completion
133
+ - **DONE_WITH_CONCERNS** — Completed with caveats; pass `--concerns`
134
+ - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
135
+ - **BLOCKED** — External hard blocker; pass `--reason`
136
+
137
+ ### Next-step routing
138
+
139
+ | Condition | Suggestion |
140
+ |-----------|-----------|
141
+ | Roadmap approved, need analysis | `/maestro-analyze 1` |
142
+ | Simple project, ready to plan | `/maestro-plan 1` |
143
+ | Need UI design first | `/maestro-impeccable build` |
144
+ | View project dashboard | `/manage-status` |
145
+ | Need formal spec documents | `/maestro-blueprint` |
146
+ </completion>
147
+
148
+ <error_codes>
149
+ | Code | Severity | Condition | Recovery |
150
+ |------|----------|-----------|----------|
151
+ | E001 | error | Requirement/idea text or @file required | Prompt user for input |
152
+ | E002 | error | Context source not found (--from / --from-brainstorm) | Show available sessions/sources |
153
+ | E003 | error | Circular dependency detected in phases | Prompt user to re-decompose |
154
+ | E004 | error | roadmap.md not found (--revise/--review) | Run maestro-roadmap first |
155
+ | E005 | error | Revision invalidates completed phase work | Warn user, ask to confirm or adjust |
156
+ | W001 | warning | CLI analysis failed, using fallback | Continue with available data |
157
+ | W002 | warning | Max refinement rounds (5) reached | Force proceed with current roadmap |
158
+ | W005 | warning | External research agent failed | Continue without apiResearchContext |
159
+ </error_codes>
160
+
161
+ <success_criteria>
162
+ - [ ] Interactive mode: interview decision table appended to `.workflow/roadmap.md` "Roadmap Decisions" section
163
+ - [ ] Requirement parsed with goal, constraints, stakeholders
164
+ - [ ] Milestones defined with deliverable targets and version tags
165
+ - [ ] Decomposition strategy selected (progressive or direct)
166
+ - [ ] Phases defined within milestones with success criteria, dependencies, and requirement mappings
167
+ - [ ] Every Active requirement from project.md mapped to exactly one phase
168
+ - [ ] No circular dependencies in phase ordering
169
+ - [ ] User approved roadmap (or auto-approved with -y)
170
+ - [ ] `.workflow/roadmap.md` written with Milestone > Phase hierarchy, scope decisions, and progress table
171
+ - [ ] No phase directories created (phases are labels in roadmap, not directories)
172
+ - [ ] Artifact registered in state.json with milestone entries
173
+ </success_criteria>