guardrails

guardrails is a plugin for Claude Code from fvadicamo/dev-agent-skills. Its token cost is not measured, scanned C, original, MIT.

A safety layer for Claude Code, a coding assistant, that checks shell commands before they run. It blocks catastrophic commands and asks for confirmation when file operations may affect locations outside the allowed workspace.

In plain words
What is it for?
Safely running automated shell commands, especially commands involving deletion, repository cleanup, disk operations, or privileged interpreters.
Why use it?
It reduces the risk of an unsupervised coding assistant deleting, overwriting, or modifying important files.

Plugin for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions Claude Code.

Good fit Safely running automated shell commands, especially commands involving deletion, repository cleanup, disk operations, or privileged interpreters.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add fvadicamo/dev-agent-skills
/plugin install guardrails
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/fvadicamo/dev-agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for guardrails

README.md
[![agentmods](https://agentmods.dev/badge/plugins/fvadicamo/dev-agent-skills/guardrails/github.svg)](https://agentmods.dev/plugins/fvadicamo/dev-agent-skills/guardrails)
Your own site
<a href="https://agentmods.dev/plugins/fvadicamo/dev-agent-skills/guardrails"><img src="https://agentmods.dev/badge/plugins/fvadicamo/dev-agent-skills/guardrails/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for guardrails

Your own site · 80×15
<a href="https://agentmods.dev/plugins/fvadicamo/dev-agent-skills/guardrails"><img src="https://agentmods.dev/badge/plugins/fvadicamo/dev-agent-skills/guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade C, and why

guardrails scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

"description": "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 st
plugins/guardrails/.claude-plugin/plugin.json · 10 lines

What it actually says

{
  "name": "guardrails",
  "description": "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",
  "author": {
    "name": "Francesco Vadicamo",
    "email": "[email protected]"
  }
}
Contents

What it installs

The manifest is a name and a version. 1 hook travel with it, and installing the plugin installs all of them. Each is measured on its own page, and each can be installed alone.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 10 lines scan C 1a73bf768a8f

Subscribe to this mod's changes

guardrails is a plugin published in the GitHub repository fvadicamo/dev-agent-skills (72 stars, last pushed 2mo ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

guardrails compared with plugins from other repositories

guardrails next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
guardrailsfvadicamo/dev-agent-skillsPlugin722mo agoMITC—Claude Code
the-bulwarkQBall-Inc/the-bulwarkPlugin9yesterdayMITA—Claude Code
super-bootstrapRockyHong/super-bootstrapPlugin3yesterdayMITA—Claude Code
cppphotostructure/coding-skillsPlugin513d agoMITA—Claude Code
securityphotostructure/coding-skillsPlugin513d agoMITA—Claude Code
codingphotostructure/coding-skillsPlugin513d agoMITA—Claude Code
ship-itkhrichtchatyi/ship-itPlugin23mo agoMITA—Claude Code