Start
Create branch.
Steps
- Parse args: first = branch name
- Normalize: prefix with !
echo "${GIT_USERNAME:-$(whoami)}"/if not already present - Create branch (detect stack tool for current branch):
gh stack view --json 2>/dev/nullsucceeds →Skill(gh-stack, "add <branch-name>")- gt plugin loaded →
Skill(gt:gt, "create <branch-name>") - Otherwise →
git checkout -b <branch-name>
- Report branch. If
--autowas NOT passed, suggest/specor/develop. If--autowas passed, output nothing — no report, no suggestions. The caller is an orchestrator that will handle next steps; any output text risks the model ending its turn prematurely.
Error Handling
- Branch exists → check
git branch -a, suggest alternate name - Wrong parent → warn user, suggest checking out intended parent first