Back to Hooks

Conventional Commits

Hooks git 742

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.

Install Command
npx claude-code-templates@latest --hook git/conventional-commits
View on GitHub
claude-code — conventional-commits

Content

JSON
{
"description": "Enforce conventional commit message format for all git commits. Validates commit..."
"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.