@howlil/ez-agents 2.0.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 +845 -0
- package/README.zh-CN.md +702 -0
- package/agents/ez-codebase-mapper.md +770 -0
- package/agents/ez-debugger.md +1255 -0
- package/agents/ez-executor.md +487 -0
- package/agents/ez-integration-checker.md +443 -0
- package/agents/ez-nyquist-auditor.md +176 -0
- package/agents/ez-phase-researcher.md +553 -0
- package/agents/ez-plan-checker.md +706 -0
- package/agents/ez-planner.md +1307 -0
- package/agents/ez-project-researcher.md +629 -0
- package/agents/ez-research-synthesizer.md +247 -0
- package/agents/ez-roadmapper.md +650 -0
- package/agents/ez-ui-auditor.md +441 -0
- package/agents/ez-ui-checker.md +302 -0
- package/agents/ez-ui-researcher.md +355 -0
- package/agents/ez-verifier.md +579 -0
- package/bin/install.js +2862 -0
- package/bin/update.js +214 -0
- package/commands/ez/add-phase.md +43 -0
- package/commands/ez/add-tests.md +41 -0
- package/commands/ez/add-todo.md +47 -0
- package/commands/ez/audit-milestone.md +36 -0
- package/commands/ez/autonomous.md +41 -0
- package/commands/ez/check-todos.md +45 -0
- package/commands/ez/cleanup.md +18 -0
- package/commands/ez/complete-milestone.md +136 -0
- package/commands/ez/debug.md +168 -0
- package/commands/ez/discuss-phase.md +90 -0
- package/commands/ez/execute-phase.md +41 -0
- package/commands/ez/health.md +22 -0
- package/commands/ez/help.md +22 -0
- package/commands/ez/insert-phase.md +32 -0
- package/commands/ez/join-discord.md +18 -0
- package/commands/ez/list-phase-assumptions.md +46 -0
- package/commands/ez/map-codebase.md +71 -0
- package/commands/ez/new-milestone.md +44 -0
- package/commands/ez/new-project.md +42 -0
- package/commands/ez/pause-work.md +38 -0
- package/commands/ez/plan-milestone-gaps.md +34 -0
- package/commands/ez/plan-phase.md +45 -0
- package/commands/ez/progress.md +24 -0
- package/commands/ez/quick.md +45 -0
- package/commands/ez/reapply-patches.md +124 -0
- package/commands/ez/remove-phase.md +31 -0
- package/commands/ez/research-phase.md +190 -0
- package/commands/ez/resume-work.md +40 -0
- package/commands/ez/set-profile.md +34 -0
- package/commands/ez/settings.md +36 -0
- package/commands/ez/stats.md +18 -0
- package/commands/ez/ui-phase.md +34 -0
- package/commands/ez/ui-review.md +32 -0
- package/commands/ez/update.md +37 -0
- package/commands/ez/validate-phase.md +35 -0
- package/commands/ez/verify-work.md +38 -0
- package/get-shit-done/bin/ez-tools.cjs +598 -0
- package/get-shit-done/bin/lib/assistant-adapter.cjs +205 -0
- package/get-shit-done/bin/lib/audit-exec.cjs +150 -0
- package/get-shit-done/bin/lib/auth.cjs +175 -0
- package/get-shit-done/bin/lib/circuit-breaker.cjs +118 -0
- package/get-shit-done/bin/lib/commands.cjs +666 -0
- package/get-shit-done/bin/lib/config.cjs +183 -0
- package/get-shit-done/bin/lib/core.cjs +495 -0
- package/get-shit-done/bin/lib/file-lock.cjs +236 -0
- package/get-shit-done/bin/lib/frontmatter.cjs +299 -0
- package/get-shit-done/bin/lib/fs-utils.cjs +153 -0
- package/get-shit-done/bin/lib/git-utils.cjs +203 -0
- package/get-shit-done/bin/lib/health-check.cjs +163 -0
- package/get-shit-done/bin/lib/index.cjs +113 -0
- package/get-shit-done/bin/lib/init.cjs +710 -0
- package/get-shit-done/bin/lib/logger.cjs +117 -0
- package/get-shit-done/bin/lib/milestone.cjs +241 -0
- package/get-shit-done/bin/lib/model-provider.cjs +146 -0
- package/get-shit-done/bin/lib/phase.cjs +908 -0
- package/get-shit-done/bin/lib/retry.cjs +119 -0
- package/get-shit-done/bin/lib/roadmap.cjs +305 -0
- package/get-shit-done/bin/lib/safe-exec.cjs +128 -0
- package/get-shit-done/bin/lib/safe-path.cjs +130 -0
- package/get-shit-done/bin/lib/state.cjs +721 -0
- package/get-shit-done/bin/lib/temp-file.cjs +239 -0
- package/get-shit-done/bin/lib/template.cjs +222 -0
- package/get-shit-done/bin/lib/test-file-lock.cjs +112 -0
- package/get-shit-done/bin/lib/test-graceful.cjs +93 -0
- package/get-shit-done/bin/lib/test-logger.cjs +60 -0
- package/get-shit-done/bin/lib/test-safe-exec.cjs +38 -0
- package/get-shit-done/bin/lib/test-safe-path.cjs +33 -0
- package/get-shit-done/bin/lib/test-temp-file.cjs +125 -0
- package/get-shit-done/bin/lib/timeout-exec.cjs +62 -0
- package/get-shit-done/bin/lib/verify.cjs +820 -0
- package/get-shit-done/references/checkpoints.md +776 -0
- package/get-shit-done/references/continuation-format.md +249 -0
- package/get-shit-done/references/decimal-phase-calculation.md +65 -0
- package/get-shit-done/references/git-integration.md +248 -0
- package/get-shit-done/references/git-planning-commit.md +38 -0
- package/get-shit-done/references/model-profile-resolution.md +34 -0
- package/get-shit-done/references/model-profiles.md +93 -0
- package/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/get-shit-done/references/planning-config.md +200 -0
- package/get-shit-done/references/questioning.md +162 -0
- package/get-shit-done/references/tdd.md +263 -0
- package/get-shit-done/references/ui-brand.md +160 -0
- package/get-shit-done/references/verification-patterns.md +612 -0
- package/get-shit-done/templates/DEBUG.md +164 -0
- package/get-shit-done/templates/UAT.md +247 -0
- package/get-shit-done/templates/UI-SPEC.md +100 -0
- package/get-shit-done/templates/VALIDATION.md +76 -0
- package/get-shit-done/templates/codebase/architecture.md +255 -0
- package/get-shit-done/templates/codebase/concerns.md +310 -0
- package/get-shit-done/templates/codebase/conventions.md +307 -0
- package/get-shit-done/templates/codebase/integrations.md +280 -0
- package/get-shit-done/templates/codebase/stack.md +186 -0
- package/get-shit-done/templates/codebase/structure.md +285 -0
- package/get-shit-done/templates/codebase/testing.md +480 -0
- package/get-shit-done/templates/config.json +37 -0
- package/get-shit-done/templates/context.md +352 -0
- package/get-shit-done/templates/continue-here.md +78 -0
- package/get-shit-done/templates/copilot-instructions.md +7 -0
- package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
- package/get-shit-done/templates/discovery.md +146 -0
- package/get-shit-done/templates/milestone-archive.md +123 -0
- package/get-shit-done/templates/milestone.md +115 -0
- package/get-shit-done/templates/phase-prompt.md +610 -0
- package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
- package/get-shit-done/templates/project.md +184 -0
- package/get-shit-done/templates/requirements.md +231 -0
- package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
- package/get-shit-done/templates/research-project/FEATURES.md +147 -0
- package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
- package/get-shit-done/templates/research-project/STACK.md +120 -0
- package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
- package/get-shit-done/templates/research.md +552 -0
- package/get-shit-done/templates/retrospective.md +54 -0
- package/get-shit-done/templates/roadmap.md +202 -0
- package/get-shit-done/templates/state.md +176 -0
- package/get-shit-done/templates/summary-complex.md +59 -0
- package/get-shit-done/templates/summary-minimal.md +41 -0
- package/get-shit-done/templates/summary-standard.md +48 -0
- package/get-shit-done/templates/summary.md +248 -0
- package/get-shit-done/templates/user-setup.md +311 -0
- package/get-shit-done/templates/verification-report.md +322 -0
- package/get-shit-done/workflows/add-phase.md +112 -0
- package/get-shit-done/workflows/add-tests.md +351 -0
- package/get-shit-done/workflows/add-todo.md +158 -0
- package/get-shit-done/workflows/audit-milestone.md +332 -0
- package/get-shit-done/workflows/autonomous.md +743 -0
- package/get-shit-done/workflows/check-todos.md +177 -0
- package/get-shit-done/workflows/cleanup.md +152 -0
- package/get-shit-done/workflows/complete-milestone.md +766 -0
- package/get-shit-done/workflows/diagnose-issues.md +219 -0
- package/get-shit-done/workflows/discovery-phase.md +289 -0
- package/get-shit-done/workflows/discuss-phase.md +762 -0
- package/get-shit-done/workflows/execute-phase.md +468 -0
- package/get-shit-done/workflows/execute-plan.md +483 -0
- package/get-shit-done/workflows/health.md +159 -0
- package/get-shit-done/workflows/help.md +492 -0
- package/get-shit-done/workflows/insert-phase.md +130 -0
- package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/get-shit-done/workflows/map-codebase.md +316 -0
- package/get-shit-done/workflows/new-milestone.md +384 -0
- package/get-shit-done/workflows/new-project.md +1111 -0
- package/get-shit-done/workflows/node-repair.md +92 -0
- package/get-shit-done/workflows/pause-work.md +122 -0
- package/get-shit-done/workflows/plan-milestone-gaps.md +274 -0
- package/get-shit-done/workflows/plan-phase.md +651 -0
- package/get-shit-done/workflows/progress.md +382 -0
- package/get-shit-done/workflows/quick.md +610 -0
- package/get-shit-done/workflows/remove-phase.md +155 -0
- package/get-shit-done/workflows/research-phase.md +74 -0
- package/get-shit-done/workflows/resume-project.md +307 -0
- package/get-shit-done/workflows/set-profile.md +81 -0
- package/get-shit-done/workflows/settings.md +242 -0
- package/get-shit-done/workflows/stats.md +57 -0
- package/get-shit-done/workflows/transition.md +544 -0
- package/get-shit-done/workflows/ui-phase.md +290 -0
- package/get-shit-done/workflows/ui-review.md +157 -0
- package/get-shit-done/workflows/update.md +320 -0
- package/get-shit-done/workflows/validate-phase.md +167 -0
- package/get-shit-done/workflows/verify-phase.md +243 -0
- package/get-shit-done/workflows/verify-work.md +584 -0
- package/package.json +55 -0
- package/scripts/build-hooks.js +43 -0
- package/scripts/run-tests.cjs +29 -0
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Create executable phase prompts (PLAN.md files) for a roadmap phase with integrated research and verification. Default flow: Research (if needed) -> Plan -> Verify -> Done. Orchestrates gsd-phase-researcher, gsd-planner, and gsd-plan-checker agents with a revision loop (max 3 iterations).
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
|
|
8
|
+
@~/.claude/get-shit-done/references/ui-brand.md
|
|
9
|
+
</required_reading>
|
|
10
|
+
|
|
11
|
+
<process>
|
|
12
|
+
|
|
13
|
+
## 1. Initialize
|
|
14
|
+
|
|
15
|
+
Load all context in one call (paths only to minimize orchestrator context):
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
INIT=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" init plan-phase "$PHASE")
|
|
19
|
+
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Parse JSON for: `researcher_model`, `planner_model`, `checker_model`, `research_enabled`, `plan_checker_enabled`, `nyquist_validation_enabled`, `commit_docs`, `phase_found`, `phase_dir`, `phase_number`, `phase_name`, `phase_slug`, `padded_phase`, `has_research`, `has_context`, `has_plans`, `plan_count`, `planning_exists`, `roadmap_exists`, `phase_req_ids`.
|
|
23
|
+
|
|
24
|
+
**File paths (for <files_to_read> blocks):** `state_path`, `roadmap_path`, `requirements_path`, `context_path`, `research_path`, `verification_path`, `uat_path`. These are null if files don't exist.
|
|
25
|
+
|
|
26
|
+
**If `planning_exists` is false:** Error — run `/ez:new-project` first.
|
|
27
|
+
|
|
28
|
+
## 2. Parse and Normalize Arguments
|
|
29
|
+
|
|
30
|
+
Extract from $ARGUMENTS: phase number (integer or decimal like `2.1`), flags (`--research`, `--skip-research`, `--gaps`, `--skip-verify`, `--prd <filepath>`).
|
|
31
|
+
|
|
32
|
+
Extract `--prd <filepath>` from $ARGUMENTS. If present, set PRD_FILE to the filepath.
|
|
33
|
+
|
|
34
|
+
**If no phase number:** Detect next unplanned phase from roadmap.
|
|
35
|
+
|
|
36
|
+
**If `phase_found` is false:** Validate phase exists in ROADMAP.md. If valid, create the directory using `phase_slug` and `padded_phase` from init:
|
|
37
|
+
```bash
|
|
38
|
+
mkdir -p ".planning/phases/${padded_phase}-${phase_slug}"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Existing artifacts from init:** `has_research`, `has_plans`, `plan_count`.
|
|
42
|
+
|
|
43
|
+
## 3. Validate Phase
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
PHASE_INFO=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" roadmap get-phase "${PHASE}")
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**If `found` is false:** Error with available phases. **If `found` is true:** Extract `phase_number`, `phase_name`, `goal` from JSON.
|
|
50
|
+
|
|
51
|
+
## 3.5. Handle PRD Express Path
|
|
52
|
+
|
|
53
|
+
**Skip if:** No `--prd` flag in arguments.
|
|
54
|
+
|
|
55
|
+
**If `--prd <filepath>` provided:**
|
|
56
|
+
|
|
57
|
+
1. Read the PRD file:
|
|
58
|
+
```bash
|
|
59
|
+
PRD_CONTENT=$(cat "$PRD_FILE" 2>/dev/null)
|
|
60
|
+
if [ -z "$PRD_CONTENT" ]; then
|
|
61
|
+
echo "Error: PRD file not found: $PRD_FILE"
|
|
62
|
+
exit 1
|
|
63
|
+
fi
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
2. Display banner:
|
|
67
|
+
```
|
|
68
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
69
|
+
GSD ► PRD EXPRESS PATH
|
|
70
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
71
|
+
|
|
72
|
+
Using PRD: {PRD_FILE}
|
|
73
|
+
Generating CONTEXT.md from requirements...
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
3. Parse the PRD content and generate CONTEXT.md. The orchestrator should:
|
|
77
|
+
- Extract all requirements, user stories, acceptance criteria, and constraints from the PRD
|
|
78
|
+
- Map each to a locked decision (everything in the PRD is treated as a locked decision)
|
|
79
|
+
- Identify any areas the PRD doesn't cover and mark as "Claude's Discretion"
|
|
80
|
+
- **Extract canonical refs** from ROADMAP.md for this phase, plus any specs/ADRs referenced in the PRD — expand to full file paths (MANDATORY)
|
|
81
|
+
- Create CONTEXT.md in the phase directory
|
|
82
|
+
|
|
83
|
+
4. Write CONTEXT.md:
|
|
84
|
+
```markdown
|
|
85
|
+
# Phase [X]: [Name] - Context
|
|
86
|
+
|
|
87
|
+
**Gathered:** [date]
|
|
88
|
+
**Status:** Ready for planning
|
|
89
|
+
**Source:** PRD Express Path ({PRD_FILE})
|
|
90
|
+
|
|
91
|
+
<domain>
|
|
92
|
+
## Phase Boundary
|
|
93
|
+
|
|
94
|
+
[Extracted from PRD — what this phase delivers]
|
|
95
|
+
|
|
96
|
+
</domain>
|
|
97
|
+
|
|
98
|
+
<decisions>
|
|
99
|
+
## Implementation Decisions
|
|
100
|
+
|
|
101
|
+
{For each requirement/story/criterion in the PRD:}
|
|
102
|
+
### [Category derived from content]
|
|
103
|
+
- [Requirement as locked decision]
|
|
104
|
+
|
|
105
|
+
### Claude's Discretion
|
|
106
|
+
[Areas not covered by PRD — implementation details, technical choices]
|
|
107
|
+
|
|
108
|
+
</decisions>
|
|
109
|
+
|
|
110
|
+
<canonical_refs>
|
|
111
|
+
## Canonical References
|
|
112
|
+
|
|
113
|
+
**Downstream agents MUST read these before planning or implementing.**
|
|
114
|
+
|
|
115
|
+
[MANDATORY. Extract from ROADMAP.md and any docs referenced in the PRD.
|
|
116
|
+
Use full relative paths. Group by topic area.]
|
|
117
|
+
|
|
118
|
+
### [Topic area]
|
|
119
|
+
- `path/to/spec-or-adr.md` — [What it decides/defines]
|
|
120
|
+
|
|
121
|
+
[If no external specs: "No external specs — requirements fully captured in decisions above"]
|
|
122
|
+
|
|
123
|
+
</canonical_refs>
|
|
124
|
+
|
|
125
|
+
<specifics>
|
|
126
|
+
## Specific Ideas
|
|
127
|
+
|
|
128
|
+
[Any specific references, examples, or concrete requirements from PRD]
|
|
129
|
+
|
|
130
|
+
</specifics>
|
|
131
|
+
|
|
132
|
+
<deferred>
|
|
133
|
+
## Deferred Ideas
|
|
134
|
+
|
|
135
|
+
[Items in PRD explicitly marked as future/v2/out-of-scope]
|
|
136
|
+
[If none: "None — PRD covers phase scope"]
|
|
137
|
+
|
|
138
|
+
</deferred>
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
*Phase: XX-name*
|
|
143
|
+
*Context gathered: [date] via PRD Express Path*
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
5. Commit:
|
|
147
|
+
```bash
|
|
148
|
+
node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "docs(${padded_phase}): generate context from PRD" --files "${phase_dir}/${padded_phase}-CONTEXT.md"
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
6. Set `context_content` to the generated CONTEXT.md content and continue to step 5 (Handle Research).
|
|
152
|
+
|
|
153
|
+
**Effect:** This completely bypasses step 4 (Load CONTEXT.md) since we just created it. The rest of the workflow (research, planning, verification) proceeds normally with the PRD-derived context.
|
|
154
|
+
|
|
155
|
+
## 4. Load CONTEXT.md
|
|
156
|
+
|
|
157
|
+
**Skip if:** PRD express path was used (CONTEXT.md already created in step 3.5).
|
|
158
|
+
|
|
159
|
+
Check `context_path` from init JSON.
|
|
160
|
+
|
|
161
|
+
If `context_path` is not null, display: `Using phase context from: ${context_path}`
|
|
162
|
+
|
|
163
|
+
**If `context_path` is null (no CONTEXT.md exists):**
|
|
164
|
+
|
|
165
|
+
Use AskUserQuestion:
|
|
166
|
+
- header: "No context"
|
|
167
|
+
- question: "No CONTEXT.md found for Phase {X}. Plans will use research and requirements only — your design preferences won't be included. Continue or capture context first?"
|
|
168
|
+
- options:
|
|
169
|
+
- "Continue without context" — Plan using research + requirements only
|
|
170
|
+
- "Run discuss-phase first" — Capture design decisions before planning
|
|
171
|
+
|
|
172
|
+
If "Continue without context": Proceed to step 5.
|
|
173
|
+
If "Run discuss-phase first": Display `/ez:discuss-phase {X}` and exit workflow.
|
|
174
|
+
|
|
175
|
+
## 5. Handle Research
|
|
176
|
+
|
|
177
|
+
**Skip if:** `--gaps` flag, `--skip-research` flag, or `research_enabled` is false (from init) without `--research` override.
|
|
178
|
+
|
|
179
|
+
**If `has_research` is true (from init) AND no `--research` flag:** Use existing, skip to step 6.
|
|
180
|
+
|
|
181
|
+
**If RESEARCH.md missing OR `--research` flag:**
|
|
182
|
+
|
|
183
|
+
Display banner:
|
|
184
|
+
```
|
|
185
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
186
|
+
GSD ► RESEARCHING PHASE {X}
|
|
187
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
188
|
+
|
|
189
|
+
◆ Spawning researcher...
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Spawn gsd-phase-researcher
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
PHASE_DESC=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" roadmap get-phase "${PHASE}" | jq -r '.section')
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Research prompt:
|
|
199
|
+
|
|
200
|
+
```markdown
|
|
201
|
+
<objective>
|
|
202
|
+
Research how to implement Phase {phase_number}: {phase_name}
|
|
203
|
+
Answer: "What do I need to know to PLAN this phase well?"
|
|
204
|
+
</objective>
|
|
205
|
+
|
|
206
|
+
<files_to_read>
|
|
207
|
+
- {context_path} (USER DECISIONS from /ez:discuss-phase)
|
|
208
|
+
- {requirements_path} (Project requirements)
|
|
209
|
+
- {state_path} (Project decisions and history)
|
|
210
|
+
</files_to_read>
|
|
211
|
+
|
|
212
|
+
<additional_context>
|
|
213
|
+
**Phase description:** {phase_description}
|
|
214
|
+
**Phase requirement IDs (MUST address):** {phase_req_ids}
|
|
215
|
+
|
|
216
|
+
**Project instructions:** Read ./CLAUDE.md if exists — follow project-specific guidelines
|
|
217
|
+
**Project skills:** Check .claude/skills/ or .agents/skills/ directory (if either exists) — read SKILL.md files, research should account for project skill patterns
|
|
218
|
+
</additional_context>
|
|
219
|
+
|
|
220
|
+
<output>
|
|
221
|
+
Write to: {phase_dir}/{phase_num}-RESEARCH.md
|
|
222
|
+
</output>
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
Task(
|
|
227
|
+
prompt=research_prompt,
|
|
228
|
+
subagent_type="ez-phase-researcher",
|
|
229
|
+
model="{researcher_model}",
|
|
230
|
+
description="Research Phase {phase}"
|
|
231
|
+
)
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Handle Researcher Return
|
|
235
|
+
|
|
236
|
+
- **`## RESEARCH COMPLETE`:** Display confirmation, continue to step 6
|
|
237
|
+
- **`## RESEARCH BLOCKED`:** Display blocker, offer: 1) Provide context, 2) Skip research, 3) Abort
|
|
238
|
+
|
|
239
|
+
## 5.5. Create Validation Strategy
|
|
240
|
+
|
|
241
|
+
Skip if `nyquist_validation_enabled` is false OR `research_enabled` is false.
|
|
242
|
+
|
|
243
|
+
If `research_enabled` is false and `nyquist_validation_enabled` is true: warn "Nyquist validation enabled but research disabled — VALIDATION.md cannot be created without RESEARCH.md. Plans will lack validation requirements (Dimension 8)." Continue to step 6.
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
grep -l "## Validation Architecture" "${PHASE_DIR}"/*-RESEARCH.md 2>/dev/null
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**If found:**
|
|
250
|
+
1. Read template: `~/.claude/get-shit-done/templates/VALIDATION.md`
|
|
251
|
+
2. Write to `${PHASE_DIR}/${PADDED_PHASE}-VALIDATION.md` (use Write tool)
|
|
252
|
+
3. Fill frontmatter: `{N}` → phase number, `{phase-slug}` → slug, `{date}` → current date
|
|
253
|
+
4. Verify:
|
|
254
|
+
```bash
|
|
255
|
+
test -f "${PHASE_DIR}/${PADDED_PHASE}-VALIDATION.md" && echo "VALIDATION_CREATED=true" || echo "VALIDATION_CREATED=false"
|
|
256
|
+
```
|
|
257
|
+
5. If `VALIDATION_CREATED=false`: STOP — do not proceed to Step 6
|
|
258
|
+
6. If `commit_docs`: `commit "docs(phase-${PHASE}): add validation strategy"`
|
|
259
|
+
|
|
260
|
+
**If not found:** Warn and continue — plans may fail Dimension 8.
|
|
261
|
+
|
|
262
|
+
## 5.6. UI Design Contract Gate
|
|
263
|
+
|
|
264
|
+
> Skip if `workflow.ui_phase` is explicitly `false` AND `workflow.ui_safety_gate` is explicitly `false` in `.planning/config.json`. If keys are absent, treat as enabled.
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
UI_PHASE_CFG=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" config-get workflow.ui_phase 2>/dev/null || echo "true")
|
|
268
|
+
UI_GATE_CFG=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" config-get workflow.ui_safety_gate 2>/dev/null || echo "true")
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
**If both are `false`:** Skip to step 6.
|
|
272
|
+
|
|
273
|
+
Check if phase has frontend indicators:
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
PHASE_SECTION=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" roadmap get-phase "${PHASE}" 2>/dev/null)
|
|
277
|
+
echo "$PHASE_SECTION" | grep -iE "UI|interface|frontend|component|layout|page|screen|view|form|dashboard|widget" > /dev/null 2>&1
|
|
278
|
+
HAS_UI=$?
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**If `HAS_UI` is 0 (frontend indicators found):**
|
|
282
|
+
|
|
283
|
+
Check for existing UI-SPEC:
|
|
284
|
+
```bash
|
|
285
|
+
UI_SPEC_FILE=$(ls "${PHASE_DIR}"/*-UI-SPEC.md 2>/dev/null | head -1)
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
**If UI-SPEC.md found:** Set `UI_SPEC_PATH=$UI_SPEC_FILE`. Display: `Using UI design contract: ${UI_SPEC_PATH}`
|
|
289
|
+
|
|
290
|
+
**If UI-SPEC.md missing AND `UI_GATE_CFG` is `true`:**
|
|
291
|
+
|
|
292
|
+
Use AskUserQuestion:
|
|
293
|
+
- header: "UI Design Contract"
|
|
294
|
+
- question: "Phase {N} has frontend indicators but no UI-SPEC.md. Generate a design contract before planning?"
|
|
295
|
+
- options:
|
|
296
|
+
- "Generate UI-SPEC first" → Display: "Run `/ez:ui-phase {N}` then re-run `/ez:plan-phase {N}`". Exit workflow.
|
|
297
|
+
- "Continue without UI-SPEC" → Continue to step 6.
|
|
298
|
+
- "Not a frontend phase" → Continue to step 6.
|
|
299
|
+
|
|
300
|
+
**If `HAS_UI` is 1 (no frontend indicators):** Skip silently to step 6.
|
|
301
|
+
|
|
302
|
+
## 6. Check Existing Plans
|
|
303
|
+
|
|
304
|
+
```bash
|
|
305
|
+
ls "${PHASE_DIR}"/*-PLAN.md 2>/dev/null
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
**If exists:** Offer: 1) Add more plans, 2) View existing, 3) Replan from scratch.
|
|
309
|
+
|
|
310
|
+
## 7. Use Context Paths from INIT
|
|
311
|
+
|
|
312
|
+
Extract from INIT JSON:
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
STATE_PATH=$(printf '%s\n' "$INIT" | jq -r '.state_path // empty')
|
|
316
|
+
ROADMAP_PATH=$(printf '%s\n' "$INIT" | jq -r '.roadmap_path // empty')
|
|
317
|
+
REQUIREMENTS_PATH=$(printf '%s\n' "$INIT" | jq -r '.requirements_path // empty')
|
|
318
|
+
RESEARCH_PATH=$(printf '%s\n' "$INIT" | jq -r '.research_path // empty')
|
|
319
|
+
VERIFICATION_PATH=$(printf '%s\n' "$INIT" | jq -r '.verification_path // empty')
|
|
320
|
+
UAT_PATH=$(printf '%s\n' "$INIT" | jq -r '.uat_path // empty')
|
|
321
|
+
CONTEXT_PATH=$(printf '%s\n' "$INIT" | jq -r '.context_path // empty')
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
## 7.5. Verify Nyquist Artifacts
|
|
325
|
+
|
|
326
|
+
Skip if `nyquist_validation_enabled` is false OR `research_enabled` is false.
|
|
327
|
+
|
|
328
|
+
```bash
|
|
329
|
+
VALIDATION_EXISTS=$(ls "${PHASE_DIR}"/*-VALIDATION.md 2>/dev/null | head -1)
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
If missing and Nyquist enabled — ask user:
|
|
333
|
+
1. Re-run with research: `/ez:plan-phase {PHASE} --research`
|
|
334
|
+
2. Disable Nyquist: `node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" config-set workflow.nyquist_validation false`
|
|
335
|
+
3. Continue anyway (plans fail Dimension 8)
|
|
336
|
+
|
|
337
|
+
Proceed to Step 8 only if user selects 2 or 3.
|
|
338
|
+
|
|
339
|
+
## 8. Spawn gsd-planner Agent
|
|
340
|
+
|
|
341
|
+
Display banner:
|
|
342
|
+
```
|
|
343
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
344
|
+
GSD ► PLANNING PHASE {X}
|
|
345
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
346
|
+
|
|
347
|
+
◆ Spawning planner...
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
Planner prompt:
|
|
351
|
+
|
|
352
|
+
```markdown
|
|
353
|
+
<planning_context>
|
|
354
|
+
**Phase:** {phase_number}
|
|
355
|
+
**Mode:** {standard | gap_closure}
|
|
356
|
+
|
|
357
|
+
<files_to_read>
|
|
358
|
+
- {state_path} (Project State)
|
|
359
|
+
- {roadmap_path} (Roadmap)
|
|
360
|
+
- {requirements_path} (Requirements)
|
|
361
|
+
- {context_path} (USER DECISIONS from /ez:discuss-phase)
|
|
362
|
+
- {research_path} (Technical Research)
|
|
363
|
+
- {verification_path} (Verification Gaps - if --gaps)
|
|
364
|
+
- {uat_path} (UAT Gaps - if --gaps)
|
|
365
|
+
- {UI_SPEC_PATH} (UI Design Contract — visual/interaction specs, if exists)
|
|
366
|
+
</files_to_read>
|
|
367
|
+
|
|
368
|
+
**Phase requirement IDs (every ID MUST appear in a plan's `requirements` field):** {phase_req_ids}
|
|
369
|
+
|
|
370
|
+
**Project instructions:** Read ./CLAUDE.md if exists — follow project-specific guidelines
|
|
371
|
+
**Project skills:** Check .claude/skills/ or .agents/skills/ directory (if either exists) — read SKILL.md files, plans should account for project skill rules
|
|
372
|
+
</planning_context>
|
|
373
|
+
|
|
374
|
+
<downstream_consumer>
|
|
375
|
+
Output consumed by /ez:execute-phase. Plans need:
|
|
376
|
+
- Frontmatter (wave, depends_on, files_modified, autonomous)
|
|
377
|
+
- Tasks in XML format with read_first and acceptance_criteria fields (MANDATORY on every task)
|
|
378
|
+
- Verification criteria
|
|
379
|
+
- must_haves for goal-backward verification
|
|
380
|
+
</downstream_consumer>
|
|
381
|
+
|
|
382
|
+
<deep_work_rules>
|
|
383
|
+
## Anti-Shallow Execution Rules (MANDATORY)
|
|
384
|
+
|
|
385
|
+
Every task MUST include these fields — they are NOT optional:
|
|
386
|
+
|
|
387
|
+
1. **`<read_first>`** — Files the executor MUST read before touching anything. Always include:
|
|
388
|
+
- The file being modified (so executor sees current state, not assumptions)
|
|
389
|
+
- Any "source of truth" file referenced in CONTEXT.md (reference implementations, existing patterns, config files, schemas)
|
|
390
|
+
- Any file whose patterns, signatures, types, or conventions must be replicated or respected
|
|
391
|
+
|
|
392
|
+
2. **`<acceptance_criteria>`** — Verifiable conditions that prove the task was done correctly. Rules:
|
|
393
|
+
- Every criterion must be checkable with grep, file read, test command, or CLI output
|
|
394
|
+
- NEVER use subjective language ("looks correct", "properly configured", "consistent with")
|
|
395
|
+
- ALWAYS include exact strings, patterns, values, or command outputs that must be present
|
|
396
|
+
- Examples:
|
|
397
|
+
- Code: `auth.py contains def verify_token(` / `test_auth.py exits 0`
|
|
398
|
+
- Config: `.env.example contains DATABASE_URL=` / `Dockerfile contains HEALTHCHECK`
|
|
399
|
+
- Docs: `README.md contains '## Installation'` / `API.md lists all endpoints`
|
|
400
|
+
- Infra: `deploy.yml has rollback step` / `docker-compose.yml has healthcheck for db`
|
|
401
|
+
|
|
402
|
+
3. **`<action>`** — Must include CONCRETE values, not references. Rules:
|
|
403
|
+
- NEVER say "align X with Y", "match X to Y", "update to be consistent" without specifying the exact target state
|
|
404
|
+
- ALWAYS include the actual values: config keys, function signatures, SQL statements, class names, import paths, env vars, etc.
|
|
405
|
+
- If CONTEXT.md has a comparison table or expected values, copy them into the action verbatim
|
|
406
|
+
- The executor should be able to complete the task from the action text alone, without needing to read CONTEXT.md or reference files (read_first is for verification, not discovery)
|
|
407
|
+
|
|
408
|
+
**Why this matters:** Executor agents work from the plan text. Vague instructions like "update the config to match production" produce shallow one-line changes. Concrete instructions like "add DATABASE_URL=postgresql://... , set POOL_SIZE=20, add REDIS_URL=redis://..." produce complete work. The cost of verbose plans is far less than the cost of re-doing shallow execution.
|
|
409
|
+
</deep_work_rules>
|
|
410
|
+
|
|
411
|
+
<quality_gate>
|
|
412
|
+
- [ ] PLAN.md files created in phase directory
|
|
413
|
+
- [ ] Each plan has valid frontmatter
|
|
414
|
+
- [ ] Tasks are specific and actionable
|
|
415
|
+
- [ ] Every task has `<read_first>` with at least the file being modified
|
|
416
|
+
- [ ] Every task has `<acceptance_criteria>` with grep-verifiable conditions
|
|
417
|
+
- [ ] Every `<action>` contains concrete values (no "align X with Y" without specifying what)
|
|
418
|
+
- [ ] Dependencies correctly identified
|
|
419
|
+
- [ ] Waves assigned for parallel execution
|
|
420
|
+
- [ ] must_haves derived from phase goal
|
|
421
|
+
</quality_gate>
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
```
|
|
425
|
+
Task(
|
|
426
|
+
prompt=filled_prompt,
|
|
427
|
+
subagent_type="ez-planner",
|
|
428
|
+
model="{planner_model}",
|
|
429
|
+
description="Plan Phase {phase}"
|
|
430
|
+
)
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
## 9. Handle Planner Return
|
|
434
|
+
|
|
435
|
+
- **`## PLANNING COMPLETE`:** Display plan count. If `--skip-verify` or `plan_checker_enabled` is false (from init): skip to step 13. Otherwise: step 10.
|
|
436
|
+
- **`## CHECKPOINT REACHED`:** Present to user, get response, spawn continuation (step 12)
|
|
437
|
+
- **`## PLANNING INCONCLUSIVE`:** Show attempts, offer: Add context / Retry / Manual
|
|
438
|
+
|
|
439
|
+
## 10. Spawn gsd-plan-checker Agent
|
|
440
|
+
|
|
441
|
+
Display banner:
|
|
442
|
+
```
|
|
443
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
444
|
+
GSD ► VERIFYING PLANS
|
|
445
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
446
|
+
|
|
447
|
+
◆ Spawning plan checker...
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
Checker prompt:
|
|
451
|
+
|
|
452
|
+
```markdown
|
|
453
|
+
<verification_context>
|
|
454
|
+
**Phase:** {phase_number}
|
|
455
|
+
**Phase Goal:** {goal from ROADMAP}
|
|
456
|
+
|
|
457
|
+
<files_to_read>
|
|
458
|
+
- {PHASE_DIR}/*-PLAN.md (Plans to verify)
|
|
459
|
+
- {roadmap_path} (Roadmap)
|
|
460
|
+
- {requirements_path} (Requirements)
|
|
461
|
+
- {context_path} (USER DECISIONS from /ez:discuss-phase)
|
|
462
|
+
- {research_path} (Technical Research — includes Validation Architecture)
|
|
463
|
+
</files_to_read>
|
|
464
|
+
|
|
465
|
+
**Phase requirement IDs (MUST ALL be covered):** {phase_req_ids}
|
|
466
|
+
|
|
467
|
+
**Project instructions:** Read ./CLAUDE.md if exists — verify plans honor project guidelines
|
|
468
|
+
**Project skills:** Check .claude/skills/ or .agents/skills/ directory (if either exists) — verify plans account for project skill rules
|
|
469
|
+
</verification_context>
|
|
470
|
+
|
|
471
|
+
<expected_output>
|
|
472
|
+
- ## VERIFICATION PASSED — all checks pass
|
|
473
|
+
- ## ISSUES FOUND — structured issue list
|
|
474
|
+
</expected_output>
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
```
|
|
478
|
+
Task(
|
|
479
|
+
prompt=checker_prompt,
|
|
480
|
+
subagent_type="ez-plan-checker",
|
|
481
|
+
model="{checker_model}",
|
|
482
|
+
description="Verify Phase {phase} plans"
|
|
483
|
+
)
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
## 11. Handle Checker Return
|
|
487
|
+
|
|
488
|
+
- **`## VERIFICATION PASSED`:** Display confirmation, proceed to step 13.
|
|
489
|
+
- **`## ISSUES FOUND`:** Display issues, check iteration count, proceed to step 12.
|
|
490
|
+
|
|
491
|
+
## 12. Revision Loop (Max 3 Iterations)
|
|
492
|
+
|
|
493
|
+
Track `iteration_count` (starts at 1 after initial plan + check).
|
|
494
|
+
|
|
495
|
+
**If iteration_count < 3:**
|
|
496
|
+
|
|
497
|
+
Display: `Sending back to planner for revision... (iteration {N}/3)`
|
|
498
|
+
|
|
499
|
+
Revision prompt:
|
|
500
|
+
|
|
501
|
+
```markdown
|
|
502
|
+
<revision_context>
|
|
503
|
+
**Phase:** {phase_number}
|
|
504
|
+
**Mode:** revision
|
|
505
|
+
|
|
506
|
+
<files_to_read>
|
|
507
|
+
- {PHASE_DIR}/*-PLAN.md (Existing plans)
|
|
508
|
+
- {context_path} (USER DECISIONS from /ez:discuss-phase)
|
|
509
|
+
</files_to_read>
|
|
510
|
+
|
|
511
|
+
**Checker issues:** {structured_issues_from_checker}
|
|
512
|
+
</revision_context>
|
|
513
|
+
|
|
514
|
+
<instructions>
|
|
515
|
+
Make targeted updates to address checker issues.
|
|
516
|
+
Do NOT replan from scratch unless issues are fundamental.
|
|
517
|
+
Return what changed.
|
|
518
|
+
</instructions>
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
```
|
|
522
|
+
Task(
|
|
523
|
+
prompt=revision_prompt,
|
|
524
|
+
subagent_type="ez-planner",
|
|
525
|
+
model="{planner_model}",
|
|
526
|
+
description="Revise Phase {phase} plans"
|
|
527
|
+
)
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
After planner returns -> spawn checker again (step 10), increment iteration_count.
|
|
531
|
+
|
|
532
|
+
**If iteration_count >= 3:**
|
|
533
|
+
|
|
534
|
+
Display: `Max iterations reached. {N} issues remain:` + issue list
|
|
535
|
+
|
|
536
|
+
Offer: 1) Force proceed, 2) Provide guidance and retry, 3) Abandon
|
|
537
|
+
|
|
538
|
+
## 13. Present Final Status
|
|
539
|
+
|
|
540
|
+
Route to `<offer_next>` OR `auto_advance` depending on flags/config.
|
|
541
|
+
|
|
542
|
+
## 14. Auto-Advance Check
|
|
543
|
+
|
|
544
|
+
Check for auto-advance trigger:
|
|
545
|
+
|
|
546
|
+
1. Parse `--auto` flag from $ARGUMENTS
|
|
547
|
+
2. **Sync chain flag with intent** — if user invoked manually (no `--auto`), clear the ephemeral chain flag from any previous interrupted `--auto` chain. This does NOT touch `workflow.auto_advance` (the user's persistent settings preference):
|
|
548
|
+
```bash
|
|
549
|
+
if [[ ! "$ARGUMENTS" =~ --auto ]]; then
|
|
550
|
+
node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" config-set workflow._auto_chain_active false 2>/dev/null
|
|
551
|
+
fi
|
|
552
|
+
```
|
|
553
|
+
3. Read both the chain flag and user preference:
|
|
554
|
+
```bash
|
|
555
|
+
AUTO_CHAIN=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" config-get workflow._auto_chain_active 2>/dev/null || echo "false")
|
|
556
|
+
AUTO_CFG=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" config-get workflow.auto_advance 2>/dev/null || echo "false")
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
**If `--auto` flag present OR `AUTO_CHAIN` is true OR `AUTO_CFG` is true:**
|
|
560
|
+
|
|
561
|
+
Display banner:
|
|
562
|
+
```
|
|
563
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
564
|
+
GSD ► AUTO-ADVANCING TO EXECUTE
|
|
565
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
566
|
+
|
|
567
|
+
Plans ready. Launching execute-phase...
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
Launch execute-phase using the Skill tool to avoid nested Task sessions (which cause runtime freezes due to deep agent nesting):
|
|
571
|
+
```
|
|
572
|
+
Skill(skill="gsd:execute-phase", args="${PHASE} --auto --no-transition")
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
The `--no-transition` flag tells execute-phase to return status after verification instead of chaining further. This keeps the auto-advance chain flat — each phase runs at the same nesting level rather than spawning deeper Task agents.
|
|
576
|
+
|
|
577
|
+
**Handle execute-phase return:**
|
|
578
|
+
- **PHASE COMPLETE** → Display final summary:
|
|
579
|
+
```
|
|
580
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
581
|
+
GSD ► PHASE ${PHASE} COMPLETE ✓
|
|
582
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
583
|
+
|
|
584
|
+
Auto-advance pipeline finished.
|
|
585
|
+
|
|
586
|
+
Next: /ez:discuss-phase ${NEXT_PHASE} --auto
|
|
587
|
+
```
|
|
588
|
+
- **GAPS FOUND / VERIFICATION FAILED** → Display result, stop chain:
|
|
589
|
+
```
|
|
590
|
+
Auto-advance stopped: Execution needs review.
|
|
591
|
+
|
|
592
|
+
Review the output above and continue manually:
|
|
593
|
+
/ez:execute-phase ${PHASE}
|
|
594
|
+
```
|
|
595
|
+
|
|
596
|
+
**If neither `--auto` nor config enabled:**
|
|
597
|
+
Route to `<offer_next>` (existing behavior).
|
|
598
|
+
|
|
599
|
+
</process>
|
|
600
|
+
|
|
601
|
+
<offer_next>
|
|
602
|
+
Output this markdown directly (not as a code block):
|
|
603
|
+
|
|
604
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
605
|
+
GSD ► PHASE {X} PLANNED ✓
|
|
606
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
607
|
+
|
|
608
|
+
**Phase {X}: {Name}** — {N} plan(s) in {M} wave(s)
|
|
609
|
+
|
|
610
|
+
| Wave | Plans | What it builds |
|
|
611
|
+
|------|-------|----------------|
|
|
612
|
+
| 1 | 01, 02 | [objectives] |
|
|
613
|
+
| 2 | 03 | [objective] |
|
|
614
|
+
|
|
615
|
+
Research: {Completed | Used existing | Skipped}
|
|
616
|
+
Verification: {Passed | Passed with override | Skipped}
|
|
617
|
+
|
|
618
|
+
───────────────────────────────────────────────────────────────
|
|
619
|
+
|
|
620
|
+
## ▶ Next Up
|
|
621
|
+
|
|
622
|
+
**Execute Phase {X}** — run all {N} plans
|
|
623
|
+
|
|
624
|
+
/ez:execute-phase {X}
|
|
625
|
+
|
|
626
|
+
<sub>/clear first → fresh context window</sub>
|
|
627
|
+
|
|
628
|
+
───────────────────────────────────────────────────────────────
|
|
629
|
+
|
|
630
|
+
**Also available:**
|
|
631
|
+
- cat .planning/phases/{phase-dir}/*-PLAN.md — review plans
|
|
632
|
+
- /ez:plan-phase {X} --research — re-research first
|
|
633
|
+
|
|
634
|
+
───────────────────────────────────────────────────────────────
|
|
635
|
+
</offer_next>
|
|
636
|
+
|
|
637
|
+
<success_criteria>
|
|
638
|
+
- [ ] .planning/ directory validated
|
|
639
|
+
- [ ] Phase validated against roadmap
|
|
640
|
+
- [ ] Phase directory created if needed
|
|
641
|
+
- [ ] CONTEXT.md loaded early (step 4) and passed to ALL agents
|
|
642
|
+
- [ ] Research completed (unless --skip-research or --gaps or exists)
|
|
643
|
+
- [ ] gsd-phase-researcher spawned with CONTEXT.md
|
|
644
|
+
- [ ] Existing plans checked
|
|
645
|
+
- [ ] gsd-planner spawned with CONTEXT.md + RESEARCH.md
|
|
646
|
+
- [ ] Plans created (PLANNING COMPLETE or CHECKPOINT handled)
|
|
647
|
+
- [ ] gsd-plan-checker spawned with CONTEXT.md
|
|
648
|
+
- [ ] Verification passed OR user override OR max iterations with user decision
|
|
649
|
+
- [ ] User sees status between agent spawns
|
|
650
|
+
- [ ] User knows next steps
|
|
651
|
+
</success_criteria>
|