Guards sit in front of the tools Claude uses. They can allow, deny or rewrite a tool call before it runs, for example to block risky shell commands or keep secrets out of tool output, using the tool.call and tool.check hooks.
guards
ameforge/claude-mods
Shared guards that turn agent rules into checks: rg over recursive grep, a confirmation for git commit and push outside your own repos, a preview before a git command discards uncommitted changes, a confirmation before git add -A stages another session's files, a check before a reply hands back unchecked items, no bold or italic in markdown, no bullet character U+2022 in any file, no...
port-guard
ameforge/claude-mods
Refuses to start a second dev server while its port is already in use, and names the process holding it.