What is rule-guard?
rule-guard is a Claude Code mod by Tvrtk0 that holds what your rules forbid: posting to GitHub or pushing without your say-so in your last message, em dashes in posts and commits, an i18n change that skips one of the nine catalogs. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | Tvrtk0 |
| Repository | Tvrtk0/claude-code-mods |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Review before installing (72/100) |
| Rank | #8,909 of 9,397 Claude Code mods; #898 in Security |
| Last commit | 2026-11-10 |
| Hooks | 2 events |
| Sees | Bash calls, every prompt |
| Draws on | nothing |
Is rule-guard safe to install?
rule-guard scores 72/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; watches every prompt or event. It passed 5 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 |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.fs.read | reads files |
$.process.run | runs processes |
$.session.cwd |
How do I install rule-guard?
- 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/Tvrtk0/claude-code-mods claude plugin validate ./claude-code-mods/rule-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Tvrtk0/claude-code-mods && claude plugin install rule-guard@local-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs rule-guard for you:
Install the "rule-guard" Claude Code mod from https://github.com/Tvrtk0/claude-code-mods/tree/main/rule-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Tvrtk0/claude-code-mods
This repository has at least 9 Claude Code mods on MCPMods.
- ask-mode: A read-only mode for questions: Claude answers and investigates but cannot change files, run state-changing commands or (High risk)
- image-slim: /slim drops the pictures from older messages (screenshots, pasted images) and keeps every word: a compaction that summar (Low risk)
- plan-steps: Claude keeps a short plan of the request in plain words and wraps up with what it did; Herdr's steps pane shows both. (High risk)
- pr-inbox: A review inbox for the current repo's open PRs: who is waiting on you, what changed since your review, unresolved thread (Low risk)
- prompt-queue: Queue the next prompts while Claude works: a button beside the prompt band (or /next) takes what you typed, and each que (Review before installing)
- readable-width: Caps reply and prompt text at 80 columns while code blocks and tables keep the full width, and highlights your own promp (Review before installing)
- reader-quiet: While Herdr's Claude reader shows this session, the terminal keeps only the prompt, dialogs and spinner: replies, prompt (Review before installing)
- tool-log: A side panel with a live tool log grouped by prompt, changed files with diffs and subagents; folds tool calls in the cha (Review before installing)