git-branch-creator

Create Git branches following repository naming conventions and push to origin.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/yamato0811/my-agent-skills --skill git-branch-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-branch-creator
Source: https://github.com/yamato0811/my-agent-skills/tree/main/skills/git-branch-creator
Command: npx skills add https://github.com/yamato0811/my-agent-skills --skill git-branch-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes the process of creating new Git branches that strictly follow the repository's naming conventions, reducing errors and ensuring consistency across teams.

Core Features & Use Cases

  • Observes existing branch naming patterns (for example feature/<owner>/#<NN>_<slug>) and suggests a compliant new branch slug.
  • Generates the issue-locked sequential number (NN) based on local and remote branches, and creates the branch from a chosen base (typically develop).
  • Optionally pushes the new branch to origin with the -u flag to establish upstream tracking.

Quick Start

Switch to the base branch (e.g., develop), fetch the latest changes, and create a new branch following the naming rule, then push if required. Example workflow:

  • git switch develop
  • git fetch --prune origin
  • git switch -c feature/hara/#37_dependency_version_upgrade
  • git push -u origin feature/hara/#37_dependency_version_upgrade

Frequently Asked Questions about git-branch-creator

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

FAQPage Schema
How do I automate Git branch creation to follow existing repository naming conventions?

Automating Git branch creation involves observing existing branch patterns like feature/<owner>/#<NN>_<slug> and generating a compliant name. This Skill standardizes that process by suggesting a compliant slug and enforcing deterministic naming through step-by-step commands to ensure consistency across teams.

How does this workflow generate sequential numbers for feature branches?

Sequential numbers for feature branches are generated by analyzing both local and remote branches. This Skill identifies the next issue-locked sequential number (NN) based on your existing repository state, ensuring your new branch follows the established sequential numbering pattern without conflicts.

Can I automatically push a new Git branch to origin and set up upstream tracking?

Yes, you can automatically push a new Git branch to origin and set up upstream tracking. This Skill optionally executes a push command with the -u flag, establishing upstream tracking immediately after creating the branch from your chosen base, typically the develop branch.

What is the best way to ensure consistent Git branch naming across a development team?

The best way to ensure consistent Git branch naming is to enforce deterministic naming rules based on existing repository patterns. This Skill observes established prefix patterns and slug conventions, then generates compliant branch names automatically to reduce errors and maintain team consistency.

Do I need to manually fetch latest changes before creating a new feature branch?

Yes, you need to manually fetch latest changes before creating a new feature branch. The recommended workflow involves switching to your base branch, executing git fetch --prune origin to update remote tracking data, and then creating your new branch to ensure it branches from the latest state.

What edge cases are handled when creating Git branches with naming conventions?

Edge cases handled when creating Git branches with naming conventions include managing constrained environments and preventing duplicate sequential numbers. This Skill handles common edge cases by evaluating both local and remote branches to generate accurate, issue-locked numbers and compliant slugs.