destructive-command-safety

Require explicit user confirmation before executing destructive git commands.

5|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/mraakashshah/oro --skill destructive-command-safety
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: destructive-command-safety
Source: https://github.com/mraakashshah/oro/tree/main/.claude/skills/destructive-command-safety
Command: npx skills add https://github.com/mraakashshah/oro --skill destructive-command-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a safety net for critical git operations, ensuring that irreversible actions are confirmed by the user before execution.

Core Features & Use Cases

  • Explicit Confirmation: For dangerous git commands, prompts the user for explicit confirmation to prevent accidental irreversible actions.
  • Command Classification: Categorizes git commands into dangerous, pre-approved, and safe categories to aid in decision-making.
  • Documentation: Provides clear guidelines on how to handle each type of command safely.
  • Use Case: Use this Skill before performing operations like git reset, rm -rf, or force-pushing to remote repositories to ensure safety.

Quick Start

Before running a destructive command, use the destructive-command-safety skill to confirm the operation.

Frequently Asked Questions about destructive-command-safety

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent accidental data loss when running destructive git commands?▼

To prevent accidental data loss with destructive git commands, you can use a safety mechanism that requires explicit user confirmation before executing irreversible operations like force pushing or resetting commits.

What git operations are considered dangerous and require confirmation?▼

Dangerous git operations requiring confirmation include force pushing to remote repositories, deleting files with rm -rf, and resetting commits, as these irreversible changes risk permanent data loss.

How do I set up explicit user confirmation for irreversible git workflows?▼

Setting up explicit user confirmation for irreversible git workflows involves categorizing commands into dangerous, pre-approved, and safe groups, then prompting the user before executing any dangerous git operation.

Does this command safety approach work for standard git commands without blocking my workflow?▼

Yes, this command safety approach works for standard git commands without blocking your workflow by classifying commands into safe, pre-approved, and dangerous categories, only pausing for explicit confirmation on destructive actions.

What's the best way to classify git commands before executing a force push?▼

The best way to classify git commands before executing a force push is to categorize them into dangerous, pre-approved, and safe groups, ensuring destructive actions trigger an explicit confirmation prompt.

When should I not use automated confirmation prompts for git operations?▼

You should not rely solely on automated confirmation prompts for git operations when running fully automated deployment scripts, as the manual confirmation requirement will halt execution of irreversible changes.