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.mdsource 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-bugclaude/456-add-user-authclaude/789-refactor-api
Workflow
-
Ensure clean state
git status git fetch origin -
Update main branch
git checkout main git pull --rebase -
Create feature branch
git checkout -b claude/123-fix-login-bug -
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