careful

Detect destructive Bash commands and warn before execution.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, and includes scripts (resource) components.

What problem does it solve?

The Skill addresses the issue of accidentally executing destructive commands that can lead to data loss or system instability, particularly in production environments or shared development spaces.

Core Features & Use Cases

  • Destructive Command Detection: Monitors and warns before running commands like rm -rf, DROP TABLE, and git reset --hard.
  • Customizable Alerts: Allows users to override warnings if they understand the risks.
  • Use Case: Ideal for system administrators or developers working in a team where destructive actions can have significant impacts.

Quick Start

Run a Bash command and the Skill will automatically check for 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 destructive commands in Bash from causing data loss?

You can prevent accidental destructive commands in Bash by running a monitoring script that checks for patterns like `rm -rf` and triggers warnings before execution. This mitigates the risk of accidental data loss or system instability in production environments.

Can I override safety warnings for specific destructive commands if I understand the risks?

Yes, you can override safety warnings for destructive commands if you understand the risks. The Skill supports custom overrides for known users, allowing administrators to bypass alerts when executing intentional system administration actions.

Does this destructive command detection tool work outside of standard Bash environments?

This destructive command detection requires a Bash environment and a script to check for destructive patterns. While it monitors Bash and other tools, you must ensure your target environment supports Bash execution to run the monitoring script properly.

What types of destructive patterns does the system monitor for in shared development spaces?

The system monitors for destructive patterns like `rm -rf`, `DROP TABLE`, and `git reset --hard` in shared development spaces. It detects commands that can lead to significant impacts, warning team members before execution to prevent accidental data loss.

What are the limitations of using a Bash script to monitor for destructive commands?

A limitation of using a Bash script for monitoring destructive commands is that it requires a Bash environment to function. It relies on pattern matching for detection, meaning highly obfuscated or unconventional destructive commands might not trigger the configured safety warnings.