Armory
Source
Browse
Hooks

validate-branch-name

Validate Git Flow branch naming conventions before checkout. Ensures branches follow the pattern: feature/*, release/v*.*.*, hotfix/*. Prevents creation of branches that don't follow Git Flow standards.

Score
Unranked
Evidence
No signals yet
Last commit
Not known
Listed

Install

armory install validate-branch-name --cli claude

writes the file to.claude/hooks/validate-branch-nameListed as compatible

Configuration
# fetches the hook script into:
.claude/hooks/validate-branch-name
# 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

Validate Git Flow branch naming conventions before checkout. Ensures branches follow the pattern: feature/, release/v.., hotfix/*. Prevents creation of branches that don't follow Git Flow standards.

When to use it

Validate Git Flow branch naming conventions before checkout. Ensures branches follow the pattern: feature/, release/v.., hotfix/*. Prevents creation of branches that don't follow Git Flow standards.

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.json -o .claude/hooks/validate-branch-name.json

Notes

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