careful

Warn before executing destructive commands like rm -rf and git reset --hard.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Ulanxx/mzstack --skill careful-ulanxx
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/Ulanxx/mzstack/tree/main/careful
Command: npx skills add https://github.com/Ulanxx/mzstack --skill careful-ulanxx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safety guardrails for destructive commands. Warns before rm -rf, DROP TABLE, force-push, git reset --hard, kubectl delete, and similar destructive operations. User can override each warning. Use when touching prod, debugging live systems, or working in a shared environment. Use when asked to "be careful", "safety mode", "prod mode", or "careful mode".

Core Features & Use Cases

  • Provides proactive warnings for high-risk commands before execution.
  • Intercepts and reviews destructive operations like rm -rf, git reset --hard, kubectl delete, and SQL DROP/TRUNCATE statements.
  • Logs usage with a lightweight analytics trail to help improve safety over time.

Quick Start

Describe a destructive task and instruct the system to enable careful mode before proceeding.

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 in production?▼

To prevent accidental data loss from destructive bash commands, a pre-run hook analyzes risky patterns like rm -rf and returns an 'ask' warning before execution. This intercepts potentially harmful operations in production environments and shared workspaces.

What destructive commands should I guard against when debugging live systems?▼

When debugging live systems, you should guard against rm -rf, git reset --hard, kubectl delete, DROP TABLE, and force-push. A pre-run hook detects these destructive operations and prompts an explicit warning before allowing execution.

Can I override safety warnings for specific destructive operations when needed?▼

Yes, you can override safety warnings for specific destructive operations on a per-command basis. The guardrail intercepts risky patterns and asks for permission, allowing you to explicitly approve an override when you intend to execute the destructive action.

How does a prehook detect risky shell commands before execution?▼

A prehook detects risky shell commands by analyzing the command string before execution and matching it against known destructive patterns. When it identifies operations like git reset --hard or kubectl delete, it returns a permission decision to ask before proceeding.

Are there limitations to using safety guardrails for local development environments?▼

Safety guardrails for local development rely on pattern matching, so limitations include potential false positives or missing novel destructive commands. They act as a proactive warning layer, but you still maintain final responsibility when overriding the prompt.

What is the best way to add safety mode when touching prod databases?▼

The best way to add safety mode when touching prod databases is to enable a pre-run hook that intercepts SQL DROP and TRUNCATE statements. It logs usage analytics and returns an 'ask' warning before any potentially destructive database action executes.