careful

Warn before destructive shell and version-control commands execute.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The careful skill prevents accidental execution of destructive shell and VCS commands by warning users before commands that could delete data, rewrite history, or remove running infrastructure are run.

Core Features & Use Cases

  • Pre-tool hook filtering: Inspects Bash tool input and detects patterns like rm -rf, DROP TABLE, TRUNCATE, git push --force, git reset --hard, kubectl delete, and docker prune.
  • Interactive guardrails: Returns a permissionDecision ask with a human-readable warning so the user can confirm or cancel destructive operations; logs pattern events locally for telemetry.
  • Safe exceptions: Automatically allows common safe deletion targets such as node_modules, .next, dist, build, and pycache without prompting.
  • Use Case: Enable when working in production, debugging live systems, or operating on shared repositories to avoid irreversible mistakes.

Quick Start

Enable careful mode to check every Bash command for destructive patterns before execution.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent accidental rm -rf or git push --force in a Bash session?

To prevent destructive shell commands like rm -rf or git push --force in an interactive Bash session, you can enable a PreToolUse hook that inspects tool input JSON and returns a warning permissionDecision ask before executing dangerous patterns.

Can I get a warning before running kubectl delete or docker prune on production?

Yes, you can get a warning before running kubectl delete or docker prune by using a deterministic pattern matching hook that detects these destructive infrastructure commands and prompts you for confirmation before execution on live systems.

Does the destructive command guard skip safe build artifacts like node_modules?

Yes, the destructive command guard automatically allows safe exceptions for common build artifacts including node_modules, .next, dist, build, and __pycache__ without prompting you for confirmation.

How do I add guardrails to CI steps to stop accidental DROP TABLE commands?

You can add guardrails to CI steps by enabling a pretool-hook that performs deterministic pattern matching on Bash tool input JSON to detect DROP TABLE or TRUNCATE commands, returning a human-readable warning ask to prevent accidental data deletion.

What is the best way to block git reset --hard from rewriting shared repository history?

To block history-rewriting commands like git reset --hard on shared repositories, enable an interactive guardrail hook that inspects shell commands, detects the dangerous pattern, and returns a permissionDecision ask requiring you to confirm or cancel the operation.