refactor: update commands, workflows, agents for gsd-tools integration
Commands (15): audit-milestone, complete-milestone, debug, execute-phase, help, insert-phase, new-milestone, new-project, plan-milestone-gaps, plan-phase, progress, quick, remove-phase, research-phase, verify-work Workflows (22): execute-plan (69% reduction), verify-phase (55%), others Agents (14): All updated for new workflow structure Total token savings: ~22k chars (75.6% in affected sections) Ported from: get-shit-done-v2@d1fb2d5, 7f79a9b
This commit is contained in:
@@ -11,7 +11,6 @@ allowed-tools:
|
||||
- Write
|
||||
- Task
|
||||
---
|
||||
|
||||
<objective>
|
||||
Validate built features through conversational testing with persistent state.
|
||||
|
||||
@@ -35,185 +34,6 @@ Phase: $ARGUMENTS (optional)
|
||||
</context>
|
||||
|
||||
<process>
|
||||
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
|
||||
8. If issues found:
|
||||
- Spawn parallel debug agents to diagnose root causes
|
||||
- Spawn gsd-planner in --gaps mode to create fix plans
|
||||
- Spawn gsd-plan-checker to verify fix plans
|
||||
- Iterate planner ↔ checker until plans pass (max 3)
|
||||
- Present ready status with `/clear` then `/gsd:execute-phase`
|
||||
Execute the verify-work workflow from @~/.claude/get-shit-done/workflows/verify-work.md end-to-end.
|
||||
Preserve all workflow gates (session management, test presentation, diagnosis, fix planning, routing).
|
||||
</process>
|
||||
|
||||
<anti_patterns>
|
||||
- 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 as gaps, diagnose after all tests complete
|
||||
</anti_patterns>
|
||||
|
||||
<offer_next>
|
||||
Output this markdown directly (not as a code block). Route based on UAT results:
|
||||
|
||||
| Status | Route |
|
||||
|--------|-------|
|
||||
| All tests pass + more phases | Route A (next phase) |
|
||||
| All tests pass + last phase | Route B (milestone complete) |
|
||||
| Issues found + fix plans ready | Route C (execute fixes) |
|
||||
| Issues found + planning blocked | Route D (manual intervention) |
|
||||
|
||||
---
|
||||
|
||||
**Route A: All tests pass, more phases remain**
|
||||
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
GSD ► PHASE {Z} VERIFIED ✓
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
**Phase {Z}: {Name}**
|
||||
|
||||
{N}/{N} tests passed
|
||||
UAT complete ✓
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
## ▶ Next Up
|
||||
|
||||
**Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
|
||||
|
||||
/gsd:discuss-phase {Z+1} — gather context and clarify approach
|
||||
|
||||
<sub>/clear first → fresh context window</sub>
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
**Also available:**
|
||||
- /gsd:plan-phase {Z+1} — skip discussion, plan directly
|
||||
- /gsd:execute-phase {Z+1} — skip to execution (if already planned)
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
---
|
||||
|
||||
**Route B: All tests pass, milestone complete**
|
||||
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
GSD ► PHASE {Z} VERIFIED ✓
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
**Phase {Z}: {Name}**
|
||||
|
||||
{N}/{N} tests passed
|
||||
Final phase verified ✓
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
## ▶ Next Up
|
||||
|
||||
**Audit milestone** — verify requirements, cross-phase integration, E2E flows
|
||||
|
||||
/gsd:audit-milestone
|
||||
|
||||
<sub>/clear first → fresh context window</sub>
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
**Also available:**
|
||||
- /gsd:complete-milestone — skip audit, archive directly
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
---
|
||||
|
||||
**Route C: Issues found, fix plans ready**
|
||||
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
GSD ► PHASE {Z} ISSUES FOUND ⚠
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
**Phase {Z}: {Name}**
|
||||
|
||||
{N}/{M} tests passed
|
||||
{X} issues diagnosed
|
||||
Fix plans verified ✓
|
||||
|
||||
### Issues Found
|
||||
|
||||
{List issues with severity from UAT.md}
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
## ▶ Next Up
|
||||
|
||||
**Execute fix plans** — run diagnosed fixes
|
||||
|
||||
/gsd:execute-phase {Z} --gaps-only
|
||||
|
||||
<sub>/clear first → fresh context window</sub>
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
**Also available:**
|
||||
- cat .planning/phases/{phase_dir}/*-PLAN.md — review fix plans
|
||||
- /gsd:plan-phase {Z} --gaps — regenerate fix plans
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
---
|
||||
|
||||
**Route D: Issues found, planning blocked**
|
||||
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
GSD ► PHASE {Z} BLOCKED ✗
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
**Phase {Z}: {Name}**
|
||||
|
||||
{N}/{M} tests passed
|
||||
Fix planning blocked after {X} iterations
|
||||
|
||||
### Unresolved Issues
|
||||
|
||||
{List blocking issues from planner/checker output}
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
## ▶ Next Up
|
||||
|
||||
**Manual intervention required**
|
||||
|
||||
Review the issues above and either:
|
||||
1. Provide guidance for fix planning
|
||||
2. Manually address blockers
|
||||
3. Accept current state and continue
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
|
||||
**Options:**
|
||||
- /gsd:plan-phase {Z} --gaps — retry fix planning with guidance
|
||||
- /gsd:discuss-phase {Z} — gather more context before replanning
|
||||
|
||||
───────────────────────────────────────────────────────────────
|
||||
</offer_next>
|
||||
|
||||
<success_criteria>
|
||||
- [ ] 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
|
||||
- [ ] Batched writes: on issue, every 5 passes, or completion
|
||||
- [ ] Committed on completion
|
||||
- [ ] If issues: parallel debug agents diagnose root causes
|
||||
- [ ] If issues: gsd-planner creates fix plans from diagnosed gaps
|
||||
- [ ] If issues: gsd-plan-checker verifies fix plans (max 3 iterations)
|
||||
- [ ] Ready for `/gsd:execute-phase` when complete
|
||||
</success_criteria>
|
||||
|
||||
Reference in New Issue
Block a user