guard

Warn against destructive Bash commands and restrict file edits to specified directories.

1|Updated Jul 6, 2025
One-click install
npx skills add https://github.com/VanL/simplebroker --skill guard-vanl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/VanL/simplebroker/tree/main/.agents/skills/gstack/guard
Command: npx skills add https://github.com/VanL/simplebroker --skill guard-vanl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive safety layer by warning against destructive commands and restricting file edits outside designated directories, preventing costly mistakes.

Core Features & Use Cases

  • Safety Warnings for Dangerous Commands: Alerts users before executing potentially destructive Bash commands like rm -rf or DROP TABLE.
  • Directory Scoped Editing: Enforces boundaries on file modifications, blocking unauthorized edits outside a user-specified directory.
  • Use Case: When managing production systems, users can activate guard mode to prevent accidental data loss or system corruption during maintenance or debugging.

Quick Start

Invoke the guard skill and specify the directory to restrict edits, then follow prompts to activate safety protections.

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 during live system debugging?

Preventing accidental destructive commands during live system debugging requires a safety layer that alerts you before executing operations like `rm -rf` or `DROP TABLE`, blocking costly mistakes during sensitive maintenance.

What is directory scoped editing for system protection?

Directory scoped editing is a system protection mechanism that enforces boundaries on file modifications, blocking unauthorized edits outside a user-specified directory to prevent data corruption and maintain compliance.

How do I restrict file modifications to a specific directory during deployment?

To restrict file modifications to a specific directory during deployment, specify the target directory when invoking the guard skill, then follow prompts to activate safety protections that block unauthorized write access.

Does this safety warning tool work without external dependencies?

Yes, this safety warning tool works without external dependencies, utilizing internal scripts and references to detect dangerous operations and limit write access independently within your environment.

What is the best way to handle sensitive data without accidental data loss?

The best way to handle sensitive data without accidental data loss is to enforce directory restrictions and safety warnings simultaneously, ensuring dangerous operations are detected and write access is limited during maintenance.