Pre-commit security hooks stop bad code before it ever leaves your laptop. They run automatically at git commit, scanning files for secrets, API keys, unsafe patterns, and policy violations. No extra clicks. No forgotten checks. If the hook finds something wrong, it blocks the commit. You fix it before it