guard

Enforce directory-bound edit policies and warn on destructive commands.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protects critical systems by warning on destructive commands and enforcing a directory-bound edit policy to prevent unintended changes.

Core Features & Use Cases

  • Destructive-command warnings that alert before executing risky operations (rm -rf, DROP TABLE, etc.).
  • Edit-boundary enforcement that restricts edits to a user-selected directory, blocking edits outside that boundary.
  • Pre-use safety checks that verify integration with the related careful and freeze components.

Quick Start

Ask the user which directory should be protected, then enable guard mode to enforce the boundary and warnings.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent accidental data loss from destructive commands in production?

You can prevent accidental data loss by enforcing guard rails on dangerous commands. This mechanism warns before executing risky operations like rm -rf or DROP TABLE, restricting edits to a user-selected directory to block unintended changes in both development and production environments.

How do I enforce an edit boundary to restrict changes to a specific directory?

You enforce an edit boundary by selecting a specific directory to protect, then enabling guard mode. This policy restricts edits to your chosen boundary, automatically blocking any unauthorized file modifications outside that directory.

What is a destructive-command warning system and when do I need it?

A destructive-command warning system alerts you before executing risky operations like rm -rf or DROP TABLE. You need this mechanism when protecting critical systems from accidental data loss and preventing unauthorized edits in development or production environments.

Do I need specific hooks to enable runtime checks for edit boundaries?

Yes, enabling runtime checks for edit boundaries requires integration with the careful and freeze hooks. These hooks perform the pre-use safety checks and boundary enforcement necessary to verify your guard rails are active before executing commands.

Can I use directory-bound edit policies to block unauthorized edits in development?

Yes, you can apply directory-bound edit policies in development contexts to prevent unintended changes. The guard mechanism enforces these boundaries, restricting edits to your selected directory and warning on destructive commands to protect critical systems.

What are the limitations of using guard rails for destructive-command warnings?

The primary limitation is that guard rails require integration with the careful and freeze hooks to perform runtime checks. Without these hooks active, the boundary enforcement and destructive-command warnings cannot verify or block risky operations effectively.