create-branch
Installation
SKILL.md
Create Branch
Derives a structured branch name from context and executes git checkout -b. Never pushes to remote.
Workflow
-
Collect context — run all four in parallel:
git diff HEAD(tracked modifications)git diff --cached(already staged)git status --short(untracked files)git log @{u}..HEAD --format="%s%n%b"(unpushed commit messages and trailers) — if this fails because no upstream is configured, treat it as empty and continue
If all four return empty and the user provided no description, ask for a description before continuing.
-
Extract issue number — in priority order: