safety-guardrails

safety-guardrails is a skill for Claude Code, Codex from CODE-SAURABH/OpenSkills. It costs 79 tokens per session (2,236 once invoked), scanned C, original, MIT.

A safety guide for coding work that checks risky commands and limits file changes to an intended area. It focuses on avoiding accidental damage, especially in production systems.

In plain words
What is it for?
Use it during production debugging, risky migrations, destructive commands, or tightly scoped file edits where a mistake could cause damage.
Why use it?
It adds review before irreversible actions and encourages checking scope, consequences, and recovery options first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Command: rm -rf ./data/uploads.

Good fit Use it during production debugging, risky migrations, destructive commands, or tightly scoped file edits where a mistake could cause damage.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/CODE-SAURABH/OpenSkills
agentmods
npx agentmods add skills/code-saurabh/openskills/safety-guardrails

Made for: Claude Code, Codex.

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 safety-guardrails

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-saurabh/openskills/safety-guardrails/github.svg)](https://agentmods.dev/skills/code-saurabh/openskills/safety-guardrails)
Your own site
<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.

agentmods 80×15 button for safety-guardrails

Your own site · 80×15
<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>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,236 The whole file, excluding the scripts and references it only reads on demand.
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.
Token cost

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.

ModelPer sessionOnce 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

Measured 3mo ago against content hash 2fe5a00fa4df, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
safety-guardrails/SKILL.md · 247 lines

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.

Read the full file on GitHub · 247 lines

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 · 247 lines · 79 tokens per session scan C 2fe5a00fa4df

Subscribe to this mod's changes

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.

Related

safety-guardrails compared with skills from other repositories

safety-guardrails next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
safety-guardrailsCODE-SAURABH/OpenSkillsSkill64mo agoMITC79Claude Code, Codex
ads-youtubeAgriciDaniel/claude-adsSkill11ktodayMITA43Claude Code
ads-launchAgriciDaniel/claude-adsSkill11ktodayMITA29Claude Code
product-description-generatornexscope-ai/eCommerce-SkillsSkill1.6k20d agoMITA126Claude Code, Codex
supply-chain-optimization-tiktoknexscope-ai/eCommerce-SkillsSkill1.6k20d agoMITA57Claude Code, Codex
ecommerce-landing-pagenexscope-ai/eCommerce-SkillsSkill1.6k20d agoMITA45Claude Code, Codex
customer-feedback-analysisnexscope-ai/eCommerce-SkillsSkill1.6k20d agoMITA0Claude Code, Codex