branch-create

Creates convention-compliant Git branches from the latest default branch using git switch.

1|Updated Mar 12, 2025
One-click install
npx skills add https://github.com/void2610/dotfiles --skill branch-create-void2610
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: branch-create
Source: https://github.com/void2610/dotfiles/tree/main/.claude/skills/branch-create
Command: npx skills add https://github.com/void2610/dotfiles --skill branch-create-void2610

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Deciding on consistent, meaningful Git branch names and remembering to branch off the latest default branch is repetitive and error-prone. This Skill automates branch naming and creation so every branch follows a shared convention. ## Core Features & Use Cases - Convention-Based Naming: Generates branch names in the format <type>/<short-kebab-case-summary> using types like feat, fix, refac, docs, style, test, and chore. - Context-Aware Naming: Derives the branch summary from your request text or uncommitted diff when no explicit instruction is given. - Fresh Base Branch: Fetches origin and fast-forwards the default branch before creating the new branch, so work always starts from the latest code. - Use Case: You ask to "create a branch" for a login form fix; the Skill inspects your changes, names the branch fix/login-form-validation, updates the default branch, and runs git switch -c. ## Quick Start Ask the assistant to create a new branch for your current task, for example by saying "create a branch for the login form fix".

Frequently Asked Questions about branch-create

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Git branch with a consistent naming convention?▼

Use a naming format like type/short-kebab-case-summary, where type is one of feat, fix, refac, docs, style, test, or chore. This Skill generates the name from your request or uncommitted diff and creates the branch with git switch -c.

How to create a new branch from the latest default branch in Git?▼

Fetch origin, switch to the default branch, pull with --ff-only, then run git switch -c with your new branch name. This Skill performs these steps automatically unless you explicitly ask to branch from the current branch.

What happens if a Git branch with the same name already exists?▼

The Skill detects the name collision during its pre-checks and asks you whether to switch to the existing branch or choose a different name. It never silently overwrites or reuses an existing branch.

Can I create a branch when I have uncommitted changes?▼

Yes, but if switching to the default branch would conflict with your uncommitted changes, the Skill asks you to choose between stashing, committing, or branching from the current branch instead.

Does this Skill push the new branch to the remote?▼

No, it only creates the local branch with git switch -c. Pushing and opening a pull request are delegated to a separate pr-create skill, keeping branch creation and publishing as distinct steps.