safety-guardrails

Require confirmation and rollback plans before destructive production commands.

2|1|Updated Jul 25, 2026
One-click install
npx skills add https://github.com/CODE-SAURABH/OpenSkills --skill safety-guardrails-code-saurabh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safety-guardrails
Source: https://github.com/CODE-SAURABH/OpenSkills/tree/main/safety-guardrails
Command: npx skills add https://github.com/CODE-SAURABH/OpenSkills --skill safety-guardrails-code-saurabh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents accidental data loss, unauthorized edits, and production damage by enforcing deliberate review before destructive actions and limiting changes to approved scopes.

Core Features & Use Cases

  • Destructive Command Warnings: Detects risky filesystem, database, Git, container, cloud, and infrastructure operations and requires explicit confirmation.
  • Scope and Production Protection: Locks edits to a defined directory, detects production environments, and blocks secrets and high-impact configuration changes.
  • Rollback and Reconnaissance Checks: Requires read-first inspection and a documented rollback plan before irreversible database or infrastructure operations.

Quick Start

Activate the safety-guardrails skill in guard mode and review all commands before making changes to the production orders service.

Frequently Asked Questions about safety-guardrails

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent destructive commands from running in production?

To prevent destructive commands, safety-guardrails enforces explicit confirmation, production detection, and scope validation before risky operations. It detects dangerous filesystem, database, and infrastructure commands, requiring manual approval to block accidental production damage.

What is scope locking for directory changes?

Scope locking restricts file edits to a defined directory, preventing unauthorized modifications outside the approved boundary. This mechanism blocks accidental changes to high-impact configuration files and secrets by validating the target scope before action.

How do I plan a rollback for irreversible database migrations?

Planning a rollback for irreversible migrations requires documenting a recovery plan and performing read-first reconnaissance. Safety-guardrails enforces these checks, ensuring you inspect the target state and define a rollback strategy before executing database or infrastructure changes.

Can I use command validation for live-system debugging?

Yes, command validation applies to live-system debugging by requiring explicit confirmation before executing risky operations. It detects destructive commands and enforces scope locking to prevent accidental damage during production incident response.

Does production protection work for high-impact configuration files?

Production protection blocks unauthorized edits to high-impact configuration files and secrets by enforcing scope validation. It detects production environments and requires explicit confirmation before allowing changes to critical system configurations.