--- name: git-branch description: >- Creates and manages branches with clear naming and safe branching flow. Use when starting work, switching context, or cleaning up branches. --- # Git Branch Skill ## When to Apply - User asks to create/switch/delete branches. - Work needs branch hygiene before implementation. ## Workflow 1. Determine base branch (`main`, `develop`, or project default). 2. Create branch with consistent naming: - `feature/` - `fix/` - `chore/` 3. Verify upstream tracking after push. 4. Clean up merged branches when requested. ## Safety - Do not delete unmerged branches without explicit confirmation. - Avoid force operations unless necessary and approved.