careful

Intercepts destructive bash commands and prompts for confirmation before execution.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/bobbo01/B2BPlatform --skill careful-bobbo01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/bobbo01/B2BPlatform/tree/main/.agents/skills/gstack-careful
Command: npx skills add https://github.com/bobbo01/B2BPlatform --skill careful-bobbo01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running destructive commands like rm -rf, DROP TABLE, or git push --force in production or shared environments can cause irreversible data loss. This Skill adds a safety checkpoint that warns you before such commands execute. ## Core Features & Use Cases - Destructive Command Detection: Scans every bash command for dangerous patterns including rm -rf, DROP TABLE, TRUNCATE, git push --force, git reset --hard, kubectl delete, and docker system prune. - User Override Control: Returns an "ask" permission decision with a warning, letting you confirm or cancel each flagged command. - Safe Exceptions: Allows routine cleanup of node_modules, dist, build, .next, pycache, .cache, .turbo, and coverage without warnings. - Use Case: While debugging a live production issue, you ask the AI to clean up old files. The skill intercepts an accidental rm -rf targeting the wrong directory and asks for your confirmation first. ## Quick Start Ask the AI to enable careful mode before running shell commands in a production or shared environment.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent accidental rm -rf or destructive commands in Claude Code?

Enable the careful skill, which registers a PreToolUse hook that scans every Bash command for destructive patterns. When a match is found, it returns an ask permission decision so you can confirm or cancel before execution.

What destructive command patterns does the careful skill detect?

It detects rm -rf and recursive deletes, DROP TABLE, DROP DATABASE, TRUNCATE, git push --force, git reset --hard, git checkout ., kubectl delete, docker rm -f, and docker system prune.

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 and choose to proceed with the command or cancel it.

Does the careful skill block routine cleanup like deleting node_modules?

No. Safe exceptions allow rm -rf on node_modules, .next, dist, __pycache__, .cache, build, .turbo, and coverage directories without triggering a warning.

How do I turn off careful mode after activating it?

End the conversation or start a new one. The hooks are session-scoped, so the safety checks stop applying once the session ends.