careful

Warn before destructive shell commands using a Bash PreToolUse hook.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/kitfunso/omniskill --skill careful-kitfunso
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/kitfunso/omniskill/tree/main/skills/careful
Command: npx skills add https://github.com/kitfunso/omniskill --skill careful-kitfunso

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents accidental data loss by warning about destructive commands and requiring explicit confirmation.

Core Features & Use Cases

  • Destructive command detection: warns before commands like rm -rf, git reset --hard, kubectl delete, and similar operations.
  • Per-command overrides: users can suppress warnings when they are confident the action is safe.
  • Safe contexts: protects production systems, debugging sessions, and shared environments from dangerous edits.

Quick Start

Enable careful mode and run your commands as usual—the hook will warn on destructive patterns.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent accidental data loss from destructive bash commands?

To prevent accidental data loss from destructive bash commands, you can use a PreToolUse hook that detects dangerous patterns like rm -rf and prompts for confirmation before execution. This guardrail applies to production and shared environments.

How do I add guardrails for destructive commands like git reset --hard?

Adding guardrails for destructive commands like git reset --hard involves applying a Bash hook that scans shell inputs for risky operations. The hook warns you and requires explicit confirmation to prevent accidental data loss.

Can I suppress warnings for specific destructive shell commands when I am confident they are safe?

Yes, you can suppress warnings for specific destructive shell commands using per-command overrides. This allows you to bypass the confirmation prompt when you are confident the risky operation is safe to execute.

Does this destructive command warning system work in production and shared environments?

Yes, this destructive command warning system works in production, testing, and shared environments. It guards critical systems by detecting dangerous shell patterns and prompting you for confirmation before execution.

What types of destructive operations are detected by the bash safety hook?

The bash safety hook detects destructive operations such as rm -rf, git reset --hard, and kubectl delete. It warns you before these risky shell commands execute, preventing accidental data loss in critical systems.