fix(offer-next): remove code blocks from output templates for proper markdown rendering

Commands with <offer_next> sections were outputting backticks literally
instead of rendering them as inline code. Removed code block wrappers
and added explicit 'Output this markdown directly' instruction.

Affected: plan-phase, execute-phase, audit-milestone
This commit is contained in:
Lex Christopherson
2026-01-17 00:01:30 -06:00
parent cfe237d439
commit 8d199427a8
6 changed files with 248 additions and 90 deletions

View File

@@ -105,9 +105,7 @@ Phase: $ARGUMENTS
</process>
<offer_next>
**MANDATORY: Present copy/paste-ready next command.**
After verification completes, route based on status:
Output this markdown directly (not as a code block). Route based on status:
| Status | Route |
|--------|-------|
@@ -120,7 +118,6 @@ After verification completes, route based on status:
**Route A: Phase verified, more phases remain**
```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GSD ► PHASE {Z} COMPLETE ✓
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@@ -136,24 +133,22 @@ Goal verified ✓
**Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
`/gsd:discuss-phase {Z+1}` — gather context and clarify approach
/gsd:discuss-phase {Z+1} — gather context and clarify approach
<sub>`/clear` first → fresh context window</sub>
<sub>/clear first → fresh context window</sub>
───────────────────────────────────────────────────────────────
**Also available:**
- `/gsd:plan-phase {Z+1}` — skip discussion, plan directly
- `/gsd:verify-work {Z}` — manual acceptance testing before continuing
- /gsd:plan-phase {Z+1} — skip discussion, plan directly
- /gsd:verify-work {Z} — manual acceptance testing before continuing
───────────────────────────────────────────────────────────────
```
---
**Route B: Phase verified, milestone complete**
```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GSD ► MILESTONE COMPLETE 🎉
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@@ -169,24 +164,22 @@ All phase goals verified ✓
**Audit milestone** — verify requirements, cross-phase integration, E2E flows
`/gsd:audit-milestone`
/gsd:audit-milestone
<sub>`/clear` first → fresh context window</sub>
<sub>/clear first → fresh context window</sub>
───────────────────────────────────────────────────────────────
**Also available:**
- `/gsd:verify-work` — manual acceptance testing
- `/gsd:complete-milestone` — skip audit, archive directly
- /gsd:verify-work — manual acceptance testing
- /gsd:complete-milestone — skip audit, archive directly
───────────────────────────────────────────────────────────────
```
---
**Route C: Gaps found — need additional planning**
```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GSD ► PHASE {Z} GAPS FOUND ⚠
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@@ -194,7 +187,7 @@ All phase goals verified ✓
**Phase {Z}: {Name}**
Score: {N}/{M} must-haves verified
Report: `.planning/phases/{phase_dir}/{phase}-VERIFICATION.md`
Report: .planning/phases/{phase_dir}/{phase}-VERIFICATION.md
### What's Missing
@@ -206,23 +199,24 @@ Report: `.planning/phases/{phase_dir}/{phase}-VERIFICATION.md`
**Plan gap closure** — create additional plans to complete the phase
`/gsd:plan-phase {Z} --gaps`
/gsd:plan-phase {Z} --gaps
<sub>`/clear` first → fresh context window</sub>
<sub>/clear first → fresh context window</sub>
───────────────────────────────────────────────────────────────
**Also available:**
- `cat .planning/phases/{phase_dir}/{phase}-VERIFICATION.md` — see full report
- `/gsd:verify-work {Z}` — manual testing before planning
- cat .planning/phases/{phase_dir}/{phase}-VERIFICATION.md — see full report
- /gsd:verify-work {Z} — manual testing before planning
───────────────────────────────────────────────────────────────
```
After user runs `/gsd:plan-phase {Z} --gaps`:
---
After user runs /gsd:plan-phase {Z} --gaps:
1. Planner reads VERIFICATION.md gaps
2. Creates plans 04, 05, etc. to close gaps
3. User runs `/gsd:execute-phase {Z}` again
3. User runs /gsd:execute-phase {Z} again
4. Execute-phase runs incomplete plans (04, 05...)
5. Verifier runs again → loop until passed
</offer_next>