maestro-flow-one 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +173 -0
- package/bin/maestro-flow.js +730 -0
- package/claude/maestro-flow/SKILL.md +239 -0
- package/claude/maestro-flow/chains/templates.json +256 -0
- package/claude/maestro-flow/commands/learn/decompose.md +176 -0
- package/claude/maestro-flow/commands/learn/follow.md +167 -0
- package/claude/maestro-flow/commands/learn/investigate.md +221 -0
- package/claude/maestro-flow/commands/learn/retro.md +303 -0
- package/claude/maestro-flow/commands/learn/second-opinion.md +167 -0
- package/claude/maestro-flow/commands/lifecycle/amend.md +300 -0
- package/claude/maestro-flow/commands/lifecycle/analyze.md +126 -0
- package/claude/maestro-flow/commands/lifecycle/brainstorm.md +100 -0
- package/claude/maestro-flow/commands/lifecycle/composer.md +354 -0
- package/claude/maestro-flow/commands/lifecycle/execute.md +114 -0
- package/claude/maestro-flow/commands/lifecycle/fork.md +86 -0
- package/claude/maestro-flow/commands/lifecycle/init.md +78 -0
- package/claude/maestro-flow/commands/lifecycle/learn.md +140 -0
- package/claude/maestro-flow/commands/lifecycle/link-coordinate.md +71 -0
- package/claude/maestro-flow/commands/lifecycle/merge.md +61 -0
- package/claude/maestro-flow/commands/lifecycle/overlay.md +178 -0
- package/claude/maestro-flow/commands/lifecycle/plan.md +138 -0
- package/claude/maestro-flow/commands/lifecycle/player.md +404 -0
- package/claude/maestro-flow/commands/lifecycle/quick.md +56 -0
- package/claude/maestro-flow/commands/lifecycle/roadmap.md +164 -0
- package/claude/maestro-flow/commands/lifecycle/ui-design.md +93 -0
- package/claude/maestro-flow/commands/lifecycle/update.md +176 -0
- package/claude/maestro-flow/commands/lifecycle/verify.md +90 -0
- package/claude/maestro-flow/commands/manage/codebase-rebuild.md +75 -0
- package/claude/maestro-flow/commands/manage/codebase-refresh.md +57 -0
- package/claude/maestro-flow/commands/manage/harvest.md +94 -0
- package/claude/maestro-flow/commands/manage/issue-discover.md +77 -0
- package/claude/maestro-flow/commands/manage/issue.md +73 -0
- package/claude/maestro-flow/commands/manage/knowhow-capture.md +193 -0
- package/claude/maestro-flow/commands/manage/knowhow.md +77 -0
- package/claude/maestro-flow/commands/manage/learn.md +67 -0
- package/claude/maestro-flow/commands/manage/status.md +51 -0
- package/claude/maestro-flow/commands/manage/wiki.md +62 -0
- package/claude/maestro-flow/commands/milestone/audit.md +68 -0
- package/claude/maestro-flow/commands/milestone/complete.md +75 -0
- package/claude/maestro-flow/commands/milestone/release.md +96 -0
- package/claude/maestro-flow/commands/quality/auto-test.md +124 -0
- package/claude/maestro-flow/commands/quality/debug.md +115 -0
- package/claude/maestro-flow/commands/quality/refactor.md +55 -0
- package/claude/maestro-flow/commands/quality/retrospective.md +78 -0
- package/claude/maestro-flow/commands/quality/review.md +108 -0
- package/claude/maestro-flow/commands/quality/sync.md +51 -0
- package/claude/maestro-flow/commands/quality/test.md +103 -0
- package/claude/maestro-flow/commands/spec/add.md +49 -0
- package/claude/maestro-flow/commands/spec/load.md +51 -0
- package/claude/maestro-flow/commands/spec/remove.md +51 -0
- package/claude/maestro-flow/commands/spec/setup.md +51 -0
- package/claude/maestro-flow/commands/wiki/connect.md +62 -0
- package/claude/maestro-flow/commands/wiki/digest.md +69 -0
- package/codex/maestro-flow/SKILL.md +505 -0
- package/codex/maestro-flow/chains/templates.json +256 -0
- package/codex/maestro-flow/commands/learn/decompose.md +113 -0
- package/codex/maestro-flow/commands/learn/follow.md +83 -0
- package/codex/maestro-flow/commands/learn/investigate.md +83 -0
- package/codex/maestro-flow/commands/learn/retro.md +83 -0
- package/codex/maestro-flow/commands/learn/second-opinion.md +86 -0
- package/codex/maestro-flow/commands/lifecycle/amend.md +300 -0
- package/codex/maestro-flow/commands/lifecycle/analyze.md +483 -0
- package/codex/maestro-flow/commands/lifecycle/brainstorm.md +397 -0
- package/codex/maestro-flow/commands/lifecycle/composer.md +213 -0
- package/codex/maestro-flow/commands/lifecycle/execute.md +318 -0
- package/codex/maestro-flow/commands/lifecycle/fork.md +98 -0
- package/codex/maestro-flow/commands/lifecycle/init.md +134 -0
- package/codex/maestro-flow/commands/lifecycle/learn.md +80 -0
- package/codex/maestro-flow/commands/lifecycle/link-coordinate.md +257 -0
- package/codex/maestro-flow/commands/lifecycle/merge.md +69 -0
- package/codex/maestro-flow/commands/lifecycle/overlay.md +119 -0
- package/codex/maestro-flow/commands/lifecycle/plan.md +460 -0
- package/codex/maestro-flow/commands/lifecycle/player.md +323 -0
- package/codex/maestro-flow/commands/lifecycle/quick.md +124 -0
- package/codex/maestro-flow/commands/lifecycle/roadmap.md +468 -0
- package/codex/maestro-flow/commands/lifecycle/ui-design.md +135 -0
- package/codex/maestro-flow/commands/lifecycle/update.md +176 -0
- package/codex/maestro-flow/commands/lifecycle/verify.md +468 -0
- package/codex/maestro-flow/commands/manage/codebase-rebuild.md +347 -0
- package/codex/maestro-flow/commands/manage/codebase-refresh.md +66 -0
- package/codex/maestro-flow/commands/manage/harvest.md +91 -0
- package/codex/maestro-flow/commands/manage/issue-discover.md +431 -0
- package/codex/maestro-flow/commands/manage/issue.md +75 -0
- package/codex/maestro-flow/commands/manage/knowhow-capture.md +110 -0
- package/codex/maestro-flow/commands/manage/knowhow.md +95 -0
- package/codex/maestro-flow/commands/manage/learn.md +137 -0
- package/codex/maestro-flow/commands/manage/status.md +76 -0
- package/codex/maestro-flow/commands/manage/wiki.md +55 -0
- package/codex/maestro-flow/commands/milestone/audit.md +87 -0
- package/codex/maestro-flow/commands/milestone/complete.md +91 -0
- package/codex/maestro-flow/commands/milestone/release.md +70 -0
- package/codex/maestro-flow/commands/quality/auto-test.md +547 -0
- package/codex/maestro-flow/commands/quality/debug.md +334 -0
- package/codex/maestro-flow/commands/quality/refactor.md +151 -0
- package/codex/maestro-flow/commands/quality/retrospective.md +292 -0
- package/codex/maestro-flow/commands/quality/review.md +364 -0
- package/codex/maestro-flow/commands/quality/sync.md +111 -0
- package/codex/maestro-flow/commands/quality/test.md +498 -0
- package/codex/maestro-flow/commands/spec/add.md +101 -0
- package/codex/maestro-flow/commands/spec/load.md +77 -0
- package/codex/maestro-flow/commands/spec/remove.md +69 -0
- package/codex/maestro-flow/commands/spec/setup.md +75 -0
- package/codex/maestro-flow/commands/wiki/connect.md +73 -0
- package/codex/maestro-flow/commands/wiki/digest.md +87 -0
- package/package.json +24 -0
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maestro-brainstorm
|
|
3
|
+
description: Multi-role brainstorming via CSV wave pipeline. Diamond topology — guidance specification generator (Wave 1), parallel role analysis agents (Wave 2), synthesis + feature-index agent (Wave 3). Replaces maestro-brainstorm command.
|
|
4
|
+
argument-hint: "[topic] [-y|--yes] [-c|--concurrency N] [--continue] [--count N] [--skip-questions]"
|
|
5
|
+
allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<purpose>
|
|
9
|
+
Wave-based multi-role brainstorming using `spawn_agents_on_csv`. Diamond topology: guidance specification generation (Wave 1), parallel role analysis agents (Wave 2), then synthesis + feature-index generation (Wave 3).
|
|
10
|
+
|
|
11
|
+
**Core workflow**: Parse Topic -> Generate Guidance Spec -> Parallel Role Analysis -> Synthesis + Feature Index
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
+---------------------------------------------------------------------------+
|
|
15
|
+
| BRAINSTORM CSV WAVE WORKFLOW |
|
|
16
|
+
+---------------------------------------------------------------------------+
|
|
17
|
+
| |
|
|
18
|
+
| Phase 1: Topic Resolution -> CSV |
|
|
19
|
+
| +-- Parse topic and flags from arguments |
|
|
20
|
+
| +-- Detect mode (phase / scratch) |
|
|
21
|
+
| +-- Resolve output directory |
|
|
22
|
+
| +-- Select roles (interactive or auto, --count N) |
|
|
23
|
+
| +-- Load project specs for architecture-aware analysis |
|
|
24
|
+
| +-- Generate tasks.csv with guidance + role + synthesis rows |
|
|
25
|
+
| +-- User validates role breakdown (skip if -y) |
|
|
26
|
+
| |
|
|
27
|
+
| Phase 2: Wave Execution Engine |
|
|
28
|
+
| +-- Wave 1: Guidance Specification (single agent) |
|
|
29
|
+
| | +-- Analyze topic, extract terminology, define boundaries |
|
|
30
|
+
| | +-- Generate guidance-specification.md with RFC 2119 keywords |
|
|
31
|
+
| | +-- Feature decomposition (max 8 features) |
|
|
32
|
+
| | +-- Discoveries shared via board (terms, non-goals, features) |
|
|
33
|
+
| | +-- Results: guidance_spec content + analysis_file path |
|
|
34
|
+
| +-- Wave 2: Role Analysis (parallel, 3-9 agents) |
|
|
35
|
+
| | +-- Each role agent analyzes topic through its lens |
|
|
36
|
+
| | +-- Receives guidance-specification.md via prev_context |
|
|
37
|
+
| | +-- Feature-point organization when feature list available |
|
|
38
|
+
| | +-- Discoveries shared via board (role insights, conflicts) |
|
|
39
|
+
| | +-- Results: analysis_file path per role |
|
|
40
|
+
| +-- Wave 3: Synthesis + Feature Index (single agent) |
|
|
41
|
+
| | +-- Cross-role analysis: consensus, conflicts, unique insights |
|
|
42
|
+
| | +-- Generate feature specs or synthesis-specification.md |
|
|
43
|
+
| | +-- Build feature-index.json + synthesis-changelog.md |
|
|
44
|
+
| | +-- Discoveries shared via board (cross-role patterns) |
|
|
45
|
+
| +-- discoveries.ndjson shared across all waves (append-only) |
|
|
46
|
+
| |
|
|
47
|
+
| Phase 3: Results Aggregation |
|
|
48
|
+
| +-- Export results.csv |
|
|
49
|
+
| +-- Generate context.md with all findings |
|
|
50
|
+
| +-- Copy artifacts to .brainstorming/ directory |
|
|
51
|
+
| +-- Update phase index.json with brainstorm status |
|
|
52
|
+
| +-- Display summary with next steps |
|
|
53
|
+
| |
|
|
54
|
+
+---------------------------------------------------------------------------+
|
|
55
|
+
```
|
|
56
|
+
</purpose>
|
|
57
|
+
|
|
58
|
+
<context>
|
|
59
|
+
```bash
|
|
60
|
+
$maestro-brainstorm "Build real-time collaboration platform"
|
|
61
|
+
$maestro-brainstorm -y "Build real-time collaboration platform"
|
|
62
|
+
$maestro-brainstorm -c 6 "Build real-time collaboration platform --count 5"
|
|
63
|
+
$maestro-brainstorm --continue "20260318-brainstorm-collab"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Flags**:
|
|
67
|
+
- `-y, --yes`: Skip all confirmations (auto mode)
|
|
68
|
+
- `-c, --concurrency N`: Max concurrent agents within each wave (default: 6)
|
|
69
|
+
- `--continue`: Resume existing session
|
|
70
|
+
- `--count N`: Number of roles to select (default 3, max 9)
|
|
71
|
+
- `--skip-questions`: Skip context gathering questions
|
|
72
|
+
|
|
73
|
+
When `--yes` or `-y`: Auto-confirm role selection, skip interactive questions, use defaults for count and role selection.
|
|
74
|
+
|
|
75
|
+
**Output Directory**: `.workflow/.csv-wave/{session-id}/`
|
|
76
|
+
**Core Output**: `tasks.csv` (master state) + `results.csv` (final) + `discoveries.ndjson` (shared exploration) + `context.md` (human-readable report) + `.brainstorming/` (role analyses + synthesis artifacts)
|
|
77
|
+
</context>
|
|
78
|
+
|
|
79
|
+
<csv_schema>
|
|
80
|
+
|
|
81
|
+
### tasks.csv (Master State)
|
|
82
|
+
|
|
83
|
+
```csv
|
|
84
|
+
id,title,description,role,topic,guidance_spec,deps,context_from,wave,status,findings,analysis_file,error
|
|
85
|
+
"1","Guidance Specification","Analyze topic and generate guidance-specification.md: extract 5-10 core terms, define non-goals, decompose into features (max 8), apply RFC 2119 keywords. Output: guidance-specification.md with sections for positioning, terminology, non-goals, feature decomposition.","guidance-generator","Build real-time collaboration platform","","","","1","","","",""
|
|
86
|
+
"2","System Architect Analysis","Analyze topic from system-architect perspective: technical architecture, scalability, integration patterns. Must include Data Model (3-5 entities), State Machine, Error Handling, Observability (5+ metrics), Configuration Model. Use RFC 2119 keywords. Reference guidance-specification.md for framework.","system-architect","Build real-time collaboration platform","","1","1","2","","","",""
|
|
87
|
+
"3","UI Designer Analysis","Analyze topic from ui-designer perspective: visual design, layout systems, component hierarchy, design tokens, responsive breakpoints. Reference guidance-specification.md for framework and feature decomposition.","ui-designer","Build real-time collaboration platform","","1","1","2","","","",""
|
|
88
|
+
"4","Product Manager Analysis","Analyze topic from product-manager perspective: product strategy, prioritization, user value proposition, competitive analysis, roadmap alignment. Reference guidance-specification.md for framework.","product-manager","Build real-time collaboration platform","","1","1","2","","","",""
|
|
89
|
+
"5","Synthesis + Feature Index","Cross-role synthesis: analyze all role outputs for consensus, conflicts, unique contributions. Generate feature specs (F-001 through F-00N) or synthesis-specification.md. Build feature-index.json and synthesis-changelog.md. Resolve conflicts with [RESOLVED]/[SUGGESTED]/[UNRESOLVED] tags.","synthesis","Build real-time collaboration platform","","2;3;4","2;3;4","3","","","",""
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Columns**:
|
|
93
|
+
|
|
94
|
+
| Column | Phase | Description |
|
|
95
|
+
|--------|-------|-------------|
|
|
96
|
+
| `id` | Input | Unique task identifier (string) |
|
|
97
|
+
| `title` | Input | Short task title |
|
|
98
|
+
| `description` | Input | Detailed instructions for this task |
|
|
99
|
+
| `role` | Input | Role identifier: guidance-generator, system-architect, ui-designer, product-manager, ..., synthesis |
|
|
100
|
+
| `topic` | Input | Brainstorm topic text |
|
|
101
|
+
| `guidance_spec` | Input | Guidance-specification.md content reference (populated for wave 2+ from wave 1) |
|
|
102
|
+
| `deps` | Input | Semicolon-separated dependency task IDs |
|
|
103
|
+
| `context_from` | Input | Semicolon-separated task IDs whose findings this task needs |
|
|
104
|
+
| `wave` | Computed | Wave number (1 = guidance, 2 = role analysis, 3 = synthesis) |
|
|
105
|
+
| `status` | Output | `pending` -> `completed` / `failed` / `skipped` |
|
|
106
|
+
| `findings` | Output | Key findings summary (max 500 chars) |
|
|
107
|
+
| `analysis_file` | Output | Path to generated analysis file |
|
|
108
|
+
| `error` | Output | Error message if failed |
|
|
109
|
+
|
|
110
|
+
### Per-Wave CSV (Temporary)
|
|
111
|
+
|
|
112
|
+
Each wave generates `wave-{N}.csv` with extra `prev_context` column.
|
|
113
|
+
|
|
114
|
+
### Output Artifacts
|
|
115
|
+
|
|
116
|
+
| File | Purpose | Lifecycle |
|
|
117
|
+
|------|---------|-----------|
|
|
118
|
+
| `tasks.csv` | Master state -- all tasks with status/findings | Updated after each wave |
|
|
119
|
+
| `wave-{N}.csv` | Per-wave input (temporary) | Created before wave, deleted after |
|
|
120
|
+
| `results.csv` | Final export of all task results | Created in Phase 3 |
|
|
121
|
+
| `discoveries.ndjson` | Shared exploration board | Append-only, carries across waves |
|
|
122
|
+
| `context.md` | Human-readable brainstorm report | Created in Phase 3 |
|
|
123
|
+
| `.brainstorming/` | Role analyses + synthesis artifacts | Populated in Phase 3 |
|
|
124
|
+
|
|
125
|
+
### Session Structure
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
.workflow/.csv-wave/{YYYYMMDD}-brainstorm-{slug}/
|
|
129
|
+
+-- tasks.csv
|
|
130
|
+
+-- results.csv
|
|
131
|
+
+-- discoveries.ndjson
|
|
132
|
+
+-- context.md
|
|
133
|
+
+-- wave-{N}.csv (temporary)
|
|
134
|
+
+-- .brainstorming/
|
|
135
|
+
+-- guidance-specification.md
|
|
136
|
+
+-- feature-index.json
|
|
137
|
+
+-- synthesis-changelog.md
|
|
138
|
+
+-- feature-specs/
|
|
139
|
+
| +-- F-001-{slug}.md
|
|
140
|
+
| +-- F-00N-{slug}.md
|
|
141
|
+
+-- {role}/
|
|
142
|
+
| +-- analysis.md
|
|
143
|
+
| +-- analysis-cross-cutting.md
|
|
144
|
+
| +-- analysis-F-{id}-{slug}.md
|
|
145
|
+
+-- synthesis-specification.md (fallback mode)
|
|
146
|
+
```
|
|
147
|
+
</csv_schema>
|
|
148
|
+
|
|
149
|
+
<invariants>
|
|
150
|
+
1. **Start Immediately**: First action is session initialization, then Phase 1
|
|
151
|
+
2. **Wave Order is Sacred**: Never execute wave 2 before wave 1 completes and results are merged
|
|
152
|
+
3. **CSV is Source of Truth**: Master tasks.csv holds all state
|
|
153
|
+
4. **Context Propagation**: prev_context built from master CSV, not from memory
|
|
154
|
+
5. **Guidance First**: Wave 1 (guidance) MUST complete before any role analysis begins
|
|
155
|
+
6. **Discovery Board is Append-Only**: Never clear, modify, or recreate discoveries.ndjson
|
|
156
|
+
7. **Skip on Failure**: If guidance fails, abort. If all roles fail, skip synthesis.
|
|
157
|
+
8. **Cleanup Temp Files**: Remove wave-{N}.csv after results are merged
|
|
158
|
+
9. **DO NOT STOP**: Continuous execution until all waves complete
|
|
159
|
+
10. **9 Valid Roles Only**: data-architect, product-manager, product-owner, scrum-master, subject-matter-expert, system-architect, test-strategist, ui-designer, ux-expert
|
|
160
|
+
</invariants>
|
|
161
|
+
|
|
162
|
+
<execution>
|
|
163
|
+
|
|
164
|
+
### Session Initialization
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
Parse from $ARGUMENTS:
|
|
168
|
+
AUTO_YES ← --yes | -y
|
|
169
|
+
continueMode ← --continue
|
|
170
|
+
maxConcurrency ← --concurrency | -c N (default: 6)
|
|
171
|
+
roleCount ← --count N (default: 3, max: 9)
|
|
172
|
+
skipQuestions ← --skip-questions
|
|
173
|
+
topicArg ← remaining text after flag removal
|
|
174
|
+
|
|
175
|
+
Derive:
|
|
176
|
+
slug ← topicArg kebab-cased, max 40 chars
|
|
177
|
+
dateStr ← UTC+8 YYYYMMDD
|
|
178
|
+
sessionId ← "{dateStr}-brainstorm-{slug}"
|
|
179
|
+
sessionFolder ← ".workflow/.csv-wave/{sessionId}"
|
|
180
|
+
|
|
181
|
+
mkdir -p {sessionFolder}/.brainstorming
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Phase 1: Topic Resolution -> CSV
|
|
185
|
+
|
|
186
|
+
**Objective**: Parse topic, select roles, generate tasks.csv.
|
|
187
|
+
|
|
188
|
+
**Decomposition Rules**:
|
|
189
|
+
|
|
190
|
+
1. **Mode detection**: Number = phase mode (resolve via state.json artifact registry to `.workflow/scratch/{YYYYMMDD}-{type}-{slug}/`), text = scratch mode
|
|
191
|
+
2. **Project specs loading**: Read `.workflow/specs/` for architecture-aware analysis context
|
|
192
|
+
3. **Role selection**:
|
|
193
|
+
|
|
194
|
+
| Condition | Action |
|
|
195
|
+
|-----------|--------|
|
|
196
|
+
| `--yes` flag | Auto-select top `roleCount` roles based on topic relevance |
|
|
197
|
+
| Interactive | AskUserQuestion (multiSelect=true) with recommended roles + rationale |
|
|
198
|
+
|
|
199
|
+
4. **Valid roles** (9 total):
|
|
200
|
+
|
|
201
|
+
| Role ID | Focus Area |
|
|
202
|
+
|---------|------------|
|
|
203
|
+
| `data-architect` | Data models, storage strategies, data flow |
|
|
204
|
+
| `product-manager` | Product strategy, roadmap, prioritization |
|
|
205
|
+
| `product-owner` | Backlog management, user stories, acceptance criteria |
|
|
206
|
+
| `scrum-master` | Process facilitation, impediment removal |
|
|
207
|
+
| `subject-matter-expert` | Domain knowledge, business rules, compliance |
|
|
208
|
+
| `system-architect` | Technical architecture, scalability, integration |
|
|
209
|
+
| `test-strategist` | Test strategy, quality assurance |
|
|
210
|
+
| `ui-designer` | Visual design, mockups, design systems |
|
|
211
|
+
| `ux-expert` | User research, information architecture, journey |
|
|
212
|
+
|
|
213
|
+
5. **CSV generation**: 1 guidance row (wave 1) + N role rows (wave 2) + 1 synthesis row (wave 3).
|
|
214
|
+
|
|
215
|
+
**Wave computation**: 3-wave diamond -- guidance = wave 1, all role tasks = wave 2, synthesis = wave 3.
|
|
216
|
+
|
|
217
|
+
**User validation**: Display task breakdown (skip if AUTO_YES).
|
|
218
|
+
|
|
219
|
+
### Phase 2: Wave Execution Engine
|
|
220
|
+
|
|
221
|
+
**Objective**: Execute brainstorm pipeline wave-by-wave via spawn_agents_on_csv.
|
|
222
|
+
|
|
223
|
+
#### Wave 1: Guidance Specification (Single Agent)
|
|
224
|
+
|
|
225
|
+
1. Extract wave 1 pending rows from master `tasks.csv` into `wave-1.csv` (no prev_context needed)
|
|
226
|
+
2. Execute:
|
|
227
|
+
|
|
228
|
+
```javascript
|
|
229
|
+
spawn_agents_on_csv({
|
|
230
|
+
csv_path: `${sessionFolder}/wave-1.csv`,
|
|
231
|
+
id_column: "id",
|
|
232
|
+
instruction: buildGuidanceInstruction(sessionFolder, topicArg),
|
|
233
|
+
max_concurrency: 1, max_runtime_seconds: 3600,
|
|
234
|
+
output_csv_path: `${sessionFolder}/wave-1-results.csv`,
|
|
235
|
+
output_schema: { id, status: [completed|failed], findings, analysis_file, error }
|
|
236
|
+
})
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
3. Merge results into master `tasks.csv`, delete `wave-1.csv`
|
|
240
|
+
4. Read generated `guidance-specification.md` for wave 2 context propagation
|
|
241
|
+
|
|
242
|
+
**Guidance agent responsibilities**:
|
|
243
|
+
- Analyze topic, extract 5-10 core domain terms
|
|
244
|
+
- Define non-goals and scope boundaries
|
|
245
|
+
- Decompose into features (max 8): F-{3-digit} ID, kebab-case slug, description, related roles, priority
|
|
246
|
+
- Apply RFC 2119 keywords (MUST, SHOULD, MAY, MUST NOT, SHOULD NOT)
|
|
247
|
+
- Write `guidance-specification.md` to `.brainstorming/`
|
|
248
|
+
|
|
249
|
+
#### Wave 2: Role Analysis (Parallel, 3-9 Agents)
|
|
250
|
+
|
|
251
|
+
1. Extract wave 2 pending rows from master `tasks.csv`
|
|
252
|
+
2. Build `prev_context` from wave 1 findings + `guidance-specification.md` content
|
|
253
|
+
3. Write `wave-2.csv` with `prev_context` column
|
|
254
|
+
4. Execute:
|
|
255
|
+
|
|
256
|
+
```javascript
|
|
257
|
+
spawn_agents_on_csv({
|
|
258
|
+
csv_path: `${sessionFolder}/wave-2.csv`,
|
|
259
|
+
id_column: "id",
|
|
260
|
+
instruction: buildRoleAnalysisInstruction(sessionFolder),
|
|
261
|
+
max_concurrency: maxConcurrency, max_runtime_seconds: 3600,
|
|
262
|
+
output_csv_path: `${sessionFolder}/wave-2-results.csv`,
|
|
263
|
+
output_schema: { id, status: [completed|failed], findings, analysis_file, error }
|
|
264
|
+
})
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
5. Merge results into master `tasks.csv`, delete `wave-2.csv`
|
|
268
|
+
|
|
269
|
+
**Role agent responsibilities**:
|
|
270
|
+
- Read guidance-specification.md for framework context
|
|
271
|
+
- Analyze topic through role-specific lens
|
|
272
|
+
- Feature-point organization when feature list available:
|
|
273
|
+
- `analysis.md` -- Role overview INDEX only (< 1500 words)
|
|
274
|
+
- `analysis-cross-cutting.md` -- Cross-feature decisions (< 2000 words)
|
|
275
|
+
- `analysis-F-{id}-{slug}.md` -- Per-feature analysis (< 2000 words each)
|
|
276
|
+
- Fallback organization (no feature list):
|
|
277
|
+
- `analysis.md` -- Main analysis (< 3000 words)
|
|
278
|
+
- system-architect MUST include: Data Model, State Machine, Error Handling, Observability, Configuration Model
|
|
279
|
+
- Write analysis files to `.brainstorming/{role}/`
|
|
280
|
+
|
|
281
|
+
#### Wave 3: Synthesis + Feature Index (Single Agent)
|
|
282
|
+
|
|
283
|
+
1. If all wave 2 tasks failed, skip synthesis entirely
|
|
284
|
+
2. Extract wave 3 pending rows, build `prev_context` from wave 2 findings
|
|
285
|
+
3. Write `wave-3.csv`, execute `spawn_agents_on_csv` for synthesis agent (same output_schema pattern)
|
|
286
|
+
4. Merge results into master `tasks.csv`, delete `wave-3.csv`
|
|
287
|
+
|
|
288
|
+
**Synthesis agent responsibilities**:
|
|
289
|
+
- Cross-role analysis: consensus, conflicts, unique contributions
|
|
290
|
+
- Conflict resolution with [RESOLVED]/[SUGGESTED]/[UNRESOLVED] tags
|
|
291
|
+
- Feature mode: generate `feature-specs/F-{id}-{slug}.md` per feature (7 sections, 1500-2500 words)
|
|
292
|
+
- Fallback mode: generate `synthesis-specification.md`
|
|
293
|
+
- Build `feature-index.json` and `synthesis-changelog.md`
|
|
294
|
+
- Four-Layer Aggregation: Direct Reference, Structured Extraction, Conflict Distillation, Cross-Feature Annotation
|
|
295
|
+
|
|
296
|
+
### Phase 3: Results Aggregation
|
|
297
|
+
|
|
298
|
+
**Objective**: Generate final results and human-readable report.
|
|
299
|
+
|
|
300
|
+
1. Export final `tasks.csv` as `results.csv`
|
|
301
|
+
2. Generate `context.md`:
|
|
302
|
+
|
|
303
|
+
```markdown
|
|
304
|
+
# Brainstorm Report -- {topic}
|
|
305
|
+
|
|
306
|
+
## Summary
|
|
307
|
+
- Topic: {topic}
|
|
308
|
+
- Roles analyzed: {role_count}
|
|
309
|
+
- Features decomposed: {feature_count}
|
|
310
|
+
- Conflicts resolved: {resolved_count}
|
|
311
|
+
|
|
312
|
+
## Guidance Specification
|
|
313
|
+
{summary of guidance-specification.md}
|
|
314
|
+
|
|
315
|
+
## Role Analysis Results
|
|
316
|
+
### {role_name}
|
|
317
|
+
{findings summary}
|
|
318
|
+
**Analysis file**: {analysis_file path}
|
|
319
|
+
|
|
320
|
+
## Synthesis
|
|
321
|
+
{synthesis summary}
|
|
322
|
+
- Consensus areas: {list}
|
|
323
|
+
- Resolved conflicts: {list}
|
|
324
|
+
- Unresolved items: {list}
|
|
325
|
+
|
|
326
|
+
## Feature Index
|
|
327
|
+
{feature-index.json summary}
|
|
328
|
+
|
|
329
|
+
## Next Steps
|
|
330
|
+
- Skill: maestro-analyze -- Evaluate feasibility + lock decisions
|
|
331
|
+
- Skill: maestro-plan -- Plan directly if scope is clear
|
|
332
|
+
- Skill: maestro-roadmap --mode full -- Generate full spec package from brainstorm
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
4. Copy artifacts to output `.brainstorming/` directory (phase mode or scratch mode target)
|
|
336
|
+
5. Update phase `index.json` with brainstorm status (if phase mode)
|
|
337
|
+
6. Display summary with next step suggestions
|
|
338
|
+
|
|
339
|
+
### Shared Discovery Board Protocol
|
|
340
|
+
|
|
341
|
+
#### Standard Discovery Types
|
|
342
|
+
|
|
343
|
+
| Type | Dedup Key | Data Schema | Description |
|
|
344
|
+
|------|-----------|-------------|-------------|
|
|
345
|
+
| `code_pattern` | `data.name` | `{name, file, description}` | Reusable code pattern found |
|
|
346
|
+
| `integration_point` | `data.file` | `{file, description, exports[]}` | Module connection point |
|
|
347
|
+
| `convention` | singleton | `{naming, imports, formatting}` | Project code conventions |
|
|
348
|
+
| `blocker` | `data.issue` | `{issue, severity, impact}` | Blocking issue found |
|
|
349
|
+
| `tech_stack` | singleton | `{framework, language, tools[]}` | Technology stack info |
|
|
350
|
+
|
|
351
|
+
#### Domain Discovery Types
|
|
352
|
+
|
|
353
|
+
| Type | Dedup Key | Data Schema | Description |
|
|
354
|
+
|------|-----------|-------------|-------------|
|
|
355
|
+
| `terminology` | `data.term` | `{term, definition, aliases[], category}` | Domain term extracted |
|
|
356
|
+
| `non_goal` | `data.title` | `{title, rationale}` | Scope exclusion identified |
|
|
357
|
+
| `feature_candidate` | `data.id` | `{id, slug, description, roles[], priority}` | Feature decomposed from topic |
|
|
358
|
+
| `role_insight` | `data.role+data.topic` | `{role, topic, insight, confidence}` | Role-specific finding |
|
|
359
|
+
| `cross_role_conflict` | `data.area` | `{area, roles[], positions[], resolution}` | Cross-role disagreement |
|
|
360
|
+
|
|
361
|
+
#### Protocol
|
|
362
|
+
|
|
363
|
+
Read `discoveries.ndjson` before analysis. Append-only: dedup by type+key before writing, never modify/delete.
|
|
364
|
+
|
|
365
|
+
```bash
|
|
366
|
+
echo '{"ts":"<ISO>","worker":"{id}","type":"terminology","data":{"term":"CRDT","definition":"Conflict-free Replicated Data Type","aliases":["conflict-free"],"category":"technical"}}' >> {session_folder}/discoveries.ndjson
|
|
367
|
+
```
|
|
368
|
+
</execution>
|
|
369
|
+
|
|
370
|
+
<error_codes>
|
|
371
|
+
|
|
372
|
+
| Error | Resolution |
|
|
373
|
+
|-------|------------|
|
|
374
|
+
| Topic argument missing | Abort with error: "Topic text required" |
|
|
375
|
+
| Invalid role name in selection | Filter to valid roles, warn user |
|
|
376
|
+
| Role count exceeds 9 | Cap at 9 with warning |
|
|
377
|
+
| Guidance agent timeout | Mark as failed, abort pipeline (wave 2 depends on guidance) |
|
|
378
|
+
| Role agent timeout | Mark as failed, continue with remaining roles |
|
|
379
|
+
| All role agents failed | Skip synthesis (wave 3), report partial results |
|
|
380
|
+
| Synthesis agent failed | Use wave 2 results directly, no feature index |
|
|
381
|
+
| CSV parse error | Validate format, show line number |
|
|
382
|
+
| discoveries.ndjson corrupt | Ignore malformed lines |
|
|
383
|
+
| Continue mode: no session found | List available sessions |
|
|
384
|
+
| Phase directory not found | Abort with error: "Phase {N} not found" |
|
|
385
|
+
</error_codes>
|
|
386
|
+
|
|
387
|
+
<success_criteria>
|
|
388
|
+
- [ ] Session folder created with valid tasks.csv
|
|
389
|
+
- [ ] All 3 waves executed in order
|
|
390
|
+
- [ ] guidance-specification.md produced in .brainstorming/
|
|
391
|
+
- [ ] Role analysis files produced per selected role
|
|
392
|
+
- [ ] Synthesis artifacts produced (feature specs or synthesis-specification.md)
|
|
393
|
+
- [ ] feature-index.json and synthesis-changelog.md produced
|
|
394
|
+
- [ ] context.md produced with full brainstorm report
|
|
395
|
+
- [ ] Artifacts copied to target .brainstorming/ directory
|
|
396
|
+
- [ ] discoveries.ndjson append-only throughout
|
|
397
|
+
</success_criteria>
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maestro-composer
|
|
3
|
+
description: Interactive workflow template composer — parse natural language into DAG of skill nodes, auto-inject checkpoints, confirm pipeline interactively, persist as reusable JSON template to ~/.maestro/templates/workflows/
|
|
4
|
+
argument-hint: "\"workflow description\" [--resume] [--edit <template-path>]"
|
|
5
|
+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<purpose>
|
|
9
|
+
Interactive workflow template composer. Parses natural language into a reusable DAG template
|
|
10
|
+
via 5 phases with user confirmation at each boundary. Templates saved globally at
|
|
11
|
+
`~/.maestro/templates/workflows/`. Progressive disclosure — specs loaded only when phase needs them.
|
|
12
|
+
|
|
13
|
+
Sequential interactive flow (no spawn_agents_on_csv — this is design, not execution):
|
|
14
|
+
```
|
|
15
|
+
Parse NL → [confirm] → Resolve to nodes → [confirm] → Inject checkpoints → Confirm pipeline → Persist
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Three entry modes:
|
|
19
|
+
1. **New design**: Phase 1-5
|
|
20
|
+
2. **Resume design**: Load draft from `.workflow/templates/design-drafts/`
|
|
21
|
+
3. **Edit template**: Load existing, modify, re-save
|
|
22
|
+
</purpose>
|
|
23
|
+
|
|
24
|
+
<context>
|
|
25
|
+
$ARGUMENTS — natural language workflow description, or flags.
|
|
26
|
+
|
|
27
|
+
**Flags:**
|
|
28
|
+
- `--resume` — Resume in-progress design session
|
|
29
|
+
- `--edit <template-path>` — Edit an existing template
|
|
30
|
+
|
|
31
|
+
**Shared constants:**
|
|
32
|
+
|
|
33
|
+
| Constant | Value |
|
|
34
|
+
|----------|-------|
|
|
35
|
+
| Session prefix | `WFD` |
|
|
36
|
+
| Template dir (global) | `~/.maestro/templates/workflows/` |
|
|
37
|
+
| Template index (global) | `~/.maestro/templates/workflows/index.json` |
|
|
38
|
+
| Design drafts dir (local) | `.workflow/templates/design-drafts/` |
|
|
39
|
+
| Template ID format | `wft-<slug>-<YYYYMMDD>` |
|
|
40
|
+
| Node ID format | `N-<seq>` (e.g. N-001), `CP-<seq>` for checkpoints |
|
|
41
|
+
| Max nodes | 20 |
|
|
42
|
+
|
|
43
|
+
**Entry routing:**
|
|
44
|
+
|
|
45
|
+
| Detection | Condition | Handler |
|
|
46
|
+
|-----------|-----------|---------|
|
|
47
|
+
| Resume | `--resume` or existing WFD session | Phase 0: Resume |
|
|
48
|
+
| Edit | `--edit <path>` | Phase 0: Load + Edit |
|
|
49
|
+
| New | Default | Phase 1: Parse |
|
|
50
|
+
|
|
51
|
+
**Node catalog**: Read `~/.maestro/templates/workflows/specs/node-catalog.md` at Phase 2 (deferred).
|
|
52
|
+
**Template schema**: Read `~/.maestro/templates/workflows/specs/template-schema.md` at Phase 5 (deferred).
|
|
53
|
+
</context>
|
|
54
|
+
|
|
55
|
+
<execution>
|
|
56
|
+
|
|
57
|
+
### Phase 0: Resume / Edit (conditional)
|
|
58
|
+
|
|
59
|
+
**Resume** (`--resume`):
|
|
60
|
+
1. Scan `.workflow/templates/design-drafts/WFD-*/` for in-progress designs
|
|
61
|
+
2. Multiple → AskUserQuestion for selection
|
|
62
|
+
3. Load draft → skip to last incomplete phase
|
|
63
|
+
|
|
64
|
+
**Edit** (`--edit <path>`):
|
|
65
|
+
1. Load template JSON
|
|
66
|
+
2. Show pipeline visualization (Phase 4 format)
|
|
67
|
+
3. AskUserQuestion: which nodes to modify/add/remove
|
|
68
|
+
4. Re-enter at Phase 3
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### Phase 1: Parse — Semantic Intent Extraction
|
|
73
|
+
|
|
74
|
+
**Step 1.1** — Parse `$ARGUMENTS`. If empty, AskUserQuestion:
|
|
75
|
+
```
|
|
76
|
+
"Describe the workflow you want to automate.
|
|
77
|
+
Include: what steps to run, in what order, and what varies each time.
|
|
78
|
+
Example: 'analyze the code, then plan, implement, and test the feature'"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Step 1.2** — Extract sequential actions as candidate nodes:
|
|
82
|
+
|
|
83
|
+
| Signal | Candidate Type |
|
|
84
|
+
|--------|---------------|
|
|
85
|
+
| "analyze", "review", "explore" | analysis (cli) |
|
|
86
|
+
| "plan", "design", "spec" | planning (skill) |
|
|
87
|
+
| "implement", "build", "code", "fix" | execution (skill) |
|
|
88
|
+
| "test", "validate", "verify" | testing (skill) |
|
|
89
|
+
| "brainstorm", "ideate" | brainstorm (skill) |
|
|
90
|
+
| "review code" | review (skill) |
|
|
91
|
+
| "then", "next", "after" | sequential edge |
|
|
92
|
+
| "parallel", "simultaneously" | parallel edge |
|
|
93
|
+
|
|
94
|
+
**Step 1.3** — Extract variables (inputs that vary per run).
|
|
95
|
+
|
|
96
|
+
**Step 1.4** — Classify task type: `bugfix | feature | tdd | review | brainstorm | spec-driven | roadmap | refactor | integration-test | quick-task | custom`
|
|
97
|
+
|
|
98
|
+
**Step 1.5** — Assess complexity: `simple` (1-3 nodes), `medium` (4-7), `complex` (8+)
|
|
99
|
+
|
|
100
|
+
**Step 1.6** — Write `intent.json` to `.workflow/templates/design-drafts/WFD-<slug>-<date>/`.
|
|
101
|
+
|
|
102
|
+
**Step 1.7 — Interactive confirmation**: Display description, task type, complexity, detected steps (numbered with type_hint), and variables. AskUserQuestion: `Continue to resolution` / `Edit steps` / `Add a step` / `Cancel`
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### Phase 2: Resolve — Map Steps to Executor Nodes
|
|
107
|
+
|
|
108
|
+
**Read deferred**: `~/.maestro/templates/workflows/specs/node-catalog.md`
|
|
109
|
+
|
|
110
|
+
If spec not found, use built-in fallback:
|
|
111
|
+
|
|
112
|
+
| type_hint | executor type | executor |
|
|
113
|
+
|-----------|--------------|----------|
|
|
114
|
+
| `planning` | skill | `maestro-plan` |
|
|
115
|
+
| `execution` | skill | `maestro-execute` |
|
|
116
|
+
| `testing` | skill | `quality-test` |
|
|
117
|
+
| `review` | skill | `quality-review` |
|
|
118
|
+
| `brainstorm` | skill | `maestro-brainstorm` |
|
|
119
|
+
| `analysis` | cli | `maestro delegate --role analyze --mode analysis` |
|
|
120
|
+
| `verify` | skill | `maestro-verify` |
|
|
121
|
+
| `refactor` | skill | `quality-refactor` |
|
|
122
|
+
| `debug` | skill | `quality-debug` |
|
|
123
|
+
| `spec` | skill | `maestro-roadmap --mode full` |
|
|
124
|
+
| `checkpoint` | checkpoint | — |
|
|
125
|
+
|
|
126
|
+
**Step 2.1** — Load `intent.json`, map each step to executor.
|
|
127
|
+
|
|
128
|
+
**Step 2.2** — Build `args_template` with variable placeholders and context injection:
|
|
129
|
+
- Planning after analysis → `--context {prev_output_path}`
|
|
130
|
+
- Execution after planning → inherit phase
|
|
131
|
+
- Testing after execution → inherit phase
|
|
132
|
+
|
|
133
|
+
**Step 2.3** — Assign `parallel_group` for parallel steps.
|
|
134
|
+
|
|
135
|
+
**Step 2.4** — Write `nodes.json`.
|
|
136
|
+
|
|
137
|
+
**Step 2.5 — Interactive confirmation**: Display resolved nodes table (ID, type, executor, args) and parallel groups. AskUserQuestion: `Continue to checkpoint injection` / `Change executor` / `Change node type` / `Back to intent` / `Cancel`
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
### Phase 3: Enrich — Inject Checkpoints + Build DAG
|
|
142
|
+
|
|
143
|
+
**Step 3.1** — Load `nodes.json`. Build sequential edges. For parallel groups: fan-out/fan-in.
|
|
144
|
+
|
|
145
|
+
**Step 3.2** — Auto-inject checkpoint nodes:
|
|
146
|
+
|
|
147
|
+
| Rule | Condition |
|
|
148
|
+
|------|-----------|
|
|
149
|
+
| Artifact boundary | Source output_ports: plan, spec, analysis, review-findings |
|
|
150
|
+
| Execution gate | Target executor contains `execute` |
|
|
151
|
+
| Agent spawn | Target type is `agent` |
|
|
152
|
+
| Long-running | Target is maestro-plan, maestro-roadmap |
|
|
153
|
+
| User-defined | Step had `type_hint: checkpoint` |
|
|
154
|
+
| Post-testing | Source executor contains `test` or `integration-test` |
|
|
155
|
+
|
|
156
|
+
Set `auto_continue: false` for checkpoints before user-facing deliverables.
|
|
157
|
+
|
|
158
|
+
**Step 3.3** — Finalize `context_schema`, validate DAG (no cycles, no orphans).
|
|
159
|
+
|
|
160
|
+
**Step 3.4** — Write `dag.json`. → Proceed to Phase 4.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
### Phase 4: Confirm — Visualize + User Approval
|
|
165
|
+
|
|
166
|
+
**Step 4.1** — Render ASCII pipeline: vertical node chain with `|` connectors showing each node (ID, type, executor, args) and checkpoint nodes (auto-continue vs pause-for-user). Footer: required variables, checkpoint counts, node counts.
|
|
167
|
+
|
|
168
|
+
**Step 4.2** — AskUserQuestion: `Confirm & Save` / `Edit a node` / `Add a node` / `Remove a node` / `Rename template` / `Re-run checkpoint injection` / `Cancel`
|
|
169
|
+
|
|
170
|
+
**Step 4.3** — Loop edits until Confirm or Cancel.
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
### Phase 5: Persist — Assemble + Save Template
|
|
175
|
+
|
|
176
|
+
**Read deferred**: `~/.maestro/templates/workflows/specs/template-schema.md`
|
|
177
|
+
|
|
178
|
+
**Step 5.1** — Load `intent.json` + `dag.json`. Assemble template JSON.
|
|
179
|
+
|
|
180
|
+
**Step 5.2** — Determine slug (kebab-case). If exists, append `-v2`.
|
|
181
|
+
|
|
182
|
+
**Step 5.3** — Write `~/.maestro/templates/workflows/<slug>.json`.
|
|
183
|
+
|
|
184
|
+
**Step 5.4** — Update `~/.maestro/templates/workflows/index.json`.
|
|
185
|
+
|
|
186
|
+
**Step 5.5** — Output summary: path, template ID, node/checkpoint counts, required variables. Include usage commands: `$maestro-player <slug> --context goal="..."`, `$maestro-composer --edit <path>`, `$maestro-player --list`.
|
|
187
|
+
|
|
188
|
+
**Step 5.6** — Clean up design draft directory.
|
|
189
|
+
</execution>
|
|
190
|
+
|
|
191
|
+
<error_codes>
|
|
192
|
+
| Code | Severity | Condition | Recovery |
|
|
193
|
+
|------|----------|-----------|----------|
|
|
194
|
+
| E001 | error | Empty description and no flags | AskUserQuestion for description |
|
|
195
|
+
| E002 | error | 0 steps extracted | Ask to rephrase with action verbs |
|
|
196
|
+
| E003 | error | Node count exceeds 20 | Suggest splitting into sub-workflows |
|
|
197
|
+
| E004 | error | DAG cycle detected | Show cycle, ask to resolve |
|
|
198
|
+
| E005 | error | Resume session not found | Show available drafts |
|
|
199
|
+
| E006 | error | Edit template not found | Show available templates |
|
|
200
|
+
| W001 | warning | Ambiguous executor mapping | Show candidates, let user choose |
|
|
201
|
+
| W002 | warning | No checkpoint rules triggered | Warn, offer manual add |
|
|
202
|
+
| W003 | warning | Deferred spec not found | Use built-in fallback |
|
|
203
|
+
</error_codes>
|
|
204
|
+
|
|
205
|
+
<success_criteria>
|
|
206
|
+
- [ ] Intent parsed and confirmed by user (Phase 1 gate)
|
|
207
|
+
- [ ] Nodes resolved and confirmed by user (Phase 2 gate)
|
|
208
|
+
- [ ] DAG built with auto-injected checkpoints
|
|
209
|
+
- [ ] Pipeline visualized and confirmed by user (Phase 4 gate)
|
|
210
|
+
- [ ] Template JSON written to `~/.maestro/templates/workflows/<slug>.json`
|
|
211
|
+
- [ ] Template index updated
|
|
212
|
+
- [ ] Deferred specs loaded only when phase needs them
|
|
213
|
+
</success_criteria>
|