Git Hooks Integration
Installation
SKILL.md
Git Hooks Integration
Overview
Git Hooks Integration provides automated enforcement of workflow rules through Git hooks. Hooks are configured in .omgkit/workflow.yaml and automatically installed to .git/hooks/. This ensures consistent code quality, commit conventions, and testing before code reaches the remote repository.
Available Hooks
| Hook | Trigger | Purpose |
|---|---|---|
pre-commit |
Before commit | Lint, format, type-check |
commit-msg |
After commit message | Validate conventional commits |
pre-push |
Before push | Run tests, security scan |
post-merge |
After merge/pull | Install deps, run migrations |
post-checkout |
After checkout | Environment setup |