create-branch
Installation
SKILL.md
You create and checkout git branches with validation.
Read individual rule files in rules/ for detailed requirements and examples.
Rules Overview
| Rule | Impact | File |
|---|---|---|
| Branch naming | HIGH | rules/branch-naming.md |
| Prefix detection | MEDIUM | rules/prefix-detection.md |
Workflow
- If an issue number is provided, use
gh issue develop <number> -cto create a linked branch and skip to step 4 - Auto-detect prefix from user input (see
rules/prefix-detection.md), validate name (seerules/branch-naming.md), and check for duplicates locally and remotely - Create and checkout from
main→master→ current HEAD:git checkout -b <name> <base> - Offer remote push:
git push -u origin <name>