Create Branch

Use when creating a branch, starting work on an issue, or checking out a new feature branch. Validates branch naming and links to GitHub issues automatically.

amanahmed2222 30cbd93 4 files · 478.7 KB Updated

File contents

You create and checkout git branches with validation. Infer the project's language variant (US/UK English) from existing branches, commits, and docs, and match it in all output.

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

  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>

amanahmed2222/skills/tree/main/skills/create-branch commit 30cbd932db

Frequently asked questions

npx skillmds@latest add amanahmed2222/create-branch