existing-ui-audit

existing-ui-audit is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 42 tokens per session (2,411 once invoked), scanned A, original, MIT.

A required inventory of an existing user interface before substantial UI work begins, covering components, design tokens, reusable building blocks, and patterns.

In plain words
What is it for?
It helps answer what UI elements already exist and records which ones should be reused during a redesign or new interface feature.
Why use it?
It helps developers reuse what the project already has instead of creating duplicate interface pieces or inconsistent styles.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [`design-intelligence`](../design-intelligence/SKILL.md) answers *what to.

Good fit It helps answer what UI elements already exist and records which ones should be reused during a redesign or new interface feature.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config
agentmods
npx agentmods add skills/event4u-app/agent-config/existing-ui-audit

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 existing-ui-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/existing-ui-audit/github.svg)](https://agentmods.dev/skills/event4u-app/agent-config/existing-ui-audit)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/existing-ui-audit"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/existing-ui-audit/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 existing-ui-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/existing-ui-audit"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/existing-ui-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,411 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00042 $0.02411
Opus 5.5 $0.00017 $0.00964
Sonnet 5.5 $0.00008 $0.00482
Haiku 4.5 $0.00004 $0.00241

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

Security

Grade A, and why

existing-ui-audit 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.

src/skills/existing-ui-audit/SKILL.md · 137 lines

How it starts

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

existing-ui-audit

Interplay: this audit answers what exists (components, tokens, primitives → state.ui_audit); design-intelligence answers what to build (corpus-grounded style/token/typography/pattern selection for the brief). Audit runs first, and its reuse findings outrank corpus suggestions — never let a grounded recommendation introduce a new component the inventory already covers.

When to use

Use this skill when:

  • The dispatcher has routed work to directive_set="ui" (intent ui-build or ui-improve)
  • A mixed flow is about to enter its UI phase
  • The user asks "what UI do we already have for X?"

Do NOT use when:

  • directive_set="ui-trivial" — the trivial path bypasses audit by precondition (≤1 file, ≤5 lines, no new component, no new state, no new dep)
  • directive_set="backend" — no UI surface to inventory
  • The audit findings already exist in state.ui_audit for this state-file — the gate round-trips through SUCCESS once audit_path is set, and does not re-run for the life of that state-file (see Gotchas for what that does and does not cover)

Resource-first context gate (design fidelity)

Any request to recreate, redesign, mock, prototype, or improve a UI runs this gate BEFORE styling — the Inspect stage of the design-artifact lifecycle. Design starts from project truth, not generic aesthetic memory.

  • Search first (owned UI). Before proposing anything, search the project for: design tokens, global CSS, the component library / design system (§ 2), supplied screenshots or exported design context, Figma/exported context when connected, assets (logos, icons, fonts), and copy tone. Procedure steps 1–5 produce this inventory — do not skip them for a "quick" redesign.
  • Hard stop on a promised-but-inaccessible source. When the user explicitly references a design system, local folder, Figma file, or codebase you cannot read, STOP and ask for access — never invent a design from memory to paper over the missing source. A promised source that can't be reached is a blocking question (ask-when-uncertain), not a licence to improvise. (fixture: daf-inaccessible-design-system.)
  • Source priority — code beats screenshots. For exact values (tokens, spacing, component props) the design-system/code context is authoritative; a screenshot conveys gestalt but is not enough for component/token fidelity. Never read pixel values off a screenshot when the source is available.
  • Tool composition — inspect before you generate. Owned UI → repository search + local files FIRST. Connected/imported design data (Figma, tokens export) → that connector next, when available. Browser / image search → only for public references or current product/place imagery, never a substitute for inspecting owned code. Generated imagery → only when the user asks for synthetic assets, or no real inspection is required. (fixtures: daf-no-context, daf-missing-asset.)

Read the full file on GitHub · 137 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. 1mo ago Changed · -260 lines 075755436eb4
  2. 1mo ago Changed · -2 lines dcc77ff26696
  3. 2mo ago Changed 01f31b01f13c
  4. 2mo ago Changed · +15 lines eed7c0985b48
  5. 2mo ago Changed · +10 lines 2b177ca39a48
  6. 2mo ago Changed · +43 lines 4f04d33f3e72
  7. 2mo ago Changed · -2 tokens per session fabc9b8757fc
  8. 3mo ago First seen · 331 lines · 44 tokens per session scan A f98e466cf5aa

Subscribe to this mod's changes

existing-ui-audit is a skill published in the GitHub repository event4u-app/agent-config (20 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 2,411 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-09-03.

Related

existing-ui-audit compared with skills from other repositories

existing-ui-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
existing-ui-auditevent4u-app/agent-configSkill20todayMITA42Claude Code, Codex
animation-vocabularyemilkowalski/skillsSkill63k2d agoMITA98Claude Code
huashu-designalchaincyf/huashu-designSkill32ktodayMITA140Claude Code, Codex
remove-animationsemilkowalski/skillsSkill63k2d agoMITB127Claude Code
ui-designer/html-prototypeechoVic/boss-skillSkill6315d agoMITA30Claude Code
interaction-skillcode-yeongyu/oh-my-openagentSkill71ktodaynoneA104Claude Code, Codex
layout-skillcode-yeongyu/oh-my-openagentSkill71ktodaynoneA88Claude Code, Codex