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

git-branch

verified

Create a branch with standardized naming convention

View on GitHub

Marketplace

clauding

e-stpierre/clauding

Plugin

interactive-sdlc

sdlc

Repository

e-stpierre/clauding

plugins/interactive-sdlc/skills/git-branch/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/e-stpierre/clauding/blob/main/plugins/interactive-sdlc/skills/git-branch/SKILL.md -a claude-code --skill git-branch

Installation paths:

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

Instructions

# Git Branch

## Overview

Create and checkout a new branch with consistent naming that links to issue tracking when available. Uses the naming convention: `[category]/[issue-id]_[branch-name]` or `[category]/[branch-name]` when no issue ID is provided.

## Arguments

### Definitions

- **`[category]`** (optional): Branch type. Common values: poc, feature, fix, chore, doc, refactor. Accepts any value. Defaults to `feature`.
- **`[branch-name]`** (required): Short kebab-case description of the work.
- **`[issue-id]`** (optional): GitHub issue number associated with this work.

### Values

$ARGUMENTS

## Core Principles

- Use kebab-case for branch names (lowercase, hyphens)
- Keep branch names concise but descriptive
- Include issue ID when context provides one
- Never prompt interactively - extract from context or use defaults
- Accept any category value provided

## Instructions

1. Parse the provided arguments to extract category, branch-name, and issue-id (if present)
2. If arguments are incomplete, infer from conversation context:
   - Look for GitHub issue references (#123, issue 123)
   - Derive branch name from the task description
   - Default category to `feature` if not provided
3. Use the provided category or default to `feature`. Common categories: poc, feature, fix, chore, doc, refactor
4. Construct the branch name:
   - With issue: `<category>/<issue-id>_<branch-name>`
   - Without issue: `<category>/<branch-name>`
5. Execute: `git checkout -b <constructed-branch-name>`
6. Report the created branch name

## Output Guidance

Provide a brief confirmation message:

**On success:**

```
Created and switched to branch: feature/123_add-authentication
```

**On error:**

```
Failed to create branch: <error message from git>
```

Validation Details

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