manage-branch

Create and switch Git branches with enforced naming conventions and safety checks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/meriley/claude-code-skills --skill manage-branch-meriley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-branch
Source: https://github.com/meriley/claude-code-skills/tree/main/skills/manage-branch
Command: npx skills add https://github.com/meriley/claude-code-skills --skill manage-branch-meriley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures all Git branches adhere to a strict naming convention, preventing inconsistencies and improving repository organization.

Core Features & Use Cases

  • Enforced Naming: Automatically prefixes branches with mriley/ and a type (e.g., feat/, fix/).
  • Safe Operations: Validates branch names, checks for uncommitted changes before switching, and offers options for renaming or creating branches.
  • Use Case: When creating a new feature branch, the skill will prompt you for a descriptive name, automatically format it as mriley/feat/your-descriptive-name, and ensure you're not creating it with uncommitted changes.

Quick Start

Use the manage-branch skill to create a new branch for a feature called user authentication.

Frequently Asked Questions about manage-branch

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

FAQPage Schema
How do I enforce Git branch naming conventions automatically?

To enforce Git branch naming conventions, this Skill validates branch names against patterns like `mriley/<type>/<name>` during creation and switching. It automatically prefixes branches with the correct type, such as `feat/` or `fix/`, ensuring repository organization.

Can I switch Git branches with uncommitted changes safely?

Switching Git branches with uncommitted changes requires safety checks to prevent data loss. This Skill checks for uncommitted modifications before switching and guides users through safe operations, offering options to handle or preserve changes.

What Git branch types are supported for naming convention workflows?

Supported Git branch types for naming convention workflows include feature, fix, refactor, perf, chore, docs, and test. The Skill validates and formats branches using these specific types within the `mriley/<type>/<name>` pattern.

What's the best way to create a new feature branch with a strict naming format?

The best way to create a new feature branch with a strict naming format is to provide a descriptive name. The Skill automatically formats it as `mriley/feat/your-descriptive-name` and checks for uncommitted changes before proceeding.

Why does my Git workflow need strict branch naming validation?

Your Git workflow needs strict branch naming validation to prevent inconsistencies and improve repository organization. Enforcing conventions ensures all branches adhere to a predictable pattern, making it easier to track changes and manage collaboration.

Does this branch management approach work without external Git hooks?

This branch management approach works without external Git hooks by validating branch names directly during creation and switching. It enforces naming conventions and performs safety checks internally, independent of hook configurations.