git-branch

Create Git development branches with standardized naming and base selection.

144|16|Updated May 3, 2026
One-click install
npx skills add https://github.com/Terry-Mao/AICodingFlow --skill git-branch-terry-mao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-branch
Source: https://github.com/Terry-Mao/AICodingFlow/tree/main/.agents/skills/git-branch
Command: npx skills add https://github.com/Terry-Mao/AICodingFlow --skill git-branch-terry-mao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill solves the issue of manually creating development branches, ensuring correct naming, base selection, and safety checks.

Core Features & Use Cases

  • Safe Branch Naming: Generates branch names based on issue IDs or user-provided names with standardized prefixes.
  • Efficient Base Selection: Offers default base to 'main' with flexibility for other bases like 'origin/<base>' or 'upstream/<base>'.
  • Safety Checks: Performs local checks and remote freshness checks to prevent common mistakes and ensure branch integrity.
  • Use Case: Automate the creation of feature branches in your repository for a new feature or bug fix, using this Skill to ensure the branch is created with the correct naming conventions and based on the right commit.

Quick Start

Use the git-branch skill to create a new branch for your feature, specifying the issue ID as 'feature-123'.

Frequently Asked Questions about git-branch

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

FAQPage Schema
How do I automate creating a Git branch with safe naming and base selection?

To automate Git branch creation, this Skill generates standardized branch names from issue IDs and selects a base commit, performing local and remote freshness checks to ensure branch integrity and prevent incorrect bases.

What is the best way to prevent incorrect base commits when creating Git branches?

The best way to prevent incorrect base commits is using automated safety checks that verify remote freshness, ensuring your new development branch is created from the correct and most up-to-date main or upstream repository state.

How do I create a feature branch in Git using an issue ID?

You can create a feature branch by providing an issue ID like 'feature-123', which the Skill uses to generate a standardized branch name with appropriate prefixes, automating the naming convention for your repository.

Can I set a remote upstream branch as the base instead of main?

Yes, you can set a remote branch as the base. While the default base is 'main', the Skill offers flexibility to select other bases like 'origin/<base>' or 'upstream/<base>' for your development branch.

Do I need Git installed locally to run these branch creation checks?

Yes, you need Git installed locally. The Skill requires Git for local repository operations to perform necessary safety checks, base selection, and branch creation automation within your development environment.