guard

Enforce directory boundaries and warn before destructive commands.

Updated Oct 15, 2025
One-click install
npx skills add https://github.com/vibrationalforce/Echoelmusic --skill guard-vibrationalforce
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/vibrationalforce/Echoelmusic/tree/main/.claude/skills/gstack/guard
Command: npx skills add https://github.com/vibrationalforce/Echoelmusic --skill guard-vibrationalforce

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual and risky production edits are easy to mishandle; this skill enforces a boundary and warns about destructive commands to prevent accidents.

Core Features & Use Cases

  • Directory-bound safety: prompts for a target directory and blocks edits outside it.
  • Destructive-command warnings: activates checks before potentially dangerous commands.
  • Pre-tool hooks integration: relies on the sibling /careful and /freeze skills to perform safety checks before tool use.
  • Use Case: You are performing maintenance on a live service; enable guard mode to ensure only approved changes within a safe directory are allowed.

Quick Start

Enable guard mode for a specific directory by specifying the path to restrict edits and enable destructive-command warnings.

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?

To prevent destructive commands in production, you can enable guard mode to activate pre-use checks that warn before potentially dangerous operations execute. This enforces directory boundaries to restrict edits to approved safe paths during live service maintenance.

How do I restrict file edits to a specific directory boundary during maintenance?

To restrict file edits to a specific directory boundary, specify the target directory path when enabling guard mode. This blocks any modifications outside the designated boundary, ensuring only approved changes within the safe directory are allowed.

What are pre-tool hooks for safety checks and how do they work?

Pre-tool hooks for safety checks intercept tool usage before execution to enforce directory boundaries and warn about destructive operations. They rely on sibling skills like /careful and /freeze to perform the actual safety validations.

Do I need the /careful and /freeze skills to use directory-bound safety checks?

Yes, you need the /careful and /freeze skills because guard relies on these sibling integrations to perform pre-tool safety checks. Guard references them to satisfy cross-skill dependencies and execute the actual validation logic before tool use.

Can I use guard mode for live service maintenance without blocking safe edits?

Yes, you can use guard mode for live service maintenance without blocking safe edits because it enforces a directory boundary rather than a total lockdown. It prompts for a target directory and only blocks edits outside that approved path while warning about destructive commands.

When should I not rely on guard mode for production protection?

You should not rely on guard mode for production protection if your workflow lacks sibling /careful and /freeze skills, as guard requires these cross-skill dependencies to execute its pre-use checks and cannot enforce directory boundaries independently without them.