Skip to content

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 hooks
Guides the agent in writing Claude Code hooks, choosing events, matchers and blocking
Kind
Skill
Skill
Pricing
Open source
Open source
Platforms
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
Claude Code
GitHub stars
1.7K
155
Last commit
Nov 2026
Nov 2026
License
MIT
ISC
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).

Keep comparing