safety-guard

Blocks destructive commands and enforces directory-specific write locks on production systems.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/richardnpaul/everything-vscode-copilot --skill safety-guard-richardnpaul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safety-guard
Source: https://github.com/richardnpaul/everything-vscode-copilot/tree/main/.github/skills/safety-guard
Command: npx skills add https://github.com/richardnpaul/everything-vscode-copilot --skill safety-guard-richardnpaul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents destructive operations on production systems and during autonomous agent execution, reducing risk of data loss or service disruption.

Core Features & Use Cases

  • Intercepts dangerous commands and warns or blocks unless confirmed
  • Provides three protection modes: Careful Mode, Freeze Mode, and Guard Mode
  • Enforces directory-specific write locks and logs blocked actions
  • Integrates with default-session safety settings and observability risk scoring

Quick Start

Enable safety guard in production or autonomous-agent sessions to automatically warn, block unsafe actions, and log incidents.

Frequently Asked Questions about safety-guard

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

FAQPage Schema
How do I prevent destructive operations on production systems?

To prevent destructive operations on production systems, you can enable safety guards that intercept dangerous commands and enforce write restrictions to specific directories. This reduces the risk of data loss or service disruption during sensitive work.

What are the best guardrails for autonomous agent execution?

Guardrails for autonomous agent execution include implementing protection modes that warn or block unsafe actions unless confirmed. Applying directory-specific write locks and logging blocked actions ensures automated runs do not cause unintended damage.

How does a safety guard intercept dangerous commands?

A safety guard intercepts dangerous commands by applying protection modes like Careful, Freeze, and Guard. It evaluates operations against directory-specific write locks, blocking unsafe actions and logging incidents for observability.

Can I lock write access to specific directories in production?

Yes, you can lock write access to specific directories in production. Safety guards enforce directory-specific write restrictions, automatically warning or blocking commands that attempt to modify protected paths during sensitive operations.

What is the difference between Careful, Freeze, and Guard protection modes?

Careful, Freeze, and Guard are three protection modes for risk management. They escalate safety by intercepting dangerous commands differently, ranging from warning or blocking actions to enforcing strict write locks and logging blocked incidents.

When should I enable safety guards for sensitive operations?

You should enable safety guards for sensitive operations during production work and autonomous agent runs. Activating these guardrails automatically warns, blocks unsafe actions, and logs incidents to prevent service disruption and data loss.