guard

Warn on destructive commands and restrict edits to a target directory.

2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/OmerFarukOruc/symphony-orchestrator --skill guard-omerfarukoruc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/OmerFarukOruc/symphony-orchestrator/tree/main/.claude/skills/gstack/guard
Command: npx skills add https://github.com/OmerFarukOruc/symphony-orchestrator --skill guard-omerfarukoruc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces safety by warning about destructive commands and restricting edits to a defined directory, reducing the risk of accidental or malicious changes in production or critical environments.

Core Features & Use Cases

  • Destructive-command warnings: alerts when commands like rm -rf, DROP TABLE, or force-push are attempted.
  • Edit boundary enforcement: restricts edits to a user-selected directory, preventing changes outside that scope.
  • Pre-tool hooks: ensures safety checks are performed before any tool usage by integrating with sibling safety skills.

Quick Start

Activate guard mode on a target directory to enable destructive-command warnings and an edit boundary.

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

Destructive command warnings alert you when commands like rm -rf, DROP TABLE, or force-push are attempted in your environment. This prevents unsafe changes by integrating pre-tool hooks that execute safety checks before any tool usage.

Can I restrict file edits to a specific directory to avoid changing files outside my project scope?

Yes, you can enforce an edit boundary that restricts file modifications to a user-selected directory. This prevents accidental or malicious changes to files outside that defined scope, which is essential for critical environment safety.

How do pre-tool hooks work for enforcing safety boundaries before executing commands?

Pre-tool hooks work by integrating with sibling safety skills to ensure safety checks are performed before any tool usage. They enforce destructive-command warnings and directory-scoped edit restrictions to prevent unsafe changes in critical environments.

What is the best way to lock down edits and warn against destructive actions in live systems?

The best way to lock down edits in live systems is by combining destructive-command warnings with directory-scoped edit restrictions. This dual approach prevents both unsafe command execution and out-of-scope file modifications.

Do I need sibling safety skills to enforce edit boundaries and destructive warnings?

Yes, enforcing edit boundaries and destructive warnings requires an explicit dependency on sibling careful and freeze skills. These sibling skills provide the foundational hooks and boundary mechanisms to enforce warnings and restrictions.

When should I not use directory-scoped edit restrictions for my workflow?

Directory-scoped edit restrictions are not suitable for workflows requiring modifications across multiple directories outside a single sanctioned scope. They are designed specifically for workflows where safety around production or live systems is essential.