Careful Mode Guardrails
Intercepts and warns before executing potentially destructive bash commands, database mutations, and container operations in Claude Code.
The gstack-careful skill introduces an automated safety layer for Claude Code by checking bash tool calls against known dangerous operations before they run. It actively detects high-risk commands such as recursive file deletions (rm -rf), unconstrained database drops and truncations, destructive git history modifications (force pushes and hard resets), Kubernetes resource deletions, and Docker prunes. Safe build artifacts like node_modules, dist, and cache directories are automatically allowlisted to prevent unnecessary friction, while all other destructive commands prompt user confirmation with an explicit override mechanism, making it indispensable for live environment debugging, production maintenance, and shared infrastructure work.