careful

Detects destructive bash, git, kubectl, docker and SQL commands before execution.

9|1|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/CarbeneAI/Forge --skill careful-carbeneai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/CarbeneAI/Forge/tree/main/.claude/skills/careful
Command: npx skills add https://github.com/CarbeneAI/Forge --skill careful-carbeneai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3.

What problem does it solve?

Prevents accidental destructive operations by scanning bash and tool commands for high-risk patterns and pausing execution for user confirmation. This reduces data loss, repository corruption, and production outages caused by unintended rm, git, kubectl, docker, or SQL commands.

Core Features & Use Cases

  • Pre-tool checks: Intercepts Bash commands via a PreToolUse hook and analyzes them before execution.
  • Pattern detection: Identifies recursive deletes, SQL DROP/TRUNCATE, git force-push/reset/discard, kubectl delete, and destructive Docker commands.
  • Safe exceptions & override: Recognizes common safe cleanups (node_modules, build artifacts) and allows users to override warnings when necessary.
  • Use case: Use in shared or production environments to require explicit confirmation before running potentially destructive CI, deployment, or maintenance commands.

Quick Start

Enable careful mode to check my bash commands for destructive patterns before execution.

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 git or bash commands from executing?

You can prevent destructive bash and git commands by intercepting shell operations via a PreToolUse hook to scan for high-risk patterns like recursive deletes or force-pushes, pausing execution to require explicit user confirmation before proceeding.

Does this destructive command checker support docker, kubectl, and SQL operations?

Yes, the destructive command checker supports docker, kubectl, and SQL operations by scanning for patterns like docker prune, kubectl delete, and SQL DROP or TRUNCATE statements, requiring an explicit override before executing them in shared environments.

How do I require confirmation before running kubectl delete or docker prune in production?

To require confirmation before running kubectl delete or docker prune in production, you apply a pre-execution check that matches these destructive patterns and returns a permission decision requiring explicit user override to proceed.

Can I override the destructive command warning for safe cleanups like node_modules?

Yes, you can override the destructive command warning because the pattern detection recognizes common safe cleanups like deleting node_modules or build artifacts, while still allowing manual user override when necessary for other flagged commands.

Do I need python3 installed to run this bash command safety checker?

Yes, you need python3 installed to run this bash command safety checker, as it is a required dependency for executing the pattern matching logic that analyzes your shell and VCS commands before they run.