guard

Monitor and restrict destructive commands and directory edits.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides an extra layer of safety by warning against destructive commands and restricting edits to a specific directory, preventing accidental damage to files or systems.

Core Features & Use Cases

  • Destructive Command Warnings: Alerts users before executing potentially harmful commands like 'rm -rf' or 'DROP TABLE'.
  • Directory-Scope Edits: Restricts file edits to a chosen directory, protecting other files from unintended changes.
  • Use Case: When working on a production system or debugging live environments, use this Skill to ensure that only authorized commands and edits are performed.

Quick Start

To activate guard mode for a specific directory, run the command: /guard /path/to/directory

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent accidental destructive commands like rm -rf from executing in my environment?

To prevent accidental destructive commands, you can use guard to monitor and intercept harmful inputs. It provides warnings before executing potentially dangerous commands, enhancing system safety.

Can I restrict file edits to a specific directory to protect other files from unintended changes?

Yes, you can restrict file edits to a specific directory by activating directory-scope enforcement. This protects other files by enforcing strict directory boundaries against unintended changes.

How do I activate directory-scoped protection for a specific path?

To activate directory-scoped protection, run the command `/guard /path/to/directory`. This initializes guard mode, restricting file edits and monitoring commands within that chosen directory.

What are the best ways to add a safety layer when debugging live production environments?

Adding a safety layer when debugging live production environments involves implementing command checks and directory boundary enforcement. This ensures only authorized commands and edits are performed.

Does this command checking tool warn about database operations like DROP TABLE?

Yes, this command checking tool warns about database operations like DROP TABLE. It monitors and restricts destructive commands across your system, preventing accidental damage to files or databases.

When should I use directory-scoped edits instead of unrestricted file modifications?

You should use directory-scoped edits when working on production systems or live environments where accidental damage is a concern. It prevents unintended modifications to files outside the chosen boundary.