accidental-data-loss-prevention

Require explicit user consent before destructive data-loss actions.

161|37|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/gemini-cli-extensions/data-agent-kit-starter-pack --skill accidental-data-loss-prevention
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: accidental-data-loss-prevention
Source: https://github.com/gemini-cli-extensions/data-agent-kit-starter-pack/tree/main/skills/accidental-data-loss-prevention
Command: npx skills add https://github.com/gemini-cli-extensions/data-agent-kit-starter-pack --skill accidental-data-loss-prevention

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

STOP AND VERIFY: Before running any command or tool that results in irreversible data loss, you MUST obtain explicit user consent. When in doubt, ask. It is better to wait for confirmation than to accidentally delete production data or critical project assets.

Core Features & Use Cases

  • Enforces a mandatory consent step before destructive actions such as DROP, TRUNCATE, or resource deletions.
  • Provides clear explanation of impact and a request for explicit approval to proceed.
  • Applies to database, cloud storage, and infrastructure operations across development, staging, and production environments.

Quick Start

Ask the user for explicit approval before performing any destructive operation.

Frequently Asked Questions about accidental-data-loss-prevention

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

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

Preventing accidental data loss requires enforcing explicit user consent before executing destructive operations. This approach intercepts commands like DROP or TRUNCATE, explains the potential impact, and waits for explicit approval before proceeding.

How can I add a mandatory approval step before deleting production data?

Adding a mandatory approval step for deleting production data involves applying consent-first guardrails to your operations. It prompts you to verify the impact of resource termination and explicitly approve the action before any irreversible changes occur.

What is consent-first guardrails for destructive operations?

Consent-first guardrails for destructive operations are safety mechanisms that stop and verify commands before execution. They ensure you explicitly approve actions modifying critical infrastructure, preventing irreversible data loss across development, staging, and production environments.

Can I enforce explicit user consent for infrastructure modifications across staging and production?

Yes, you can enforce explicit user consent for infrastructure modifications across staging and production. The safeguard applies broadly to operations terminating resources or modifying critical infrastructure, ensuring you detail the impact and await approval prior to proceeding.

Does this data loss prevention method work for cloud storage and database operations?

Yes, this data loss prevention method works for cloud storage and database operations. It applies safeguards across environments, requiring explicit approval before proceeding with destructive actions that could result in irreversible data loss.

When do I need explicit approval before proceeding with destructive actions?

You need explicit approval before proceeding with destructive actions whenever a command results in irreversible data loss. It is better to wait for confirmation to accidentally delete production data or critical project assets than to proceed when in doubt.