careful

Scan shell commands for destructive patterns before execution.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/samurano/ai-brain --skill careful-samurano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/samurano/ai-brain/tree/main/.agents/skills/careful
Command: npx skills add https://github.com/samurano/ai-brain --skill careful-samurano

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safety-режим активирован. Каждая bash-команда проверяется на деструктивные паттерны перед выполнением.

Core Features & Use Cases

  • Safety checks for destructive patterns such as rm -rf, git reset --hard, and SQL DROP/TRUNCATE before execution.
  • Safe-exceptions allow non-destructive build artifacts to be ignored.
  • Useful in production or shared environments to prevent accidental data loss during routine tasks.

Quick Start

Запросите проверку команды на деструктивность перед её выполнением.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent destructive bash commands from running in production?

Preventing destructive bash commands in production requires a pre-execution hook that scans input for risky patterns like rm -rf or git reset --hard and prompts for explicit confirmation before execution. This intercepts dangerous operations before they cause accidental data loss.

What shell commands are considered destructive and should be blocked?

Destructive shell commands include patterns such as rm -rf, git reset --hard, and SQL DROP or TRUNCATE statements. A safety hook identifies these risky operations during pre-execution scanning and blocks them unless explicit user confirmation is granted.

Can I safely ignore non-destructive build artifacts when running a command safety check?

Yes, non-destructive build artifacts can be safely ignored through safe-exceptions during command safety checks. This allows routine build and deployment tasks to proceed without interruption while still intercepting genuinely destructive patterns.

Does this command safety hook work during database maintenance and system administration?

This command safety hook works during database maintenance, system administration, and deployment by inspecting shell input before execution. It flags risky SQL patterns like DROP and TRUNCATE, requiring confirmation to prevent accidental data loss in shared environments.

What is the best way to add a confirmation prompt for risky shell operations?

The best way to add a confirmation prompt for risky shell operations is implementing a hook-based pre-execution check that flags dangerous patterns and requires explicit user confirmation. This ensures destructive commands are intercepted before execution in production.

Why should I scan commands before execution instead of relying on manual review?

Scanning commands before execution catches destructive patterns automatically, eliminating human error during manual review. A pre-execution hook inspects input for risky operations like rm -rf and enforces confirmation, preventing accidental data loss that manual review might miss.