Repository navigation
v1.2: Pre-commit Git Hook
Universal opt-in pre-commit hook converting the /gate-fast-before-commit rule from documentation to mechanical enforcement.
shell/git-hooks/pre-commit— looks forscripts/gate_fast.shat the repo root; no-ops where absent, refuses commits on FAIL otherwise. Bypass viaSKIP_GATE_FAST=1for WIP on private branches.- New
install.sh git-hookscategory symlinks the hook into~/.claude/git-hooks/. Opt-in per-repo activation viagit config core.hooksPath ~/.claude/git-hooks. - Symmetric
verify.shextension;uninstall.shunchanged (generic scan already captures the new symlink). - 5-assertion
tests/git-hooks/suite covers the cross product of (no-gate / passing / failing) × (default env /SKIP_GATE_FAST=1) plus install integration. Gate climbs 153 → 158 PASS.
Scope-narrowed from initial 3-Phase v1.2 proposal — v0.4's other deferred items (gate_full.sh per-template builds, perf benchmarks) stay deferred per the "defer until evidence" ruling; no lessons.md entry reports either gap biting.