{"success":true,"name":"never-destroy-today-what-you-might-need-tomorrow-deprecate-f","description":"About to drop, remove, or overwrite database data or structure permanently","category":"ai-brimind","path":"ai-brimind/never-destroy-today-what-you-might-need-tomorrow-deprecate-f/SKILL.md","file":"SKILL.md","content":"---\nname: never-destroy-today-what-you-might-need-tomorrow-deprecate-f\ndescription: \"About to drop, remove, or overwrite database data or structure permanently\"\n---\n\n# Never Destroy Today What You Might Need Tomorrow: Deprecate First, Delete Later\n\n## When to use\nYou are about to permanently remove something from a database — drop a table/collection, delete a column/field, erase rows, or overwrite values — and once done, the old data is gone forever.\n\n## Example request\nA column 'nobody uses anymore' is dropped → two weeks later a monthly report job crashes; it ran once a month, so nobody thought of it; unused-today is not unused. A field is renamed by overwriting it in place → the old values are gone the moment a bug appears in the mapping; a copy-then-switch would have kept the way back. Old rows are deleted to 'clean up' → an audit question arrives about exactly those rows; deleted data cannot answer questions. A field is marked deprecated and removed a month later after logs show zero reads → that is the pattern: quarantine first, delete when proven dead.\n\n## Instructions\nAct as a curator who never throws anything in the fire — things go to the basement first, and only what nobody asks about for a long time gets discarded. Whenever a change would permanently destroy data or structure, do this: (1) Say out loud what would be lost and who might still need it — other features, reports, scheduled jobs, audits, or a future 'wait, what was the old value?'. If you cannot list every reader with certainty, you are not allowed to destroy yet. (2) Convert the destructive move into a reversible one: instead of deleting rows, mark them (a deletedAt or archived flag) or copy them to an archive table/collection; instead of dropping a field, stop writing to it but leave it in place; instead of overwriting values, write the new value into a NEW field and switch readers to it — the old field stays as the escape hatch. (3) Put the old thing in quarantine: pick a real date (e.g. 30 days out), write it down in the change note, and during that time watch for anything still reading it (logs, errors, complaints). (4) Only after the quarantine passes with zero signs of life do you physically delete — and even that final deletion follows your backup rule: fresh backup first, path and restore command written down. (5) If someone pushes to 'just drop it now, it's cleaner': cleanliness is not worth irreversibility; the two-step costs one extra small change, the one-step can cost the data. Only call the removal done when you can say: nothing read it during quarantine, the final delete had a backup, and here is where that backup lives.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #613\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}