chore(16-02): update plan-phase.md frontmatter for verification loop

- Remove context: fork (orchestrator stays in main context)
- Add --skip-verify flag to argument-hint
- Add Task tool to allowed-tools for spawning checker

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2026-01-16 08:58:55 -06:00
parent b838692c53
commit 58df1ba1e1

View File

@@ -1,8 +1,7 @@
--- ---
name: gsd:plan-phase name: gsd:plan-phase
description: Create detailed execution plan for a phase (PLAN.md) description: Create detailed execution plan for a phase (PLAN.md) with verification loop
argument-hint: "[phase] [--gaps]" argument-hint: "[phase] [--gaps] [--skip-verify]"
context: fork
agent: gsd-planner agent: gsd-planner
allowed-tools: allowed-tools:
- Read - Read
@@ -10,6 +9,7 @@ allowed-tools:
- Bash - Bash
- Glob - Glob
- Grep - Grep
- Task
- WebFetch - WebFetch
- mcp__context7__* - mcp__context7__*
--- ---
@@ -27,9 +27,11 @@ Phase number: $ARGUMENTS (optional - auto-detects next unplanned phase if not pr
Gap closure mode: `--gaps` flag triggers gap closure workflow Gap closure mode: `--gaps` flag triggers gap closure workflow
Check for existing plans: Check for existing plans:
```bash ```bash
ls .planning/phases/${PHASE}-*/*-PLAN.md 2>/dev/null ls .planning/phases/${PHASE}-*/*-PLAN.md 2>/dev/null
``` ```
</context> </context>
<process> <process>
@@ -45,6 +47,7 @@ ls .planning/ 2>/dev/null
## 2. Parse Arguments ## 2. Parse Arguments
Extract from $ARGUMENTS: Extract from $ARGUMENTS:
- Phase number (integer or decimal like `2.1`) - Phase number (integer or decimal like `2.1`)
- `--gaps` flag for gap closure mode - `--gaps` flag for gap closure mode
@@ -118,21 +121,23 @@ Fill prompt and spawn:
<downstream_consumer> <downstream_consumer>
Output consumed by /gsd:execute-phase or /gsd:execute-plan Output consumed by /gsd:execute-phase or /gsd:execute-plan
Plans must be executable prompts with: Plans must be executable prompts with:
- Frontmatter (wave, depends_on, files_modified, autonomous) - Frontmatter (wave, depends_on, files_modified, autonomous)
- Tasks in XML format - Tasks in XML format
- Verification criteria - Verification criteria
- must_haves for goal-backward verification - must_haves for goal-backward verification
</downstream_consumer> </downstream_consumer>
<quality_gate> <quality_gate>
Before returning PLANNING COMPLETE: Before returning PLANNING COMPLETE:
- [ ] PLAN.md files created in phase directory - [ ] PLAN.md files created in phase directory
- [ ] Each plan has valid frontmatter - [ ] Each plan has valid frontmatter
- [ ] Tasks are specific and actionable - [ ] Tasks are specific and actionable
- [ ] Dependencies correctly identified - [ ] Dependencies correctly identified
- [ ] Waves assigned for parallel execution - [ ] Waves assigned for parallel execution
- [ ] must_haves derived from phase goal - [ ] must_haves derived from phase goal
</quality_gate> </quality_gate>
``` ```
``` ```
@@ -160,7 +165,7 @@ Continue planning for Phase {phase_number}: {phase_name}
<prior_state> <prior_state>
Phase directory: @.planning/phases/{phase_dir}/ Phase directory: @.planning/phases/{phase_dir}/
Existing plans: @.planning/phases/{phase_dir}/*-PLAN.md Existing plans: @.planning/phases/{phase_dir}/\*-PLAN.md
</prior_state> </prior_state>
<checkpoint_response> <checkpoint_response>
@@ -180,10 +185,11 @@ Task(
</process> </process>
<success_criteria> <success_criteria>
- [ ] .planning/ directory validated - [ ] .planning/ directory validated
- [ ] Phase validated against roadmap - [ ] Phase validated against roadmap
- [ ] Existing plans checked - [ ] Existing plans checked
- [ ] gsd-planner spawned with context - [ ] gsd-planner spawned with context
- [ ] Checkpoints handled correctly - [ ] Checkpoints handled correctly
- [ ] User knows next steps (execute or review) - [ ] User knows next steps (execute or review)
</success_criteria> </success_criteria>