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.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is Command: rm -rf ./data/uploads.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00039 $0.01118
Sonnet 5 $0.00016 $0.00447
Haiku 4.5 $0.00008 $0.00224

Measured 5d ago against content hash 2fe5a00fa4df, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 5d 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. 5d 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 (2 stars, last pushed 1mo ago), licensed MIT. It adds 79 tokens to every session and 2,236 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

product-description-generator

E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…

nexscope-ai/eCommerce-Skills · 126 tokens

ecommerce-landing-page

Audit and optimize e-commerce landing pages for conversion. CTA placement, trust signals, page structure, copy optimization, and A/B testing strategy for product pages, collection pages, and campaign landing pages.

nexscope-ai/eCommerce-Skills · 45 tokens

etsy-social-media-marketing

Social media marketing for Etsy — Pinterest, Instagram, TikTok strategies to drive shop traffic.

nexscope-ai/eCommerce-Skills · 23 tokens

localization-testing

AI-powered localization and internationalization testing skill for e-commerce sites. Designs multi-language QA frameworks, currency validation checks, shipping info verification, and regional compliance audits.

nexscope-ai/eCommerce-Skills · 0 tokens

walmart-price-tracker

AI-powered Walmart price tracking and competitive pricing skill. Analyzes Walmart marketplace pricing trends, competitor price positioning, and generates repricing strategies for Walmart sellers.

nexscope-ai/eCommerce-Skills · 0 tokens

ads-launch

Draft or explicitly apply a paid-ad campaign launch through Claude Ads capability-gated adapters. Use for campaign creation, launch plans, publishing ads, activating campaigns, uploading creative, or requests to push a campaign live.

AgriciDaniel/claude-ads · 45 tokens