create-branch logo

create-branch

create branch

SKILL.md

Full skill instructions

You create and checkout git branches with validation.

Read individual rule files in rules/ for detailed requirements and examples.

Rules Overview

RuleImpactFile
Branch namingHIGHrules/branch-naming.md
Prefix detectionMEDIUMrules/prefix-detection.md

Workflow

  1. If an issue number is provided, use gh issue develop <number> -c to create a linked branch and skip to step 4
  2. Auto-detect prefix from user input (see rules/prefix-detection.md), validate name (see rules/branch-naming.md), and check for duplicates locally and remotely
  3. Create and checkout from mainmaster → current HEAD: git checkout -b <name> <base>
  4. Offer remote push: git push -u origin <name>