ui-css-performance

ui-css-performance is a skill for Codex from zacharygcook/agent-skills. It costs 51 tokens per session (388 once invoked), scanned A, original, MIT.

A guide for keeping user-interface code, CSS, and frontend dependencies small and focused. CSS controls how web pages look, while frontend dependencies are external code packages used by the application.

In plain words
What is it for?
It helps choose existing UI components, add only needed code and packages, keep utility classes discoverable, control CSS scanning, and run checks for unused code, dependencies, types, and builds.
Why use it?
It helps prevent unused components, oversized stylesheets, unnecessary packages, and inefficient configuration from accumulating as the interface changes.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It helps choose existing UI components, add only needed code and packages, keep utility classes discoverable, control CSS scanning, and run checks for unused code, dependencies, types, and builds.

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

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 ui-css-performance

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zacharygcook/agent-skills/ui-css-performance"><img src="https://agentmods.dev/badge/skills/zacharygcook/agent-skills/ui-css-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 388 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.00051 $0.00388
Opus 5 $0.00026 $0.00194
Sonnet 5 $0.00010 $0.00078
Haiku 4.5 $0.00005 $0.00039

Measured 8d ago against content hash 51636253b230, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ui-css-performance 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 8d 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.

skills/ui-css-performance/SKILL.md · 33 lines

What it actually says

UI and CSS Performance

Add the smallest UI surface that solves the real task and measure the result when bundle or stylesheet size may change.

Core Rules

  • Prefer an existing component or simple local markup before adding a new reusable primitive.
  • Add only component-library primitives that product code actually imports.
  • Delete dormant components, providers, hooks, forms, and wrappers; source scanners may include them even when the JavaScript bundle does not.
  • Declare every directly imported package and remove packages whose final consumer disappears.
  • Keep utility-class names as static strings or finite maps of complete strings. Avoid dynamically assembled class fragments that scanners cannot discover reliably.
  • Do not broaden content globs, enable plugins, or import global styles without measuring their effect.
  • Keep admin/editor CSS out of public routes unless those routes need it.

New Primitive Checklist

  1. Confirm no existing primitive already fits.
  2. Add only the primitive and direct dependencies it needs.
  3. Import it from real application code in the same change.
  4. Run the repository's UI lint, unused-code/dependency scan, typecheck, and build.
  5. If it remains unused, remove it instead of suppressing the check.

Measure

Use repository-native build and bundle tooling. Compare the relevant route chunks and emitted CSS before and after when the change adds a library, plugin, global stylesheet, animation system, icon set, or broad content glob. Record units and whether sizes are raw, minified, or compressed.

If exact bundle tooling is unavailable, report that limitation and use bounded evidence such as emitted asset sizes and import reachability. Do not claim a performance win without measurement.

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. 8d ago First seen · 33 lines · 51 tokens per session scan A 51636253b230

Subscribe to this mod's changes

ui-css-performance is a skill published in the GitHub repository zacharygcook/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 388 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

waitlist-page

Minimal pre-launch landing with email capture, brand logo, and optional decorative layer. Reads DESIGN.md for colors, typography, and layout rules. Best for: product launches, beta signups, early access programs, indie projects.

nexu-io/open-design · 49 tokens

web-prototype

General-purpose desktop web prototype. Single self-contained HTML file built by copying the seed assets/template.html and pasting section layouts from references/layouts.md. Default for any landing / marketing / docs / SaaS page when no more specific skill matches.

nexu-io/open-design · 59 tokens

webgl-particle-galaxy

A real-time particle galaxy — tens of thousands of additive-blended GPU points spiraling around a bright core, their orbits solved entirely in the vertex shader (from glVertexID), so the whole cloud draws in one call. Rendered as a single self-contained index.html. Use when the brief asks for a "particle field"…

nexu-io/open-design · 126 tokens

webgl-liquid-metal

A real-time liquid-metal shader — a domain-warped noise field shaded as molten chrome, with a sweeping specular highlight over an iridescent thin-film (cosine-palette) sheen. No textures. Rendered as a single self-contained index.html. Use when the brief asks for "liquid metal", "molten chrome", "iridescent"…

nexu-io/open-design · 121 tokens

webgl-neon-grid

A real-time synthwave scene — a perspective floor grid scrolling toward a banded retro sun under a neon starfield, all from one fragment shader. No textures. Rendered as a single self-contained index.html. Use when the brief asks for "synthwave", "outrun", "retro 80s", "neon grid", "perspective grid", "vaporwave", or…

nexu-io/open-design · 115 tokens

webgl-depth-gallery

A scroll-reactive 3D image gallery in Three.js: Z-stacked images crossfade over per-image mood backgrounds with velocity breath, a glowing cursor trail and an editorial CMYK/RGB/HEX/PMS color card.

nexu-io/open-design · 51 tokens