careful

Detect destructive commands like rm -rf and DROP TABLE before execution.

1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/alexandervashurin/semaphore --skill careful-alexandervashurin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/alexandervashurin/semaphore/tree/main/.claude/skills/careful
Command: npx skills add https://github.com/alexandervashurin/semaphore --skill careful-alexandervashurin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protects systems from destructive commands by warning users before execution and allowing deliberate overrides when appropriate.

Core Features & Use Cases

  • Pre-execution checks for dangerous patterns like rm -rf, DROP TABLE, git reset --hard, kubectl delete, and docker rm -f.
  • Adjustable warnings with an override flow to proceed when necessary.
  • Lightweight, self-contained Bash hook that integrates with existing workflows.

Quick Start

Activate careful mode and run commands as usual to receive warnings before any destructive operation.

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 commands like rm -rf or git reset --hard from executing in bash?

Preventing destructive commands like rm -rf or git reset --hard requires a pre-execution bash hook that detects risky patterns and returns a warning before execution. This allows you to intercept accidental operations across development, staging, or production environments.

Can I override the warning if I intentionally need to run a kubectl delete or DROP TABLE command?

Yes, you can override the warning for a kubectl delete or DROP TABLE command. The protective script features an adjustable override flow, allowing you to deliberately proceed with execution when the destructive action is intentional.

Does this destructive command guard require any external dependencies to install?

No, this destructive command guard requires zero external dependencies to install. It operates as a lightweight, self-contained bash hook that integrates directly into your existing workflows without needing additional packages or components.

What's the best way to add safety warnings for database changes and docker rm -f across staging workflows?

The best way to add safety warnings for database changes and docker rm -f is a self-contained bash hook running pre-execution checks. It detects these risky patterns across staging workflows and issues a warning with an optional override before proceeding.

How do I activate the bash hook to start intercepting destructive git and devops commands?

To activate the bash hook and start intercepting destructive git and devops commands, simply activate careful mode and run your commands as usual. The pre-run hook automatically analyzes patterns and issues warnings before risky operations execute.