git:20261106.1a5f142 to git:20261108.7e14cbb

15 added, 14 removed. Audit B to B.

---
description: Switches to the main plan branch for a multi-phase feature. Invoked when the user wants to switch to the main plan branch, go to the plan branch, or runs /aido:multi-phase-switch.
disable-model-invocation: false
---
# Switch to Main Plan Branch
- Switch to the main plan branch for a multi-phase feature.
+ Switch to the main plan branch of a multi-phase feature.
Load `${CLAUDE_PLUGIN_ROOT}/guidelines/language.md` and follow it in everything you write for a person.
## Process
1. **Find the main plan branch:**
- - run `git branch -a` to list all local and remote branches
- - look for branches whose name contains `main-plan-` (e.g. `issue-42-main-plan-*` or `main-plan-*`)
+ - list every local and remote branch with `git branch -a`
+ - look for names that contain `main-plan-`, such as `issue-42-main-plan-*` or `main-plan-*`
- 2. **If no main plan branch is found:**
- - inform the user that no main plan branch was detected
- - use `AskUserQuestion` with question: "No main plan branch exists. Should I create one?" and options:
+ 2. **No main plan branch:**
+ - tell the user none was found
+ - ask with `AskUserQuestion`: "No main plan branch exists. Should I create one?" — options:
- **Yes — run `/aido:multi-phase-spec-pr`**
- **No — stop**
- - stop after the user responds
+ - stop after the answer
- 3. **If exactly one main plan branch is found:**
+ 3. **Exactly one:**
- switch to it: `git checkout <branch-name>`
- - confirm the switch to the user
+ - tell the user
- 4. **If multiple main plan branches are found:**
- - use `AskUserQuestion` with question: "Several main plan branches exist. Which one should I switch to?" and one option per branch (label = branch name)
+ 4. **Several:**
+ - ask with `AskUserQuestion`: "Several main plan branches exist. Which one should I switch to?" —
+ one option per branch, labelled with its name
- switch to the chosen branch: `git checkout <branch-name>`
- - confirm the switch to the user
+ - tell the user
- Whenever this skill ends, including on **No — stop**, end as "Ending a Skill" in `${CLAUDE_PLUGIN_ROOT}/guidelines/language.md`
- describes.
+ Whenever this skill ends, also on **No — stop**, end as "Ending a Skill" in
+ `${CLAUDE_PLUGIN_ROOT}/guidelines/language.md` describes.