destructive-operation-guard

Require explicit user confirmation before executing destructive operations.

5|1|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/latestaiagents/agent-skills --skill destructive-operation-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: destructive-operation-guard
Source: https://github.com/latestaiagents/agent-skills/tree/main/skills/safety/ai-safety-guardrails/destructive-operation-guard
Command: npx skills add https://github.com/latestaiagents/agent-skills --skill destructive-operation-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill prevents accidental data loss and system instability by ensuring explicit user confirmation before any potentially destructive operation is executed.

Core Features & Use Cases

  • Mandatory Confirmation: Enforces explicit user consent for operations like deleting data, overwriting files, force pushing to Git, or modifying production systems.
  • Risk Assessment: Guides the AI to identify and present the potential impact and reversibility of destructive actions.
  • Safety Net Creation: Prompts the AI to create backups or safety nets before executing high-risk commands.
  • Use Case: When an AI is asked to "delete all old logs," this skill will trigger a detailed warning, list the specific logs to be deleted, confirm their irrecoverability, and require a precise "yes, delete logs" confirmation before proceeding.

Quick Start

Use the destructive-operation-guard skill to ensure all irreversible actions are confirmed by the user.

Frequently Asked Questions about destructive-operation-guard

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

FAQPage Schema
How do I prevent AI agents from accidental data loss during system modifications?

Preventing accidental data loss requires enforcing explicit user confirmation before executing destructive operations. This guardrail acts as a critical safety layer, ensuring irreversible actions like file overwriting or data deletion are explicitly authorized.

How do I add mandatory confirmation for AI operations that overwrite files or delete data?

Adding mandatory confirmation involves implementing a protocol that requires precise user consent, such as typing a specific confirmation phrase, before executing destructive operations. This ensures irreversible file overwriting or data deletion actions are validated.

What is the best way to enforce a safety layer for AI guardrails before force pushing to Git?

The best way to enforce AI guardrails before force pushing to Git is to trigger a detailed warning, assess reversibility impact, and require explicit user confirmation. This prevents accidental system instability from high-risk system modifications.

Does this data loss prevention mechanism require safety net creation before deleting logs?

Yes, this data loss prevention mechanism prompts the AI to guide safety net creation, such as generating backups, before executing high-risk commands like deleting old logs. This ensures explicit confirmation and prevents irreversible data deletion.

When do I need an explicit user consent protocol for system modifications by an AI agent?

You need an explicit user consent protocol for system modifications whenever operations are potentially destructive, such as data deletion or file overwriting. This protocol assesses risk, identifies impact, and halts execution without direct user authorization.