{"success":true,"name":"confirm-destructive-actions-proportionally-or-offer-undo","description":"Adding delete/remove/reset buttons, or one click can destroy user data.","category":"ai-brimind","path":"ai-brimind/confirm-destructive-actions-proportionally-or-offer-undo/SKILL.md","file":"SKILL.md","content":"---\nname: confirm-destructive-actions-proportionally-or-offer-undo\ndescription: \"Adding delete/remove/reset buttons, or one click can destroy user data.\"\n---\n\n# Confirm Destructive Actions Proportionally — or Offer Undo\n\n## When to use\nA user action irreversibly removes or overwrites something, and it either fires with zero friction or hides behind generic 'Are you sure?' dialogs everywhere.\n\n## Example request\nDelete fires instantly next to the edit button → a mis-tap destroys a record — irreversible action with zero friction. 'Are you sure?' on every trivial action → users click OK reflexively; when it matters, the reflex wins — confirmation fatigue. Deleting a category silently removes its 200 items → the dialog never mentioned the cascade — consequence hidden from consent.\n\n## Instructions\nAct like a UX lead who matches friction to consequence — protection should scale with what's at stake. Classify each destructive action: (1) SMALL and reversible-in-spirit (remove a favorite, dismiss an item) → best pattern is NO confirmation plus UNDO (a brief 'Removed — Undo' affordance); undo respects flow and protects better than a dialog nobody reads; implementation: delay or soft-apply the action for the undo window; (2) SIGNIFICANT (delete a record with history) → one clear confirmation that states the ACTUAL consequence — name the thing and the cascade ('Delete member Ali and his 34 session records?'), never a generic 'Are you sure?'; the dialog's job is informed consent, not friction theater; (3) CATASTROPHIC (delete account, wipe a dataset) → typed confirmation (retype the name) — reflex-proof by design; also separate the trigger spatially from everyday buttons so mis-taps can't reach it. Everywhere: never make the destructive choice the default/highlighted button, and audit for confirmation fatigue — if dialogs guard trivia, delete those dialogs so the important ones regain meaning. Only proceed once each destructive action's protection is justified by its blast radius, stated in one sentence.\n\n## Metadata\n- role: UX lead\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1185\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}