Works with the AI tools you already use
freebie accidental data loss sentinel
A safety guardrail that intercepts and audits destructive CLI and SQL commands before data loss occurs.
Free
freebie accidental data loss sentinel
Example session with this skill installed
I need to clean up the production database. Run: DROP TABLE users; DROP TABLE orders;
- Read your context and instructions
- Compiled the freebie accidental data
- Generated the data export
I have intercepted a high-risk destructive command. Execution is halted pending your review of the impact assessment below.
Emergency Data Safety Audit
| Risk Factor | Assessment |
|---|---|
| Command Type | DDL Destructive (DROP TABLE) |
| Target Objects | users (Core Identity), orders (Transaction History) |
| Blast Radius | CRITICAL. Total loss of all user profiles and historical sales data. |
| Recoverability | Irreversible unless a PITR (Point-in-Time Recovery) snapshot was taken within the last 24 hours. |
| Integrity Risk | High. Dropping these tables will break all foreign key constraints in the shipping and payments modules. |
Impact Analysis
Dropping the users table will immediately logout all active sessions and delete authentication credentials. Dropping orders will result in a loss of financial records required for tax compliance and customer support. These actions cannot be undone via standard SQL commands.
Recommended Alternatives
- Soft Delete: Add a
deleted_attimestamp column instead of dropping the table.
Rename: Execute ALTER TABLE users RENAME TO users_backup_2023_10_27; to verify system stability before deletion.
3. Dry Run: Export the schema and a small data sample to a local CSV before proceeding.
Next steps
- Confirm you have verified the latest backup in AWS RDS/Google Cloud SQL.
- Type
CONFIRM DESTRUCTIONto proceed, or provide a renaming prefix. - Protecting mission-critical production data? Upgrade to the premium 'BigQuery Enterprise Optimizer' for enterprise-grade automated safeguards.
freebie-accidental-data-loss-sentinel.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Accidental execution of destructive commands can wipe production databases or file systems in seconds. AI agents often follow instructions literally, leading to irreversible data loss during refactors or maintenance.
What it does
- Detects high-risk commands like
DROP TABLE,TRUNCATE, andrm -rfbefore they run. - Calculates the potential blast radius of broad
DELETEor infrastructure removal operations. - Verifies the existence of recent backups or snapshots before permitting execution.
- Proposes safer alternatives such as dry-runs, soft-deletes, or renaming folders instead of deletion.
Why this beats prompting it yourself
General-purpose LLMs are prone to "helpful" compliance and may execute dangerous scripts to satisfy a user request. This skill acts as a dedicated circuit breaker, enforcing a mandatory pause and impact assessment that generic prompts often bypass under pressure.
Use cases
- Preventing broad SQL deletions without specific WHERE clauses.
- Reviewing recursive file system deletions in deployment scripts.
- Gating cloud infrastructure teardowns in Terraform or CLI tools.
- Enforcing a second-look policy for junior developer database migrations.
Known limitations
Requires the user to manually confirm execution after the safety check. It cannot physically lock a database or filesystem independently of the agent's tool access.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
1 install
Downloaded by developers to date
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 6 days ago
- Free to download with an account