ui-conventions

ui-conventions is a skill for Claude Code, Codex from willdady/platypus. It costs 61 tokens per session (962 once invoked), scanned A, original, MIT.

A set of frontend rules for choosing components for empty, filtered, and failed-to-load states. An empty state is the message and controls shown when a screen or list has no content.

In plain words
What is it for?
Use it when adding or changing screens, lists, sections, pickers, or widgets that may contain no data or fail to load.
Why use it?
It prevents different parts of an application from using inconsistent empty-state components. It also distinguishes a whole screen from a section, filtered list, picker, or data widget.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding or changing screens, lists, sections, pickers, or widgets that may contain no data or fail to load.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/willdady/platypus/ui-conventions
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 willdady/platypus --skill ui-conventions
Clone the repo
git clone --depth 1 https://github.com/willdady/platypus

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 ui-conventions

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/willdady/platypus/ui-conventions"><img src="https://agentmods.dev/badge/skills/willdady/platypus/ui-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 962 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.00061 $0.00962
Opus 5.5 $0.00024 $0.00385
Sonnet 5.5 $0.00012 $0.00192
Haiku 4.5 $0.00006 $0.00096

Measured 2d ago against content hash 9f5796e4774e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui-conventions 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 2d 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/ui-conventions/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.

Frontend UI Conventions

Empty states

Every empty state renders through one of two components, picked by what the empty thing is on the page:

The empty thing is… Component Examples
A screen's main content: a settings page, a top-level list EmptyCard Providers, MCP, Sandbox, Webhooks, A2A endpoints, Organization Skills, Blueprints, Agents, Members
A section within a page, or a list filtered to nothing ListState variant="empty" Workspace home Skills / Dashboards / Boards / Triggers, "No skills match your filters", A2A tokens
A picker or command list inside a popover CommandEmpty Command menu, timezone and model pickers
A widget tile with no data the widget's own placeholder "No data yet" in dashboard widgets

The same list can take both: SkillsList shows EmptyCard on the Organization Skills screen and ListState inside the workspace home section. A border-dashed div in a diff is the tell of a hand-rolled empty state; route it through one of the two components instead.

A screen that failed to load uses EmptyCard too, titled Couldn't load … (trigger runs, plugins, FetchErrorNotice). A list's read failure is ListError, which stays unbordered because it also renders inside dialogs and chat.

EmptyCard

components/empty-card.tsx: icon, title, description, action.

  • Icon: the bare Lucide icon the sidebar uses for that screen (lib/settings-links.ts, components/org-settings-menu.tsx), no size class (the frame sizes it). A concept keeps one icon everywhere it appears; MCP is Wrench, even on the Organization surface.
  • Title: No X configured for things you set up or connect (providers, MCP servers, sandbox, webhooks, endpoints); No X yet for things users author or that accumulate (skills, blueprints, agents, invitations, runs). No trailing period.
  • Description: what the thing is for, or why you'd want one. It adds to the title rather than restating it. At Organization scope, say where it goes next: "Add a provider here, then attach it to the workspaces that should use it."
  • Action: the buttons that fill the gap, main one first with the default (solid) variant, the rest outline (Attach shared, Import). The same buttons render once: inside the card while the list is empty, below the list (all outline) once it has rows. Build them as one actions element and place it by emptiness — see resource-list.tsx, skills-list.tsx.
  • Read-only viewer: no button, and the description names who can act — "Ask an organization admin to add one." for admin-gated resources, "Only the workspace owner can add one." for Owner-only ones (Org Admins see other Workspaces read-only). A card with nothing to do, like Organization Agents (shared agents only arrive by Promote), explains how one arrives instead.

Read the full file on GitHub · 75 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. 2d ago First seen · 75 lines · 61 tokens per session scan A 9f5796e4774e

Subscribe to this mod's changes

ui-conventions is a skill published in the GitHub repository willdady/platypus (120 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 962 once invoked, about $0.0002 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-10-14.