Back to Hooks

Validate Branch Name

Hooks git 450

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.

Install Command
npx claude-code-templates@latest --hook git/validate-branch-name
View on GitHub
claude-code — validate-branch-name

Content

JSON
{
"description": "Validate Git Flow branch naming conventions before checkout. Ensures branches fo..."
"hooks": {
"PreToolUse": [1 item]
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.