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.
git clone --depth 1 https://github.com/event4u-app/agent-confignpx agentmods add skills/event4u-app/agent-config/existing-ui-auditWrote 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.
[](https://agentmods.dev/skills/event4u-app/agent-config/existing-ui-audit)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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-intelligenceanswers 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"(intentui-buildorui-improve) - A
mixedflow 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_auditfor this state-file — the gate round-trips through SUCCESS onceaudit_pathis 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.)
What ships with it
16 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.
- evals/triggers.json 2.0 KB
- procedure.yaml 1.6 KB
- references/anti-slop-cross-reference.md 1.9 KB
- references/component-taxonomy-detection.md 3.1 KB
- references/steps/00-inspect-stack-and-input.md 307 B
- references/steps/01-enumerate-components.md 1.4 KB
- references/steps/01b-detect-component-taxonomy.md 907 B
- references/steps/02-identify-design-system.md 780 B
- references/steps/03-detect-design-tokens.md 2.5 KB
- references/steps/04-detect-shadcn-inventory.md 904 B
- references/steps/04b-live-storybook-read.md 1.9 KB
- references/steps/05-list-reusable-patterns.md 718 B
- references/steps/06-match-candidates.md 2.8 KB
- references/steps/07-greenfield-branch.md 1.9 KB
- references/steps/08-a11y-baseline.md 1.5 KB
- references/steps/09-validate-and-write.md 430 B
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.
- 1mo ago Changed · -260 lines 075755436eb4
- 1mo ago Changed · -2 lines dcc77ff26696
- 2mo ago Changed 01f31b01f13c
- 2mo ago Changed · +15 lines eed7c0985b48
- 2mo ago Changed · +10 lines 2b177ca39a48
- 2mo ago Changed · +43 lines 4f04d33f3e72
- 2mo ago Changed · -2 tokens per session fabc9b8757fc
- 3mo ago First seen · 331 lines · 44 tokens per session scan A f98e466cf5aa
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.
existing-ui-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| existing-ui-auditevent4u-app/agent-config | Skill | 20 | today | MIT | A | 42 | Claude Code, Codex |
| animation-vocabularyemilkowalski/skills | Skill | 63k | 2d ago | MIT | A | 98 | Claude Code |
| huashu-designalchaincyf/huashu-design | Skill | 32k | today | MIT | A | 140 | Claude Code, Codex |
| remove-animationsemilkowalski/skills | Skill | 63k | 2d ago | MIT | B | 127 | Claude Code |
| ui-designer/html-prototypeechoVic/boss-skill | Skill | 631 | 5d ago | MIT | A | 30 | Claude Code |
| interaction-skillcode-yeongyu/oh-my-openagent | Skill | 71k | today | none | A | 104 | Claude Code, Codex |
| layout-skillcode-yeongyu/oh-my-openagent | Skill | 71k | today | none | A | 88 | Claude Code, Codex |