One-click install
npx skills add https://github.com/TumeloRamaphosa/StudEx-Valley-OS --skill guard-tumeloramaphosa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/TumeloRamaphosa/StudEx-Valley-OS/tree/main/.claude/skills/gstack/guard
Command: npx skills add https://github.com/TumeloRamaphosa/StudEx-Valley-OS --skill guard-tumeloramaphosa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents accidental destructive operations and limits file edits to a chosen directory during high-risk maintenance, debugging, or production-related changes.

Core Features & Use Cases

  • Destructive command warnings: Detects risky commands such as rm -rf, destructive SQL statements, and unsafe git operations and warns before execution.
  • Directory-scoped edit blocking: Restricts write/edit actions to a user-specified directory boundary and blocks edits outside it.
  • Dual protection workflow: Combines destructive-command checks and freeze-boundary checks so safety guardrails run together.

Quick Start

Run the guard mode command, then enter the directory path that should remain editable while you perform your task safely.

Frequently Asked Questions about guard

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

FAQPage Schema
Can I restrict file edits to a specific directory boundary during sensitive system maintenance?

To restrict file edits to a specific directory, you enter your desired directory path when starting guard mode. The Skill enforces a freeze boundary that blocks any write operations attempted outside that user-selected directory.

What specific destructive command patterns are caught by these safety guardrails?

Destructive command detection covers risky patterns including rm -rf, unsafe git operations, and destructive SQL statements. It validates execution against these patterns using companion hook scripts before any command runs.

How do I configure directory-scoped edit blocking for production debugging?

To set up directory-scoped edit blocking, run the guard mode command and input the target directory path. This restricts all write operations to that boundary, preventing accidental out-of-scope edits during production debugging.

Do I need companion hook scripts to enforce edit boundary validation?

Yes, enforcing edit boundary validation relies on companion careful and freeze hook scripts. These scripts execute dual protection workflow checks to ensure destructive-command warnings and directory boundary blocks run together successfully.

When should I avoid using a freeze boundary for file modifications?

You should avoid using a freeze boundary when performing broad repository-wide refactoring or multi-directory updates, because the directory-scoped edit blocking intentionally prevents writing to any path outside the user-selected boundary.