Armory
Source
Browse
Hooks

validate-branch-name-2

❌ Invalid Git Flow branch name: {branch_name} Git Flow branches must follow these patterns: • feature/<descriptive-name> • release/v<MAJOR>.<MINOR>.<PATCH> • hotfix/<descriptive-name> Examples: ✅ feature/user-authentication ✅ release/v1.2.0 ✅ hotfix/critical-security-fix Invalid: ❌ {branch_name} (missing Git Flow prefix) ❌ feat/something (use 'feature/' not 'feat/') ❌ fix/bug (use 'hotfix/' not 'fix/') 💡 Use Git Flow commands instead: /feature <name> - Create feature branch /release <version> - Create release branch /hotfix <name> - Create hotfix branch

Score
Unranked
Evidence
No signals yet
Last commit
Not known
Listed

Install

armory install validate-branch-name-2 --cli claude

writes the file to.claude/hooks/validate-branch-name-2Listed as compatible

Configuration
# fetches the hook script into:
.claude/hooks/validate-branch-name-2
# then register it in your settings.json "hooks" block.

↳ Add the hook entry to settings.json, then restart the harness.

Needs the armory CLI · not on npm yet, build it from cli/ in the repository

What it is

❌ Invalid Git Flow branch name: {branch_name} Git Flow branches must follow these patterns: • feature/ • release/v.. • hotfix/ Examples: ✅ feature/user-authentication ✅ release/v1.2.0 ✅ hotfix/critical-security-fix Invalid: ❌ {branch_name} (missing Git Flow prefix) ❌ feat/something (use 'feature/' not 'feat/') ❌ fix/bug (use 'hotfix/' not 'fix/') 💡 Use Git Flow commands instead: /feature - Create feature branch /release - Create release branch /hotfix - Create hotfix branch

When to use it

❌ Invalid Git Flow branch name: {branch_name} Git Flow branches must follow these patterns: • feature/ • release/v.. • hotfix/ Examples: ✅ feature/user-authentication ✅ release/v1.2.0 ✅ hotfix/critical-security-fix Invalid: ❌ {branch_name} (missing Git Flow prefix) ❌ feat/something (use 'feature/' not 'feat/') ❌ fix/bug (use 'hotfix/' not 'fix/') 💡 Use Git Flow commands instead: /feature - Create feature branch /release - Create release branch /hotfix - Create hotfix branch

How to install / invoke

# Wire this hook script into .claude/settings.json
curl -sL https://raw.githubusercontent.com/davila7/claude-code-templates/main/cli-tool/components/hooks/git/validate-branch-name.py -o .claude/hooks/validate-branch-name.py

Notes

Extracted from davila7/claude-code-templates, git category.