careful

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

Updated Jun 16, 2026
One-click install
npx skills add https://github.com/adamtpang/summon.company --skill careful-adamtpang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/adamtpang/summon.company/tree/main/.claude/skills/careful
Command: npx skills add https://github.com/adamtpang/summon.company --skill careful-adamtpang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Destructive shell commands such as rm -rf, DROP TABLE, git push --force, and kubectl delete can cause irreversible data loss when executed without review. This Skill intercepts every Bash command before it runs 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 inspects every Bash command against patterns for recursive deletes, SQL DROP/TRUNCATE, git force-push, git reset --hard, kubectl delete, and docker prune. - Safe exceptions: Routine cleanup of build artifacts like node_modules, dist, .next, and pycache passes without warnings. - User-overridable warnings: Each match returns an "ask" permission decision with a clear risk explanation, so you stay in control. - Use Case: While debugging a live production system, you ask the agent to clean up resources; the skill flags a kubectl delete pod command and prompts you to confirm before it touches production. ## Quick Start Ask the agent to enable careful mode so it warns you before running any destructive commands.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I get warned before running rm -rf or other destructive commands?

Enable the careful skill, which installs a PreToolUse hook that scans every Bash command for destructive patterns. When a match like rm -rf or DROP TABLE is found, you receive a warning and can choose to proceed or cancel.

What destructive command patterns does the careful hook detect?

It detects recursive deletes (rm -r, rm --recursive), SQL DROP TABLE/DATABASE and TRUNCATE, git push --force, git reset --hard, git checkout/restore of the working tree, kubectl delete, and docker rm -f or system prune.

Can I still delete node_modules or build folders without warnings?

Yes. Standalone recursive deletes of build artifacts such as node_modules, .next, dist, __pycache__, .cache, build, .turbo, and coverage are whitelisted and pass without prompting.

Can I override a destructive command warning?

Yes. The hook returns an ask permission decision rather than a hard block, so you can review the warning message and explicitly approve the command to proceed.

How do I turn off careful mode after activating it?

The hook is session-scoped, so it deactivates automatically when you end the conversation or start a new session. No manual uninstall step is required.