careful

Intercept and validate shell commands against destructive patterns before execution.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/smarmen86/claude-code-kit --skill careful-smarmen86
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/smarmen86/claude-code-kit/tree/main/skills/careful
Command: npx skills add https://github.com/smarmen86/claude-code-kit --skill careful-smarmen86

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prevents accidental data loss and system damage by intercepting and validating potentially destructive shell commands before they are executed.

Core Features & Use Cases

  • Destructive Pattern Detection: Automatically identifies dangerous operations like recursive deletions, database drops, and forced git pushes.
  • Interactive Confirmation: Prompts the user for explicit approval when a high-risk command is detected, allowing for safe overrides.
  • Use Case: When working in a production environment or a shared repository, this skill acts as a safety net to ensure that commands like rm -rf or git push -f are intentional and verified.

Quick Start

Enable safety mode by telling the agent to be careful before you begin your work.

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 shell commands in a production environment?

Preventing accidental data loss from destructive shell commands requires intercepting and validating terminal operations against a predefined list of dangerous patterns like recursive deletions or database drops before they execute. This skill provides that safety layer by prompting for explicit confirmation when high-risk commands are detected.

Can I block forced git pushes and recursive deletions before they execute in the terminal?

Blocking forced git pushes and recursive deletions is possible by hooking into the terminal execution flow to analyze commands in real-time. The skill detects these specific destructive patterns and requires interactive user approval to allow safe overrides or cancellation.

Do I need a Bash environment to intercept and validate dangerous terminal commands?

A Bash environment is required to intercept and validate dangerous terminal commands. The script-based safety guardrails operate within terminal-based development environments and need Bash access to hook into tool execution flows for real-time command analysis.

What is the best way to add safety guardrails for high-risk DevOps operations?

The best way to add safety guardrails for high-risk DevOps operations is using a command interception script that matches shell inputs against destructive patterns. This approach identifies forced git pushes and similar threats, prompting for verification to prevent accidental system damage.

How do I enable destructive pattern detection when working in a shared repository?

Enabling destructive pattern detection when working in a shared repository involves telling the agent to be careful before beginning work. This activates the safety mode which automatically identifies dangerous operations and prompts for explicit approval prior to execution.