# confirm-destructive-actions

The confirm-destructive-actions Claude Code skill sets confirmation rules for risky UI actions. It activates when adding a destructive button or writing a confirmation dialog.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1120 repo stars
- Author: rerun-build
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/rerun-build/rerun/tree/HEAD/.claude/skills/confirm-destructive-actions/SKILL.md
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/confirm-destructive-actions

## What it does

The skill requires a single dialog before risky actions such as deleting data, revoking access, restarting a service, or replacing text a user entered. `ConfirmDialog` is the standard choice; use `AlertDialog` when its content depends on the current state. Icon-only destructive buttons still need a dialog. A dedicated page that explains the action and offers an exit can itself act as confirmation.

When a trigger sits inside a `Popover` or `DropdownMenu`, the dialog must live outside that layer and use controlled state. Its description should name the consequences, while the confirmation button repeats the action verb instead of saying “OK.” The repository also includes an `rg` check for destructive buttons and `cd apps/ui && pnpm ts-check`, which must finish with zero errors.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add rerun-build/rerun --skill confirm-destructive-actions -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/confirm-destructive-actions/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/confirm-destructive-actions/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add rerun-build/rerun --skill confirm-destructive-actions -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/confirm-destructive-actions/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add rerun-build/rerun --skill confirm-destructive-actions -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/confirm-destructive-actions/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install rerun-build/rerun .claude/skills/confirm-destructive-actions
```

2. **Manually: put the files in place**
- File: `.github/skills/confirm-destructive-actions/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add rerun-build/rerun --skill confirm-destructive-actions -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/rerun-build/rerun --path .claude/skills/confirm-destructive-actions
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/confirm-destructive-actions/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/rerun-build/rerun/tree/HEAD/.claude/skills/confirm-destructive-actions/SKILL.md

## When to use it
- add a confirmation before deleting a record
- warn before revoking access or restarting a service
- keep a dialog open until its action finishes
- confirm deletion from an icon-only button

## Example prompts
- Add a `ConfirmDialog` before deleting this row.
- Review the API key revocation dialog and keep it open until the action completes.
- Move the delete confirmation outside the `DropdownMenu`.

## Similar
- [hig-components-dialogs](https://affpapa.org/en/nevibecode/skills/hig-components-dialogs.md) — skill · 783 installs
- [platform-destructive-deploy](https://affpapa.org/en/nevibecode/skills/platform-destructive-deploy.md) — skill · 2900 installs
- [docker-destructive-guardrails](https://affpapa.org/en/nevibecode/skills/docker-destructive-guardrails.md) — skill · 1700 installs
- [commit-confirm](https://affpapa.org/en/nevibecode/skills/commit-confirm.md) — skill · 397 installs
- [grep-for-mock-module-across-the-entire-test-file-and-confirm-eve](https://affpapa.org/en/nevibecode/skills/grep-for-mock-module-across-the-entire-test-file-and-confirm-eve.md) — skill · ★ 539 repo stars
- [confirm-failures-are-causally-linked-to-the-task-before-reportin](https://affpapa.org/en/nevibecode/skills/confirm-failures-are-causally-linked-to-the-task-before-reportin.md) — skill · ★ 539 repo stars

From the same set: [rerun-build/rerun](https://affpapa.org/en/nevibecode/by/rerun-build/rerun.md) — 25 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
