Gh Branch Create

Internal executor for creating and checking out task branches from a synced base branch.

gustavo-gardusi Updated

File contents

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 BRANCH is non-empty and valid.
  • If BRANCH already 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.

gustavo-gardusi/cursor-skills/tree/main/skills/internal/gh/branch-create commit f41eb42d36

Frequently asked questions

npx skillmds@latest add gustavo-gardusi/gh-branch-create