guard

Monitor and restrict destructive commands and edits to a specified directory.

127k|19.1k|Updated Mar 11, 2026
Ready to run
npx skills add https://github.com/garrytan/gstack --skill guard-garrytan
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/garrytan/gstack/tree/main/guard
Command: npx skills add https://github.com/garrytan/gstack --skill guard-garrytan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The guard skill unit helps users avoid destructive commands and limit edits to a specific directory, providing a safety net for sensitive operations.

Core Features & Use Cases

  • Destructive Command Warnings: Alerts users before running potentially harmful commands.
  • Directory Scopes: Blocks edits outside of a specified directory, maintaining data integrity.
  • Use Case: When working with production systems or performing system updates, use guard to prevent accidental damage and limit scope to reduce risks.

Quick Start

Set guard mode for your working directory and receive warnings for destructive commands.

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 from running in a production environment?▼

You can prevent destructive commands in a production environment by applying a safety layer that monitors execution and triggers warnings before potentially harmful actions run, blocking unintended damage to live systems.

What is directory scope restriction for code safety?▼

Directory scope restriction for code safety blocks edits outside a specified working directory. By limiting the operational scope to one folder, it maintains data integrity and prevents accidental modifications to critical files.

Can I limit file edits to a specific directory during system updates?▼

Yes, you can limit file edits to a specific directory during system updates by setting a directory scope. This safety feature confines all modifications to your designated working folder, reducing risks to the broader production environment.

How do I set up warnings for potentially harmful terminal commands?▼

You set up warnings for potentially harmful terminal commands by enabling a monitoring safety layer. This layer checks commands against destructive patterns and alerts you before execution, preventing unintended destructive actions on live systems.

When should I use command checking for production security?▼

You should use command checking for production security when performing critical operations on live systems or applying system updates. It provides a necessary safety net by restricting scope and verifying destructive commands before execution.