careful

Scan bash commands for destructive patterns and prompt before execution.

Updated Jul 21, 2025
One-click install
npx skills add https://github.com/robertzengcn/aiFetchly --skill careful-robertzengcn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/robertzengcn/aiFetchly/tree/main/.agents/skills/gstack/careful
Command: npx skills add https://github.com/robertzengcn/aiFetchly --skill careful-robertzengcn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of accidentally running high-risk commands like recursive file deletion, SQL data drops, or git history rewrites that can cause permanent data loss, production outages, or workflow disruption for teams, especially when working in shared environments or critical systems.

Core Features & Use Cases

  • Multi-Pattern Destructive Command Detection: Scans bash commands for high-risk patterns including rm -rf, DROP TABLE, git push --force, git reset --hard, kubectl delete, and docker system prune.
  • Safe Exception Handling: Automatically allows common safe operations like deleting build artifacts (node_modules, dist, pycache) without triggering unnecessary warnings.
  • Use Case: When debugging a production server or collaborating on a shared codebase, the skill will prompt you for confirmation before you accidentally run a command that deletes critical user data or breaks your team's git history.

Quick Start

Activate the careful skill when running bash commands on production or shared systems to receive automatic warnings before any destructive operations are executed.

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 like rm -rf?

Preventing accidental data loss from destructive bash commands like rm -rf requires safety guardrails that scan command inputs for high-risk patterns and prompt you for confirmation before execution. This mechanism intercepts recursive file deletions to protect critical production systems.

How can I block git push --force and git reset --hard from rewriting shared history?

You can block git push --force and git reset --hard by applying a safety skill that detects destructive git operations and requires manual confirmation. This prevents accidental execution of commands that would permanently rewrite shared repository history and disrupt team workflows.

Does destructive command detection allow safe exceptions for deleting build artifacts?

Yes, destructive command detection includes safe exception handling that automatically allows common build artifact deletions like node_modules, dist, and __pycache__ without triggering warnings. This ensures workflow efficiency while maintaining protection against actual data loss from high-risk patterns.

Can I get confirmation prompts before running kubectl delete or docker system prune?

Yes, you can get confirmation prompts before running kubectl delete or docker system prune by activating safety guardrails for Kubernetes and Docker operations. The detection system scans these specific high-risk commands and halts execution until you manually confirm the destructive action.

What is the best way to prevent accidental SQL data drops in production databases?

The best way to prevent accidental SQL data drops in production databases is to implement a command scanning safety layer that detects DROP TABLE queries and prompts for explicit confirmation. This adds a critical verification step before any permanent database schema or data deletion occurs.

When should I use destructive command safety guardrails in DevOps workflows?

You should use destructive command safety guardrails in DevOps workflows when working in shared environments or critical production systems. They are essential whenever executing bash commands, git operations, or database queries where accidental data loss or system disruption could cause permanent damage.