What problem does it solve?
Prevents accidental or unauthorized execution of destructive commands like 'rm -rf', 'DROP TABLE', and others that can lead to irreversible data loss in a production environment.
Core Features & Use Cases
- Safety Checks: Before running commands like 'rm -rf' or 'git reset --hard', this Skill checks for destructive patterns and alerts the user.
- Custom Triggers: Detects when to check for destructive actions by listening to specific trigger phrases like "be careful", "warn before destructive", and "safety mode".
- PreToolUse Hooks: Integrates as a PreToolUse hook to evaluate and potentially block destructive commands from being executed.
- Customization: Allows exceptions to be set up for safe operations and manual overrides for certain checks.
Quick Start
Use the "careful" skill when you need to run a command like "rm -rf" to ensure you are not performing a destructive operation accidentally.