accidental-data-loss-prevention

Requires explicit user consent before executing irreversible data deletion commands.

1|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/ZimriJahdai/HaircutFiveFriends-Full --skill accidental-data-loss-prevention-zimrijahdai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: accidental-data-loss-prevention
Source: https://github.com/ZimriJahdai/HaircutFiveFriends-Full/tree/main/.claude/.agents/skills/accidental-data-loss-prevention
Command: npx skills add https://github.com/ZimriJahdai/HaircutFiveFriends-Full --skill accidental-data-loss-prevention-zimrijahdai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Destructive commands like DROP TABLE, TRUNCATE, or gsutil rm can permanently delete production databases, cloud storage, and infrastructure before anyone realizes the impact. This Skill forces a mandatory verification checkpoint so irreversible operations never run without explicit user approval. ## Core Features & Use Cases - Destructive SQL Detection: Flags DROP TABLE/VIEW/SCHEMA/DATABASE, TRUNCATE, and broad DELETE statements missing WHERE clauses or using 1=1. - Cloud Resource Protection: Intercepts gsutil rm, gcloud storage rm, project deletion, Spanner/BigQuery/Dataproc resource deletion, secret deletion, and KMS key destruction. - 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 AI pauses before running DROP TABLE on production data, explains the consequences, and only proceeds after you confirm. ## Quick Start Ask the AI to delete a database table or remove cloud storage files and it will stop 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 AI 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. Broad DELETE statements missing a WHERE clause or using 1=1 also trigger the consent requirement.

Does this cover Google Cloud storage deletion?

Yes, gsutil rm and gcloud storage rm commands targeting production data or critical buckets require explicit consent. It also covers deleting Spanner, BigQuery, and Dataproc resources, secrets, and KMS key destruction.

What happens when a destructive command is detected?

Execution halts immediately and the command does not run. The AI explains the impact and rationale, then waits for clear affirmative consent in the conversation before proceeding.

When should I ask for confirmation on delete operations?

Ask whenever a command results in irreversible data loss, and whenever you are in doubt. Waiting for confirmation is always preferable to accidentally deleting production data or critical project assets.