| name | branch |
| description | Create a new feature branch with proper naming conventions |
Branch Skill
Creates a new git branch with consistent naming following project conventions.
Steps
-
Ask the user for:
- Branch name (e.g., "add-task-filters", "fix-dark-mode")
- Branch type:
feature/, fix/, refactor/, or docs/
-
Fetch the latest from origin:
git fetch origin main
- Create and checkout the new branch from origin/main:
git checkout -b <type>/<branch-name> origin/main
- Confirm the branch was created:
git branch --show-current
Branch Naming Conventions
| Prefix | Use Case |
|---|
feature/ | New features and capabilities |
fix/ | Bug fixes |
refactor/ | Code improvements without behavior changes |
docs/ | Documentation updates |
Examples
feature/add-task-filters
fix/dark-mode-calendar
refactor/simplify-sync-logic
docs/update-api-reference
Notes
- Always base new branches on
origin/main for clean history
- Use kebab-case for branch names
- Keep names descriptive but concise