What problem does it solve?
When working on production systems or critical codebases, accidental execution of destructive commands (like rm -rf, DROP TABLE, or force-push) or unintended edits to files outside your intended work scope can cause severe outages, data loss, or irreversible damage. This skill eliminates that risk by enforcing two layers of proactive protection.
Core Features & Use Cases
- Destructive command warnings: Alerts you before executing high-risk commands such as rm -rf, DROP TABLE, or git force-push, with the option to override the warning if the action is intentional.
- Directory-scoped edit restrictions: Lets you lock all file edits to a specific safe directory, automatically blocking any attempts to modify files outside that defined path.
- Use Case: Ideal for debugging live production services, making changes to critical infrastructure code, or working on sensitive projects where you need to avoid accidental modifications to unrelated files.
Quick Start
Ask the AI to activate guard mode and provide the path to the directory you want to restrict all edits to, and it will immediately enable both destructive command warnings and edit boundary enforcement.