Branch Create (internal)
Internal executor for the public @gh-start boundary.
Responsibility
- Own runnable branch-creation terminal commands.
- Validate branch naming safety before creation.
- Do not push, open PRs, or run verification matrix.
Command runbook
1) Validate repository and branch name
git rev-parse --is-inside-work-tree
- Ensure
BRANCHis non-empty and valid. - If
BRANCHalready exists, ask whether to switch or abort.
2) Create/switch branch
Create new branch:
git checkout -b "$BRANCH"
If reusing existing branch by explicit user choice:
git checkout "$BRANCH"
3) Verify
git branch --show-current
git status --short
Report final branch name and stop.