One-click install
npx skills add https://github.com/escotilha/claude-public --skill careful-escotilha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/escotilha/claude-public/tree/main/skills/careful
Command: npx skills add https://github.com/escotilha/claude-public --skill careful-escotilha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents accidental damage by warning you before destructive shell or database commands run, reducing the risk of data loss and production incidents.

Core Features & Use Cases

  • Pre-command safety gate: Activates a PreToolUse hook that intercepts tool calls and asks for confirmation when high-risk patterns are detected.
  • Persistent “careful mode”: Uses a state file gate so the protection can persist across sessions with effectively zero overhead when disabled.
  • Focused protection for common catastrophes: Targets patterns like rm -rf, DROP/TRUNCATE/DELETE SQL, force-push/reset, kubectl delete, and docker system prune while allowing explicitly safe exceptions (e.g., node_modules, dist).
  • Use with broader guardrails: Can be combined with editing-scope controls (e.g., freeze) to tighten both destruction risk and what can be modified.

Quick Start

Enable it by telling your agent to run /careful before you start debugging or making production changes that could involve 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 a warning before running destructive bash commands like rm -rf or git force push?

You can get a warning before running destructive bash commands by enabling a PreToolUse hook that pattern-matches risky commands like rm -rf, git force push, and SQL DROP, then gates execution until you confirm. This prevents accidental data loss during production deployments.

How do I prevent accidental SQL DROP or TRUNCATE statements during database maintenance?

To prevent accidental SQL DROP or TRUNCATE during database maintenance, you need a pre-command safety gate that intercepts destructive database statements and requires explicit confirmation before execution. This reduces the risk of irreversible data loss in production environments.

Can I use a confirmation prompt to block kubectl delete and docker system prune in my workflow?

Yes, you can block kubectl delete and docker system prune by activating a careful mode that uses a persistent state file to intercept cluster and container cleanup commands. It prompts for confirmation before allowing these high-risk operations to proceed.

Does careful mode stay active across sessions or do I need to enable it every time?

Careful mode stays active across sessions by using a persistent state file as a gate. This ensures continuous protection against destructive commands with effectively zero overhead when disabled, so you do not need to re-enable it every time.

What destructive command patterns are intercepted by a bash safety guardrail?

A bash safety guardrail intercepts destructive command patterns including rm -rf, DROP/TRUNCATE/DELETE SQL statements, git force-push and reset, kubectl delete, and docker system prune, while explicitly allowing safe exceptions like deleting node_modules or dist directories.

How do I start using careful mode before making production changes?

To start using careful mode before making production changes, tell your agent to run the enable command before you begin debugging or deploying. This activates the PreToolUse hook to intercept and warn about destructive shell or database commands.