Skip to main content
skill CX Codex

ui-design · pymodel — Claude Code skill: what it does, how to install

Frontend design guidelines covering 42 rules across 8 categories. It steers interface code toward WCAG accessibility and Core Web Vitals standards.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add PyModel/react-frontend-skills --skill ui-design -a claude-code
Open on GitHub

What ui-design does

The skill directs AI assistants on frontend layout, accessibility, and speed. It groups guidance into 8 prioritized tiers, putting WCAG compliance and Core Web Vitals ahead of visual styling and motion.

Inside are 42 distinct rules. Each is identified by category prefixes such as access-, cwv-, and resp-. For every rule, the agent pulls detailed guidance from references/<rule-id>.md showing incorrect versus correct code.

The system relies heavily on the accompanying references/ directory. Without those files present in the project, the model only gets the top-level checklist. That is a clear reason to keep the full repository structure intact.

What it helps with

  • audit HTML markup against WCAG accessibility requirements
  • meet Core Web Vitals targets for LCP, CLS, and INP
  • implement fluid typography using CSS clamp()
  • configure form validation UX with inline errors after field blur

Example prompts for the agent

  • Build an accessible modal dialog following the access- and layout- guidelines
  • Review this checkout form against form-inline-validation and form-input-types rules
  • Optimize our hero section markup to meet cwv-optimize-lcp and cwv-minimize-cls

How to install ui-design

1Skills CLI (Vercel)

npx skills add PyModel/react-frontend-skills --skill ui-design -a claude-code

2Manually: put the files in place

~/.claude/skills/ui-design/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ui-design/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ui-design

How to install ui-design in Claude Code?

Run npx skills add PyModel/react-frontend-skills --skill ui-design -a claude-code. This installs the skill file to ~/.claude/skills/ui-design/SKILL.md.

What does the ui-design skill do?

It provides a prioritized 42-rule frontend guide covering 8 categories. It focuses heavily on web accessibility, Core Web Vitals, responsive layouts, and form UX.

How are individual rules structured?

Each rule maps to a dedicated document under references/<rule-id>.md. That file explains why the rule matters and shows incorrect versus correct code implementations.

Source text

SKILL.md · MIT
---
name: ui-design
description: Accessible, responsive frontend UI and UX design.
---

# 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

### 3. Visual Hierarchy & Layout (HIGH)

- `layout-visual-hierarchy` - Establish clear visual hierarchy
- `layout-whitespace` - Use whitespace to improve readability
- `layout-f-pattern` - Design for F-pattern reading behavior
- `layout-grid-system` - Use a consistent grid system
- `layout-single-cta` - Establish a clear primary action per task context
- `layout-proximity-grouping` - Group related elements with proximity

### 4. Responsive & Mobile-First Design (HIGH)

- `resp-mobile-first` - Design mobile-first with min-width queries
- `resp-fluid-typography` - Use fluid typography with clamp()
- `resp-container-queries` - Use container queries for components
- `resp-touch-targets` - Size touch targets for mobile (44×44px)
- `resp-viewport-meta` - Configure viewport meta tag correctly

### 5. Typography & Font Loading (MEDIUM-HIGH)

- `typo-font-display` - Use font-display to control loading behavior
- `typo-preload-fonts` - Preload critical web fonts
- `typo-readable-line-length` - Constrain line length (45-75ch)
- `typo-line-height` - Set appropriate line height (1.5-1.7)
- `typo-system-font-stack` - Use system font stack for UI elements

### 6. Color & Contrast (MEDIUM)

- `color-contrast-ratio` - Meet WCAG contrast ratio requirements (4.5:1)
- `color-not-only-indicator` - Never use color alone to convey information
- `color-dark-mode` - Support dark mode with prefers-color-scheme
- `color-semantic-palette` - Use semantic color names in design tokens

### 7. Forms & Validation UX (MEDIUM)

- `form-inline-validation` - Use inline validation after field blur
- `form-error-messages` - Write actionable error messages
- `form-labels-above` - Place labels above input fields
- `form-input-types` - Use correct HTML input types for mobile
- `form-autocomplete` - Enable browser autocomplete with correct attributes

### 8. Animation & Performance (LOW-MEDIUM)

- `anim-gpu-properties` - Animate only GPU-accelerated properties
- `anim-will-change` - Use will-change sparingly for animation hints
- `anim-reduced-motion` - Respect user motion preferences
- `anim-duration-easing` - Use appropriate animation duration and easing

## How to Use

Read `references/<rule-id>.md` for each rule above that matches the task: why it matters, then incorrect vs. correct code.

© PyModel · MIT · PyModel/react-frontend-skills

Similar skills

Everything for Frontend and UI →

ui-design by other authors comes first.

ui-design mblode Picks a visual direction, writes the interface code, and audits what shipped for user-facing defects. Useful when you need a landing page or a dark mode pass. CX Codex +1 1,400installs ui-design frappe A skill that gives the agent design rules for layout, type, color and spacing. Useful when no product design-system skill exists. CX Codex +1 832installs ui-design TencentCloudBase Makes the agent output a design specification — palette, fonts, layout — before it writes any interface code. CX Codex +1 1,800installs ui-design Mindrally Gives the agent a checklist for interfaces: accessibility, responsive layout, performance. Useful when it writes or reviews frontend code. CX Codex +1 981installs design-review plugin87 The skill scores a screen or flow across six weighted dimensions, runs Nielsen's heuristics and returns a prioritized findings table. CX Codex +1 594installs mobile-first-website-design Kiren Srinivasan A skill that walks the agent through landing and marketing pages: style-free structure first, identity second, implementation from the narrowest width up. CX Codex +1 318installs responsive-design Owl-Listener A skill that steers your coding agent toward layouts and interactions that hold up across screen sizes and input methods. CX Codex +1 2,300installs ux-design Mindrally A skill that hands your coding agent a set of UX rules, from user research to accessibility and responsive layout. Useful when you design or review an interface. CX Codex +1 1,100installs bencium-controlled-ux-designer bencium Guides visual choices for web interfaces before code changes begin. Use it when building components, pages, or applications that need accessibility checks. CX Codex +1 4,600installs ux-designer szilu A skill for reviewing and building interfaces: it checks accessibility, screen states and microcopy, and supplies the numbers for spacing and contrast. CX Codex +1 1,600installs

From the same set10

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor