careful

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

1|Updated Aug 17, 2026
One-click install
npx skills add https://github.com/NalinDalal/skillset --skill careful-nalindalal
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/NalinDalal/skillset/tree/main/skills/workflow/careful
Command: npx skills add https://github.com/NalinDalal/skillset --skill careful-nalindalal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Destructive commands like rm -rf, DROP TABLE, or git push --force can cause irreversible data loss when run accidentally, especially in production or shared environments. This Skill intercepts risky commands and warns before they execute. ## Core Features & Use Cases - Destructive Command Detection: Checks bash commands against patterns including recursive deletes, DROP/TRUNCATE statements, force-pushes, hard resets, kubectl deletes, and docker prunes. - Confirmation Warnings: Prompts the user with the command and its risk, requiring re-confirmation before proceeding. - Hard Deny for Catastrophic Operations: Blocks recursive deletion of / or ~ and force-push to the default branch even if confirmed. - Safe Exceptions: Allows routine cleanup of node_modules, dist, build, .next, pycache, and similar directories without warnings. - Use Case: While debugging a live production system, you say "be careful" — the next several commands are screened, and a git reset --hard triggers a warning before any uncommitted work is lost. ## Quick Start Tell the agent "be careful" or "safety mode" before running 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?▼

Activate careful mode by saying "be careful" or "safety mode". The agent then screens each bash command against a table of destructive patterns and warns you with the specific risk before running anything dangerous.

What commands trigger a warning in careful mode?▼

Warnings fire for rm -rf, DROP TABLE, DROP DATABASE, TRUNCATE, git push --force, git reset --hard, git checkout ., kubectl delete, and docker rm -f or system prune. Each warning names the command and its risk.

Does careful mode block cleaning node_modules or build folders?▼

No. Routine cleanup targets like node_modules, .next, dist, build, __pycache__, .cache, .turbo, and coverage are safe exceptions and run without warnings.

Can a confirmed destructive command still be blocked?▼

Yes. Catastrophic operations such as recursive deletion of / or ~ and force-push to the default branch are hard denied and will not proceed even after user confirmation.

How do I turn off careful mode?▼

Careful mode deactivates automatically at the end of the session, or immediately when you say "uncareful". It applies to roughly the next 5-10 bash commands after activation.