careful

Check Bash commands against destructive patterns before execution.

127k|19.1k|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/garrytan/gstack --skill careful-garrytan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/garrytan/gstack/tree/main/careful
Command: npx skills add https://github.com/garrytan/gstack --skill careful-garrytan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Ensures safety guardrails for destructive commands, preventing unintended actions that could cause data loss or system disruptions.

Core Features & Use Cases

  • Preventive Checks: Warns before executing destructive commands like rm -rf, DROP TABLE, git reset --hard, etc.
  • Selective Overrides: Allows manual override for exceptions and safe operations.
  • Integration with Bash: Uses a pre-tool-use hook to check commands executed via Bash.

Quick Start

Use 'be careful' before running any destructive command in Bash.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent accidental data loss from destructive bash commands?

Preventing accidental data loss from destructive bash commands involves monitoring and checking commands against a list of destructive patterns before execution. This skill triggers warnings for patterns like 'rm -rf' and 'DROP TABLE', allowing manual override or cancellation.

What destructive command patterns are checked by this safety guardrail?

The safety guardrail checks for destructive command patterns including 'rm -rf', 'DROP TABLE', and 'git reset --hard'. It uses a pre-tool-use hook to intercept these operations and warn you before they are executed.

Does this destructive command protection work with Git and Kubernetes hooks?

Yes, destructive command protection works with Git and Kubernetes commands by integrating through hooks. It primarily checks Bash commands, extending its safety guardrails to these integrated environments.

How do I override a blocked destructive command in Bash?

To override a blocked destructive command in Bash, you can use the manual override feature when a warning triggers. This allows you to selectively proceed with exceptions and safe operations after acknowledging the alert.

Can I use this to add safety guardrails to bash scripts?

Yes, you can add safety guardrails to bash scripts by using a pre-tool-use hook to check commands. It intercepts destructive patterns within your Bash commands before they cause system disruptions.

Are there limitations to what commands this destructive command checker supports?

Yes, the primary limitation is that this destructive command checker supports Bash commands only. It cannot directly monitor or prevent destructive commands executed outside of the Bash environment.