careful

Intercept destructive Bash, Git, and Kubernetes commands before execution.

2|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/vnmoorthy/Skylog --skill careful-vnmoorthy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: careful
Source: https://github.com/vnmoorthy/Skylog/tree/main/.claude/skills/gstack/careful
Command: npx skills add https://github.com/vnmoorthy/Skylog --skill careful-vnmoorthy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guards destructive commands by warning before execution, helping teams avoid accidental data loss.

Core Features & Use Cases

  • PreToolUse hook checks for destructive patterns in Bash-related tool inputs.
  • Warns users with an option to proceed or cancel, enabling careful work in prod or shared environments.
  • Logs usage analytics to ~/.gstack/analytics for visibility and auditing.

Quick Start

Enable careful mode before touching production or shared environments to receive safety prompts on 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 intercept destructive shell commands before execution?

You can add safety guardrails by using a PreToolUse hook that checks Bash, Git, or Kubernetes tool inputs for destructive patterns, warns you, and allows an override or cancellation before execution.

What is a PreToolUse hook and how does it protect production environments?

A PreToolUse hook protects production environments by intercepting shell actions before execution, checking for destructive patterns, and prompting a warning that enables careful work in shared or prod environments by allowing you to cancel.

Can I log usage analytics for overridden destructive Git or kubectl commands?

Yes, you can log usage analytics for destructive Git or kubectl commands. The hook logs usage analytics to the ~/.gstack/analytics directory, providing visibility and auditing for team operations.

Does this safety mode work with both Git and Kubernetes commands in shared environments?

Yes, this safety mode works with both Git and Kubernetes commands. It is specifically applicable when reviewing or running Bash, Git, or kubectl commands in production, staging, or shared environments to prevent accidental data loss.

How do I enable safety prompts for destructive commands before touching production?

To enable safety prompts for destructive commands, activate careful mode before touching production or shared environments, which triggers the PreToolUse hook to warn you and provide an option to proceed or cancel.