Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

git-flow

verified

Initialize git-flow, manage feature/release/hotfix branches, and coordinate multi-component releases. Use when setting up branching strategy, starting/finishing branches, or releasing with semantic versioning. Integrates with release-process skill.

View on GitHub

Marketplace

dev-flow

full-stack-biz/claude-dev-flow

Plugin

dev-flow

Repository

full-stack-biz/claude-dev-flow
1stars

skills/git-flow/SKILL.md

Last Verified

February 5, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/full-stack-biz/claude-dev-flow/blob/main/skills/git-flow/SKILL.md -a claude-code --skill git-flow

Installation paths:

Claude
.claude/skills/git-flow/
Powered by add-skill CLI

Instructions

# Git-Flow Branching Skill

Git-flow is a structured branching model that organizes parallel development with dedicated branch types. This skill guides setup, branch operations, and integration with semantic versioning.

## Quick Start

**Branch types:**
- `main` — Production, always deployable
- `develop` — Integration, pre-release
- `feature/*` — New features (from develop)
- `release/*` — Release prep (version bump)
- `hotfix/*` — Production fixes (from main)

**When to use:** Team with multiple concurrent features, explicit dev/prod separation, or semantic versioning.

## Setup: Initialize Git-Flow

### Step 1: Install git-flow (if not installed)

**macOS (Homebrew):**
```bash
brew install git-flow
```

**Linux (apt):**
```bash
sudo apt-get install git-flow
```

**Windows (Git Bash):**
```bash
# Option A: Download installer from github.com/nvie/gitflow
# Option B: Via Chocolatey
choco install gitflow
```

**Verify installation:**
```bash
git flow version
```

### Step 2: Initialize git-flow in your repository

```bash
git flow init
```

You'll be prompted to confirm branch names:
- Production branch (default: `main`)
- Development branch (default: `develop`)
- Feature branch prefix (default: `feature/`)
- Release branch prefix (default: `release/`)
- Hotfix branch prefix (default: `hotfix/`)

Press Enter to accept defaults unless your team has different conventions.

### Step 3: Verify initialization

```bash
# Check branches were created
git branch -a

# Expected output:
# * develop
#   main
```

## Branch Operations: Step-by-Step

### Starting a Feature

```bash
git flow feature start my-feature-name
```

This creates and checks out `feature/my-feature-name` from `develop`.

**What happens:**
- Branch created from `develop`
- You're automatically on the new branch
- Make commits as normal
- Other developers can see the branch and understand its purpose

**Convention:** Use lowercase hyphen-separated names: `feature/user-authentication`, `feature/payment-integr

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
7247 chars