feat: redesign verify-work as conversational UAT with persistent state
- One test at a time instead of full checklist upfront - Plain text responses instead of AskUserQuestion forms - Severity inferred from description, never asked - Persistent UAT.md survives /clear (like debug workflow) - Single file per phase replaces per-plan ISSUES.md - Updated plan-fix to read from UAT.md Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
name: gsd:plan-fix
|
||||
description: Plan fixes for UAT issues from verify-work
|
||||
argument-hint: "[plan, e.g., '04-02']"
|
||||
argument-hint: "<phase, e.g., '4'>"
|
||||
allowed-tools:
|
||||
- Read
|
||||
- Bash
|
||||
@@ -14,8 +14,8 @@ allowed-tools:
|
||||
<objective>
|
||||
Create FIX.md plan from UAT issues found during verify-work.
|
||||
|
||||
Purpose: Plan fixes for issues logged in phase-scoped ISSUES.md files.
|
||||
Output: {plan}-FIX.md in the phase directory, ready for execution.
|
||||
Purpose: Plan fixes for issues logged in {phase}-UAT.md.
|
||||
Output: {phase}-FIX.md in the phase directory, ready for execution.
|
||||
</objective>
|
||||
|
||||
<execution_context>
|
||||
@@ -24,9 +24,8 @@ Output: {plan}-FIX.md in the phase directory, ready for execution.
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
Plan number: $ARGUMENTS (required - e.g., "04-02" or "09-01")
|
||||
Phase: $ARGUMENTS (required - e.g., "4")
|
||||
|
||||
**Load project state:**
|
||||
@.planning/STATE.md
|
||||
@.planning/ROADMAP.md
|
||||
</context>
|
||||
@@ -34,52 +33,68 @@ Plan number: $ARGUMENTS (required - e.g., "04-02" or "09-01")
|
||||
<process>
|
||||
|
||||
<step name="parse">
|
||||
**Parse plan argument:**
|
||||
**Parse phase argument:**
|
||||
|
||||
$ARGUMENTS should be a plan number like "04-02" or "09-01".
|
||||
Extract phase number (XX) and plan number (NN).
|
||||
$ARGUMENTS should be a phase number like "4" or "04".
|
||||
|
||||
If no argument provided:
|
||||
```
|
||||
Error: Plan number required.
|
||||
Error: Phase number required.
|
||||
|
||||
Usage: /gsd:plan-fix 04-02
|
||||
Usage: /gsd:plan-fix 4
|
||||
|
||||
This creates a fix plan from .planning/phases/XX-name/04-02-ISSUES.md
|
||||
This creates a fix plan from .planning/phases/04-name/04-UAT.md
|
||||
```
|
||||
Exit.
|
||||
</step>
|
||||
|
||||
<step name="find">
|
||||
**Find ISSUES.md file:**
|
||||
**Find UAT.md file:**
|
||||
|
||||
Search for matching ISSUES.md:
|
||||
```bash
|
||||
ls .planning/phases/*/{plan}-ISSUES.md 2>/dev/null
|
||||
ls .planning/phases/${PHASE_ARG}*/*-UAT.md 2>/dev/null
|
||||
```
|
||||
|
||||
If not found:
|
||||
```
|
||||
No ISSUES.md found for plan {plan}.
|
||||
No UAT.md found for phase {phase}.
|
||||
|
||||
ISSUES.md files are created by /gsd:verify-work when UAT finds issues.
|
||||
If no issues were found during testing, no fix plan is needed.
|
||||
UAT.md files are created by /gsd:verify-work during testing.
|
||||
Run /gsd:verify-work {phase} first.
|
||||
```
|
||||
Exit.
|
||||
|
||||
If found but status is "testing":
|
||||
```
|
||||
UAT session still in progress.
|
||||
|
||||
Run /gsd:verify-work to complete testing first.
|
||||
```
|
||||
Exit.
|
||||
</step>
|
||||
|
||||
<step name="read">
|
||||
**Read issues:**
|
||||
**Read issues from UAT.md:**
|
||||
|
||||
Read the "Issues for /gsd:plan-fix" section.
|
||||
|
||||
If section is empty or says "[none yet]":
|
||||
```
|
||||
No issues found in UAT.md.
|
||||
|
||||
All tests passed - no fix plan needed.
|
||||
```
|
||||
Exit.
|
||||
|
||||
Read the ISSUES.md file.
|
||||
Parse each issue:
|
||||
- ID (UAT-XXX)
|
||||
- Title
|
||||
- Severity (critical/major/minor)
|
||||
- Description/steps to reproduce
|
||||
- Acceptance criteria
|
||||
- Brief summary
|
||||
- Severity (blocker/major/minor/cosmetic)
|
||||
- Test number (for context)
|
||||
|
||||
Count total issues by severity.
|
||||
Also read the corresponding test from "Tests" section to get:
|
||||
- expected behavior
|
||||
- reported issue (verbatim user description)
|
||||
</step>
|
||||
|
||||
<step name="plan">
|
||||
@@ -87,42 +102,50 @@ Count total issues by severity.
|
||||
|
||||
For each issue (or logical group):
|
||||
- Create one task per issue OR
|
||||
- Group related minor issues into single task
|
||||
- Group related cosmetic/minor issues into single task
|
||||
|
||||
Task structure:
|
||||
```xml
|
||||
<task type="auto">
|
||||
<name>Fix UAT-001: [issue title]</name>
|
||||
<files>[affected files from issue]</files>
|
||||
<name>Fix UAT-{NNN}: {issue summary}</name>
|
||||
<files>[affected files - infer from test context]</files>
|
||||
<action>
|
||||
[What to fix based on issue description]
|
||||
[Reference original acceptance criteria]
|
||||
**Issue:** {verbatim reported description}
|
||||
**Expected:** {from test}
|
||||
|
||||
[Specific fix approach]
|
||||
</action>
|
||||
<verify>[Test that issue is resolved]</verify>
|
||||
<done>[Issue acceptance criteria met]</done>
|
||||
<verify>
|
||||
- Reproduce original issue - confirm fixed
|
||||
- {expected behavior} now works correctly
|
||||
</verify>
|
||||
<done>UAT-{NNN} resolved - {expected behavior} works</done>
|
||||
</task>
|
||||
```
|
||||
|
||||
Prioritize: critical → major → minor
|
||||
Prioritize: blocker → major → minor → cosmetic
|
||||
</step>
|
||||
|
||||
<step name="write">
|
||||
**Write FIX.md:**
|
||||
|
||||
Create `.planning/phases/XX-name/{plan}-FIX.md`:
|
||||
Create `.planning/phases/XX-name/{phase}-FIX.md`:
|
||||
|
||||
```markdown
|
||||
---
|
||||
phase: XX-name
|
||||
plan: {plan}-FIX
|
||||
plan: {phase}-FIX
|
||||
type: fix
|
||||
wave: 1
|
||||
depends_on: []
|
||||
autonomous: true
|
||||
---
|
||||
|
||||
<objective>
|
||||
Fix {N} UAT issues from plan {plan}.
|
||||
Fix {N} UAT issues from phase {phase}.
|
||||
|
||||
Source: {plan}-ISSUES.md
|
||||
Priority: {critical count} critical, {major count} major, {minor count} minor
|
||||
Source: {phase}-UAT.md
|
||||
Priority: {blocker count} blocker, {major count} major, {minor count} minor, {cosmetic count} cosmetic
|
||||
</objective>
|
||||
|
||||
<execution_context>
|
||||
@@ -135,10 +158,11 @@ Priority: {critical count} critical, {major count} major, {minor count} minor
|
||||
@.planning/ROADMAP.md
|
||||
|
||||
**Issues being fixed:**
|
||||
@.planning/phases/XX-name/{plan}-ISSUES.md
|
||||
@.planning/phases/XX-name/{phase}-UAT.md
|
||||
|
||||
**Original plan for reference:**
|
||||
@.planning/phases/XX-name/{plan}-PLAN.md
|
||||
**Original plans for reference:**
|
||||
@.planning/phases/XX-name/{phase}-01-PLAN.md
|
||||
[other relevant plans]
|
||||
</context>
|
||||
|
||||
<tasks>
|
||||
@@ -147,20 +171,20 @@ Priority: {critical count} critical, {major count} major, {minor count} minor
|
||||
|
||||
<verification>
|
||||
Before declaring plan complete:
|
||||
- [ ] All critical issues fixed
|
||||
- [ ] All blocker issues fixed
|
||||
- [ ] All major issues fixed
|
||||
- [ ] Minor issues fixed or documented as deferred
|
||||
- [ ] Original acceptance criteria from issues met
|
||||
- [ ] Minor/cosmetic issues fixed or documented as deferred
|
||||
- [ ] Each fix verified against original reported issue
|
||||
</verification>
|
||||
|
||||
<success_criteria>
|
||||
- All UAT issues from {plan}-ISSUES.md addressed
|
||||
- All UAT issues from {phase}-UAT.md addressed
|
||||
- Tests pass
|
||||
- Ready for re-verification
|
||||
- Ready for re-verification with /gsd:verify-work {phase}
|
||||
</success_criteria>
|
||||
|
||||
<output>
|
||||
After completion, create `.planning/phases/XX-name/{plan}-FIX-SUMMARY.md`
|
||||
After completion, create `.planning/phases/XX-name/{phase}-FIX-SUMMARY.md`
|
||||
</output>
|
||||
```
|
||||
</step>
|
||||
@@ -169,37 +193,39 @@ After completion, create `.planning/phases/XX-name/{plan}-FIX-SUMMARY.md`
|
||||
**Offer execution:**
|
||||
|
||||
```
|
||||
---
|
||||
## Fix Plan Created
|
||||
|
||||
## ✓ Fix Plan Created
|
||||
|
||||
**{plan}-FIX.md** — {N} issues to fix
|
||||
**{phase}-FIX.md** — {N} issues to fix
|
||||
|
||||
| Severity | Count |
|
||||
|----------|-------|
|
||||
| Critical | {n} |
|
||||
| Blocker | {n} |
|
||||
| Major | {n} |
|
||||
| Minor | {n} |
|
||||
| Cosmetic | {n} |
|
||||
|
||||
---
|
||||
|
||||
Would you like to:
|
||||
1. Execute the fix plan now
|
||||
2. Review the plan first
|
||||
3. Modify the plan before executing
|
||||
|
||||
---
|
||||
Next steps:
|
||||
- Execute: `/gsd:execute-plan .planning/phases/XX-name/{phase}-FIX.md`
|
||||
- Review plan first: `cat .planning/phases/XX-name/{phase}-FIX.md`
|
||||
- Re-test after fixes: `/gsd:verify-work {phase}`
|
||||
```
|
||||
|
||||
Use AskUserQuestion to get response.
|
||||
If execute: `/gsd:execute-plan .planning/phases/XX-name/{plan}-FIX.md`
|
||||
Use AskUserQuestion:
|
||||
- header: "Next"
|
||||
- question: "What would you like to do?"
|
||||
- options:
|
||||
- "Execute fix plan" — Run the fixes now
|
||||
- "Review plan first" — Look at the plan before executing
|
||||
- "Done for now" — Come back later
|
||||
</step>
|
||||
|
||||
</process>
|
||||
|
||||
<success_criteria>
|
||||
- [ ] ISSUES.md found and parsed
|
||||
- [ ] UAT.md found and issues parsed
|
||||
- [ ] Fix tasks created for each issue
|
||||
- [ ] FIX.md written with proper structure
|
||||
- [ ] User offered to execute or review
|
||||
- [ ] User offered next steps
|
||||
</success_criteria>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
name: gsd:verify-work
|
||||
description: Guide manual user acceptance testing of recently built features
|
||||
argument-hint: "[optional: phase or plan number, e.g., '4' or '04-02']"
|
||||
description: Validate built features through conversational UAT
|
||||
argument-hint: "[phase number, e.g., '4']"
|
||||
allowed-tools:
|
||||
- Read
|
||||
- Bash
|
||||
@@ -9,63 +9,57 @@ allowed-tools:
|
||||
- Grep
|
||||
- Edit
|
||||
- Write
|
||||
- AskUserQuestion
|
||||
---
|
||||
|
||||
<objective>
|
||||
Guide the user through manual acceptance testing of recently built features.
|
||||
Validate built features through conversational testing with persistent state.
|
||||
|
||||
Purpose: Validate that what Claude thinks was built actually works from the user's perspective. The USER performs all testing — Claude generates the test checklist, guides the process, and captures issues.
|
||||
Purpose: Confirm what Claude built actually works from user's perspective. One test at a time, plain text responses, no interrogation.
|
||||
|
||||
Output: Validation of features, any issues logged to phase-scoped ISSUES.md
|
||||
Output: {phase}-UAT.md tracking all test results, issues logged for /gsd:plan-fix
|
||||
</objective>
|
||||
|
||||
<execution_context>
|
||||
@~/.claude/get-shit-done/workflows/verify-work.md
|
||||
@~/.claude/get-shit-done/templates/uat-issues.md
|
||||
@~/.claude/get-shit-done/templates/UAT.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
Scope: $ARGUMENTS (optional)
|
||||
- If provided: Test specific phase or plan (e.g., "4" or "04-02")
|
||||
- If not provided: Test most recently completed plan
|
||||
Phase: $ARGUMENTS (optional)
|
||||
- If provided: Test specific phase (e.g., "4")
|
||||
- If not provided: Check for active sessions or prompt for phase
|
||||
|
||||
**Load project state:**
|
||||
@.planning/STATE.md
|
||||
|
||||
**Load roadmap:**
|
||||
@.planning/ROADMAP.md
|
||||
</context>
|
||||
|
||||
<process>
|
||||
1. Validate arguments (if provided, parse as phase or plan number)
|
||||
2. Find relevant SUMMARY.md (specified or most recent)
|
||||
3. Follow verify-work.md workflow:
|
||||
- Extract testable deliverables
|
||||
- Generate test checklist
|
||||
- Guide through each test via AskUserQuestion
|
||||
- Collect and categorize issues
|
||||
- Log issues to `.planning/phases/XX-name/{phase}-{plan}-ISSUES.md`
|
||||
- Present summary with verdict
|
||||
4. Offer next steps based on results:
|
||||
- If all passed: Continue to next phase
|
||||
- If issues found: `/gsd:plan-fix {phase} {plan}` to create fix plan
|
||||
1. Check for active UAT sessions (resume or start new)
|
||||
2. Find SUMMARY.md files for the phase
|
||||
3. Extract testable deliverables (user-observable outcomes)
|
||||
4. Create {phase}-UAT.md with test list
|
||||
5. Present tests one at a time:
|
||||
- Show expected behavior
|
||||
- Wait for plain text response
|
||||
- "yes/y/next" = pass, anything else = issue (severity inferred)
|
||||
6. Update UAT.md after each response
|
||||
7. On completion: commit, present summary, offer next steps
|
||||
</process>
|
||||
|
||||
<anti_patterns>
|
||||
- Don't run automated tests (that's for CI/test suites)
|
||||
- Don't make assumptions about test results — USER reports outcomes
|
||||
- Don't skip the guidance — walk through each test
|
||||
- Don't dismiss minor issues — log everything user reports
|
||||
- Don't fix issues during testing — capture for later
|
||||
- Don't use AskUserQuestion for test responses — plain text conversation
|
||||
- Don't ask severity — infer from description
|
||||
- Don't present full checklist upfront — one test at a time
|
||||
- Don't run automated tests — this is manual user validation
|
||||
- Don't fix issues during testing — log for /gsd:plan-fix
|
||||
</anti_patterns>
|
||||
|
||||
<success_criteria>
|
||||
- [ ] Test scope identified from SUMMARY.md
|
||||
- [ ] Checklist generated based on deliverables
|
||||
- [ ] User guided through each test
|
||||
- [ ] All test results captured (pass/fail/partial/skip)
|
||||
- [ ] Any issues logged to phase-scoped ISSUES.md (not global)
|
||||
- [ ] Summary presented with verdict
|
||||
- [ ] User knows next steps based on results
|
||||
- [ ] UAT.md created with tests from SUMMARY.md
|
||||
- [ ] Tests presented one at a time with expected behavior
|
||||
- [ ] Plain text responses (no structured forms)
|
||||
- [ ] Severity inferred, never asked
|
||||
- [ ] File updated after each response (survives /clear)
|
||||
- [ ] Committed on completion
|
||||
- [ ] Clear next steps based on results
|
||||
</success_criteria>
|
||||
|
||||
Reference in New Issue
Block a user