refactor: use <if mode> tags for yolo/interactive branching

Cleaner conditional structure in execute-phase and transition workflows.

🤖 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 08:20:15 -06:00
parent 5780bd0555
commit a906e2ad35
2 changed files with 24 additions and 35 deletions

View File

@@ -1055,17 +1055,11 @@ Resume file: [path to .continue-here if exists, else "None"]
</step>
<step name="issues_review_gate">
Before proceeding, check SUMMARY.md content:
**Check workflow config for gate behavior:**
- If `mode: "yolo"` → auto-approve (but still log issues)
- If `mode: "interactive"` → prompt user
Before proceeding, check SUMMARY.md content.
If "Issues Encountered" is NOT "None":
**If auto-approved:**
<if mode="yolo">
```
⚡ Auto-approved: Issues acknowledgment
⚠️ Note: Issues were encountered during execution:
@@ -1075,9 +1069,11 @@ If "Issues Encountered" is NOT "None":
```
Continue without waiting.
</if>
**If prompting:**
Present issues and wait for acknowledgment.
<if mode="interactive" OR="custom with gates.issues_review true">
Present issues and wait for acknowledgment before proceeding.
</if>
</step>
<step name="update_roadmap">
@@ -1192,15 +1188,9 @@ Use AskUserQuestion:
</step>
<step name="offer_next">
**Check workflow config for gate behavior:**
- If `mode: "yolo"` → auto-continue to next action
- If `mode: "interactive"` → prompt user
**If more plans in this phase:**
**If auto-approved:**
<if mode="yolo">
```
Plan {phase}-{plan} complete.
Summary: .planning/phases/XX-name/{phase}-{plan}-SUMMARY.md
@@ -1211,9 +1201,9 @@ Summary: .planning/phases/XX-name/{phase}-{plan}-SUMMARY.md
```
Loop back to identify_plan step automatically.
</if>
**If prompting:**
<if mode="interactive" OR="custom with gates.execute_next_plan true">
```
Plan {phase}-{plan} complete.
Summary: .planning/phases/XX-name/{phase}-{plan}-SUMMARY.md
@@ -1226,6 +1216,9 @@ What's next?
3. Done for now
```
Wait for user selection.
</if>
**If phase complete (last plan done):**
First, check if this is also the last phase in the milestone (milestone complete):

View File

@@ -373,18 +373,9 @@ Re-read the ROADMAP file:
- If next phase exists: offer to plan it
- If no next phase (milestone 100% complete): offer to complete milestone with parsed version
**Check workflow config for gate behavior:**
Read config (already parsed).
- If `mode: "yolo"` → auto-continue
- If `mode: "interactive"` → prompt user
- If `mode: "custom"` → check `gates.confirm_transition` (reused for continuation)
**If next phase exists:**
**If auto-approved:**
<if mode="yolo">
```
Phase [X] marked complete.
@@ -394,9 +385,9 @@ Next: Phase [X+1] - [Name]
```
Exit skill and invoke SlashCommand("/gsd:plan-phase [X+1]")
</if>
**If prompting:**
<if mode="interactive" OR="custom with gates.confirm_transition true">
```
Phase [X] marked complete.
@@ -409,10 +400,12 @@ What would you like to do?
4. Take a break (done for now)
```
Wait for user selection.
</if>
**If no next phase (milestone 100% complete):**
**If auto-approved:**
<if mode="yolo">
```
Phase [X] marked complete.
@@ -422,9 +415,9 @@ Phase [X] marked complete.
```
Exit skill and invoke SlashCommand("/gsd:complete-milestone [version]")
</if>
**If prompting:**
<if mode="interactive" OR="custom with gates.confirm_transition true">
```
Phase [X] marked complete.
@@ -436,6 +429,9 @@ What would you like to do?
3. Take a break (done for now)
```
Wait for user selection.
</if>
</step>
</process>