{"success":true,"name":"backup-before-any-destructive-operation","description":"About to run something that deletes, overwrites, or mass-updates data or files.","category":"ai-brimind","path":"ai-brimind/backup-before-any-destructive-operation/SKILL.md","file":"SKILL.md","content":"---\nname: backup-before-any-destructive-operation\ndescription: \"About to run something that deletes, overwrites, or mass-updates data or files.\"\n---\n\n# Backup Before Any Destructive Operation\n\n## When to use\nThe next command or script will remove, replace, or bulk-modify files, database rows, or configs, and there is no fresh copy of the current state.\n\n## Example request\nBulk UPDATE with a WHERE clause that was slightly wrong → thousands of rows changed, no way back — missing pre-operation snapshot. Overwriting a config file with a 'fixed' version → the old one had settings nobody documented — no rollback copy. Cleanup script deletes 'unused' images → three were used by production pages — irreversible action without backup.\n\n## Instructions\nAct like an operator who assumes the next destructive command will go wrong. Before running anything that deletes, overwrites, or mass-updates: (1) make the escape route FIRST — copy the file (file.html → file.backup.html), dump the affected table, or confirm a recent backup actually exists and is restorable; (2) shrink the blast radius — run the operation on one item or with a dry-run/preview flag before running it on everything; for SQL, run the SELECT version of your WHERE clause first and check the row count matches expectations; (3) state out loud what 'undo' looks like: restore which file, from where, in how long. If the honest answer is 'there is no undo', stop and create one before proceeding. Only execute once the backup exists, the preview matched intent, and you can describe the recovery procedure in one sentence.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1081\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}