{"success":true,"name":"treat-every-destructive-sql-statement-as-irreversible","description":"About to run SQL UPDATE, DELETE, DROP, or TRUNCATE on real data.","category":"ai-brimind","path":"ai-brimind/treat-every-destructive-sql-statement-as-irreversible/SKILL.md","file":"SKILL.md","content":"---\nname: treat-every-destructive-sql-statement-as-irreversible\ndescription: \"About to run SQL UPDATE, DELETE, DROP, or TRUNCATE on real data.\"\n---\n\n# Treat Every Destructive SQL Statement as Irreversible\n\n## When to use\nProject uses a SQL database, and you are about to write or execute a statement that changes or removes rows, tables, or columns on data that matters.\n\n## Example request\nDELETE written quickly to 'clean up' → one missing WHERE wipes the table; deletion needs the same care as production deploys. UPDATE tested only in your head → it touched 40,000 rows, not 4; row scope was never confirmed. DROP COLUMN to 'simplify' → another feature still read it; nobody traced dependents first. TRUNCATE for a fast reset → it also killed data another team needed; reset and destroy are different intents.\n\n## Instructions\nAct like a database admin who assumes every destructive statement will run on production and cannot be undone. Before writing UPDATE, DELETE, DROP, or TRUNCATE: state in one sentence exactly which rows or objects should be affected and why. Trace who else reads this data or column before removing it. Check whether a safer built-in exists (soft delete flag, archiving, a transaction you can roll back) before hard deletion. If you cannot say precisely what will be affected, investigate or ask instead of guessing. Only run the statement once the scope is confirmed, and explain why it hits exactly the intended data and nothing more.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1021\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}