create-branch

Generate a kebab-case git branch name from uncommitted changes and create it on main.

16|1|Updated Sep 24, 2025
One-click install
npx skills add https://github.com/Hey-Diga/dotclaude --skill create-branch-hey-diga
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-branch
Source: https://github.com/Hey-Diga/dotclaude/tree/main/skills/create-branch
Command: npx skills add https://github.com/Hey-Diga/dotclaude --skill create-branch-hey-diga

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate a meaningful, conventional git branch name from your current changes and create it automatically when on the main branch.

Core Features & Use Cases

  • Analyzes uncommitted changes using git status and git diff to derive a concise, descriptive branch name.
  • Enforces conventional prefixes (feat, fix, refactor, docs, chore, test, style) and kebab-case formatting with a total length under 50 characters.
  • Creates a new branch when on main via git checkout -b <branch-name> and reports the resulting branch; if not on main, only outputs the suggested branch name.
  • Validates naming constraints and provides a clear, user-friendly description of the proposed branch.

Quick Start

Run the skill to generate a descriptive branch name from your current changes and create the branch if you are on main.

Frequently Asked Questions about create-branch

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

FAQPage Schema
How do I generate a git branch name from uncommitted changes automatically?

You can generate a git branch name from uncommitted changes by analyzing git status and git diff to derive a concise, descriptive branch name reflecting your current modifications. This process ensures the branch name accurately represents the work done in your development environment.

How do I create a feature branch with conventional commit prefixes like feat or fix?

Creating a feature branch with conventional commit prefixes involves enforcing specific tags such as feat, fix, refactor, docs, chore, test, or style. The system validates naming constraints and applies kebab-case formatting to maintain total branch length under 50 characters.

Does this branch creation workflow automatically switch branches when I am on main?

Yes, when you are on the main branch, this workflow automatically creates a new branch via git checkout -b and switches to it. If you are not on main, it only outputs the suggested branch name without executing the checkout command.

What is the character limit for conventional branch names in kebab-case formatting?

The character limit for conventional branch names in kebab-case formatting is a total length under 50 characters. This constraint ensures repository naming conventions remain concise and compatible across various version control platforms.

Can I use this automated branch naming tool without any external dependencies?

Yes, you can use this automated branch naming tool without external dependencies. It solely relies on native git commands like status and diff to analyze environment state and uncommitted changes to produce the suggested branch name.