careful

Warns before executing destructive bash commands like rm -rf, DROP TABLE, and force-push.

Updated May 22, 2026
One-click install
npx skills add https://github.com/kitfunso/claude-config --skill careful-kitfunso
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/kitfunso/claude-config/tree/main/skills/careful
Command: npx skills add https://github.com/kitfunso/claude-config --skill careful-kitfunso

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Destructive commands such as rm -rf, DROP TABLE, git push --force, and kubectl delete can cause irreversible data loss or production outages when run accidentally. This Skill intercepts every bash command before execution and warns you when a destructive pattern is detected, letting you confirm or cancel. ## Core Features & Use Cases - Pre-execution command scanning: A PreToolUse hook checks every Bash command against patterns for recursive deletes, SQL DROP/TRUNCATE, git force-push, git reset --hard, kubectl delete, and Docker prune. - Safe exceptions: Deleting build artifacts like node_modules, dist, .next, pycache, and coverage is allowed without warnings. - Use Case: While debugging a live production system, you ask the AI to clean up resources. Before any kubectl delete or rm -rf runs, you receive a warning explaining the risk and can choose to proceed or cancel. ## Quick Start Ask the AI to enable careful mode so it warns you before running any destructive commands in this session.

Frequently Asked Questions about careful

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get warnings before running destructive bash commands?▼

Enable the careful skill, which installs a PreToolUse hook that scans every Bash command for destructive patterns. When a match is found, you receive a warning and can choose to proceed or cancel before anything executes.

What destructive commands does the careful hook detect?▼

The hook detects rm -rf and recursive deletes, SQL DROP TABLE, DROP DATABASE, and TRUNCATE, git push --force, git reset --hard, git checkout or restore of the working tree, kubectl delete, and docker rm -f or system prune.

Can I delete node_modules without triggering a warning?▼

Yes, deleting build artifacts is whitelisted. Targets like node_modules, .next, dist, __pycache__, .cache, build, .turbo, and coverage are allowed without warnings, but any other rm -r target triggers a prompt.

Does the careful hook block commands or just warn?▼

It only warns by returning a permissionDecision of ask with a risk message. You can always override the warning and proceed, so it never hard-blocks a command you intentionally want to run.

How do I turn off careful mode after enabling it?▼

End the conversation or start a new session. The PreToolUse hooks are session-scoped, so the destructive command checks stop automatically when the session ends.