guard

Monitor and restrict directory edits and destructive commands in Bash environments.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, check-careful.sh, check-freeze.sh, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive safety checks and restrictions for directory edits and destructive commands, preventing accidental damage to files and directories.

Core Features & Use Cases

  • Destructive Command Warnings: Warns before executing potentially destructive commands like rm -rf or DROP TABLE.
  • Directory-Scope Edits: Restricts file edits to a specified directory, preventing unauthorized changes outside of it.
  • Use Case: When working on a production system or debugging live environments, this Skill can be used to ensure that no destructive changes are made without proper warnings and checks.

Quick Start

Activate guard mode and specify the directory to restrict edits to: guard activate --directory /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 command execution in Bash?

To prevent destructive command execution in Bash, this Skill monitors and warns before running commands like rm -rf. It blocks unauthorized changes, ensuring your production system or live environment remains protected from accidental damage.

Can I restrict file edits to a specific directory in a Bash environment?

Yes, you can restrict file edits to a specific directory in Bash using this Skill. It enforces directory-scope restrictions, preventing unauthorized changes to any files and folders outside of your explicitly specified target path.

Does this directory edit restriction tool require any specific dependencies to work?

Yes, the directory edit restriction tool requires Bash and specific hook scripts like check-careful.sh and check-freeze.sh. These dependencies are strictly necessary to monitor commands and enforce the safety restrictions properly.

What is the best way to add safety checks for live environment debugging?

The best way to add safety checks for live environment debugging is activating a guard mode. You can run `guard activate --directory /path/to/directory` to specify the restricted scope and receive warnings before executing destructive commands.

When should I use destructive command warnings in my workflow?

You should use destructive command warnings when working on production systems or debugging live environments. This safety mechanism prevents accidental damage to files and directories by blocking unauthorized changes before execution.