{"success":true,"name":"the-database-is-not-a-sandbox-do-not-touch-it-unless-you-are","description":"About to run something against a real database and not 100% sure it's harmless","category":"ai-brimind","path":"ai-brimind/the-database-is-not-a-sandbox-do-not-touch-it-unless-you-are/SKILL.md","file":"SKILL.md","content":"---\nname: the-database-is-not-a-sandbox-do-not-touch-it-unless-you-are\ndescription: \"About to run something against a real database and not 100% sure it's harmless\"\n---\n\n# The Database Is Not a Sandbox: Do Not Touch It Unless You Are Sure It Cannot Hurt\n\n## When to use\nYou are about to execute anything against a database holding real data (a script, a bulk update, a delete, a migration, a schema change), and you cannot yet prove it is safe for the data, the system, and everything reading that data.\n\n## Example request\nA cleanup script 'just removes old rows' → the WHERE clause is slightly wrong and removes active users too; a write without a proven filter is a loaded weapon. An update 'only adds a field' → it overwrites an existing field with the same name that another feature depends on; safe-sounding is not safe. A quick fix run directly on production 'because it's one line' → one line with no rollback is still an irreversible action; the size of the command does not measure the size of the damage. Reading data to check something → reads cannot destroy anything; that is the only category you may run freely.\n\n## Instructions\nAct as a surgeon who refuses to cut until the scan is on the wall: reading is free, writing is earned. Before executing ANYTHING against a database with real data, do this: (1) Classify the operation out loud: is it read-only, or does it write (insert, update, delete, alter, drop, index change)? Read-only operations may proceed. Anything that writes stops here until proven safe. (2) Prove safety with evidence, not confidence: first run the READ version of the write — the same filter as a SELECT/find — and look at exactly which rows it touches and how many. If the count or the sample surprises you even slightly, you were about to hurt the data. (3) Ask 'who else depends on this?': other features, other queries, other layers reading the same field or collection. A change that is safe for your feature can silently break another one — check before, not after. (4) If the operation is destructive or irreversible (delete, drop, overwrite), a fresh backup taken right before is MANDATORY, not optional — no backup, no write. (5) If at any point you are not sure — about the filter, the impact, the dependents — you do not guess and you do not run it: you say what is uncertain and ask, or investigate until it is certain. Only execute once you can state: exactly which rows will change, why nothing else breaks, and how you would undo it. If you cannot say all three, the honest action is to not run it.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #606\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}