Works with the AI Agents you already use
Freebies — Accidental Data Loss Sentinel
A safety guardrail that intercepts and audits destructive CLI and SQL commands before data loss occurs.
Free
Freebies — 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 freebies
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.
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.
Requires manual user confirmation to proceed. Cannot programmatically block commands if the agent has direct shell access without a human-in-the-loop.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
2 uses
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 4 days ago
- Free with an Agensi account
Permissions
Reads migration scripts and terminal commands to intercept and verify destructive file/database operations before execution.