guard

Enforce directory-scoped edit boundaries and warn on destructive commands.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/nhattran998/personal-athlete-agent --skill guard-nhattran998
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/nhattran998/personal-athlete-agent/tree/main/.agents/skills/gstack-guard
Command: npx skills add https://github.com/nhattran998/personal-athlete-agent --skill guard-nhattran998

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Full safety mode protects systems by issuing warnings for destructive commands and enforcing edits within a defined directory boundary.

Core Features & Use Cases

  • Destructive command warnings for rm -rf, DROP TABLE, force-push, git reset --hard, etc.
  • Directory-scoped edit boundary that blocks edits outside the chosen path.
  • Combines careful and freeze mechanisms to provide comprehensive safety during prod debugging and sensitive operations.

Quick Start

Activate guard mode by selecting a restricted directory and enabling destructive-command warnings along with the edit boundary to start enforcing safety.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I enforce a directory boundary to block edits outside a specific path?

To enforce a directory boundary, you can activate safety mode to restrict file edits within a user-defined path. This prevents unauthorized modifications and contains high-risk operations during sensitive debugging sessions.

Can I get warnings before executing destructive commands like rm -rf or git reset --hard?

Yes, you can enable destructive command warnings to receive prompts before executing risky operations like rm -rf, DROP TABLE, force-push, and git reset --hard. This ensures user confirmation is required prior to any dangerous action.

What is the best way to protect my production environment during debugging workflows?

Protecting production environments during debugging is achieved by implementing full safety mode. This combines directory-scoped edit boundaries with destructive command warnings to contain changes and prevent accidental system damage.

How does restricting edits to a chosen directory work during high-risk operations?

Restricting edits to a chosen directory works by persisting a freeze boundary state that blocks any modifications outside the selected path. This ensures scope controls remain active throughout your high-risk operations.

Are there limitations when using safety mode for workflow control in DevOps?

Safety mode for workflow control requires careful integration with careful and freeze components to function correctly. It is specifically designed for high-risk prod or debugging environments where edits must be strictly contained.