One-click install
npx skills add https://github.com/a29paul/hexlens --skill careful-a29paul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/a29paul/hexlens/tree/main/.claude/skills/gstack/careful
Command: npx skills add https://github.com/a29paul/hexlens --skill careful-a29paul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Accidentally running destructive commands like rm -rf, git reset --hard, or DROP TABLE can cause irreversible data loss, especially when working in production environments, shared codebases, or debugging live systems where a single mistake can have serious consequences.

Core Features & Use Cases

  • Destructive command detection: Intercepts bash commands to identify high-risk operations including recursive file deletion, SQL database drops, Git history rewrites, uncommitted change discards, Kubernetes resource deletions, and Docker container/image prunes.
  • Safe exception handling: Allows common, low-risk build artifact deletions (such as node_modules, dist, or pycache folders) without triggering warnings to avoid unnecessary interruptions.
  • Use case: When working on a shared team codebase, this skill prevents you from accidentally running git push --force and overwriting a teammate's work, or rm -rf on critical production server files.

Quick Start

Ask the AI to enable careful mode before running any bash commands to automatically screen for destructive operations and warn you 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, enable careful mode to automatically screen operations like recursive file deletion and Git history rewrites, warning you before execution. It intercepts high-risk commands in development and production workflows.

Can I block destructive Git commands like git push --force and git reset --hard?

Yes, you can block destructive Git commands like git push --force and git reset --hard by screening command patterns. The system detects Git history rewrites and uncommitted working tree change discards to prevent overwriting shared codebase work.

Does the destructive command guard allow safe deletions for build artifacts?

Yes, the destructive command guard allows safe deletions for build artifacts. It includes safe exception handling that permits low-risk deletions of directories like node_modules, dist, or __pycache__ without triggering unnecessary warnings during your workflow.

How to screen SQL database queries to prevent accidental DROP TABLE execution?

To screen SQL database queries and prevent accidental DROP TABLE execution, enable command safety validation. The system detects SQL database drops and other high-risk database object deletions, warning you before irreversible data loss occurs.

Will this command safety tool intercept Kubernetes resource deletions and Docker prunes?

Yes, this command safety tool will intercept Kubernetes resource deletions and Docker container or image prunes. It detects production resource deletions across Kubernetes cluster management and Docker container operations to prevent irreversible data loss.

Do I need any dependencies to enable careful mode for DevOps safety?

No, you do not need any dependencies to enable careful mode for DevOps safety. You simply ask the AI to enable careful mode before running bash commands, and it automatically screens for destructive operations without requiring external packages.