careful

Validate Bash commands for destructive patterns and warn before execution.

2|2|Updated Dec 1, 2024
One-click install
npx skills add https://github.com/Yaugourt/LiquidTerminal_Back --skill careful-yaugourt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/Yaugourt/LiquidTerminal_Back/tree/main/.agents/skills/gstack/careful
Command: npx skills add https://github.com/Yaugourt/LiquidTerminal_Back --skill careful-yaugourt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, git.

What problem does it solve?

Safety guardrails for destructive shell operations prevent accidental data loss by warning before execution across common destructive commands such as rm -rf, DROP TABLE, git reset --hard, kubectl delete, and similar actions. Users can override warnings to proceed when appropriate, useful during prod maintenance or debugging in shared environments.

Core Features & Use Cases

  • Detect destructive commands across common tools (rm, DROP, git push --force, git reset --hard, kubectl delete) and warn before execution.
  • Allow explicit user override to proceed after a warning, with an auditable guardrail trail.
  • Log guardrail events to a local analytics store and integrate with a PreToolUse hook to intercept commands in real time.

Quick Start

Enable careful mode and run commands as usual; the guardrails warn on destructive patterns.

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 like rm -rf?

You can guard destructive bash commands by validating inputs and warning before execution to prevent accidental data loss. This approach intercepts commands like rm -rf using a PreToolUse hook and allows explicit user override to proceed when appropriate.

Can I override warnings for git reset --hard or kubectl delete when I need to proceed?

Yes, explicit user override allows you to proceed after a warning for git reset --hard or kubectl delete. The override action is recorded in an auditable guardrail trail and logged to a local analytics store for later review.

Does this destructive command warning system require specific dependencies like python3 or git?

Guarding destructive commands requires python3 and git as dependencies. The system uses a PreToolUse hook to intercept bash inputs in real time and applies pattern matching to detect destructive actions across development, staging, and production environments.

What's the best way to intercept dangerous shell operations in automated sessions?

The best way to intercept dangerous shell operations in automation is using a PreToolUse hook that validates bash inputs in real time. It detects patterns like DROP TABLE and git push --force, logs events to a local analytics store, and maintains an auditable trail.

Are there safe exceptions for build artifacts when guarding destructive commands?

Yes, safe exceptions are implemented for build artifacts so routine cleanup tasks are not blocked. The guardrails apply pattern matching to distinguish between safe build artifact removal and genuinely destructive commands like DROP TABLE or git reset --hard.

When should I not use an override for destructive command warnings?

Avoid overriding destructive command warnings in shared environments or production maintenance unless absolutely necessary, because the guardrails exist to prevent irreversible data loss. Every override is logged to a local analytics store to maintain an auditable guardrail trail.