Skip to main content
skill CX Codex

ui-design · mindrally — Claude Code skill: UI rules for your agent

Gives the agent a checklist for interfaces: accessibility, responsive layout, performance. Useful when it writes or reviews frontend code.

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

What ui-design does

The skill turns the agent into a UI reviewer. It carries rules for visual hierarchy, typography, contrast down to WCAG 2.1 AA, semantic HTML and keyboard navigation. Separate sections cover responsive design, forms, mobile-first work and user feedback such as loading indicators and error messages.

There is a technical half too. Relative units instead of fixed pixels, CSS Grid and Flexbox, critical CSS, lazy loading, code splitting. Interactive elements get a stated minimum of 44x44 pixels. Animations should stay sparse, and CSS beats JavaScript where it can.

Use it as a checklist while building or auditing a screen. One catch: the skill does not pick a palette. It asks you for brand guidelines instead. If your project already has tokens, expect the agent to check against them rather than invent its own.

What it helps with

  • audit a layout for contrast and accessibility
  • break a design into responsive breakpoints
  • swap div wrappers for semantic tags
  • set up lazy loading and code splitting
  • build a form with inline validation and clear errors

Example prompts for the agent

  • Review this component against ui-design rules and list the accessibility problems
  • Build a product card responsive, starting from mobile width
  • Rewrite this form with semantic fields, inline validation and helpful error messages

How to install ui-design

1Skills CLI (Vercel)

npx skills add Mindrally/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 do I install ui-design in Claude?

Run npx skills add Mindrally/skills --skill ui-design -a claude-code. The skill file lands at ~/.claude/skills/ui-design/SKILL.md.

What does the ui-design skill do?

It hands the agent a set of UI rules: visual hierarchy, typography, WCAG accessibility, responsive layout, performance and interface feedback. The agent applies them while writing or reviewing frontend code.

Does it work outside Claude?

Yes. The same skill installs into Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode, each with its own command and file path.

Source text

SKILL.md · Apache-2.0
---
name: ui-design
description: UI design best practices for building accessible, performant, and user-friendly interfaces with modern web standards
metadata:
  maintainer: Mindrally
  source: https://github.com/Mindrally/skills
---

# UI Design Best Practices

You are an expert in UI design principles for software development. Apply these guidelines when creating or reviewing user interfaces.

## Visual Design

- Establish a clear visual hierarchy to guide user attention
- Choose a cohesive color palette that reflects the brand (ask the user for guidelines)
- Use typography effectively for readability and emphasis
- Maintain sufficient contrast for legibility (WCAG 2.1 AA standard)
- Ensure consistent styling throughout the application

## Interaction Design

- Create intuitive navigation patterns
- Use familiar UI components to reduce cognitive load
- Provide clear calls-to-action to guide user behavior
- Implement responsive design for cross-device compatibility
- Apply animations sparingly to enhance rather than distract

## Accessibility Standards

- Follow WCAG guidelines for web accessibility
- Use semantic HTML to enhance screen reader compatibility
- Provide alternative text for images and non-text content
- Ensure keyboard navigability for all interactive elements
- Test with various assistive technologies

## Performance Optimization

- Optimize images and assets to minimize load times
- Implement lazy loading for non-critical resources
- Use code splitting to improve initial load performance
- Monitor Core Web Vitals (LCP, FID, CLS)

## User Feedback

- Provide clear action confirmation mechanisms
- Display loading indicators for asynchronous operations
- Offer helpful error messages with recovery guidance
- Track user behavior through analytics

## Information Architecture

- Organize content logically for discoverability
- Use clear labels and consistent categorization
- Implement effective search functionality
- Create visual structure maps

## Mobile-First Approach

- Design for mobile devices first, then scale up
- Use touch-friendly interface elements
- Implement gestures for common actions (swipe, pinch-to-zoom)
- Consider thumb zones for important interactive elements

## Design Consistency

