careful

Warns users before executing dangerous shell commands like rm -rf or kubectl delete via PreToolUse hook.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/antriksh-29/reddit-automation --skill careful-antriksh-29
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/antriksh-29/reddit-automation/tree/main/.claude/skills/gstack/careful
Command: npx skills add https://github.com/antriksh-29/reddit-automation --skill careful-antriksh-29

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents accidental destructive actions by warning before executing dangerous shell commands, helping teams avoid data loss and system damage.

Core Features & Use Cases

  • Pre-execution safety checks detect risky patterns like rm -rf, git reset --hard, kubectl delete, and similar commands in Bash workflows.
  • User-overrides allow proceeding after a warning, enabling careful testing in controlled environments.
  • Safe exceptions and logging provide auditable guardrails, with activity analytics stored locally.

Quick Start

Type /careful to enable safety prompts before executing risky Bash commands

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 like rm -rf in production?

You can add warning prompts to bash workflows to prevent risky git reset --hard execution. This skill intercepts high-risk commands before they run, requiring your explicit acknowledgment to proceed and preventing accidental repository state loss.

Do I need to configure exceptions for build artifacts when adding warning prompts for destructive commands?

Yes, establishing safe exceptions for known build artifacts is necessary when adding destructive command guardrails. This skill automatically excludes known build artifacts from its risk pattern checks, ensuring routine build cleanups proceed without unnecessary warnings.

Can I override the warning and proceed with a kubectl delete command if I know it is safe?

Yes, you can override the warning to proceed with a kubectl delete command. This skill features user-overrides that allow you to bypass the safety prompt and execute the high-risk operation after providing explicit acknowledgment of the potential impact.

How does a PreToolUse hook detect destructive shell commands across staging and production environments?

A PreToolUse hook detects destructive shell commands by inspecting the command string for risk patterns before execution. This applies across staging and production environments, catching high-risk operations like DROP TABLE or kubectl delete before they run.