git-hooks
Installation
SKILL.md
Git Hooks
Executables in .git/hooks/ (or core.hooksPath) named for the event. Non-zero exit aborts (except post-*). Any language; must be +x, no extension.
Distribution
.git/hooks/* is not cloned. Use a tracked dir:
git config core.hooksPath .githooks
git commit --no-verify # bypass pre-commit + commit-msg
git push --no-verify # bypass pre-push
Client-Side
Commit flow: pre-commit → prepare-commit-msg → editor → commit-msg → post-commit.