What problem does it solve?
Provides a unified safety layer that warns before destructive commands and restricts edits to a user-specified directory, reducing the risk of accidental production damage during maintenance or debugging.
Core Features & Use Cases
- Destructive-command warnings: Warns before risky operations such as rm -rf, DROP TABLE, or force-push attempts during active work on prod systems.
- Edit boundary enforcement: Blocks edits outside a user-selected directory to prevent unintended changes to critical assets.
- Pre-tool gating with careful and freeze: Integrates with sibling /careful and /freeze scripts to validate and enforce safety boundaries during tool use.
- Use cases: Ideal for live debugging, prod maintenance, or any scenario requiring "guard mode" or maximum safety.
Quick Start
Ask the user which directory to restrict edits to, then activate guard mode to enable warnings and the edit boundary.