Careful Mode

•
1
•

Protects your environment by intercepting and requiring confirmation for destructive terminal commands like recursive deletes, database drops, and force pushes.

Careful Mode is a safety-focused skill for Claude Code designed to prevent accidental data loss and infrastructure damage. It implements a PreToolUse hook that monitors Bash execution for high-risk patterns—such as 'rm -rf', 'DROP TABLE', 'kubectl delete', and 'git push --force'. When a destructive command is detected, Claude will pause and request explicit user confirmation before proceeding. This skill is essential for developers working in production environments, managing critical databases, or handling complex cloud infrastructure where a single mistyped command could have irreversible consequences.

Key Features

01Requires explicit user confirmation before executing potentially destructive actions.
02Intelligently allows safe exceptions for temporary directories like node_modules and .venv.
03Persistent state management ensures safety guardrails remain active across sessions.
041 GitHub stars
05Intercepts high-risk Bash commands including recursive deletes and database drops.
06Comprehensive coverage for Git, Docker, Kubernetes, and SQL destructive patterns.

Use Cases

01Preventing accidental deletion of project source files or production assets during cleanup.
02Adding a verification layer when performing database migrations or schema modifications.
03Protecting cloud infrastructure by flagging kubectl delete and docker prune commands.