ux-modals-and-dialogs

ux-modals-and-dialogs is a skill for Claude Code from Uxcel-Lab/product-skills. It costs 87 tokens per session (2,178 once invoked), scanned A, original, MIT.

A design guide for modals, dialogs, alerts, popovers, and bottom sheets—temporary layers that interrupt or cover the main interface. It first checks whether interrupting the user is justified, then addresses purpose, choices, closing, and focus.

In plain words
What is it for?
Use it to design or review confirmations, alerts, permission requests, popups, overlays, lightboxes, dialogs, and bottom sheets.
Why use it?
It helps avoid unnecessary interruptions, unclear confirmation requests, and overlays that trap users or make it hard to return to their task.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the uxcel plugin — 58 skills shipped together

Good fit Use it to design or review confirmations, alerts, permission requests, popups, overlays, lightboxes, dialogs, and bottom sheets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/uxcel-lab/product-skills/modals-and-dialogs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Uxcel-Lab/product-skills --skill modals-and-dialogs
Clone the repo
git clone --depth 1 https://github.com/Uxcel-Lab/product-skills

Made for: Claude Code.

Or install uxcel, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ux-modals-and-dialogs

README.md
[![agentmods](https://agentmods.dev/badge/skills/uxcel-lab/product-skills/modals-and-dialogs/github.svg)](https://agentmods.dev/skills/uxcel-lab/product-skills/modals-and-dialogs)
Your own site
<a href="https://agentmods.dev/skills/uxcel-lab/product-skills/modals-and-dialogs"><img src="https://agentmods.dev/badge/skills/uxcel-lab/product-skills/modals-and-dialogs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ux-modals-and-dialogs

Your own site · 80×15
<a href="https://agentmods.dev/skills/uxcel-lab/product-skills/modals-and-dialogs"><img src="https://agentmods.dev/badge/skills/uxcel-lab/product-skills/modals-and-dialogs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,178 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.02178
Opus 5 $0.00044 $0.01089
Sonnet 5 $0.00017 $0.00436
Haiku 4.5 $0.00009 $0.00218

Measured 10d ago against content hash 05ca6157fca8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

ux-modals-and-dialogs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ux/components/modals-and-dialogs/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Modals & Dialogs Skill

How this skill behaves (read first)

This is a generative skill. The default failure modes: interrupting for everything (modals for success messages, tips, newsletters — attention spent like it's free), trapping users (no visible close, no Esc, stacked modals), and vague choices ("Are you sure?" → Yes/No). A modal takes the whole interface hostage — that's justified only in high-stakes moments, and the price is paid back with crystal-clear purpose and effortless exit. This skill gates:

  1. Gate the interruption itself — is a modal even justified here? The most important decision happens before any design.
  2. Apply the always-true core — purpose in the title, explicit buttons, easy dismissal, focus management.
  3. Surface the type and timing decisions (popup/fullscreen/popover/bottom sheet, permission priming) with trade-offs.

Then it hands off to ux-heuristics-audit, ux-accessibility-audit, ux-aesthetics-audit, ux-microcopy-audit, and ux-dark-patterns-audit for validation.


Step 0 — Gate the interruption (the decision that matters most)

A modal blocks everything. It earns that only for high-stakes moments:

  • Confirming destructive or irreversible actions (delete account, discard draft) — show impact ("12 files will be deleted").
  • Critical errors or warnings (system restart, unsaved changes at risk).
  • Information required to continue the current task (login to save, payment details).

Everything else — success messages, tips, FYIs, promotions — uses non-modal patterns: inline messages, toasts, banners, popovers. Also establish:

  • Who triggers it? User-initiated modals (clicked a button) are expected; system-initiated modals (timed popups, upgrade nags) interrupt without warning — avoid unless truly urgent (session expiry, critical update).
  • Timing — never interrupt high-stakes flows in progress (mid-checkout is the classic crime).
  • Platform — desktop alert vs. iOS alert / Android dialog conventions; bottom/action sheets for mobile action lists.

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 122 lines · 87 tokens per session scan A 05ca6157fca8

Subscribe to this mod's changes

ux-modals-and-dialogs is a skill published in the GitHub repository Uxcel-Lab/product-skills (10 stars, last pushed 2mo ago), licensed MIT. It adds 87 tokens to every session and 2,178 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pm-brand-motion

A guided process for defining a brand's motion style and making a logo animation demonstration.

konglong87/superPM · 77 tokens

pm-proto

A product-prototyping workflow for planning how an application should work and what its screens should contain. It connects product requirements to interface layouts and interactions.

konglong87/superPM · 55 tokens

diagram-design

Create branded architecture, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, Venn, pyramid/funnel, treemap, bar, line, Gantt and scatter charts, high-level…

aiskillstore/marketplace · 188 tokens

design-mobile-apps

Use when the user wants to design a mobile app or UI screens, when they mention their Sleek (sleek.design) projects, or when implementing Sleek designs in code (HTML, React Native, SwiftUI).

aiskillstore/marketplace · 49 tokens

dengguang-zhaoming-bikeng-zhinan

A Chinese-language knowledge guide about home lighting, including ceiling lights, light strips, color temperature, color rendering, and room zoning.

aiskillstore/marketplace · 99 tokens

appllama-app-design-skill

Build native-feeling, benchmark-quality mobile app screens (Expo / React Native). Use when designing or implementing any mobile UI — screens, flows, onboarding, paywalls, tab bars, sheets, settings, empty states — or when polishing motion, navigation, typography, dark mode, or perceived performance. Enforces Apple HIG…

aiskillstore/marketplace · 184 tokens