careful

Detect destructive shell commands before execution and request confirmation.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/kunalrawat425/conductor-playground --skill careful-kunalrawat425
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/kunalrawat425/conductor-playground/tree/main/.claude/skills/gstack/careful
Command: npx skills add https://github.com/kunalrawat425/conductor-playground --skill careful-kunalrawat425

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safety guardrails prevent destructive shell commands from executing accidentally, reducing the risk of data loss in production or shared environments.

Core Features & Use Cases

  • Destructive command detection: identifies dangerous commands such as rm -rf, git reset --hard, kubectl delete, and similar risky operations, and raises a confirmation prompt.
  • Override capabilities: users can selectively override warnings when they are sure the operation is safe.
  • Context-aware protection: works as a PreToolUse hook to guard commands before they run, storing minimal usage analytics locally.

Quick Start

Enable careful mode and attempt a destructive command to see the warning and decide whether to proceed.

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 shell commands like rm -rf or git reset --hard?

You can prevent accidental execution of destructive shell commands by using a PreToolUse hook that identifies risky patterns like rm -rf, git reset --hard, and kubectl delete before they run. It emits a permission decision prompting you to confirm or override the operation.

How do I add safety guardrails for production environments in bash?

Adding safety guardrails for production environments in bash involves detecting destructive operations before execution and emitting a warning. This acts as a safety mechanism that prompts you to selectively override the warning when you are certain the operation is safe to proceed.

Can I override command warnings when I know a destructive git push -f is safe?

Yes, you can override command warnings when you know a destructive git push -f is safe. When the system detects a risky pattern, it prompts you with a warning and allows you to selectively override it to proceed with the execution.

Does destructive command detection work for kubectl delete operations?

Yes, destructive command detection works for kubectl delete operations. The mechanism identifies risky patterns associated with cluster and tool changes, including kubectl delete, raising a confirmation prompt to guard the command before it actually runs.

What is the best way to protect shared environments from accidental data loss?

The best way to protect shared environments from accidental data loss is implementing context-aware protection that intercepts risky file deletions and database modifications before they run. This prevents destructive shell commands from executing accidentally by requiring explicit confirmation.