guard

Warn before destructive commands and restrict file edits to a designated directory.

2|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/esopian/blue-oak-audit --skill guard-esopian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/esopian/blue-oak-audit/tree/main/.claude/skills/gstack/guard
Command: npx skills add https://github.com/esopian/blue-oak-audit --skill guard-esopian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enhances safety by providing warnings for destructive commands and restricting directory edits to prevent accidental or malicious system modifications.

Core Features & Use Cases

  • Destructive Command Warnings: Warns before executing commands like rm -rf or force-pushes to avoid accidental data loss.
  • Directory-Scoped Edits: Blocks modifications outside a user-specified directory to protect critical system or production files.
  • Use Case: When managing live systems, prevent accidental deletions or changes outside authorized paths by activating full safety mode.

Quick Start

Activate guard mode to enable destructive command warnings and specify the directory to restrict edits, ensuring maximum safety during sensitive operations.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent accidental data loss from destructive commands like rm -rf?

To prevent accidental data loss from destructive commands like rm -rf, you need a safety system that warns before execution. This skill intercepts unsafe commands and blocks force-pushes to avoid irreversible system modifications.

Can I restrict file edits to a specific directory to protect production files?

Yes, you can restrict file edits to a specific directory to protect production files. The safety system blocks any modifications attempted outside your user-specified directory, ensuring critical system files remain untouched.

What is directory-scoped editing for system protection?

Directory-scoped editing for system protection is a mechanism that confines file modifications to an authorized path. It prevents accidental or malicious changes outside the designated directory, enhancing overall system security.

How do I activate full safety mode when managing live systems?

To activate full safety mode when managing live systems, you enable guard mode and specify your target directory. This activates destructive command warnings and restricts edits to prevent accidental deletions during sensitive operations.

Does this safety system require external dependencies to function?

No, this safety system does not require external dependencies to function. It operates independently using internal scripts and references to provide destructive command warnings and directory restriction without additional setup.