careful

Warn before destructive Bash commands execute via a pre-tool hook.

20|3|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Walrus-Computing/piper-draw --skill careful-walrus-computing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/Walrus-Computing/piper-draw/tree/main/.claude/skills/gstack/careful
Command: npx skills add https://github.com/Walrus-Computing/piper-draw --skill careful-walrus-computing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reduces the risk of accidental data loss and environment damage by warning before destructive shell commands execute.

Core Features & Use Cases

  • Command Safety Checks: Detects risky Bash patterns such as recursive deletes, force pushes, hard resets, SQL drops, Kubernetes deletes, and Docker prune operations.
  • Session Guardrails: Adds a warning layer for shared repositories, production troubleshooting, and any workflow where one command could cause irreversible harm.
  • Safe Exceptions: Allows common cleanup commands for build artifacts and cache directories without interrupting normal development work.

Quick Start

Ask the careful skill to monitor your terminal commands and warn you before any destructive action runs.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I block destructive bash commands like git reset --hard before they run?

You can block destructive bash commands by using a pre-tool hook that inspects command input and warns on risky patterns like git reset --hard, preventing execution before damage occurs.

Can I prevent accidental data loss from rm and SQL DROP commands in a shared repository?

Yes, you can prevent accidental data loss by applying session guardrails that detect and warn before risky commands like recursive deletes and SQL DROP statements execute in shared environments.

Does this command safety checker allow safe exceptions for build artifact cleanup?

Yes, the command safety checker allows safe exceptions for common cleanup commands targeting build artifacts and cache directories, so normal development workflows continue uninterrupted.

What's the best way to add guardrails for kubectl delete and Docker prune operations?

The best way to add guardrails for kubectl delete and Docker prune operations is to use a pre-execution hook that inspects bash input and warns when destructive Kubernetes or Docker patterns are detected.

Will command blocking stop force pushes to git repositories during production debugging?

Yes, command blocking will intercept and warn on force pushes during production debugging sessions, adding a protective layer that stops irreversible git operations before they run.

Are there limitations to using bash pre-tool hooks for detecting destructive shell commands?

A limitation of using bash pre-tool hooks is that they inspect command input patterns, so complex or obfuscated destructive commands might evade detection if they do not match standard risky patterns.