accidental-data-loss-prevention

Requires explicit user consent before executing irreversible data deletion commands.

Updated Aug 16, 2026
One-click install
npx skills add https://github.com/1919114514yasenpai-maker/focus-quest --skill accidental-data-loss-prevention-1919114514yasenpai-maker
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: accidental-data-loss-prevention
Source: https://github.com/1919114514yasenpai-maker/focus-quest/tree/main/.gemini/skills/accidental-data-loss-prevention
Command: npx skills add https://github.com/1919114514yasenpai-maker/focus-quest --skill accidental-data-loss-prevention-1919114514yasenpai-maker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Destructive commands like DROP TABLE, TRUNCATE, or gsutil rm can permanently erase production databases, cloud storage buckets, and infrastructure resources in seconds. This Skill acts as a mandatory safety checkpoint that forces verification before any irreversible deletion runs. ## Core Features & Use Cases - Destructive SQL Guard: Intercepts DROP TABLE/VIEW/SCHEMA/DATABASE, TRUNCATE, and broad DELETE statements missing WHERE clauses or using 1=1 conditions. - Cloud Resource Protection: Flags gsutil rm, gcloud storage rm, project deletion, and removal of Spanner, BigQuery, Dataproc, secrets, or KMS keys. - Mandatory Consent Workflow: Halts execution, explains the impact and rationale, and waits for explicit affirmative approval before proceeding. - Use Case: When asked to clean up a database, the assistant detects a TRUNCATE statement targeting production data, stops, explains the irreversible impact, and only runs it after you confirm. ## Quick Start Ask the assistant to delete a table or remove cloud storage objects and it will pause to request your explicit confirmation before executing anything irreversible.

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 deletion of production data?▼

Use a mandatory consent checkpoint that halts any irreversible command before execution. The assistant explains the deletion impact, states why it is necessary, and waits for your explicit approval before proceeding.

What SQL commands require confirmation before running?▼

DROP TABLE, DROP VIEW, DROP SCHEMA, DROP DATABASE, and TRUNCATE always require confirmation. DELETE statements also require it when they lack a WHERE clause or use a 1=1 condition that targets all rows.

Does this cover Google Cloud storage and resource deletion?▼

Yes, it covers gsutil rm and gcloud storage rm targeting production buckets, plus gcloud projects delete. It also guards deletion of Spanner, BigQuery, and Dataproc resources, secrets, and KMS key destruction.

What happens when a destructive command is detected?▼

Execution halts immediately and nothing runs. The assistant explains the impact of the deletion and why it seems necessary, then waits until you give clear affirmative consent in the conversation.

When should I be cautious even with deletion safeguards?▼

Safeguards only trigger on recognized destructive patterns, so novel or indirect deletion paths may not be caught. Always verify target environments and maintain backups before any operation touching production data.