Git Branch Skill
Quick Start
/branch feat user-authentication # → feat/user-authentication
/branch fix login-error # → fix/login-error
/branch # interactive creation
Core Patterns
| Pattern | Purpose | Example |
|---|---|---|
feat/{name} |
New feature | feat/use-debounce |
fix/{name} |
Bug fix | fix/ssr-hydration-mismatch |
chore/{name} |
Config/build | chore/update-build-config |
docs/{name} |
Documentation | docs/add-use-toggle-example |
refactor/{name} |
Refactoring | refactor/cleanup-internals |
Execution Steps
- Confirm task details
- Determine the appropriate branch type
- Generate an English branch name (lowercase, hyphens)
- Run
git checkout -b {branch}
Cautions
- Branch names: lowercase English + hyphens only
- Spaces are converted to hyphens
- Korean descriptions are converted to English
- Warn if there are uncommitted changes
References
- details.md - Detailed branch naming guide