careful

Warn before destructive Bash commands execute via a PreToolUse hook.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mmunro3318/3d-render-pipeline --skill careful-mmunro3318
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/mmunro3318/3d-render-pipeline/tree/main/.claude/skills/gstack/careful
Command: npx skills add https://github.com/mmunro3318/3d-render-pipeline --skill careful-mmunro3318

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Destructive commands can cause irreversible damage. This Skill provides safety guardrails that warn before actions like rm -rf, DROP TABLE, git reset --hard, kubectl delete, and similar destructive commands, giving you a chance to cancel or override.

Core Features & Use Cases

  • Warning prompts before destructive commands in Bash environments.
  • Override options to proceed when necessary, with visible audit prompts.
  • Safe-guard workflows for prod, debugging, and shared environments; useful for developers, SREs, and operators who need guardrails without blocking essential work.

Quick Start

Enable careful mode in your shell workflow to receive warnings before 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 prompt before running destructive bash commands?

You can get warning prompts before destructive bash commands by enabling a PreToolUse hook that scans commands like rm -rf or git reset --hard, asks for confirmation, and logs usage while allowing overrides to proceed when necessary.

What bash commands should trigger a pre-execution safety guardrail?

Destructive commands that should trigger safety guardrails include rm -rf, DROP TABLE, git reset --hard, kubectl delete, and docker prune. A PreToolUse hook scans for these operations and prompts for confirmation before allowing execution in Bash environments.

Can I override the confirmation prompt when running destructive commands in production?

Yes, you can override the confirmation prompt for destructive commands in production. The safety guardrail provides override options to proceed when necessary, ensuring essential work continues while maintaining visible audit prompts and logging usage.

How do I prevent accidental data loss from rm -rf or DROP TABLE in shared environments?

To prevent accidental data loss from rm -rf or DROP TABLE in shared environments, implement a PreToolUse hook that proactively scans commands and prompts for confirmation before execution. This provides guardrails for operators, developers, and SREs without blocking essential workflows.

Does this bash safety hook block destructive commands completely?

No, this bash safety hook does not block destructive commands completely. It implements a proactive prompt that warns before execution and provides override options, allowing you to cancel or proceed with commands like kubectl delete or docker prune while logging usage.

What is the best way to add guardrails for destructive commands without blocking essential work?

The best way to add guardrails for destructive commands without blocking essential work is implementing a PreToolUse hook that scans commands, prompts for confirmation, and logs usage. This provides safety warnings for development, production maintenance, and shared systems while allowing necessary overrides.