careful

Warn before executing destructive commands like rm -rf and kubectl delete.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/zhu637882-stack/jiaoyi --skill careful-zhu637882-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/zhu637882-stack/jiaoyi/tree/main/qoder-config-backup/skills/gstack-careful
Command: npx skills add https://github.com/zhu637882-stack/jiaoyi --skill careful-zhu637882-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safety guardrails prevent accidental destructive commands by prompting warnings before operations like rm -rf, DROP TABLE, force-push, git reset --hard, kubectl delete, and similar actions. Users can override warnings when necessary, making it suitable for touching production, debugging live systems, or working in shared environments.

Core Features & Use Cases

  • Warns before destructive commands such as rm -rf, git push --force, git reset --hard, kubectl delete, and similar operations.
  • Allows user overrides after warning, enabling controlled risk-taking in critical contexts.
  • Logs usage analytics locally and provides a PreToolUse hook to assess commands before execution.

Quick Start

Enable careful mode and review warnings before proceeding with any destructive command.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent accidental destructive commands like rm -rf or git reset --hard in bash?

You can prevent accidental destructive commands by using a bash-based prehook that analyzes risky operations like rm -rf or git reset --hard and requires explicit confirmation before executing them.

Can I override warnings for destructive actions when debugging live systems?

Yes, you can override warnings for destructive actions when necessary, enabling controlled risk-taking in critical contexts like debugging live systems or touching production environments.

Does this safety guardrail work in staging and production environments?

Yes, the safety guardrail works in development, staging, and production environments, preventing data loss or downtime by warning users before executing risky commands.

What destructive operations does the PreToolUse hook analyze before execution?

The PreToolUse hook analyzes destructive operations such as rm -rf, git push --force, git reset --hard, kubectl delete, and similar risky commands before execution to prevent accidental data loss.

How does a bash prehook log incidents of risky command usage?

The bash prehook logs usage analytics locally, recording incidents when users attempt risky commands and requiring explicit confirmation or override before proceeding with execution.

What is the best way to add safeguards against force-push and kubectl delete?

The best way to add safeguards against force-push and kubectl delete is implementing a bash-based hook that warns users before executing these destructive actions and logs the incidents locally.