careful

Detect risky shell commands and prompt for confirmation before execution.

12|6|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/shogo-labs/shogo-ai --skill careful-shogo-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/shogo-labs/shogo-ai/tree/main/packages/agent-runtime/templates/virtual-engineering-team/.shogo/skills/gstack-careful
Command: npx skills add https://github.com/shogo-labs/shogo-ai --skill careful-shogo-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents destructive commands by detecting risky patterns and prompting for confirmation before execution.

Core Features & Use Cases

  • Destructive-command guardrails detect risky commands like rm -rf, git reset --hard, kubectl delete, and similar operations to prevent accidental data loss.
  • Interactive warnings & overrides allow users to review risks and choose to proceed or cancel, safeguarding prod environments and shared workspaces.
  • Audit-ready logging records risky actions for later review and compliance.

Quick Start

Try a potentially destructive command and observe the safety warning 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 destructive shell commands like rm -rf from executing accidentally?

To prevent destructive shell commands like rm -rf from executing, you can use a guardrail tool that intercepts risky patterns via a PreToolUse hook. It detects dangerous operations and prompts for confirmation before allowing the shell session to proceed, stopping accidental data loss.

Can I add a confirmation prompt for git push --force and kubectl delete in production environments?

Yes, you can add a confirmation prompt for git push --force and kubectl delete in production environments. This Skill detects these specific risky patterns in your shell sessions and automation workflows, prompting you to review risks and choose to proceed or cancel.

What is the best way to guard against destructive commands across development and production environments?

The best way to guard against destructive commands across development and production environments is applying a prompt-based decision logic tool. It intercepts risky shell operations, warns you of the potential danger, and requires interactive confirmation before executing any potentially harmful action.

Does this destructive command guardrail support logging for compliance and audit purposes?

Yes, this destructive command guardrail supports logging for compliance and audit purposes. It records risky actions and intercepted commands into an audit-ready log, allowing you to review incidents later and ensure compliance across your shared workspaces and production environments.

How do I override a safety warning when I intentionally need to run a risky shell command?

To override a safety warning when you intentionally need to run a risky shell command, you simply interact with the interactive warning prompt. The guardrail allows you to review the detected risk and explicitly choose to proceed with execution or cancel the operation.

When should I not use a prompt-based guardrail for shell sessions?

You should not use a prompt-based guardrail for shell sessions in fully automated, non-interactive workflows where pausing for user confirmation would halt execution. Since the mechanism relies on interactive warnings to override destructive patterns, unattended automation pipelines would stall waiting for input.