
Better Bots via Hooks
·393 words·2 mins
AI
git
Getting an AI agent to follow every repo convention through AGENT.md files and skill instructions can be a slog, and it won’t always comply. A git pre-commit hook enforces the rules for you — no commits to main, no committing files that shouldn’t change, and tidying and linting before anything lands.




