Safety guardrails for running Claude Code with reduced supervision. The guard-destructive PreToolUse hook matches against a normalized view of each command (heredoc bodies and comments stripped, quoted strings neutralized except interpreter arguments like ssh / sh -c / eval / su / doas), so a command that merely mentions a destructive pattern is not flagged. It hard-blocks catastrophic Bash commands (rm -rf /, rsync --delete, docker volume rm) and makes rm/rmdir scope-aware: operations whose operands all resolve inside the allowed workspace (the session project root, temp dirs, any $GUARD_ALLOWED_EXTRA root, or a variable assigned from a bare mktemp earlier in the same command) run silently, while anything outside it (or any glob/variable/escape it cannot resolve) raises a single reflective confirmation. git reset --hard / clean / restore, shred, dd, mkfs still always prompt.

version
1.7.6
GitHub stars
72

Install

/plugin install guardrails@dev-agent-skills

Run it inside Claude Code after adding the marketplace with /plugin marketplace add fvadicamo/dev-agent-skills.

Contents

Discovered from source

Agents 1

Hooks 1

Sponsors

Details

Marketplace
fvadicamo/dev-agent-skills
Source
plugins/guardrails
Category
community

More from fvadicamo/dev-agent-skills

All 5