careful

Scans shell/system commands and requests confirmation before executing destructive ones.

1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/geoffreywoo/clawfable --skill careful-geoffreywoo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/geoffreywoo/clawfable/tree/main/.claude/skills/gstack/careful
Command: npx skills add https://github.com/geoffreywoo/clawfable --skill careful-geoffreywoo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides safety guardrails to prevent destructive commands from being executed without explicit confirmation, reducing the risk of data loss in development, CI, and production environments.

Core Features & Use Cases

  • Prevents execution of highly destructive commands (e.g., rm -rf, git reset --hard, kubectl delete) by prompting for confirmation.
  • Logs and analyzes risky command usage for auditing and improvement of safety policies.
  • Supports safe exceptions for whitelisted patterns while maintaining strict guardrails in other contexts.

Quick Start

Enable careful mode and start issuing commands; the system will warn before executing any destructive operation.

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 like rm -rf from executing accidentally?

You can prevent destructive bash commands by enabling a PreToolUse hook that scans instructions and prompts for confirmation before executing patterns like rm -rf. This guardrail intercepts the command and emits an 'ask' warning to stop accidental execution.

Can I add a confirmation prompt before running git reset --hard in a CI pipeline?

Yes, you can add a confirmation prompt before running git reset --hard in a CI pipeline by using a PreToolUse hook. It detects destructive commands and requires explicit confirmation to proceed, preventing unintended data loss during automated workflows.

How does a PreToolUse hook work to warn before destructive system commands?

A PreToolUse hook works by scanning your command input before execution. When it matches a destructive pattern, it emits a permissionDecision of 'ask' with a warning, pausing the action until you explicitly approve it.

Are there safety guardrails for kubectl delete operations in production environments?

Yes, safety guardrails exist for kubectl delete operations in production environments. They intercept these destructive commands, prompt for explicit confirmation, and log usage analytics for auditing to prevent catastrophic data loss.

Can I whitelist safe command patterns while maintaining strict guardrails for others?

Yes, you can whitelist safe command patterns while maintaining strict guardrails for others. This allows specific exceptions for trusted commands while still intercepting and warning before any unrecognized destructive operations.

Does the command warning hook log usage analytics for auditing risky commands?

Yes, the command warning hook logs usage analytics for auditing risky commands. It records when destructive patterns are matched and warnings are emitted, helping you analyze behavior and improve safety policies over time.