Sign in
Explore
Add-ons · HookEveryday codingTesting & SecurityReviewedRuns shell commands

git/validate-branch-name

Checks new branch names against the Git Flow patterns feature/*, release/vX.Y.Z and hotfix/*.

Kind
Hook
Works with
Claude Code
Source
Claude Code Templates @ 72e5f237f64d
Path
cli-tool/components/hooks/git/validate-branch-name.json
License
MIT
Jobs
Git workflow
InstallInstall it by hand, following the source.
{
  "description": "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.",
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "python3 \"$CLAUDE_PROJECT_DIR\"/.claude/hooks/validate-branch-name.py"
          }
        ]
      }
    ]
  }
}