safety-guard

Intercept destructive commands with Careful, Freeze, and Guard modes.

4|7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/arbisoft/ai-skillforge --skill safety-guard-arbisoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safety-guard
Source: https://github.com/arbisoft/ai-skillforge/tree/main/Claude/skills/safety-guard
Command: npx skills add https://github.com/arbisoft/ai-skillforge --skill safety-guard-arbisoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use this skill to prevent destructive operations when working on production systems or running autonomous agents.

Core Features & Use Cases

  • Careful Mode intercepts destructive commands before they execute and will warn and ask for confirmation.
  • Freeze Mode locks edits to a specific directory tree to prevent unintended changes outside a target path.
  • Guard Mode combines protections for maximum safety, allowing read access but restricting writes to designated areas.
  • Implementation uses PreToolUse hooks to intercept commands and log blocked actions.
  • Integration guidance for enabling safety in codex sessions and aligning with ECC risk controls.

Quick Start

Enable safety-guard in the active session and attempt a potentially destructive command to observe the protective prompts.

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 commands from executing in production environments?

To prevent destructive commands in production environments, a safety guard skill intercepts risky operations before execution. It applies PreToolUse hooks to catch potentially harmful commands during autonomous agent runs and admin operations, requiring confirmation before proceeding.

Can I lock file edits to a specific directory tree to avoid unintended changes?

Yes, you can lock file edits to a specific directory tree using Freeze Mode. This mode prevents unintended changes outside a target path by restricting write access, while still allowing read access to other areas.

What is the best way to add guardrails for autonomous agents running risky admin operations?

The best way to add guardrails for autonomous agents is by enabling Guard Mode, which combines multiple protections for maximum safety. It allows read access but restricts writes to designated areas, intercepting destructive commands before they execute.

How do I log blocked actions when intercepting destructive commands?

To log blocked actions when intercepting destructive commands, the skill uses PreToolUse hooks. These hooks automatically intercept potentially harmful commands and log the blocked actions, providing an audit trail of prevented operations.

Does safety-guard work with codex sessions and ECC risk controls?

Yes, safety-guard works with codex sessions and aligns with ECC risk controls. It includes integration guidance for enabling safety mechanisms during these sessions, ensuring destructive operations are intercepted and prevented.