safety-guard

Intercept destructive commands and block unauthorized edits via PreToolUse hooks.

86|21|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/Jamkris/everything-gemini-code --skill safety-guard-jamkris
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safety-guard
Source: https://github.com/Jamkris/everything-gemini-code/tree/main/skills/safety-guard
Command: npx skills add https://github.com/Jamkris/everything-gemini-code --skill safety-guard-jamkris

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents destructive operations on production systems by providing guardrails that intercept dangerous actions and enforce safety.

Core Features & Use Cases

  • Careful Mode: intercepts destructive commands before execution and asks for confirmation.
  • Freeze Mode: locks edits to a defined directory tree to prevent unintended changes.
  • Guard Mode: combines protections of Careful and Freeze for maximal safety during autonomous executions.
  • Audit & logging: records blocked actions for post-mortem analysis.

Quick Start

Enable safety-guard and select a mode (Careful, Freeze, or Guard) to start protecting production workflows.

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 when autonomous agents run commands on production systems?

You can prevent destructive operations by implementing guardrails that intercept dangerous commands before execution. This skill uses PreToolUse hooks to block unauthorized edits and log blocked actions for post-mortem analysis during autonomous executions.

What is the difference between Careful, Freeze, and Guard modes for command interception?

Careful mode intercepts destructive commands and asks for confirmation, while Freeze mode locks edits to a defined directory tree. Guard mode combines both protections to provide maximal safety during autonomous executions on critical systems.

How do I lock edits to a specific directory tree to prevent unintended codebase changes?

You can lock edits to a specific directory tree by enabling Freeze mode. This mode restricts modifications to a defined directory structure, preventing autonomous agents from making unintended changes outside the protected boundary.

Does safety-guard work without external dependencies or components?

Yes, safety-guard operates without external dependencies or components. It functions independently using PreToolUse hooks to intercept commands, block unauthorized edits, and log blocked actions directly within your autonomous agent workflows.

When should I use Guard mode instead of Careful or Freeze mode for production system safety?

Use Guard mode when you need maximal safety during autonomous executions on critical systems. It combines the command interception and confirmation of Careful mode with the directory tree locking of Freeze mode for comprehensive protection.

Can I audit and log blocked destructive actions for post-mortem analysis?

Yes, you can audit and log blocked destructive actions. The skill records all intercepted commands and blocked edits, providing an audit trail that supports post-mortem analysis of autonomous agent behavior on production systems.