fix(docs): use {phase_num} instead of ambiguous {phase} for filenames (#601)
The verifier agent interpreted {phase} as the full directory slug
(e.g., 01-foundation-target-system) instead of just the padded phase
number (01), producing wrong filenames like
01-foundation-target-system-VERIFICATION.md.
Changed all {phase}-*.md references to {phase_num}-*.md to match the
convention used in gsd-tools.js (${padded}-VERIFICATION.md).
Files: VERIFICATION.md, RESEARCH.md, CONTEXT.md, UAT.md patterns.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -223,7 +223,7 @@ For each area you select, it asks until you're satisfied. The output — `CONTEX
|
||||
|
||||
The deeper you go here, the more the system builds what you actually want. Skip it and you get reasonable defaults. Use it and you get *your* vision.
|
||||
|
||||
**Creates:** `{phase}-CONTEXT.md`
|
||||
**Creates:** `{phase_num}-CONTEXT.md`
|
||||
|
||||
---
|
||||
|
||||
@@ -241,7 +241,7 @@ The system:
|
||||
|
||||
Each plan is small enough to execute in a fresh context window. No degradation, no "I'll be more concise now."
|
||||
|
||||
**Creates:** `{phase}-RESEARCH.md`, `{phase}-{N}-PLAN.md`
|
||||
**Creates:** `{phase_num}-RESEARCH.md`, `{phase_num}-{N}-PLAN.md`
|
||||
|
||||
---
|
||||
|
||||
@@ -260,7 +260,7 @@ The system:
|
||||
|
||||
Walk away, come back to completed work with clean git history.
|
||||
|
||||
**Creates:** `{phase}-{N}-SUMMARY.md`, `{phase}-VERIFICATION.md`
|
||||
**Creates:** `{phase_num}-{N}-SUMMARY.md`, `{phase_num}-VERIFICATION.md`
|
||||
|
||||
---
|
||||
|
||||
@@ -283,7 +283,7 @@ The system:
|
||||
|
||||
If everything passes, you move on. If something's broken, you don't manually debug — you just run `/gsd:execute-phase` again with the fix plans it created.
|
||||
|
||||
**Creates:** `{phase}-UAT.md`, fix plans if issues found
|
||||
**Creates:** `{phase_num}-UAT.md`, fix plans if issues found
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ Priority: Context7 > Official Docs > Official GitHub > Verified WebSearch > Unve
|
||||
|
||||
## RESEARCH.md Structure
|
||||
|
||||
**Location:** `.planning/phases/XX-name/{phase}-RESEARCH.md`
|
||||
**Location:** `.planning/phases/XX-name/{phase_num}-RESEARCH.md`
|
||||
|
||||
```markdown
|
||||
# Phase [X]: [Name] - Research
|
||||
|
||||
@@ -317,7 +317,7 @@ gaps:
|
||||
|
||||
## Create VERIFICATION.md
|
||||
|
||||
Create `.planning/phases/{phase_dir}/{phase}-VERIFICATION.md`:
|
||||
Create `.planning/phases/{phase_dir}/{phase_num}-VERIFICATION.md`:
|
||||
|
||||
```markdown
|
||||
---
|
||||
@@ -411,7 +411,7 @@ Return with:
|
||||
|
||||
**Status:** {passed | gaps_found | human_needed}
|
||||
**Score:** {N}/{M} must-haves verified
|
||||
**Report:** .planning/phases/{phase_dir}/{phase}-VERIFICATION.md
|
||||
**Report:** .planning/phases/{phase_dir}/{phase_num}-VERIFICATION.md
|
||||
|
||||
{If passed:}
|
||||
All must-haves verified. Phase goal achieved. Ready to proceed.
|
||||
|
||||
@@ -20,7 +20,7 @@ Extract implementation decisions that downstream agents need — researcher and
|
||||
3. Deep-dive each selected area until satisfied
|
||||
4. Create CONTEXT.md with decisions that guide research and planning
|
||||
|
||||
**Output:** `{phase}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
|
||||
**Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
|
||||
</objective>
|
||||
|
||||
<execution_context>
|
||||
|
||||
@@ -16,7 +16,7 @@ Validate built features through conversational testing with persistent state.
|
||||
|
||||
Purpose: Confirm what Claude built actually works from user's perspective. One test at a time, plain text responses, no interrogation. When issues are found, automatically diagnose, plan fixes, and prepare for execution.
|
||||
|
||||
Output: {phase}-UAT.md tracking all test results. If issues found: diagnosed gaps, verified fix plans ready for /gsd:execute-phase
|
||||
Output: {phase_num}-UAT.md tracking all test results. If issues found: diagnosed gaps, verified fix plans ready for /gsd:execute-phase
|
||||
</objective>
|
||||
|
||||
<execution_context>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# UAT Template
|
||||
|
||||
Template for `.planning/phases/XX-name/{phase}-UAT.md` — persistent UAT session tracking.
|
||||
Template for `.planning/phases/XX-name/{phase_num}-UAT.md` — persistent UAT session tracking.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Phase Context Template
|
||||
|
||||
Template for `.planning/phases/XX-name/{phase}-CONTEXT.md` - captures implementation decisions for a phase.
|
||||
Template for `.planning/phases/XX-name/{phase_num}-CONTEXT.md` - captures implementation decisions for a phase.
|
||||
|
||||
**Purpose:** Document decisions that downstream agents need. Researcher uses this to know WHAT to investigate. Planner uses this to know WHAT choices are locked vs flexible.
|
||||
|
||||
@@ -276,7 +276,7 @@ The output should answer: "What does the researcher need to investigate? What ch
|
||||
- "Easy to use"
|
||||
|
||||
**After creation:**
|
||||
- File lives in phase directory: `.planning/phases/XX-name/{phase}-CONTEXT.md`
|
||||
- File lives in phase directory: `.planning/phases/XX-name/{phase_num}-CONTEXT.md`
|
||||
- `gsd-phase-researcher` uses decisions to focus investigation
|
||||
- `gsd-planner` uses decisions + research to create executable tasks
|
||||
- Downstream agents should NOT need to ask the user again about captured decisions
|
||||
|
||||
@@ -22,14 +22,14 @@ Template for spawning gsd-planner agent. The agent contains all planning experti
|
||||
@.planning/REQUIREMENTS.md
|
||||
|
||||
**Phase Context (if exists):**
|
||||
@.planning/phases/{phase_dir}/{phase}-CONTEXT.md
|
||||
@.planning/phases/{phase_dir}/{phase_num}-CONTEXT.md
|
||||
|
||||
**Research (if exists):**
|
||||
@.planning/phases/{phase_dir}/{phase}-RESEARCH.md
|
||||
@.planning/phases/{phase_dir}/{phase_num}-RESEARCH.md
|
||||
|
||||
**Gap Closure (if --gaps mode):**
|
||||
@.planning/phases/{phase_dir}/{phase}-VERIFICATION.md
|
||||
@.planning/phases/{phase_dir}/{phase}-UAT.md
|
||||
@.planning/phases/{phase_dir}/{phase_num}-VERIFICATION.md
|
||||
@.planning/phases/{phase_dir}/{phase_num}-UAT.md
|
||||
|
||||
</planning_context>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Research Template
|
||||
|
||||
Template for `.planning/phases/XX-name/{phase}-RESEARCH.md` - comprehensive ecosystem research before planning.
|
||||
Template for `.planning/phases/XX-name/{phase_num}-RESEARCH.md` - comprehensive ecosystem research before planning.
|
||||
|
||||
**Purpose:** Document what Claude needs to know to implement a phase well - not just "which library" but "how do experts build this."
|
||||
|
||||
@@ -547,6 +547,6 @@ function useVehicleControls(rigidBodyRef) {
|
||||
- Code examples can be referenced in task actions
|
||||
|
||||
**After creation:**
|
||||
- File lives in phase directory: `.planning/phases/XX-name/{phase}-RESEARCH.md`
|
||||
- File lives in phase directory: `.planning/phases/XX-name/{phase_num}-RESEARCH.md`
|
||||
- Referenced during planning workflow
|
||||
- plan-phase loads it automatically when present
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Verification Report Template
|
||||
|
||||
Template for `.planning/phases/XX-name/{phase}-VERIFICATION.md` — phase goal verification results.
|
||||
Template for `.planning/phases/XX-name/{phase_num}-VERIFICATION.md` — phase goal verification results.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ Update status in frontmatter to "diagnosed".
|
||||
|
||||
Commit the updated UAT.md:
|
||||
```bash
|
||||
node ~/.claude/get-shit-done/bin/gsd-tools.js commit "docs({phase}): add root causes from diagnosis" --files ".planning/phases/XX-name/{phase}-UAT.md"
|
||||
node ~/.claude/get-shit-done/bin/gsd-tools.js commit "docs({phase_num}): add root causes from diagnosis" --files ".planning/phases/XX-name/{phase_num}-UAT.md"
|
||||
```
|
||||
</step>
|
||||
|
||||
|
||||
@@ -267,7 +267,7 @@ All automated checks passed. {N} items need human testing:
|
||||
## ⚠ Phase {X}: {Name} — Gaps Found
|
||||
|
||||
**Score:** {N}/{M} must-haves verified
|
||||
**Report:** {phase_dir}/{phase}-VERIFICATION.md
|
||||
**Report:** {phase_dir}/{phase_num}-VERIFICATION.md
|
||||
|
||||
### What's Missing
|
||||
{Gap summaries from VERIFICATION.md}
|
||||
@@ -279,7 +279,7 @@ All automated checks passed. {N} items need human testing:
|
||||
|
||||
<sub>`/clear` first → fresh context window</sub>
|
||||
|
||||
Also: `cat {phase_dir}/{phase}-VERIFICATION.md` — full report
|
||||
Also: `cat {phase_dir}/{phase_num}-VERIFICATION.md` — full report
|
||||
Also: `/gsd:verify-work {X}` — manual testing first
|
||||
```
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ IMPORTANT: If CONTEXT.md exists below, it contains user decisions from /gsd:disc
|
||||
</additional_context>
|
||||
|
||||
<output>
|
||||
Write to: {phase_dir}/{phase}-RESEARCH.md
|
||||
Write to: {phase_dir}/{phase_num}-RESEARCH.md
|
||||
</output>
|
||||
```
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ Read its `<objective>` section.
|
||||
|
||||
**Route B: Phase needs planning**
|
||||
|
||||
Check if `{phase}-CONTEXT.md` exists in phase directory.
|
||||
Check if `{phase_num}-CONTEXT.md` exists in phase directory.
|
||||
|
||||
**If CONTEXT.md exists:**
|
||||
|
||||
@@ -246,7 +246,7 @@ UAT.md exists with gaps (diagnosed issues). User needs to plan fixes.
|
||||
|
||||
## ⚠ UAT Gaps Found
|
||||
|
||||
**{phase}-UAT.md** has {N} gaps requiring fixes.
|
||||
**{phase_num}-UAT.md** has {N} gaps requiring fixes.
|
||||
|
||||
`/gsd:plan-phase {phase} --gaps`
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ skipped: 0
|
||||
[none yet]
|
||||
```
|
||||
|
||||
Write to `.planning/phases/XX-name/{phase}-UAT.md`
|
||||
Write to `.planning/phases/XX-name/{phase_num}-UAT.md`
|
||||
|
||||
Proceed to `present_test`.
|
||||
</step>
|
||||
@@ -292,7 +292,7 @@ Clear Current Test section:
|
||||
|
||||
Commit the UAT file:
|
||||
```bash
|
||||
node ~/.claude/get-shit-done/bin/gsd-tools.js commit "test({phase}): complete UAT - {passed} passed, {issues} issues" --files ".planning/phases/XX-name/{phase}-UAT.md"
|
||||
node ~/.claude/get-shit-done/bin/gsd-tools.js commit "test({phase_num}): complete UAT - {passed} passed, {issues} issues" --files ".planning/phases/XX-name/{phase_num}-UAT.md"
|
||||
```
|
||||
|
||||
Present summary:
|
||||
@@ -366,7 +366,7 @@ Task(
|
||||
**Mode:** gap_closure
|
||||
|
||||
**UAT with diagnoses:**
|
||||
@.planning/phases/{phase_dir}/{phase}-UAT.md
|
||||
@.planning/phases/{phase_dir}/{phase_num}-UAT.md
|
||||
|
||||
**Project State:**
|
||||
@.planning/STATE.md
|
||||
|
||||
Reference in New Issue
Block a user