Files
leo-claude-mktplace/plugins/git-flow/skills/branch-naming.md
lmiranda 2d51df7a42 feat(marketplace): command consolidation + 8 new plugins (v8.1.0 → v9.0.0) [BREAKING]
Phase 1b: Rename all ~94 commands across 12 plugins to /<noun> <action>
sub-command pattern. Git-flow consolidated from 8→5 commands (commit
variants absorbed into --push/--merge/--sync flags). Dispatch files,
name: frontmatter, and cross-reference updates for all plugins.

Phase 2: Design documents for 8 new plugins in docs/designs/.

Phase 3: Scaffold 8 new plugins — saas-api-platform, saas-db-migrate,
saas-react-platform, saas-test-pilot, data-seed, ops-release-manager,
ops-deploy-pipeline, debug-mcp. Each with plugin.json, commands, agents,
skills, README, and claude-md-integration. Marketplace grows from 12→20.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 14:52:11 -05:00

2.2 KiB

Branch Naming

Purpose

Defines branch naming conventions and validation rules for consistent repository organization.

When to Use

  • Creating new branches with /gitflow branch-start
  • Validating branch names
  • Converting descriptions to branch names

Branch Name Format

<type>/<description>

Branch Types

Type Purpose Example
feat New feature feat/user-authentication
fix Bug fix fix/login-timeout
chore Maintenance chore/update-deps
docs Documentation docs/api-reference
refactor Code restructure refactor/auth-module
test Test additions test/auth-coverage
perf Performance perf/query-optimization
debug Debugging work debug/memory-leak

Naming Rules

  1. Lowercase only - Never use uppercase
  2. Hyphens for spaces - Use - not _ or
  3. No special characters - Alphanumeric and hyphens only
  4. Descriptive - 2-4 words recommended
  5. Max 50 characters - Keep concise

Conversion Algorithm

Input:  "Add User Authentication"
Output: "feat/add-user-authentication"

Steps:
1. Lowercase: "add user authentication"
2. Replace spaces: "add-user-authentication"
3. Remove special chars: (none to remove)
4. Add prefix: "feat/add-user-authentication"
5. Truncate if > 50: (not needed)

Validation Checks

Branch name validation:
[x] Lowercase
[x] Valid prefix (feat/)
[x] Descriptive (3+ words recommended)
[ ] Too long (52 chars, max 50)

Suggested: feat/add-user-auth

Examples

Valid:

feat/add-password-reset
fix/null-pointer-login
chore/upgrade-typescript-5
docs/update-readme
refactor/simplify-auth

Invalid:

Feature/Add_Password_Reset  (wrong case, underscores)
fix-bug                      (too vague, no prefix)
my-branch                    (no type prefix)
feat/add-new-super-amazing-feature-for-users  (too long)

Issue-Linked Branches

When working on issues, include issue number:

feat/123-add-password-reset
fix/456-login-timeout
  • skills/commit-conventions.md
  • skills/git-safety.md
  • skills/workflow-patterns/branching-strategies.md