guard

Monitor and restrict command execution and file edits in specified directories.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/RxFit/hub-overlay --skill guard-rxfit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/RxFit/hub-overlay/tree/main/hub/skills/gstack/guard
Command: npx skills add https://github.com/RxFit/hub-overlay --skill guard-rxfit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires careful, freeze, and includes scripts (resource) components.

What problem does it solve?

The guard Skill prevents destructive operations and accidental edits in specified directories, offering a comprehensive safety layer for live systems and production environments.

Core Features & Use Cases

  • Destructive Command Warnings: Provides warnings before executing rm -rf, DROP TABLE, force-push, and other potentially destructive commands.
  • Directory-Scope Edit Restrictions: Restricts edits to a specified directory, preventing changes to unintended files.
  • Use Case: Use guard mode to "lock it down" during sensitive operations like debugging live systems or before major deployments, ensuring maximum safety and control.

Quick Start

Activate guard mode by asking the user which directory to restrict edits to, and provide a directory path. Then, guard mode will automatically enforce the necessary protections.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent destructive commands like rm -rf from running in production environments?

To prevent destructive commands in production environments, this Skill monitors command execution and provides explicit warnings before operations like rm -rf, DROP TABLE, or force-push are allowed to proceed.

What is directory-scope edit restriction for live systems?

Directory-scope edit restriction for live systems is a mechanism that limits file modifications to a specified path, preventing accidental changes to unintended files outside the designated boundary.

How do I lock down a directory before a major deployment?

To lock down a directory before a major deployment, you activate guard mode and provide the target directory path; the system then automatically enforces edit boundaries and safety checks.

Does guard mode work with hook scripts to enforce command restrictions?

Yes, guard mode works with hook scripts to enforce command restrictions; it utilizes these scripts to intercept operations, verify safety checks, and block potentially destructive edits in specified directories.

When do I need system protection for debugging live systems?

You need system protection for debugging live systems when performing sensitive operations that risk accidental file edits or destructive command execution, ensuring maximum safety and control over the environment.