hig-components-dialogs

hig-components-dialogs is a skill for Claude Code, Codex from chama-x/GroundRules. It costs 136 tokens per session (924 once invoked), scanned A, a copy of hig-components-dialogs, MIT.

Apple Human Interface Guidelines for choosing presentation components such as alerts, sheets, popovers, action sheets, and digit-entry views. It explains when each should interrupt the current task or preserve its context.

In plain words
What is it for?
Use it when designing confirmation dialogs, error messages, settings forms, popovers, and action menus for Apple platforms.
Why use it?
It helps prevent confusing or overly disruptive modal interfaces. You can choose a presentation style based on whether users need to acknowledge information, complete a focused task, or pick an action.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/chama-x/groundrules/hig-components-dialogs
Any agent
npx skills add chama-x/GroundRules --skill hig-components-dialogs
Clone the repo
git clone --depth 1 https://github.com/chama-x/GroundRules

Made for: Claude Code, 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 hig-components-dialogs

README.md
[![agentmods](https://agentmods.dev/badge/skills/chama-x/groundrules/hig-components-dialogs.svg)](https://agentmods.dev/skills/chama-x/groundrules/hig-components-dialogs)
Your own site
<a href="https://agentmods.dev/skills/chama-x/groundrules/hig-components-dialogs"><img src="https://agentmods.dev/badge/skills/chama-x/groundrules/hig-components-dialogs.svg" alt="Measured on agentmods" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 924 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00136 $0.00924
Opus 5 $0.00068 $0.00462
Sonnet 5 $0.00027 $0.00185
Haiku 4.5 $0.00014 $0.00092

Measured 4d ago against content hash 53c53ae1b403, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hig-components-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 4d 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.

Origin

This is a copy

100% identical to hig-components-dialogs — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/archive/v3/skill_hig-doctor/skills/hig-components-dialogs/SKILL.md · 77 lines

How it starts

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

Apple HIG: Presentation Components

Check for .claude/apple-design-context.md before asking questions. Use existing context and only ask for information not already covered.

Key Principles

  1. Alerts: sparingly, for critical situations. Errors needing attention, destructive action confirmations, or information requiring acknowledgment. They interrupt flow and demand a response.

  2. Sheets: focused tasks that maintain context. Slides in from the edge (or attaches to a window on macOS). Use for creating items, editing settings, multi-step forms.

  3. Popovers: non-modal on iPad and Mac. Appear next to the trigger element, dismissed by tapping outside. For additional information, options, or controls without taking over the screen.

  4. Action sheets: choosing among actions. Present when picking from multiple actions, especially if one is destructive. iPhone: slide up from bottom. iPad: appear as popovers.

  5. Minimize interruptions. Before reaching for a modal, consider inline presentation or making the action undoable instead.

  6. Concise, actionable alert text. Short descriptive title. Brief message body if needed. Button labels should be specific verbs ("Delete", "Save"), not "OK".

  7. Mark destructive actions clearly. Destructive button style (red text). Place destructive buttons where users are less likely to tap reflexively.

  8. Provide a cancel option for alerts and action sheets with multiple actions. On action sheets, cancel appears at the bottom, separated.

  9. Digit entry: focused and accessible. Appropriately sized input fields, automatic advancement between digits, support for paste and autofill.

  10. Adapt presentation to platform. The same interaction may use different components on iPhone, iPad, Mac, and visionOS.

Reference Index

Reference Topic Key content
alerts.md Alerts Button ordering, title/message text, confirmation, destructive actions
action-sheets.md Action sheets Multiple actions, cancel option, destructive handling
popovers.md Popovers Non-modal, dismiss on tap outside, iPad/Mac
sheets.md Sheets Modal task, context preservation
digit-entry-views.md Digit entry PIN input, autofill, auto-advance

Read the full file on GitHub · 77 lines

Files

What ships with it

5 files 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. 4d ago First seen · 77 lines · 136 tokens per session scan A 53c53ae1b403

Subscribe to this mod's changes

hig-components-dialogs is a skill published in the GitHub repository chama-x/GroundRules (5 stars, last pushed 21d ago), licensed MIT. It adds 136 tokens to every session and 924 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to hig-components-dialogs, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

skin-creator

Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.

netease-youdao/LobsterAI · 48 tokens

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

netease-youdao/LobsterAI · 59 tokens

opencompany-design

Use this skill to generate well-branded interfaces and assets for OpenCompany (opencompany.sh), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

zeenie-ai/OpenCompany · 55 tokens

b2b-desktop-design-system

Generate modern B2B desktop design system specs — tokens, layout, information hierarchy — for Near delivery POC.

DemonDamon/AgenticX · 31 tokens

maintaining-dev-playground

Keeps the Dev Playground current with the application. Use when editing UI components in apps/client/src/ — assesses playground candidacy, checks existing playground coverage, and guides adding or updating showcases. Also use when directly editing files in apps/client/src/dev/, building new widgets or features, or…

dork-labs/dorkos · 95 tokens

visual-companion

Browser-based visual companion for showing mockups, diagrams, comparisons, and interactive options. Use when the user would understand something better by seeing it than reading it.

dork-labs/dorkos · 36 tokens