careful

Warn users before executing destructive Bash, Git, and cloud commands.

1|3|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/ekrishgupta/gemstack --skill careful-ekrishgupta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/ekrishgupta/gemstack/tree/main/careful
Command: npx skills add https://github.com/ekrishgupta/gemstack --skill careful-ekrishgupta

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. Use when touching prod, debugging live systems, or working in a shared environment. Use when asked to "be careful", "safety mode", "prod mode", or "careful mode".

Core Features & Use Cases

  • Real-time detection of dangerous commands and prompt-based warnings before execution.
  • User-controlled override to proceed or cancel after a warning.
  • Local analytics logging of skill usage to ~/.gemstack/analytics/skill-usage.jsonl for auditing and improvements.

Quick Start

Enable careful mode and try a destructive command to see the warning prompt.

Frequently Asked Questions about careful

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

FAQPage Schema
How do I prevent accidental data loss from destructive bash commands?

You can prevent accidental data loss by enabling careful mode, which intercepts destructive bash commands like rm -rf and prompts you with a warning before execution. You retain the ability to override the warning and proceed or cancel the operation.

Can I add safety guards for git reset hard and force-push operations?

Yes, careful mode guards git reset hard and force-push operations by intercepting them before execution. It warns you about the destructive action and requires your confirmation to proceed, preventing accidental repository data loss.

How do I block kubectl delete commands from running accidentally?

You can block accidental kubectl delete commands by enabling careful mode. It intercepts these cloud operations in your development, staging, or production environments, warning you before execution and allowing you to cancel or override.

Does this destructive command warning system support user overrides?

Yes, the destructive command warning system supports user overrides. When a dangerous operation like a database DROP TABLE is intercepted, you receive a warning prompt and can choose to proceed with the execution or cancel it entirely.

What is the best way to enable safety mode for shared production environments?

The best way to enable safety mode for shared production environments is to activate careful mode. It uses a PreToolUse Bash hook to automatically detect and warn against destructive commands, logging usage locally for auditing and improvements.

Are limitations applied when logging destructive command warnings locally?

Local logging of destructive command warnings has no stated limitations. It logs skill usage to a local analytics file for auditing and improvements, capturing your interactions with the warning prompts without sending data externally.