guard

Enforce safety boundaries for destructive commands and directory edits.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mitigates the risk of destructive commands and unregulated edits in production by enforcing strict safety boundaries across multi-tenant environments.

Core Features & Use Cases

  • Protective guardrails: destructive command warnings and directory-boundary enforcement.
  • Seamless integration with the /careful and /freeze components to prevent accidental data loss and unsafe edits.
  • Use Case: When debugging live systems or performing maintenance, enable guard mode to lock down destructive actions and confine edits to approved directories.

Quick Start

Enable guard mode to activate both destructive command warnings and directory edit boundaries.

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

Preventing destructive bash commands in production requires enforcing safety boundaries through PreToolUse hooks. This guard mode warns against dangerous operations and restricts edits to approved directory paths to mitigate accidental data loss.

What are directory boundaries and how do they protect multi-tenant environments?

Directory boundaries restrict file edits to approved paths, protecting multi-tenant environments from unregulated changes. By enforcing these strict safety boundaries, the system prevents users from accidentally modifying data outside their designated scope.

Can I use PreToolUse hooks to warn against dangerous operations during live debugging?

Yes, you can use PreToolUse hooks to warn against dangerous operations during live debugging. Activating guard mode locks down destructive actions and confines edits to safe directories, preventing accidental data loss while troubleshooting.

How do I enforce directory edit boundaries when performing system maintenance?

Enforcing directory edit boundaries during maintenance involves enabling guard mode to activate directory-boundary enforcement. This confines all file modifications to explicitly approved paths, preventing uncontrolled edits across the environment.

Do I need the careful component to enforce strict safety boundaries for destructive commands?

Yes, enforcing strict safety boundaries for destructive commands requires integration with the careful and freeze components. These components work together to prevent accidental data loss and block unsafe edits in production environments.