careful

Monitor terminal commands and warn before destructive operations execute.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/sadie100/claude-dotfiles --skill careful-sadie100
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/sadie100/claude-dotfiles/tree/main/skills/careful
Command: npx skills add https://github.com/sadie100/claude-dotfiles --skill careful-sadie100

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, and includes scripts (resource) components.

What problem does it solve?

This Skill acts as a safety net for destructive commands, providing warnings before execution to prevent accidental damage or loss of data.

Core Features & Use Cases

  • Prevent Destructive Commands: Alerts before running commands like rm -rf, DROP TABLE, git push --force, and more.
  • Safety Mode: Enforces safety checks on every command by default, with the option to opt-out if the command is confirmed.
  • Use Case: Ideal for production environments, shared machines, or any situation where accidental destructive commands could cause significant issues.

Quick Start

Use the 'be careful' command before executing a potentially destructive operation like 'rm -rf /var/data'.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent accidental destructive bash commands from executing in terminal sessions?

You can prevent accidental destructive bash commands by using a safety check script that identifies destructive patterns like rm -rf and triggers warning messages before execution. This blocks potentially damaging actions and prevents data loss.

What destructive command patterns are intercepted by bash safety checks?

Bash safety checks intercept destructive command patterns including rm -rf, DROP TABLE, and git push --force. The monitoring system recognizes these dangerous commands and halts execution to provide a warning before any system damage or data loss occurs.

Can I enforce safety checks for every command in production environments without permanently blocking execution?

Yes, you can enforce safety checks for every command in production environments by enabling safety mode by default. The system warns before destructive execution but includes an opt-out option to proceed if the command is explicitly confirmed.

How do I set up a bash script to monitor and restrict destructive terminal commands?

To set up bash command monitoring and restriction, you need bash installed and an external script for checking destructive commands. Once configured, use the designated command before executing potentially destructive operations to trigger safety warnings.

Does this command checking mechanism work on shared machines to prevent system damage?

Yes, this command checking mechanism works on shared machines to prevent system damage. It provides a safety net by enforcing warnings before destructive execution, making it ideal for shared environments where accidental commands could cause significant issues.

What is the best way to stop accidental data loss from terminal commands in bash?

The best way to stop accidental data loss from terminal commands in bash is implementing a safety net script that monitors and restricts execution. It alerts before running destructive commands, preventing accidental damage without requiring manual command auditing.