What problem does it solve?
Safety guardrails for destructive commands. Warns before rm -rf, DROP TABLE, force-push, git reset --hard, kubectl delete, and similar destructive operations. User can override each warning. Use when touching prod, debugging live systems, or working in a shared environment. Use when asked to "be careful", "safety mode", "prod mode", or "careful mode". (gstack)
Core Features & Use Cases
- PreToolUse hook for Bash: checks commands for destructive patterns before execution.
- Safe exceptions for certain artifacts (e.g., rm -rf node_modules / build directories) to avoid over-warning during builds.
- Logging of risk events to ~/.gstack/analytics/skill-usage.jsonl for auditability.
- User override capability to proceed after warnings.
Quick Start
Enable careful mode and begin issuing Bash commands to receive warnings before any destructive operation.