beta

Conventional Commits Hook

Hooks

Hook that enforces conventional commit message format on every commit.

1803/23/2026

Version 1

Published

Initial version

Created 3/23/2026

Initial version — no previous version to compare

Hook Script
# Conventional Commits Hook

## Configuration (settings.json)
```json
{
  "hooks": {
    "postToolUse": [
      {
        "matcher": "Bash",
        "command": "if echo \"$TOOL_INPUT\" | grep -q 'git commit'; then echo \"Reminder: Use conventional commits (feat:, fix:, chore:, docs:, refactor:, test:)\"; fi"
      }
    ]
  }
}
```

## Commit Format
```
<type>(<scope>): <subject>

<body>

<footer>
```

## Types
- feat: new feature
- fix: bug fix
- chore: maintenance
- docs: documentation
- refactor: code restructuring
- test: adding tests
- ci: CI/CD changes
- perf: performance improvement