git-branching-strategy

Enforce one-feature-one-branch discipline in Git workflows.

1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/ImproperSubset/hh-agentics --skill git-branching-strategy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-branching-strategy
Source: https://github.com/ImproperSubset/hh-agentics/tree/main/cc-governance/skills/git-branching-strategy
Command: npx skills add https://github.com/ImproperSubset/hh-agentics --skill git-branching-strategy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams prevent monster branches by enforcing disciplined branching practices, ensuring that each feature lives in its own focused branch and is easy to review, test, and merge.

Core Features & Use Cases

  • One-feature-one-branch rule: keep changes isolated to a single feature.
  • Branch size guidelines: recommended commit counts and file scope to keep branches manageable.
  • Naming and workflow guidance: conventional prefixes (feat/, fix/, refactor/), merge readiness checks, and when to split work.
  • Pre-Implementation Checklist: ensures the feature scope is well-defined before writing code.

Quick Start

From the start of a feature, prepare your environment and create a focused branch: git checkout main git pull origin main git checkout -b feat/your-feature

As work progresses, keep to a single feature per branch and review changes before merging. When complete, rebase onto main and merge with a no-ff option: git fetch origin git rebase origin/main git checkout main git merge --no-ff feat/your-feature git push origin main

If the work expands to multiple unrelated tasks, create a new branch for each task (feat/, fix/, refactor/) and keep commits focused.

Frequently Asked Questions about git-branching-strategy

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

FAQPage Schema
How do I prevent large feature branches from accumulating unrelated changes in Git?

Apply a one-feature-one-branch discipline to your Git workflow to prevent monster branches. This practice isolates changes to a single feature, keeping branches manageable and easy to merge.

What is the best way to structure Git branch naming for feature development?

Use conventional prefixes like feat/, fix/, and refactor/ to structure Git branch naming. This codifies branch management rules and clarifies the exact purpose of each isolated branch.

When should I split a Git branch during feature development?

Split a Git branch when work expands to multiple unrelated tasks. Create a new branch for each task using conventional prefixes to maintain focused commits and keep the branch size manageable.

How do I merge a feature branch back into main using Git?

To merge a feature branch, fetch the main branch, rebase your feature branch onto it, then checkout main and use a no-ff merge. This preserves branch history and ensures merge readiness.

What are the recommended commit counts and file scope for keeping Git branches manageable?

Keeping Git branches manageable requires monitoring commit counts and limiting file scope to a single feature. This prevents monster branches and maintains reviewability and merge readiness.