guard

Enforce destructive-command warnings and directory-scoped edit boundaries at runtime.

1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/cheng80/rummipoker --skill guard-cheng80
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/cheng80/rummipoker/tree/main/.agents/skills/gstack-guard
Command: npx skills add https://github.com/cheng80/rummipoker --skill guard-cheng80

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Full safety rails are needed to prevent accidental destructive operations and unscoped edits in development and prod environments.

Core Features & Use Cases

  • Destructive command warnings (rm -rf, force-push, etc.) before execution.
  • Directory-scoped edit protection via an editable boundary enforced at runtime.
  • Combines the capabilities of careful and freeze to provide a unified safety mode for critical tasks such as production debugging and risk-sensitive changes.

Quick Start

Run the /guard command to enable full safety mode and apply both destructive-command warnings and directory-scoped edit protections.

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 like rm -rf during production debugging?

To prevent accidental destructive commands during production debugging, this safety mode intercepts and warns before executing operations like rm -rf or force-push. It enforces runtime safety rails to block unauthorized actions in critical environments.

What is the best way to enforce directory-scoped edit protection for sysadmin tasks?

The best way to enforce directory-scoped edit protection is by applying a configurable edit boundary at runtime. This restricts file modifications to approved directories, preventing unscoped edits during sensitive sysadmin tasks.

Can I combine destructive command warnings with cross-directory edit restrictions in one mode?

Yes, you can combine destructive command warnings with cross-directory edit restrictions. This unified safety mode integrates the capabilities of careful and freeze hooks to provide complete protection for risk-sensitive changes.

When do I need full safety rails for code maintenance and risk-sensitive changes?

You need full safety rails for code maintenance when executing operations where destructive actions and cross-directory edits must be warned or blocked. This prevents catastrophic data loss during critical production debugging and modifications.

Does this safety mode work with the careful and freeze hooks?

Yes, this safety mode works with the careful and freeze hooks. It implements direct integration with these sibling hooks to combine destructive-command warnings and directory-scoped edit protections into a single unified mode.

How do I enable full safety mode to block unauthorized file edits?

To enable full safety mode and block unauthorized file edits, you run the guard command. This applies both destructive-command warnings and directory-scoped edit protections immediately to your environment.