guard

Warn before destructive shell commands and restrict file edits to an approved directory.

20|3|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Walrus-Computing/piper-draw --skill guard-walrus-computing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/Walrus-Computing/piper-draw/tree/main/.claude/skills/gstack/guard
Command: npx skills add https://github.com/Walrus-Computing/piper-draw --skill guard-walrus-computing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents costly mistakes during high-risk work by warning before destructive commands run and by limiting edits to a chosen directory.

Core Features & Use Cases

  • Destructive Command Warnings: Flags risky operations like force pushes, deletions, and other potentially damaging shell actions before they execute.
  • Directory-Scoped Editing: Blocks file edits outside the approved path so work stays contained to the intended area.
  • Use Case: Ideal for production fixes, live debugging, and any session where you want strong guardrails while still allowing productive command-line work.

Quick Start

Ask me to enable guard mode and tell me which directory to protect so I can warn on destructive commands and block edits outside that path.

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 from executing in a bash shell?

To prevent accidental destructive commands, this Skill intercepts risky shell actions like force pushes and deletions using bash hook checks, warning you before they execute.

How do I restrict file edits to a specific directory during live debugging?

To restrict file edits to a specific directory during live debugging, this Skill enforces a path validation boundary that blocks any modifications outside your approved directory.

What are bash hooks and how do they work for command safety?

Bash hooks for command safety work by intercepting shell actions before execution, allowing the Skill to validate paths and flag potentially damaging operations like deletions or force pushes.

Can I use directory restriction and destructive command warnings for production changes?

Yes, you can use directory restriction and destructive command warnings for production changes, as this Skill is specifically designed to provide guardrails for high-risk maintenance and live debugging sessions.

What's the best way to set up guardrails for high-risk maintenance sessions?

The best way to set up guardrails for high-risk maintenance is enabling guard mode and specifying your protected directory, which activates both destructive command warnings and edit boundary enforcement.

Why are my file edits being blocked outside the approved path?

Your file edits are being blocked outside the approved path because the Skill's directory-scoped editing feature enforces a strict boundary, preventing modifications to files outside your chosen protected directory.