Agent skill

Rezi Modal Dialogs

by RtlZeroMemory in RtlZeroMemory/Rezi

Add modal dialogs and overlay UI with focus trapping. An agent skill from RtlZeroMemory/Rezi.

Apache-2.0Auto-check passedFrontend & Design

Install Rezi Modal Dialogs

skills CLI
$ npx skills add RtlZeroMemory/Rezi --skill rezi-modal-dialogs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install RtlZeroMemory/Rezi rezi-modal-dialogs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/RtlZeroMemory/Rezi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/rezi-modal-dialogs .claude/skills/rezi-modal-dialogs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rezi-modal-dialogs
GitHub stars
675
Token cost
~731 tokens
SKILL.md length
143 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
Apache-2.0

At a glance

Add modal dialogs and overlay UI with focus trapping. An agent skill from RtlZeroMemory/Rezi.

  • Works in 3 steps: Use ui.modal() directly with a… → Overlay ordering note → Dialog action intent note
  • Implementing confirmations
  • SKILL.md covers When to use, Source of truth, Steps and Verification
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Rezi Modal Dialogs is an agent skill from RtlZeroMemory/Rezi. Add modal dialogs and overlay UI with focus trapping. Use when implementing confirmations, alerts, or layered interfaces.

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design. The repository describes itself as: Build TypeScript TUI backed by fast native rendering engine. The licence is Apache-2.0.

When your agent uses it

  • Implementing confirmations
  • Layered interfaces

Example prompts

  • “/rezi-modal-dialogs”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Edit, Write

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Use ui.modal() directly with a state-controlled flag
  2. Overlay ordering note
  3. Dialog action intent note

What it can do on your machine

Read from SKILL.md and the folder at commit 671a8a2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Edit
    • Write

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rezi Modal Dialogs loads about 731 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 143 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~731

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from RtlZeroMemory/Rezi at commit 671a8a2, republished under its Apache-2.0 licence (© RtlZeroMemory). 143 words, ~731 tokens.

