/uxcel:ux-modals-and-dialogsfrom Uxcel Skills
Designs or critiques modals, dialogs, alerts, popovers, and bottom sheets. Gates when interrupting users is justified, then applies dismissal, title/button, and focus best practices.
Ships in Uxcel Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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:
Then it hands off to ux-heuristics-audit, ux-accessibility-audit, ux-aesthetics-audit, ux-microcopy-audit, and ux-dark-patterns-audit for validation.
A modal blocks everything. It earns that only for high-stakes moments:
Everything else — success messages, tips, FYIs, promotions — uses non-modal patterns: inline messages, toasts, banners, popovers. Also establish:
If the content fails the high-stakes test, stop designing a modal and recommend the inline/toast alternative.
| Decision | Apply when | Avoid / adapt when | Default recommendation |
|---|---|---|---|
| Popup modal | The standard high-stakes interrupt over dimmed content | Content that needs a whole page | Default modal type |
| Fullscreen modal | Complex focused tasks: multi-step forms, payments, T&Cs, mobile spotlight moments | Simple confirmations (overkill); anything users may need to escape fast — make dismissal obvious | Only when the task genuinely fills a screen |
| Popover | Extra detail/options anchored to an element, without blocking the page | Critical information (too easy to miss) | The non-modal default for contextual help |
| Lightbox | Image/video magnification with navigation, captions, zoom | Non-media content | Media-rich products only |
| Bottom / action sheet (mobile) | Lists of related actions or share targets, per OS convention | Critical confirmations (use an alert/dialog) | Android bottom sheet / iOS action sheet for action lists |
| Success feedback | Inline or on-page states | Success modals — interrupting to say "it worked" | Modal success only if users must acknowledge before continuing |
| Permission requests | In context, at the moment the feature needs it; primed with a pre-permission explainer; one permission at a time; a compelling reason (+81% grant likelihood) | At first launch, in batches, with "Recommended" pressure labels, or mid-task | Prime → contextual ask → graceful path to reverse a denial |
| System-initiated modals | Truly urgent: session expiry, security, data loss | Subscription nags, timed promos, rating begs | Almost never; use banners/badges instead |
Hand-offs name each lens by its installable skill
name. Invoke one only if that skill is installed; if it isn't, this skill's own core already carries these rules — proceed without it rather than blocking.
After generating or revising, hand the result to the audit lenses rather than declaring it done. These are candidate lenses — posture is set by docs/orchestration-policy.md, or route the whole thing through ux-design-review. Here, heuristics, microcopy, and dark-patterns are Tier A (auto-run); accessibility, aesthetics, and mobile-responsiveness are Tier B (offered) — under an existing design system aesthetics is suppressed and accessibility narrows to usage; mobile-responsiveness applies only on mobile. If the user invoked this skill for one specific thing, respect that scope.
ux-heuristics-audit (Tier A) — user control and freedom (exits), error prevention (explicit confirmations), match to expectations (platform conventions).ux-accessibility-audit (Tier B — offer; narrow under a design system) — focus trap correctness, keyboard dismissal, screen-reader announcement, contrast of overlay content.ux-aesthetics-audit (Tier B — offer; suppress under a design system) — modal visual hierarchy, overlay treatment, alert-styling restraint.ux-microcopy-audit (Tier A) — title clarity, button explicitness, body brevity, permission-reason wording.ux-dark-patterns-audit (Tier A) — this skill's interruptions are prime dark-pattern territory: nagging system modals, shame opt-outs, permission pressure, hard-to-find dismissal.ux-mobile-responsiveness-audit (Tier B — offer; applies only on mobile) — when the context is mobile: sheet conventions, dismissal gestures, fullscreen behavior.If the audits surface a conflict (e.g., growth wants a signup modal on page load vs. user control), resolve back toward the primary task: the user was doing something — the modal must either protect that task or get out of its way.
| ❌ Don't | ✅ Do |
|---|---|
| Modal for a success message or a tip | Inline state / toast; modals for high-stakes only |
| Timed subscription popup mid-reading | User-initiated modals; system interrupts only for urgency |
| "Are you sure?" → Yes / No | "Discard draft?" → "Discard" / "Keep editing" |
| Three+ buttons including "Learn more" | Two actions, aligned to the title |
| No × , no Esc, no outside click | Close button + Esc/Back + outside click (when safe) |
| Modal opens on top of another modal | One modal at a time, ever |
| Vital info buried in body text | The title carries the message |
| Permission batch on first launch | Primed, contextual, one-at-a-time requests with reasons |
| "No thanks, I like missing out" | Neutral, respectful opt-out labels |
| Focus stays on the page behind | Focus moves into the modal, onto the primary action |
| Ship without checking | Hand off to heuristics + accessibility + aesthetics + microcopy + dark-patterns |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
modals, dialogs, popups, ux-design, interaction-design, user-experience
npx claudepluginhub uxcel-lab/product-skills --plugin uxcel59 skills in this plugin
/ux-accessibility-auditRun a structured WCAG 2.1 AA accessibility audit on a design, screen, component, or page. Produces a prioritized issue list — each finding cites the violated WCAG criterion, a severity rating (Critical/Major/Minor), and a concrete fix. Use when auditing for a11y compliance or as a validation step after generating UI./ux-activity-feedDesign or critique an activity feed / stream — a scannable list of updates where what matters stands out and noise fades. Gates the feed-type choice (chronological vs. algorithmic/ranked) and levers like notification aggregation, follow recommendations, and per-entry controls, while applying the always-true core (curated entries, legible text, relative timestamps, no empty feed, visible refresh status). Trigger when the user asks to design or review an activity feed, news/social feed, activity stream, notifications feed, or timeline./Other plugins' skills for the same job