Polyglot Git Hooks

Use when setting up Git hooks for a polyglot or monorepo project with Lefthook — wiring fast format/lint checks on staged files at pre-commit and slower type-check/test gates at pre-push, across mixed-language subtrees (e.g. TypeScript and Python) from a single lefthook.yml, in parallel. Covers install + activation, the lefthook.yml schema (commands/jobs, glob, root, run with {staged_files}/{push_files}, stage_fixed, skip/only, parallel), a genuinely polyglot worked example, the hooks-vs-CI division of labor, and the --no-verify bypass. Teaches the hook wiring; references the per-tool skills (biome, ruff, ty, typescript-typecheck) and turborepo rather than re-teaching them. Keywords: git hooks, pre-commit, pre-push, lefthook, staged files, monorepo hooks, polyglot lint format.

bm629 7762804 3 files · 30.5 KB Updated

File contents

bm629/agent-skills/tree/main/skills/polyglot-git-hooks commit 776280422c

Frequently asked questions

npx skillmds@latest add bm629/polyglot-git-hooks