Skip to main content

Hooks

Hooks are workflow triggers that run at specific events (for example: before commit, before PR merge, or after generation).

Why hooks matter

  • enforce policy automatically
  • catch quality issues early
  • keep agent output aligned with team standards

Common hook points

  • pre-commit: lint, format, quick checks
  • pre-push: test subset, validate docs build
  • CI PR checks: full docs build and policy checks

Best practice

Use hooks to validate structure and safety, not to replace human review.