guard

Warn on destructive commands and enforce directory-scoped edit boundaries.

10|3|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/olaafrossi/FoamPilot --skill guard-olaafrossi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/olaafrossi/FoamPilot/tree/main/.claude/skills/guard
Command: npx skills add https://github.com/olaafrossi/FoamPilot --skill guard-olaafrossi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Full safety mode: destructive command warnings + directory-scoped edits. Combines /careful (warns before rm -rf, DROP TABLE, force-push, etc.) with /freeze (blocks edits outside a specified directory). Use for maximum safety when touching prod or debugging live systems. Use when asked to "guard mode", "full safety", "lock it down", or "maximum safety".

Core Features & Use Cases

  • Destructive command warnings
  • Directory edit boundary
  • Unified safety workflow

Quick Start

Enable guard mode to combine destructive-command warnings with directory-bound edits.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent destructive bash commands from running in a debugging workflow?

To prevent destructive bash commands in a debugging workflow, enable guard mode to activate pretool hooks that warn before executing risky commands like rm -rf, DROP TABLE, or force-push.

Can I restrict edits to a specific directory when working on live systems?

Yes, you can restrict edits to a specific directory on live systems by enabling guard mode, which enforces directory-scoped edit boundaries to block any file modifications outside the allowed path.

What is full safety mode for admin tasks and how does it work?

Full safety mode for admin tasks combines destructive command warnings with directory-bound edits, using pretool hooks to prevent or contain risky commands while limiting modifications to a specified directory.

Does guard mode block force-push and DROP TABLE commands automatically?

Guard mode automatically warns before executing dangerous commands like force-push and DROP TABLE, integrating pretool hooks to intercept and prevent destructive operations during admin or debugging workflows.

What's the difference between guard mode and careful mode for command safety?

Guard mode combines destructive command warnings with directory edit boundaries for maximum safety, whereas careful mode only provides warnings before risky commands without restricting file edits to a specific directory.

When should I use maximum safety mode for production systems?

Use maximum safety mode when touching production systems or debugging live environments, where both destructive command warnings and directory-scoped edit restrictions are needed to prevent irreversible damage.