careful

Warn before executing destructive Bash commands like rm -rf and DROP TABLE.

Updated Oct 15, 2025
One-click install
npx skills add https://github.com/vibrationalforce/Echoelmusic --skill careful-vibrationalforce
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/vibrationalforce/Echoelmusic/tree/main/.claude/skills/gstack/careful
Command: npx skills add https://github.com/vibrationalforce/Echoelmusic --skill careful-vibrationalforce

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safety guardrails warn before executing destructive commands such as rm -rf, DROP TABLE, force-push, git reset --hard, kubectl delete, and similar actions. Users can override warnings to proceed or cancel, helping prevent accidental data loss in prod or shared environments.

Core Features & Use Cases

  • Pre-execution warnings for potentially destructive commands in Bash workflows.
  • User overrides to proceed after a warning, or cancel to stop the operation.
  • Useful during production maintenance or debugging in shared environments to prevent accidental data loss.

Quick Start

Enable careful mode before running any destructive command to receive a warning and choose to proceed or cancel.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I add safety guardrails for destructive bash commands like rm -rf?

Safety guardrails for destructive bash commands are implemented as a PreToolUse hook that analyzes commands like rm -rf and returns a permission decision to ask the user for confirmation before allowing execution, preventing accidental data loss in production or shared environments.

What destructive commands trigger a confirmation warning in bash workflows?

Confirmation warnings are triggered for destructive commands such as rm -rf, DROP TABLE, force-push, git reset --hard, and kubectl delete. The PreToolUse hook intercepts these bash commands and prompts the user to choose whether to proceed or cancel the operation.

Can I override a destructive command warning and proceed with the execution?

Yes, you can override destructive command warnings to proceed with execution. After the safety guardrails intercept a command like git reset --hard, the user override mechanism allows you to either proceed with the operation or cancel it to stop it entirely.

Does the confirmation hook work with git reset --hard and kubectl delete operations?

Yes, the confirmation hook works with git reset --hard and kubectl delete operations. It applies broadly to Bash-based workflows by analyzing commands before execution and returning a permission decision to ask for confirmation before allowing destructive actions to proceed.

When do I need pre-execution warnings for bash commands in production environments?

Pre-execution warnings for bash commands are needed during production maintenance or debugging in shared environments. They provide safety guardrails that intercept potentially destructive commands to prevent accidental data loss before the operation is allowed to execute.