- Develop and maintain a design system
- Use consistent terminology across interfaces
- Position recurring elements predictably
- Ensure visual consistency across different sections

## Testing and Iteration

- Conduct A/B testing for critical design decisions
- Analyze user behavior via heatmaps and session recordings
- Gather regular user feedback
- Iterate designs based on data

## Technical Implementation

- Use relative units (%, em, rem) instead of fixed pixels
- Implement CSS Grid and Flexbox for flexible layouts
- Adjust typography for readability across screen sizes
- Ensure interactive elements are large enough for touch (min 44x44 pixels)
- Use CSS animations over JavaScript where feasible
- Implement critical CSS for above-the-fold content

## Navigation and Forms

- Design mobile-friendly navigation patterns (e.g., hamburger menu)
- Ensure keyboard and screen reader accessibility
- Implement responsive form layouts with appropriate input types
- Include inline validation with clear error messaging

## Testing Requirements

- Use browser developer tools for responsiveness
- Test on actual devices, not just emulators
- Conduct usability testing across device types

Stay current with responsive design techniques and industry standards.

© Mindrally · Apache-2.0 · Mindrally/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 PyModel Frontend design guidelines covering 42 rules across 8 categories. It steers interface code toward WCAG accessibility and Core Web Vitals standards. CX Codex +1 513installs dark-mode-design-expert curiositech A skill for dark mode UI work: atmospheric palettes, WCAG contrast rules and tokens that cover both light and dark schemes. Useful when a theme toggle must not hurt readability. CX Codex +1 304installs frontend-design sickn33 Teaches the agent to create memorable interfaces instead of generic layouts: picks an aesthetic direction, checks accessibility, writes clean code. CX Codex +1 2,600installs Web Design Builder rknall Turns a spec or a plain description into HTML5/CSS/JS, then checks accessibility and behaviour through Playwright MCP. CX Codex +1 416installs frontend-design-direction affaan-m Sets a product-specific direction for web UI and helps check hierarchy, content states, responsive behavior, accessibility, and rendered results. CX Codex +1 5,300installs color-palette-extractor OneWave-AI Pulls dominant colors out of an image, screenshot or website and turns them into a palette with contrast checks. Handy when you need a theme built from a logo or someone else's mockup. CX Codex +1 609installs editorial typeui.sh A skill that turns your agent into an editorial design-system author: serif type scale, 8pt grid, color tokens, component states and accessibility checks. CX Codex +1 2,700installs

From the same set168

elasticsearch-best-practices Provides rules and code patterns for Elasticsearch index mappings, shard planning, and search query optimization directly to your agent. CX Codex +1 999installs numpy-best-practices A skill that gives your agent NumPy ground rules: vectorize instead of looping, pick dtypes, watch memory, use np.linalg. Useful whenever Python code crunches numbers. CX Codex +1 997installs python This skill tells your coding agent how to write Python: PEP 8, type hints, early returns, async for I/O. Useful when the agent edits or generates code in a Python repo. CX Codex +1 983installs nlp-natural-language-processing Technical guidelines for natural language processing tasks using transformers, spaCy, and NLTK. Guides agents on proper tokenization, entity extraction, and vector search. CX Codex +1 980installs internationalization-i18n This skill gives the agent a rulebook for internationalization: translations, locale-aware dates and numbers, RTL layout. Useful when an app ships in more than one language. CX Codex +1 978installs java A skill that tells the agent how to write Java: layered structure, Spring Boot 3.x, JUnit and Mockito tests. Useful when a Java codebase needs one consistent style. CX Codex +1 966installs zustand-state-management Enforces Zustand store best practices in React and TypeScript apps, covering store slices, SSR, and testing. It helps eliminate selector re-renders and hydration bugs. CX Codex +1 959installs typescript Enforces strict TypeScript standards and functional code patterns in your AI assistant. It bans any, replaces enums with maps, and caps function length at 20 lines. CX Codex +1 955installs

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