Sign in
Explore
Add-ons · HookEveryday codingReviewedRuns shell commands

git/conventional-commits

Checks that git commit messages follow the type(scope): description format before each commit runs.

Kind
Hook
Works with
Claude Code
Source
Claude Code Templates @ 72e5f237f64d
Path
cli-tool/components/hooks/git/conventional-commits.json
License
MIT
Jobs
Git workflow, Guardrails
InstallInstall it by hand, following the source.
{
  "description": "Enforce conventional commit message format for all git commits. Validates commit messages follow the pattern: type(scope): description. Supported types: feat, fix, docs, style, refactor, perf, test, chore, ci, build, revert. Ensures consistent commit history for changelog generation and semantic versioning.",
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "python3 \"$CLAUDE_PROJECT_DIR\"/.claude/hooks/conventional-commits.py"
          }
        ]
      }
    ]
  }
}