fix: replace inline command invocation with clear-then-paste pattern

End-of-command workflows now show explicit instructions to run /clear
and paste the next command, rather than offering numbered options that
invoke SlashCommand directly. This prevents users from accidentally
exhausting context by continuing work in the same session.

- Updated 16 files (commands and workflows)
- YOLO mode auto-continues preserved (user explicitly chose automation)
- In-workflow decisions like consider-issues preserved

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2025-12-16 09:33:51 -06:00
parent e2860ed0b7
commit d45fbd845d
16 changed files with 225 additions and 146 deletions

View File

@@ -107,12 +107,15 @@ Check if `{phase}-{plan}-PLAN.md` exists for that number.
- Read its `<objective>` section
- Show: "Ready to execute: [path] - [objective summary]"
- Ask: "Execute? (y/n)"
- **CRITICAL: If user responds "y", "yes", or affirmatively, immediately invoke:**
- Display:
```
## To Continue
Run `/clear`, then paste:
```
/gsd:execute-plan [full-path-to-PLAN.md]
```
SlashCommand("/gsd:execute-plan [full-path-to-PLAN.md]")
```
Do NOT describe what you would do. INVOKE THE TOOL.
**If PLAN.md does NOT exist:**
@@ -123,41 +126,45 @@ Check if `{phase}-{plan}-PLAN.md` exists for that number.
**If CONTEXT.md exists:**
- Display: "✓ Context gathered, ready to plan"
- Ask: "Create this plan? (y/n)"
- **CRITICAL: If user responds "y", "yes", or affirmatively, immediately invoke:**
- Display:
```
## To Continue
Run `/clear`, then paste:
```
/gsd:plan-phase [phase-number]
```
SlashCommand("/gsd:plan-phase [phase-number]")
```
Do NOT describe what you would do. INVOKE THE TOOL.
**If CONTEXT.md does NOT exist:**
- Display options:
- Display:
```
Options for Phase [N]:
1. See assumptions (/gsd:list-phase-assumptions [phase]) - What Claude thinks about this phase
2. Discuss context (/gsd:discuss-phase [phase]) - Gather your context through questions
3. Plan directly (/gsd:plan-phase [phase]) - Skip to planning
## To Continue
Run `/clear`, then paste one of:
**See Claude's assumptions:**
```
- Ask: "Which approach? (assumptions/discuss/plan)"
- **If user responds "assumptions":**
/gsd:list-phase-assumptions [phase]
```
SlashCommand("/gsd:list-phase-assumptions [phase-number]")
**Discuss context first:**
```
- **If user responds "discuss":**
/gsd:discuss-phase [phase]
```
SlashCommand("/gsd:discuss-phase [phase-number]")
**Plan directly:**
```
- **If user responds "plan":**
/gsd:plan-phase [phase]
```
SlashCommand("/gsd:plan-phase [phase-number]")
```
**If all plans complete for current phase:**
- Check if more phases exist in ROADMAP
- If yes: Offer to plan next phase with `/gsd:plan-phase [next-phase]`
- If no (milestone 100% complete): Offer to complete milestone
- If yes: Show `/gsd:plan-phase [next-phase]` command to paste
- If no (milestone 100% complete): Show `/gsd:complete-milestone` command to paste
</step>
<step name="edge_cases">