Skip to main content
skill CX Codex

confirm-destructive-actions — Claude Code skill: rules and setup

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.

AGPL-3.0 ★ 1,120 updated 2026-11-16

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add rerun-build/rerun --skill confirm-destructive-actions -a claude-code
Open on GitHub

What confirm-destructive-actions 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.

What it helps with

  • 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 for the agent

  • 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.

How to install confirm-destructive-actions

1Skills CLI (Vercel)

npx skills add rerun-build/rerun --skill confirm-destructive-actions -a claude-code

2Manually: put the files in place

~/.claude/skills/confirm-destructive-actions/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/confirm-destructive-actions/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about confirm-destructive-actions

How do I install confirm-destructive-actions in Claude Code?

Run npx skills add rerun-build/rerun --skill confirm-destructive-actions -a claude-code. The skill file is at ~/.claude/skills/confirm-destructive-actions/SKILL.md.

What does confirm-destructive-actions do?

It sets rules for confirming risky UI actions with a dialog and explains when to use ConfirmDialog or AlertDialog.

Where should a dialog go when its trigger is in a DropdownMenu?

Place it outside the DropdownMenu and control its open state.

Similar skills

All skills for Frontend and UI →
hig-components-dialogs raintree-technology hig-components-dialogs is a Claude Code skill that applies Apple HIG guidance to alerts, sheets, popovers, and digit-entry views. It activates when a task involves choosing or designing a presentation component. CX Codex +1 783installs platform-destructive-deploy forcedotcom The platform-destructive-deploy Claude Code skill removes metadata from a Salesforce org through a destructive deploy. It activates for requests to delete an object, field, Apex class, or other org component. CX Codex +1 2,900installs docker-destructive-guardrails docker The docker-destructive-guardrails skill makes the agent name exactly what will be deleted and get your confirmation before any destructive Docker command runs. CX Codex +1 1,700installs commit-confirm LegendApp commit-confirm is a Claude Code skill that inspects the project, proposes a commit plan, and waits for approval before touching Git. CX Codex +1 397installs grep-for-mock-module-across-the-entire-test-file-and-confirm-eve ZaxbyHub grep-for-mock-module-across-the-entire-test-file-and-confirm-eve is a Claude Code skill that checks every mock.module call in a test file for real-export spreads during a Vitest-to-Bun migration. CX Codex +1 ★ 539repo stars confirm-failures-are-causally-linked-to-the-task-before-reportin ZaxbyHub confirm-failures-are-causally-linked-to-the-task-before-reportin is a Claude Code skill that separates pre-existing test failures from new regressions before rejecting work. CX Codex +1 ★ 539repo stars

From the same set25

The whole set →
security-fix The security-fix Claude Code skill keeps vulnerability fixes in a private GitHub Security Advisory fork. It activates for security audit findings, private reports, or a pre-push rejection tied to vulnerability-related wording. CX Codex +1 ★ 1,120repo stars i18n-strings The i18n-strings Claude Code skill routes Rerun interface text through its translation setup. It activates for UI copy changes, date and number formatting, namespace extraction, or adding a language. CX Codex +1 ★ 1,120repo stars split-components The split-components Claude Code skill breaks up oversized component files into focused modules. It applies when a .tsx file grows crowded or before a new component is created. CX Codex +1 ★ 1,120repo stars sort-components The sort-components Claude Code skill sorts UI components into folders by feature. It activates when adding a component or reorganizing apps/ui/components/. CX Codex +1 ★ 1,120repo stars loading-skeletons A Claude Code skill for building loading skeletons that match each component’s layout. It applies when adding a loading state or replacing a spinner in a content area. CX Codex +1 ★ 1,120repo stars investigate-bug investigate-bug — a skill for Claude Code that gathers evidence and traces a bug to its cause before a fix is written. It starts on bug reports, incidents, customer complaints, or requests to reproduce an issue. CX Codex +1 ★ 1,120repo stars form-field-labels form-field-labels — a Claude Code skill routes form titles through the shared Field component. It activates when adding or redesigning a field in apps/ui. CX Codex +1 ★ 1,120repo stars create-dialog The create-dialog Claude Code skill sets patterns for creating and redesigning app dialogs. Short forms use a basic frame; lists that open detail views use a panel with stepped navigation. CX Codex +1 ★ 1,120repo stars

Project sponsors

Companies that keep this analytics open