Download SKILL.mdSave it as .claude/skills/rezi-modal-dialogs/SKILL.md (or your agent's skills folder).
name
rezi-modal-dialogs
description
Add modal dialogs and overlay UI with focus trapping. Use when implementing confirmations, alerts, or layered interfaces.
allowed-tools
Read, Glob, Grep, Edit, Write
user-invocable
true
argument-hint
[modal-type]
metadata.short-description
Add modal dialogs

When to use

Use this skill when:

  • Adding confirmation dialogs, alerts, or prompts
  • Building layered/overlay UI
  • Need focus trapping within a dialog

Source of truth

  • packages/core/src/widgets/useModalStack.ts — useModalStack() hook
  • packages/core/src/widgets/types.ts — ModalProps, LayersProps
  • packages/core/src/widgets/ui.ts — ui.modal(), ui.layers()
  • packages/core/src/ui/recipes.ts — recipe.modal() and recipe.surface() for design-system-consistent modal styling

Steps

  1. Use useModalStack() inside a defineWidget:
    typescript
    const modals = useModalStack(ctx);
    
    // Push a modal
    modals.push("confirm", {
      title: "Confirm",
      content: body,
      onClose: () => modals.pop(),
    });
    
    // Include in view
    return ui.layers([mainContent, ...modals.render()]);
Option B: ui.modal (simple single modal)
  1. Use ui.modal() directly with a state-controlled flag:

    typescript
    return ui.layers([
      mainContent,
      ...(state.showModal
        ? [
            ui.modal({
              id: "confirm-modal",
              title: "Confirm",
              initialFocus: "confirm-ok",
              returnFocusTo: "open-confirm",
              onClose: () => app.update((s) => ({ ...s, showModal: false })),
              content: ui.text("Are you sure?"),
              actions: [
                ui.button({
                  id: "confirm-cancel",
                  label: "Cancel",
                  intent: "secondary",
                  onPress: () => app.update((s) => ({ ...s, showModal: false })),
                }),
                ui.button({
                  id: "confirm-ok",
                  label: "OK",
                  intent: "primary",
                  onPress: () => app.update((s) => ({ ...s, showModal: false })),
                }),
              ],
            }),
          ]
        : []),
    ]);
  2. Overlay ordering note:

    • Modal, dropdown, and toast overlays share unified z-ordering through the LayerRegistry.
    • Prefer ui.layers([...]) as the common overlay composition root.
  3. Dialog action intent note:

    • Use intent to communicate action semantics in modal/dialog button rows.
    • Recommended mapping: confirm/continue -> primary, cancel/back -> secondary, destructive -> danger, positive approval -> success, cautionary acknowledgment -> warning.

Verification

  • Modal opens and closes correctly
  • Focus traps within the modal (Tab doesn't escape)
  • Focus returns to previous element on close

© RtlZeroMemory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/rezi-modal-dialogs of RtlZeroMemory/Rezi.

Open the folder on GitHubat commit 671a8a2

Compare with similar skills

Rezi Modal Dialogs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rezi Modal Dialogs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rezi Modal Dialogs this skillRtlZeroMemory/Rezi675—~731Automated safety check: PassApache-2.0
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
React Doctormakeplane/plane61k12 repos~657Automated safety check: PassAGPL-3.0
Impeccablebestofjs/bestofjs3.1k27 repos~2.6kAutomated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Web Interface Guidelines Reviewervercel-labs/openreview1.7k97 repos~308Automated safety check: PassNone

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • React Doctor

    makeplane/plane

    Scans React code for lint, accessibility, bundle size and architecture issues, reports a health score and checks that changes do not lower it.

    61k GitHub starsUsed in 12 repos~657 tokens
    Frontend & DesignAuto-check passed
  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 27 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Web Interface Guidelines Reviewer

    vercel-labs/openreview

    Official

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my…

    1.7k GitHub starsUsed in 97 repos~308 tokens
    Frontend & DesignAuto-check passed
  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed

More from RtlZeroMemory/Rezi

All 10 skills in this repo
  • Rezi Add Widget

    RtlZeroMemory/Rezi

    Add a new widget type to the Rezi framework. An agent skill from RtlZeroMemory/Rezi.

    675 GitHub stars~815 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Create Screen

    RtlZeroMemory/Rezi

    Create a new screen/page for a Rezi TUI application. An agent skill from RtlZeroMemory/Rezi.

    675 GitHub stars~982 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Data Table

    RtlZeroMemory/Rezi

    Add a data table with sorting, selection, and keyboard navigation.

    675 GitHub stars~480 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Debug Rendering

    RtlZeroMemory/Rezi

    Debug rendering and layout issues in Rezi apps. An agent skill from RtlZeroMemory/Rezi.

    675 GitHub stars~991 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Forms

    RtlZeroMemory/Rezi

    Set up form input handling with validation and submission. An agent skill from RtlZeroMemory/Rezi.

    675 GitHub stars~831 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Keybindings

    RtlZeroMemory/Rezi

    Set up keyboard shortcuts and chord bindings for a Rezi app.

    675 GitHub stars~497 tokensUpdated 3 mo ago
    Auto-check passed

Questions about Rezi Modal Dialogs

What does Rezi Modal Dialogs do?

Add modal dialogs and overlay UI with focus trapping. An agent skill from RtlZeroMemory/Rezi. Rezi Modal Dialogs is an agent skill from RtlZeroMemory/Rezi. Add modal dialogs and overlay UI with focus trapping.

When should I use Rezi Modal Dialogs?

Rezi Modal Dialogs fits situations like: implementing confirmations; layered interfaces.

How do I install Rezi Modal Dialogs in Claude Code?

Run `npx skills add RtlZeroMemory/Rezi --skill rezi-modal-dialogs -a claude-code`. Or copy the skill folder (.codex/skills/rezi-modal-dialogs in RtlZeroMemory/Rezi) into .claude/skills/rezi-modal-dialogs in your project. Claude Code loads it when a task matches its description.

How do I install Rezi Modal Dialogs in Codex?

Run `npx skills add RtlZeroMemory/Rezi --skill rezi-modal-dialogs -a codex`. Or copy the skill folder (.codex/skills/rezi-modal-dialogs in RtlZeroMemory/Rezi) into .agents/skills/rezi-modal-dialogs in your project. Codex loads it when a task matches its description.

Can I use Rezi Modal Dialogs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add RtlZeroMemory/Rezi --skill rezi-modal-dialogs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rezi-modal-dialogs, .gemini/skills/rezi-modal-dialogs, .github/skills/rezi-modal-dialogs and .opencode/skills/rezi-modal-dialogs in your project.

What does Rezi Modal Dialogs need to run?

SKILL.md names no scripts, command-line tools or credentials: Rezi Modal Dialogs is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep, Edit, Write.

Does Rezi Modal Dialogs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Rezi Modal Dialogs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rezi Modal Dialogs use?

Rezi Modal Dialogs is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rezi Modal Dialogs use?

About 731 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rezi Modal Dialogs?

Skills that share tags, products or a category with Rezi Modal Dialogs: Web Artifacts Builder (anthropics/skills, 180k stars), React Doctor (makeplane/plane, 61k stars), Impeccable (bestofjs/bestofjs, 3.1k stars) and Figma Design System Builder (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rezi Modal Dialogs?

RtlZeroMemory (a GitHub user) maintains it in RtlZeroMemory/Rezi, which has 675 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on June 17, 2026.

Source: RtlZeroMemory/Rezi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.