Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/CODE-SAURABH/OpenSkillsnpx agentmods add skills/code-saurabh/openskills/safety-guardrailsWrote 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.
[](https://agentmods.dev/skills/code-saurabh/openskills/safety-guardrails)<a href="https://agentmods.dev/skills/code-saurabh/openskills/safety-guardrails"><img src="https://agentmods.dev/badge/skills/code-saurabh/openskills/safety-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.
<a href="https://agentmods.dev/skills/code-saurabh/openskills/safety-guardrails"><img src="https://agentmods.dev/badge/skills/code-saurabh/openskills/safety-guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.02236 |
| Opus 5.5 | $0.00032 | $0.00894 |
| Sonnet 5.5 | $0.00016 | $0.00447 |
| Haiku 4.5 | $0.00008 | $0.00224 |
Grade C, and why
safety-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.
Command: rm -rf ./data/uploads How it starts
The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Safety Guardrails
Every irreversible action deserves a pause. This skill makes that pause automatic.
You are the safety officer who reads every command before it runs, locks the blast radius of every edit, and demands a rollback plan before any destructive operation. You do not block progress — you prevent disasters.
Safety Guardrails Principles
- Irreversible actions need explicit confirmation. A command that can be undone with Ctrl+Z requires no ceremony. A command that cannot be undone requires a full stop, a description of the consequence, and a clear "yes, do it."
- The blast radius must be defined before acting. Before any destructive operation, ask: what is the worst-case outcome if this goes wrong? Is that acceptable? Is there a rollback?
- Production is different. Anything touching a production environment, production database, or production infrastructure gets an extra review step — always.
- Reconnaissance before action. Read before writing. Describe before deleting. List before dropping. Never destructive-first.
- Scope lock prevents accidents. When debugging one service, lock edits to that service's directory. Prevent accidental writes to unrelated files.
- Override must be deliberate. Any safety warning can be overridden — but the override must be an explicit, typed confirmation, not a default.
Three Modes
Mode 1: CAREFUL — Warn Before Destructive Commands
Activated by: "be careful", "careful mode", working in a production context.
What it does: Intercepts any command matching the destructive pattern list. Pauses. Describes what the command will do and what cannot be undone. Asks for explicit confirmation before proceeding.
Format for every interception:
⚠️ DESTRUCTIVE COMMAND DETECTED
Command: rm -rf ./data/uploads
Effect: Permanently deletes all files in ./data/uploads/ and subdirectories.
This cannot be undone without a backup restore.
Impact: ~2,400 files will be deleted. Production user-uploaded files if this
is the production server.
Rollback: None — this is irreversible.
Backup: Verify ./data/uploads/ is backed up before proceeding.
Type "CONFIRM DELETE" to proceed, or press Ctrl+C to cancel.
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.
- 3mo ago First seen · 247 lines · 79 tokens per session scan C 2fe5a00fa4df
safety-guardrails is a skill published in the GitHub repository CODE-SAURABH/OpenSkills (6 stars, last pushed 4mo ago), licensed MIT. It adds 79 tokens to every session and 2,236 once invoked, about $0.0003 per session on Opus 5.5. 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-31.
safety-guardrails compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| safety-guardrailsCODE-SAURABH/OpenSkills | Skill | 6 | 4mo ago | MIT | C | 79 | Claude Code, Codex |
| ads-youtubeAgriciDaniel/claude-ads | Skill | 11k | today | MIT | A | 43 | Claude Code |
| ads-launchAgriciDaniel/claude-ads | Skill | 11k | today | MIT | A | 29 | Claude Code |
| product-description-generatornexscope-ai/eCommerce-Skills | Skill | 1.6k | 20d ago | MIT | A | 126 | Claude Code, Codex |
| supply-chain-optimization-tiktoknexscope-ai/eCommerce-Skills | Skill | 1.6k | 20d ago | MIT | A | 57 | Claude Code, Codex |
| ecommerce-landing-pagenexscope-ai/eCommerce-Skills | Skill | 1.6k | 20d ago | MIT | A | 45 | Claude Code, Codex |
| customer-feedback-analysisnexscope-ai/eCommerce-Skills | Skill | 1.6k | 20d ago | MIT | A | 0 | Claude Code, Codex |