careful

Warn before destructive commands like rm -rf, git reset --hard, and kubectl delete.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Prestonigo/Claude-Skills --skill careful-prestonigo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/Prestonigo/Claude-Skills/tree/main/gstack-main/careful
Command: npx skills add https://github.com/Prestonigo/Claude-Skills --skill careful-prestonigo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safety guardrails for destructive commands to prevent accidental data loss and disruption by warning users before risky actions.

Core Features & Use Cases

  • Warnings with override: Warn before rm -rf, git reset --hard, kubectl delete, and similar destructive operations; allow user override.
  • Troubleshooting across prod environments: Works when debugging live systems or working in shared environments.
  • Analytics and safety guard: Logs usage for auditing.

Quick Start

Enable safety prompts before executing any destructive command.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I add safety prompts to warn before destructive bash commands?

Safety prompts for destructive bash commands are implemented through an overridable pre-run hook that scans executed commands for risky patterns and prompts the user for confirmation before proceeding.

Can I override the guardrails when running destructive commands in production?

Yes, you can override the safety guardrails when running destructive commands in production environments, as the hook is designed to prompt for user confirmation while still allowing the risky action to proceed if explicitly approved.

Does this safety hook catch destructive commands like git reset hard and kubectl delete?

Yes, the safety hook catches destructive commands like git reset --hard, kubectl delete, and rm -rf by scanning for dangerous patterns across local, staging, and cloud environments before execution.

What is the best way to prevent accidental data loss when debugging live systems?

To prevent accidental data loss when debugging live systems, enable an overridable pre-run hook that warns before destructive operations and logs usage for auditing to maintain safety guardrails.

Do I need to configure separate safety guardrails for staging and cloud environments?

No, you do not need separate configurations; the safety guardrails apply automatically across local, staging, and cloud environments to catch risky actions consistently without requiring individual environment setups.

Are there limitations when using an overridable pre-run hook for risk-management?

The primary limitation of this risk-management hook is that destructive commands can still be executed if the user manually overrides the safety prompt, meaning it relies on human judgment to prevent disruption.