careful

Warns before executing destructive Bash commands via a PreToolUse hook.

5|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/timurgaleev/vibestack --skill careful-timurgaleev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/timurgaleev/vibestack/tree/main/skills/careful
Command: npx skills add https://github.com/timurgaleev/vibestack --skill careful-timurgaleev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safety guardrails for destructive commands. Warns before rm -rf, DROP TABLE, force-push, git reset --hard, kubectl delete, and similar destructive operations. User can override each warning.

Core Features & Use Cases

  • PreToolUse hook in Bash that triggers a safety check before commands run.
  • Detects destructive patterns like rm -rf, SQL DROP, git push -f, git reset --hard, kubectl delete, and docker prune.
  • Allows safe exceptions and user override to proceed when appropriate.

Quick Start

Activate safety mode before executing destructive commands.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I add safety guardrails to prevent destructive bash commands from running?

You can prevent destructive bash commands by implementing a PreToolUse hook that triggers a safety check before execution. It detects risky patterns like rm -rf or git reset --hard and prompts a warning, allowing you to override and proceed if needed.

What destructive shell commands should safety guardrails warn about?

Safety guardrails should warn about destructive shell commands including rm -rf, SQL DROP TABLE, git push -f, git reset --hard, kubectl delete, and docker prune. Detecting these risky operations prevents accidental data loss during system maintenance or debugging.

Can I override a warning when a safety hook blocks a command in bash?

Yes, you can override warnings when a safety hook blocks a command in bash. The guardrail is designed to warn before execution of risky operations, but it allows safe exceptions and user override to proceed when appropriate.

Does a bash pretooluse hook work during collaborative debugging sessions?

Yes, a bash PreToolUse hook works effectively during collaborative debugging sessions and system maintenance. It applies safety checks before commands run, preventing outages or data loss when multiple users share a shell environment.

What is the best way to block accidental git force-push and kubectl delete operations?

The best way to block accidental git force-push and kubectl delete operations is using a safety script that detects destructive patterns. It warns before execution, ensuring you can review and override the warning only when the action is intentional.

When should I use a shell command guardrail instead of just relying on manual caution?

You should use a shell command guardrail during system maintenance, debugging, or collaborative sessions where commands can cause data loss or outages. Automated safety hooks provide a reliable checkpoint that manual caution alone cannot guarantee.