What problem does it solve?
This skill provides safety guardrails for destructive commands by warning before potentially destructive actions such as rm -rf, DROP TABLE, git reset --hard, kubectl delete, and similar operations. Users can override warnings to proceed when necessary, enabling safe debugging in production-like environments.
Core Features & Use Cases
- Destructive command detection for common risky operations (rm -rf, DROP TABLE, TRUNCATE, git push --force, git reset --hard, kubectl delete, docker system prune) with an option to override warnings.
- Safe exceptions for common build artifacts (e.g., node_modules, .next, dist, pycache) to allow workflows without noise.
- Hook-driven activation via PreToolUse to enforce safety before command execution.
Quick Start
Attempt a command in your shell; the guard will scan it for destructive patterns and prompt you to confirm or cancel.