guard-rules
by iuliandita · ★ 2 · updated 6 days ago
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 unclassified environments, and pkill -f patterns that match the shell running the command.
Install
/plugin marketplace add iuliandita/mods/plugin install guard-rules@iuliandita-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startcommand.runtool.callclassic.PreToolUse- API calls
$.command.register$.env.get$.fs.read$.process.run$.session.cwd$.store.get$.store.set$.ui.toast- Can see
Bash callsclassic hooks- Reach
- level 2 of 3 runs processesreads filesreads env varspersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/iuliandita/mods
- Path in repo
mods/guard-rules/claude- Source commit
b5598c2the exact code the scan read- Author
- @iuliandita
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from iuliandita/mods
delegation-board
iuliandita/mods
A live pane of the session's subagents and teammates: type, model, effort, state, elapsed time, tokens, an optional cost estimate and the task description. It only observes; nothing leaves the machine.
notify
iuliandita/mods
Desktop notification when the agent finishes or waits on a permission prompt or other input, titled with the repo and harness, the branch in the text, and an optional sound. Uses notify-send on Linux and osascript on macOS; makes no network or model calls.
secret-box
iuliandita/mods
Resolves {{secret:NAME}} placeholders from Linux Secret Service or macOS Keychain at execution time, with optional directory scopes and host-specific output scrubbing.
statusline
iuliandita/mods
A two-row status line in the band above the prompt in the terminal (the Claude Desktop band is implemented and untested): model and effort, worktree, branch and counts, lines changed, kube context, PR and issue counts, session name and output style; then context, 5h and 7d rate-limit bars with pace, cache, cost and time. No statusLine script. In a git repo with a GitHub or GitLab remote it...