git-branch

Automate Git branch creation using detected project naming conventions.

Updated Sep 12, 2023
One-click install
npx skills add https://github.com/byunghak-dable/.dotfiles --skill git-branch-byunghak-dable
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-branch
Source: https://github.com/byunghak-dable/.dotfiles/tree/main/claude/.claude/skills/git-branch
Command: npx skills add https://github.com/byunghak-dable/.dotfiles --skill git-branch-byunghak-dable

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of Git branches, ensuring they adhere to project-specific naming conventions and simplifying the branching workflow.

Core Features & Use Cases

  • Automated Convention Detection: Automatically detects existing branch naming patterns within the project.
  • Convention File Creation: Creates a .claude/branch-convention.md file if no convention is found, promoting consistency.
  • Intelligent Branch Naming: Suggests or creates branch names based on user input and detected conventions.
  • Use Case: When starting a new feature, use this Skill to create a branch named feature/user-authentication if the convention is feature/<description>.

Quick Start

Use the git-branch skill to create a new branch for a bug fix.

Frequently Asked Questions about git-branch

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

FAQPage Schema
How do I create git branches that match my project's naming conventions?

This Skill automates git branch creation by detecting existing branch naming patterns in your project and generating new branch names that adhere to those conventions based on your description.

What happens if no branch naming convention is detected in my repository?

If no branch naming convention is detected, the Skill creates a `.claude/branch-convention.md` file to establish and promote consistent naming patterns for future branch creation across your project.

Can I use this to automatically create a feature branch from a text description?

Yes, you can provide a text description and the Skill will intelligently name and create a feature branch, such as generating `feature/user-authentication` if your project convention follows the `feature/<description>` pattern.

Does this Skill handle the actual git checkout and branch creation commands?

Yes, the Skill integrates directly with git commands to execute the checkout and branch creation process, automating the full workflow from convention detection to branch switching.

What's the best way to enforce consistent branch naming across a development team?

The best way to enforce consistent branch naming is to use this Skill to detect existing patterns and generate a `.claude/branch-convention.md` file, which standardizes naming rules for all future branch creation.