careful

Warn before executing destructive shell commands in Bash workflows.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Andy-HNU/AndyClaw --skill careful-andy-hnu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/Andy-HNU/AndyClaw/tree/main/skills/gstack-careful
Command: npx skills add https://github.com/Andy-HNU/AndyClaw --skill careful-andy-hnu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safety guardrails warn before executing destructive commands like rm -rf, DROP TABLE, git reset --hard, kubectl delete, and similar operations, reducing risk in production or shared environments.

Core Features & Use Cases

  • Preemptive warnings for destructive commands
  • User override capability to proceed with caution
  • Integration with Bash workflows for live systems

Quick Start

Invoke a command through the careful hook and confirm any destructive warnings before proceeding.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent accidental execution of destructive bash commands in production?▼

To prevent destructive bash commands from running accidentally, this Skill enforces a PreToolUse hook that intercepts operations like rm -rf or git reset --hard and issues a warning. It allows you to review and confirm the command before any damage occurs in live environments.

Can I override safety warnings for destructive shell commands when I am confident in the operation?▼

Yes, you can override safety warnings for destructive shell commands. The Skill provides a user override capability, allowing you to proceed with caution and execute the intercepted command after acknowledging the prompt in your Bash workflow.

What types of destructive operations does a shell safety guardrail intercept?▼

A shell safety guardrail intercepts destructive operations such as deleting files with rm -rf, dropping database tables, resetting git repositories, and removing Kubernetes resources. It targets commands that pose a risk of accidental damage in shared or production environments.

Does this destructive command warning tool work with Kubernetes resource deletion?▼

Yes, this destructive command warning tool works with Kubernetes resource deletion. It applies to Bash workflows and intercepts kubectl delete operations, providing a preemptive warning to prevent accidental removal of critical Kubernetes resources.

How do I add a warning prompt before executing git reset hard in my terminal?▼

To add a warning prompt before executing git reset hard, invoke the command through the careful hook. The hook runs a check script that intercepts the destructive git operation and asks for your confirmation before allowing it to proceed.

When do I need a warning hook for destructive commands in shared environments?▼

You need a warning hook for destructive commands in shared environments when operating on live systems where accidental damage is costly. It enforces a review step for operations like dropping tables or deleting files, reducing risk in production workflows.