PuPu: Skill for Codex

.agents/skills/dev-ui-modal-standard/SKILL.md

dev-ui-modal-standard is a skill for Codex from haoxiang-xu/PuPu. It costs 66 tokens per session (654 once invoked), scanned A, original, Apache-2.0.

A workflow for making a target modal match the repository's existing Settings and Tools modal style. A modal is a dialog window shown above the current page, including its spacing, text, and close control.

In plain words
What is it for?
Use it to standardise modal spacing, typography, close-button placement and behaviour, corner-radius handling, and empty-state presentation.
Why use it?
Inconsistent dialogs make an interface feel uneven and can confuse users about how controls behave. Copying the repository's established baseline avoids inventing a separate style.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is haoxiang-xu/PuPu's own configuration. It tells Codex how to work on PuPu itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything PuPu configures →

Reuse

Borrowing it

Nothing to install: this file belongs to haoxiang-xu/PuPu. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/haoxiang-xu/PuPu/main/.agents/skills/dev-ui-modal-standard/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/haoxiang-xu/PuPu

Made for: Codex.

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 dev-ui-modal-standard

README.md
[![agentmods](https://agentmods.dev/badge/skills/haoxiang-xu/pupu/dev-ui-modal-standard/github.svg)](https://agentmods.dev/skills/haoxiang-xu/pupu/dev-ui-modal-standard)
Your own site
<a href="https://agentmods.dev/skills/haoxiang-xu/pupu/dev-ui-modal-standard"><img src="https://agentmods.dev/badge/skills/haoxiang-xu/pupu/dev-ui-modal-standard/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 dev-ui-modal-standard

Your own site · 80×15
<a href="https://agentmods.dev/skills/haoxiang-xu/pupu/dev-ui-modal-standard"><img src="https://agentmods.dev/badge/skills/haoxiang-xu/pupu/dev-ui-modal-standard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 654 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.00066 $0.00654
Opus 5.5 $0.00026 $0.00262
Sonnet 5.5 $0.00013 $0.00131
Haiku 4.5 $0.00007 $0.00065

Measured 1mo ago against content hash c5c2e0adae41, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dev-ui-modal-standard 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 1mo 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.

.agents/skills/dev-ui-modal-standard/SKILL.md · 75 lines

How it starts

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

Dev UI: Modal Standard

Overview

Apply the repo's modal baseline from Settings/Tools to a target modal with minimal scope. Lock exact values for close button and title styling unless the user explicitly requests otherwise.

Baseline Sources

Read these files before editing so the standard is copied from the real implementation:

  • src/COMPONENTs/settings/settings_modal.js
  • src/COMPONENTs/toolkit/toolkit_modal.js
  • src/BUILTIN_COMPONENTs/modal/modal.js
  • src/BUILTIN_COMPONENTs/theme/default_mini_theme.json

Standard Spec

Use these values as the default modal standard in this repo:

  1. Modal container
  • Do not hardcode modal corner radius unless explicitly requested.
  • Let modal corner radius come from theme (theme.modal.borderRadius, currently 12).
  1. Close button
  • Use Button close control for Settings/Tools parity (not ModalCloseButton) when standardization is requested.
  • Use exact style values:
    • position: "absolute"
    • top: 12
    • right: 12
    • paddingVertical: 6
    • paddingHorizontal: 6
    • borderRadius: 6
    • opacity: 0.45
    • zIndex: 2
    • content.prefixIconWrap: centered flex with lineHeight: 0
    • content.icon: { width: 14, height: 14 }
  1. Title typography
  • Match Settings title defaults when asked to align title style:
    • fontSize: 22
    • fontWeight: 600
    • fontFamily: "NunitoSans, sans-serif"

Workflow

  1. Audit
  • Inspect the target modal and identify deltas against baseline:
    • close button implementation and offsets
    • modal corner radius source
    • title size/font/weight
    • state-based layout behavior (for example empty-state side panels)
  1. Patch minimally
  • Change only the target modal and only the requested inconsistencies.
  • Preserve existing behavior unless the user asked for behavior changes.
  1. Handle empty-state side panels when requested
  • If user asks to hide detail/sidebar in empty state, conditionally render that block.
  • Default pattern: render the side panel only when state is not empty.
  • Keep loading/error behavior unchanged unless user asks otherwise.

Read the full file on GitHub · 75 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 75 lines · 66 tokens per session scan A c5c2e0adae41

Subscribe to this mod's changes

dev-ui-modal-standard is a skill published in the GitHub repository haoxiang-xu/PuPu (36 stars, last pushed 3d ago), licensed Apache-2.0. It adds 66 tokens to every session and 654 once invoked, about $0.0003 per session on Opus 5.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-09-21.

Related

Other skills, from other repositories

anti-slop-design

Autonomous Principal Design Technologist. Cures vibe-coded software from AI frontend slop using curated token archetypes and 7-axis quality gating.

sickn33/agentic-awesome-skills · 34 tokens

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

open-design-setup

Prepare or repair a project's prototyping environment so open-design can build prototypes with the project's own component library and render them through the project's toolchain. Use when the library target is needed and docs/design/prototyping.md is missing, stale, or failing; excludes HTML-only design work and…

compozy/compozy · 67 tokens

frontend-visual-qa

Audits rendered UI and specific task/object-link handoffs; excludes ordinary source citations alone. Audits already-rendered UI and Markdown/Obsidian image layout — web app, deck/slide, dashboard, design-system, or Electron/native app — via real-browser/native-app journeys and a Playwright sweep. Use after UI…

daymade/claude-code-skills · 125 tokens