What is guard-rules?
guard-rules is a Claude Code mod by iuliandita that blocks AI attribution in commits and PRs, direct commits to protected branches, commits under the wrong git identity, and mutating kubectl, helm and terraform calls on protected or. It is listed under Security and has 2 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | iuliandita |
| Repository | iuliandita/mods |
| Popularity | 2 GitHub stars |
| Category | Security |
| Security | Review before installing (76/100) |
| Rank | #2,399 of 9,397 Claude Code mods; #290 in Security |
| License | MIT |
| Last commit | 2026-11-30 |
| Hooks | 4 events |
| Sees | Bash calls, classic hooks |
| Draws on | nothing |
Is guard-rules safe to install?
guard-rules scores 76/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.process.run | runs processes |
$.session.cwd | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.toast | draws interface |
How do I install guard-rules?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/iuliandita/mods claude plugin validate ./mods/mods/guard-rules/claude
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add iuliandita/mods && claude plugin install guard-rules@iuliandita-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs guard-rules for you:
Install the "guard-rules" Claude Code mod from https://github.com/iuliandita/mods/tree/develop/mods/guard-rules/claude. Run claude plugin validate on it first and show me what it can access before you enable it.
More from iuliandita/mods
This repository has 5 Claude Code mods on MCPMods.
- delegation-board: A live pane of the session's subagents and teammates: type, model, effort, state, elapsed time, tokens, an optional cost (Low risk)
- notify: Desktop notification when the agent finishes or waits on a permission prompt or other input, titled with the repo and ha (Review before installing)
- secret-box: Resolves {{secret:NAME}} placeholders from Linux Secret Service or macOS Keychain at execution time, with optional direc (Review before installing)
- statusline: A two-row status line in the band above the prompt in the terminal (the Claude Desktop band is implemented and untested) (Review before installing)