Skip to content
Back to skills

Language 2026 10 08

ASecurity

I will not give you that script as asked. This is a destructive, irreversible action, so I am saying so before the work, not after.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 26, 2026
ai-agentsgobashsqldatabase

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned October 26, 2026

npx -y skills add Siririn77/i-have-autism --skill language-2026-10-08 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Language 2026 10 08?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Language 2026 10 08
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/siririn77-language-2026-10-08-ac0c6634/badge)](https://www.skillsdirectory.com/skills/siririn77-language-2026-10-08-ac0c6634)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
I will not give you that script as asked. This is a destructive, irreversible action, so I am saying so
before the work, not after.

## What you are asking, and why it is a problem

You are asking for one command that removes every row from a production `orders` table with no backup and
no rollback, betting that "I'll clean up later" will cover whatever breaks. `DELETE FROM orders;` or
`TRUNCATE orders;` is not reversible by re-running anything. Once the transaction commits, the data is
gone. "Cleaning up later" is only possible if you already have a copy, and the request as stated does not
include one.

## Who it hurts, and when

- Order history is the record customers, accounting, and tax authorities depend on. Deleting it loses
  revenue records, invoice back-references, and any audit trail that lives in that table.
- Foreign keys: rows in `order_items`, `payments`, and `shipments` that point at those orders either block
  the delete or, if you force it with `CASCADE`, are deleted too — a wider loss than you asked for.
- Anything reading the table (the storefront, the fulfilment worker, a nightly report) breaks the moment
  the commit lands, during production hours, with no way back.
- The cost is a year of orders lost in seconds, versus a five-minute backup that makes the same operation
  undoable.

## What to do instead

First, answer one question, because the right answer depends on it: **do you need the rows gone, or just
gone from normal use?**

**If you need the rows actually removed — do this, in order:**

1. Take a restorable copy and confirm it restores:
   ```bash
   pg_dump --data-only --table=orders "$DATABASE_URL" > orders_backup_$(date +%Y%m%d_%H%M%S).sql
   ```
   Confirm the file is non-empty and lists expected row counts before you continue.
2. Run the delete inside an explicit transaction, on a replica or staging first:
   ```bash
   psql "$DATABASE_URL" -v ON_ERROR_STOP=1 <<'SQL'
   BEGIN;
   SELECT count(*) AS rows_before FROM orders;
   DELETE FROM orders;
   -- COMMIT;   -- only after you have seen rows_before and are sure
   ROLLBACK;
   SQL
   ```
   The `BEGIN … ROLLBACK` version does nothing but proves the statement runs and shows the count. Swap
   `ROLLBACK` for `COMMIT` only when you have decided to proceed.
3. If the goal is only "not live any more", do not delete. Add a soft-delete flag and filter it out
   instead:
   ```sql
   ALTER TABLE orders ADD COLUMN deleted_at timestamptz;
   UPDATE orders SET deleted_at = now();
   ```
   Reversible, and the history survives.

**If you are being asked to do this urgently** — a bad migration, a corrupted import, a compliance demand —
tell me which, and I will size the actual fix. A surgical delete by date or by a corrupted-id range is a
different and much smaller operation than "all rows".

If you read the above and still want the plain one-liner, say so explicitly and I will give it. But you will
have a backup first, and I will name what it deletes.

Files in this skill

  • T1_with-skill.md11.8 KB
  • T1_without-skill.md6.4 KB
  • T2_with-skill.md9.1 KB
  • T2_without-skill.md4.5 KB
  • T3_with-skill.md1.9 KB
  • T3_without-skill.md1.5 KB
  • T4_with-skill.md1.2 KB
  • T4_without-skill.md1.1 KB
  • T5_with-skill.md6.2 KB
  • T5_without-skill.md3.5 KB
  • T6_with-skill.md5.6 KB
  • T6_without-skill.md3.7 KB
  • T7_with-skill.md1.9 KB
  • T7_without-skill.md2.3 KB
  • T8_with-skill.md2.9 KB
  • T8_without-skill.md4.4 KB
  • T9_with-skill.md7.1 KB
  • T9_without-skill.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.