careful

Scan bash commands for destructive patterns and warn before execution.

1|Updated May 8, 2026
One-click install
npx skills add https://github.com/npc-chris/dfn-discovery --skill careful-npc-chris
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/npc-chris/dfn-discovery/tree/main/.agents/skills/gstack/careful
Command: npx skills add https://github.com/npc-chris/dfn-discovery --skill careful-npc-chris

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The careful skill unit mitigates the risk of accidental destructive actions in environments where commands like 'rm -rf', 'DROP TABLE', and 'git reset --hard' can lead to data loss or system damage.

Core Features & Use Cases

  • Pre-Execution Checks: Warns before running destructive commands like 'rm -rf', 'DROP TABLE', and 'git reset --hard'.
  • Explicit Confirmation: Allows users to override warnings and proceed with caution.
  • Use Case: Ideal for use in production environments, shared repositories, or during live system debugging.

Quick Start

Run the command you want to execute and the skill will automatically check for any destructive patterns. If any are detected, it will provide a warning.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent accidental destructive bash commands like rm -rf in production?

Preventing accidental destructive bash commands like rm -rf requires a pre-execution safety check that scans commands and warns users before execution. This skill implements those checks to protect against data loss in production environments.

Can I add a safety check to warn before running git reset --hard?

Yes, you can add a safety check to warn before running git reset --hard. This skill scans for destructive git commands and prompts explicit user confirmation before allowing execution to proceed.

What is the best way to protect shared environments from accidental DROP TABLE commands?

Protecting shared environments from accidental DROP TABLE commands involves implementing pre-execution checks that detect destructive patterns. This skill provides warning mechanisms to prevent system damage during live debugging or shared repository operations.

Does this command checking tool require a custom hook to enforce warnings?

Yes, this command checking tool requires a custom pre-execution hook to enforce warnings and user confirmation. The hook intercepts bash scripts and command-line operations to scan for destructive actions.

How do I override a safety warning if I intentionally need to run a destructive command?

To override a safety warning when intentionally running a destructive command, the skill allows explicit confirmation. Users can acknowledge the prompt to proceed with caution after the pre-execution check flags the action.

When do I need pre-execution checks for command-line operations?

You need pre-execution checks for command-line operations when working in production systems, shared repositories, or live debugging environments. These checks mitigate the risk of accidental destructive actions like uncontrolled file removal or database drops.