Claude-skill-registry github-branches

Create and manage feature branches

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/github-branches" ~/.claude/skills/majiayu000-claude-skill-registry-github-branches && rm -rf "$T"
manifest: skills/data/github-branches/SKILL.md
source content

GitHub Branches Skill

Create, switch, and manage git branches for feature work.

See also: Shared Conventions | Safety Guidelines

Purpose

Manage branches following team conventions and keeping work organized.

Commands

git branch
git branch -a
git checkout -b <branch>
git switch -c <branch>
git fetch origin
git pull --rebase
git push -u origin <branch>

Branch Naming Convention

claude/<issue-number>-<short-slug>

Examples:

  • claude/123-fix-login-bug
  • claude/456-add-user-auth
  • claude/789-refactor-api

Workflow

  1. Ensure clean state

    git status
    git fetch origin
    
  2. Update main branch

    git checkout main
    git pull --rebase
    
  3. Create feature branch

    git checkout -b claude/123-fix-login-bug
    
  4. Push branch to remote

    git push -u origin claude/123-fix-login-bug
    

Policies

  • Never work directly on main/master
  • Always branch from an up-to-date main
  • Use descriptive branch names with issue numbers
  • Verify clean working directory before switching branches
  • Delete merged branches to keep repo tidy