careful

Warn users before executing destructive Bash commands and require confirmation.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Kakarottoooo/onegent --skill careful-kakarottoooo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/Kakarottoooo/onegent/tree/main/.agents/skills/gstack/careful
Command: npx skills add https://github.com/Kakarottoooo/onegent --skill careful-kakarottoooo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safety-sensitive environments require preventing destructive actions by warning users before potentially destructive operations and offering an override mechanism.

Core Features & Use Cases

  • Detects destructive commands such as rm -rf, DROP TABLE, TRUNCATE, git push --force, git reset --hard, kubectl delete, and docker system prune, and prompts for confirmation.
  • Allows per-command override to proceed when the user confirms.
  • Logs usage events locally for audit and safety improvement in shared environments.

Quick Start

Enable careful mode in your session to get warnings and explicit confirmation before 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 in production?

Safety guardrails detect destructive bash commands like rm -rf and DROP TABLE in development or production environments, prompting for explicit user confirmation before execution to prevent accidental data loss.

Can I override the confirmation prompt to force execute a git push --force command?

Yes, you can override the confirmation prompt to execute git push --force. The safety guardrails allow a per-command override so you can proceed when you explicitly confirm the destructive action.

What destructive command patterns are automatically detected and blocked by these safety guardrails?

The safety guardrails automatically detect patterns like rm -rf, DROP TABLE, TRUNCATE, git push --force, git reset --hard, kubectl delete, and docker system prune, prompting for confirmation before execution.

Does careful mode keep an audit log of overridden destructive commands in shared environments?

Yes, careful mode logs usage events locally for auditing. When destructive commands are detected and overridden in shared environments, the local usage log records the events for safety improvement and review.

How do I get warnings before executing destructive kubectl delete or docker system prune commands?

Enable careful mode in your session to receive warnings before executing destructive commands like kubectl delete or docker system prune. The system detects these patterns and prompts for explicit confirmation or cancellation.