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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It reduces the risk of accidental data loss or major operational disruption by catching destructive commands before they run.

Core Features & Use Cases

  • Destructive command detection: Detects patterns like recursive deletes (rm -rf), SQL DROP/TRUNCATE, force-push/history rewrite (git push -f), hard resets (git reset --hard), destructive Git working-tree discards, Kubernetes deletions (kubectl delete), and Docker pruning/removal.
  • Safe exceptions handling: Allows common “build artifact” deletions such as node_modules, dist, caches, and build outputs without warning.
  • User override workflow: When a risky pattern is detected, the tool asks for confirmation so the user can proceed intentionally.

Quick Start

Turn on safety mode by using the careful skill when you are asked to be careful or working near production systems, and run your bash command to have it checked 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 execution of destructive shell commands like rm -rf or git push -f?

Preventing destructive shell commands requires intercepting them before execution. This skill uses a PreToolUse hook for Bash to match risky patterns like recursive deletes or force-pushes, returning a permission decision that asks for user confirmation before proceeding.

What destructive Kubernetes and Docker operations are caught by bash safety checks?

Bash safety checks catch destructive Kubernetes and Docker operations by pattern matching. The skill detects commands like kubectl delete for resource cleanup and docker prune for container or image removal, prompting the user for confirmation to prevent operational disruption.

Can I safely delete build artifacts like node_modules without triggering destructive command guardrails?

You can safely delete build artifacts without triggering guardrails. The skill applies safe exceptions for common build outputs like node_modules, dist, and caches, allowing these routine deletions to proceed without an extra confirmation warning.

How does database drop prevention work for SQL commands executed in the shell?

Database drop prevention works by matching destructive SQL patterns in Bash commands. When commands containing SQL DROP or TRUNCATE statements are detected, the skill intercepts the execution and asks for explicit user confirmation to prevent accidental data loss.

Does git protection stop hard resets and working-tree discards before they run?

Git protection stops hard resets and working-tree discards before they run. The skill detects git reset --hard and other destructive working-tree rewrites, intercepting the command to ask for confirmation and preventing accidental loss of uncommitted changes.