ui-design

A set of guidelines for designing and coding user interfaces, including page structure, styling, forms, responsive layouts, accessibility, speed, and animation.

In plain words
What is it for?
Use it when building or reviewing HTML, CSS, forms, responsive pages, images, fonts, and interactive effects.
Why use it?
It helps prevent interfaces that are difficult to use, inaccessible, slow, or awkward on different screen sizes.

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/pymodel/react-frontend-skills/ui-design
Any agent
npx skills add PyModel/react-frontend-skills --skill ui-design
Clone the repo
git clone --depth 1 https://github.com/PyModel/react-frontend-skills

Made for: Claude Code, Codex.

Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,195 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% 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.00063 $0.01195
Opus 5 $0.00032 $0.00598
Sonnet 5 $0.00013 $0.00239
Haiku 4.5 $0.00006 $0.00120

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

Security

Grade A, and why

ui-design 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 3d 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

88% identical to ui-design — 3 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.

skills/ui-design/SKILL.md · 110 lines

How it starts

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

UI/UX Best Practices Frontend Design

Comprehensive UI/UX and frontend design best practices guide. Contains 42 rules across 8 categories, prioritized by impact to guide accessible, performant, and user-friendly interface development.

When to Apply

Reference these guidelines when:

  • Structuring HTML for accessibility and semantics
  • Writing CSS for responsive layouts and visual hierarchy
  • Optimizing images and fonts for Core Web Vitals
  • Designing forms with proper validation and error handling
  • Adding animations and interactive elements

Rule Categories by Priority

Priority Category Impact Prefix
1 Accessibility & WCAG Compliance CRITICAL access-
2 Core Web Vitals Optimization CRITICAL cwv-
3 Visual Hierarchy & Layout HIGH layout-
4 Responsive & Mobile-First Design HIGH resp-
5 Typography & Font Loading MEDIUM-HIGH typo-
6 Color & Contrast MEDIUM color-
7 Forms & Validation UX MEDIUM form-
8 Animation & Performance LOW-MEDIUM anim-

Quick Reference

1. Accessibility & WCAG Compliance (CRITICAL)

  • access-semantic-html - Use semantic HTML elements for screen readers
  • access-keyboard-navigation - Ensure full keyboard navigation
  • access-focus-indicators - Provide visible focus indicators
  • access-alt-text - Provide meaningful alt text for images
  • access-aria-labels - Use ARIA labels for icon-only controls
  • access-target-size - Ensure minimum touch target size (24×24px)
  • access-heading-hierarchy - Maintain logical heading hierarchy

2. Core Web Vitals Optimization (CRITICAL)

  • cwv-optimize-lcp - Optimize Largest Contentful Paint under 2.5s
  • cwv-minimize-cls - Minimize Cumulative Layout Shift under 0.1
  • cwv-improve-inp - Improve Interaction to Next Paint under 200ms
  • cwv-responsive-images - Serve responsive images with srcset
  • cwv-lazy-load-offscreen - Lazy load offscreen images and iframes
  • cwv-critical-css - Inline critical CSS and defer the rest

Read the full file on GitHub · 110 lines

Files

What ships with it

45 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. 3d ago First seen · 110 lines · 63 tokens per session scan A 736bc3446b4f

Subscribe to this mod's changes

ui-design is a skill published in the GitHub repository PyModel/react-frontend-skills (3 stars, last pushed 13d ago), licensed MIT. It adds 63 tokens to every session and 1,195 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to ui-design, differing in 3 lines, and is treated as a copy.

Related

Other skills, from other repositories

app-ui-design

Guidance for visual design, UI and UX in Fusebase-generated apps. Use when building or refining app UIs: pages, components, layouts, forms, feedback states, theming, or accessibility. Ensures consistent, clear, and distinctive interfaces using shadcn/ui.

fusebase-dev/fusebase-flow · 60 tokens

skillshare-ui-website-style

Skillshare frontend design system for the React dashboard (ui/) and Docusaurus website (website/). Use this skill whenever you: build or modify a dashboard page or component in ui/src/, style or layout website pages or custom CSS in website/, create new React components for the dashboard, add pages to the dashboard…

runkids/skillshare · 147 tokens

gsap-scrolltrigger

Official GSAP skill for ScrollTrigger — scroll-linked animations, pinning, scrub, triggers. Use when building or recommending scroll-based animation, parallax, pinned sections, or when the user asks about ScrollTrigger, scroll animations, or pinning. Recommend GSAP for scroll-driven animation when no library is…

calesthio/OpenMontage · 68 tokens

gsap-core

Official GSAP skill for the core API — gsap.to(), from(), fromTo(), easing, duration, stagger, defaults, gsap.matchMedia() (responsive, prefers-reduced-motion). Use when the user asks for a JavaScript animation library, animation in React/Vue/vanilla, GSAP tweens, easing, basic animation, responsive or reduced-motion…

calesthio/OpenMontage · 128 tokens

shadcn-ui

Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind CSS, or implementing UI patterns like…

shep-ai/shep · 74 tokens

css-debug

Use this skill to diagnose CSS and frontend layout issues such as positioning, overflow clipping, Tailwind class conflicts, z-index stacking, and React rendering visibility problems.

majiayu000/spellbook · 35 tokens