AddThisFeature

Confirmation Dialogs

Stop users destroying things by accident.

simple UI & Polish

What it adds

A modal that interrupts destructive actions and requires explicit confirmation.

What your agent is told to do

4
  1. 1

    Find every destructive or irreversible action — delete, archive, revoke, cancel, overwrite.

  2. 2

    Require confirmation for each. Name the specific thing being destroyed; never ship a bare 'Are you sure?'.

  3. 3

    For genuinely unrecoverable actions, require the user to type the name of the thing to confirm.

  4. 4

    Do NOT add a confirmation to actions that are trivially undoable — offer undo instead. A dialog on every click trains people to click through them.

Edge cases it handles

4
  • Escape and the backdrop must cancel, never confirm.
  • The confirm button must not be focused by default — cancel should be.
  • A slow delete must show a pending state so the user does not click twice.
  • A failed delete must report the failure, not silently close.

Definition of done

7
  • Every destructive action is confirmed.
  • The dialog names the specific item being destroyed.
  • Escape and backdrop cancel; default focus is the safe option.
  • Focus is trapped while open and restored on close.
  • Reversible actions offer undo instead of a dialog.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.