Rules to guards vs Writing hooks
Rules to guards is an open-source agent skill for developer tools. Writing hooks is an open-source agent skill for developer tools. The table puts their facts side by side; each name links to its full write-up.
- Rules to guards has more GitHub stars (1,663 vs 155).
- Rules to guards is best for stop my agent from running npm in a repo that requires pnpm.
- Writing hooks is best for write a pretooluse hook that blocks edits to files over a line limit.
- In short
- Finds the rules your coding agent keeps breaking and turns them into blocking hooksGuides the agent in writing Claude Code hooks, choosing events, matchers and blocking
- Kind
- SkillSkill
- Pricing
- Open sourceOpen source
- Platforms
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, GooseClaude Code
- GitHub stars
- 1.7K155
- Last commit
- Nov 2026Nov 2026
- License
- MITISC
- Open source
Full write-ups
Rules to guards vs Writing hooks: questions
Is Rules to guards or Writing hooks cheaper?
Both are open source. Compare current plans on each official site.
What is the difference between Rules to guards and Writing hooks?
Rules to guards is an open-source agent skill for developer tools. Writing hooks is an open-source agent skill for developer tools. Rules to guards has more GitHub stars (1,663 vs 155).

