guard

Warn before destructive commands and restrict edits to a specified directory.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Full safety mode: destructive command warnings + directory-scoped edits. Combines /careful with /freeze to protect prod and debugging environments.

Core Features & Use Cases

  • Destructive command warnings for risky operations (rm -rf, DROP TABLE, force-push, etc.)
  • Directory-boundary edit protection via /freeze, restricting edits to a specified path
  • Interlocks with sibling /careful and /freeze skills to provide end-to-end safety
  • Simple setup and auditable safety controls during maintenance and automation

Quick Start

Enable guard mode to enable destructive-command warnings and a directory-boundary freeze for your project.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent destructive commands from deleting data during development?

Prevent destructive commands by enabling safety features that warn before executing risky operations like rm -rf, DROP TABLE, or force-push. This restricts edits to a user-specified directory and blocks actions that could delete data or modify infrastructure.

How do I restrict file edits to a specific directory boundary?

Restrict file edits to a specific directory boundary by applying a freeze boundary. This restricts Bash, Edit, or Write actions to a user-specified path, ensuring operations stay confined to your designated project directory during maintenance or automation.

Can I get warnings before executing commands that modify production infrastructure?

Yes, you can get warnings before executing commands that modify production infrastructure. Destructive command warnings intercept risky operations, prompting confirmation before any action that could delete data or alter infrastructure is executed across development and production tasks.

What is the best way to protect production environments during debugging sessions?

The best way to protect production environments during debugging is to enable full safety mode. This combines destructive command warnings with directory-scoped edit protection, applying pre-tool hooks that verify boundaries before any Bash, Edit, or Write action executes.

How do pre-tool hooks verify boundaries before executing Bash or Write actions?

Pre-tool hooks verify boundaries by intercepting Bash, Edit, or Write actions and checking them against a user-specified directory path. If the action targets a path outside the freeze boundary or matches a destructive pattern, the hook blocks it and issues a warning.

Do I need to configure sibling skills to enable directory-boundary edit protection?

No, you do not need to manually configure sibling skills individually to enable directory-boundary edit protection. The guard mode integrates directly with sibling careful and freeze skills, automatically enabling destructive-command warnings and directory-scoped edits through a single setup.