A Claude Code PreToolUse hook that checks the
commit subject before the git commit command runs, and denies the tool call if the
subject is wrong. Claude then rewrites the subject and tries again, instead of running
into a rejected commit and having to recover from it.
It holds no rules of its own. It finds the message in the command and hands it to your
existing commit-msg git hook, so there is one source of truth for the convention.