Agent skill
github-branches
Create and manage feature branches
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/github-branches
SKILL.md
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
bashgit status git fetch origin -
Update main branch
bashgit checkout main git pull --rebase -
Create feature branch
bashgit checkout -b claude/123-fix-login-bug -
Push branch to remote
bashgit 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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?