# Create Branch

> Create a new git branch from latest main using the naming convention.

- Skill: `majiayu000/create-branch-3` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/create-branch-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/create-branch-3/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/create-branch-3

---


1. **Pull latest main**:

   ```bash
   git fetch origin main
   git checkout main
   git pull origin main
   ```

2. **Create the branch** using the naming pattern `<type>/<short-description>`:

   ```bash
   git checkout -b <type>/<short-description>
   ```

   - Use kebab-case for the description
   - Types match conventional commit types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `chore`, `revert`
   - Examples:
     - `feat/add-vehicle-validation`
     - `fix/geolocation-precision-edge-case`
     - `chore/update-dependencies`
     - `refactor/extract-shared-helpers`

3. **Verify** you are on the new branch with `git branch --show-current`.

