guard

Enforces edit boundaries and warns against destructive commands during maintenance and debugging workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guard mode eliminates the risk of destructive changes in live systems by combining destructive-command warnings with a strict edit boundary.

Core Features & Use Cases

  • Destructive-command warnings: the system warns before executing dangerous commands like rm -rf, DROP TABLE, or force-push, reducing accidental damage.
  • Edit boundary enforcement: edits are restricted to a user-specified directory, preventing risky changes outside that path.
  • Combined safety workflow: running both protections together provides end-to-end guardrails during maintenance and debugging tasks.

Quick Start

Provide a target directory when prompted to activate guard mode, then both protections are enforced.

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 production debugging?

You can prevent destructive commands during production debugging by enforcing safety checks that warn before executing dangerous operations like rm -rf, DROP TABLE, or force-push, and by restricting edits to a user-specified directory.

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

To restrict file modifications to a specific directory during system maintenance, the Skill enforces an edit boundary by prompting for a target directory and storing this freeze boundary in a state file, blocking unauthorized edits outside that path.

What is an edit boundary and how does it protect live systems?

An edit boundary protects live systems by restricting all file modifications to a user-specified directory, preventing risky changes outside that defined path. It is applied during maintenance and code reviews to block unauthorized edits.

Can I enforce both destructive-command warnings and directory restrictions at the same time?

Yes, you can enforce both destructive-command warnings and directory restrictions simultaneously. The Skill provides a combined safety workflow that integrates both protections together, offering end-to-end guardrails during maintenance and debugging tasks.

Do I need to specify a target directory to activate guard mode?

Yes, you need to specify a target directory when prompted to activate guard mode. Once provided, both destructive-command warnings and edit boundary enforcement are applied to your workflow.