careful

Monitor Bash scripts for destructive commands and require confirmation before execution.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/AkbarDevop/ayah-studio --skill careful-akbardevop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/AkbarDevop/ayah-studio/tree/main/.claude/skills/gstack/careful
Command: npx skills add https://github.com/AkbarDevop/ayah-studio --skill careful-akbardevop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill protects against unintended destructive actions in Bash scripts by warning before potentially harmful commands are executed.

Core Features & Use Cases

  • Destructive Command Prevention: Monitors and warns before destructive commands like rm -rf, DROP TABLE, git reset --hard, and kubectl delete are run.
  • Configurable Warnings: Users can configure whether to automatically proceed or ask for confirmation when a destructive command is detected.
  • Safe Exceptions: Allows certain known safe patterns to execute without warning, such as cleaning up local build artifacts.

Quick Start

Use the careful skill with the Bash script to execute any command. If a destructive pattern is detected, you will be warned and can 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 prevent accidental deletion from destructive Bash commands in production?

To prevent accidental deletion from destructive Bash commands in production, you can use a script monitoring tool that flags dangerous operations like `rm -rf` and requires user confirmation before execution. This ensures data loss prevention by allowing manual intervention.

Can I configure Bash scripts to automatically block commands like git reset --hard or DROP TABLE?

Yes, you can configure Bash scripts to block commands like `git reset --hard` or `DROP TABLE` by setting warnings to require explicit user confirmation. This command verification mechanism halts execution until you choose to proceed or cancel the operation.

What is the best way to allow safe exceptions for cleanup commands while blocking destructive Bash operations?

The best way to allow safe exceptions for cleanup commands while blocking destructive Bash operations is to configure safe patterns. This lets known safe operations, such as cleaning local build artifacts, execute without warning while still intercepting potentially harmful commands.

Does command verification work for shared environment Bash scripts executed by multiple users?

Yes, command verification works for shared environment Bash scripts executed by multiple users. It monitors script execution and warns before destructive commands run, ensuring no unintended data loss occurs when multiple users interact with the same production environment.

What types of destructive commands should I monitor for in Bash script safety checks?

You should monitor for destructive commands such as `rm -rf`, `DROP TABLE`, `git reset --hard`, and `kubectl delete` in Bash script safety checks. Flagging these dangerous operations ensures warning and confirmation before any irreversible execution occurs.

When should I not use a Bash command verification tool for script execution?

You should not use a Bash command verification tool for script execution when running fully automated, non-interactive pipelines. Because the tool requires user confirmation to proceed past destructive commands, automated processes will halt and wait for input that cannot be provided.