ui-design

ui-design is a skill for Claude Code from ckorhonen/claude-skills. It costs 48 tokens per session (2,992 once invoked), scanned A, original, MIT.

A set of design rules for building clear, accessible web interfaces and interactive components.

In plain words
What is it for?
Designing frontend components, animations, loading and error states, responsive layouts, and accessible interactions.
Why use it?
It helps prevent inconsistent layouts, hard-to-use controls, poor keyboard support, and unnecessary styling complexity.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-skills plugin — 62 skills, 4 commands, 7 agents shipped together

Good fit Designing frontend components, animations, loading and error states, responsive layouts, and accessible interactions.

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

Made for: Claude Code.

Or install claude-skills, the plugin that ships this one along with the rest of its 62 skills, 4 commands, 7 agents.

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-design

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ckorhonen/claude-skills/ui-design"><img src="https://agentmods.dev/badge/skills/ckorhonen/claude-skills/ui-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,992 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.00048 $0.02992
Opus 5 $0.00024 $0.01496
Sonnet 5 $0.00010 $0.00598
Haiku 4.5 $0.00005 $0.00299

Measured 9d ago against content hash 198e9ff54bd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 9d 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-design/SKILL.md · 319 lines

How it starts

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

UI Design

Opinionated constraints for building better interfaces with agents.

When to Use

  • Building UI components with Tailwind CSS
  • Implementing animations or transitions
  • Adding interactive elements with keyboard/focus behavior
  • Reviewing frontend code for accessibility
  • Designing layouts with proper z-index and spacing
  • Working with loading states, error handling, or empty states

Stack

Requirement Rule
Tailwind CSS MUST use defaults (spacing, radius, shadows) before custom values
Animation library MUST use motion/react (formerly framer-motion) for JS animation
CSS animation SHOULD use tw-animate-css for entrance and micro-animations
Class logic MUST use cn utility (clsx + tailwind-merge)

Components

Requirement Rule
Interactive primitives MUST use accessible primitives (Base UI, React Aria, Radix) for keyboard/focus behavior
Existing components MUST use project's existing primitives first
Consistency NEVER mix primitive systems within the same interaction surface
New primitives SHOULD prefer Base UI if compatible with stack
Icon buttons MUST add aria-label to icon-only buttons
Custom behavior NEVER rebuild keyboard or focus behavior by hand unless explicitly requested

Interaction

Requirement Rule
Destructive actions MUST use AlertDialog for destructive or irreversible actions
Loading states SHOULD use structural skeletons
Viewport height NEVER use h-screen, use h-dvh
Fixed elements MUST respect safe-area-inset
Error display MUST show errors next to where the action happens
Input behavior NEVER block paste in input or textarea elements

Animation

Requirement Rule
Default NEVER add animation unless explicitly requested
Compositor props MUST animate only transform, opacity
Layout props NEVER animate width, height, top, left, margin, padding
Paint props SHOULD avoid background, color except for small, local UI (text, icons)
Entrance easing SHOULD use ease-out on entrance
Feedback timing NEVER exceed 200ms for interaction feedback
Looping MUST pause looping animations when off-screen
Accessibility MUST respect prefers-reduced-motion
Custom easing NEVER introduce custom easing curves unless explicitly requested
Large surfaces SHOULD avoid animating large images or full-screen surfaces

Read the full file on GitHub · 319 lines

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. 9d ago First seen · 319 lines · 48 tokens per session scan A 198e9ff54bd7

Subscribe to this mod's changes

ui-design is a skill published in the GitHub repository ckorhonen/claude-skills (14 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 2,992 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

design-tokens-transformer

A converter for design tokens, which are named values for colors, fonts, spacing, borders, shadows, and motion. It translates one shared token source into CSS variables and Tailwind or shadcn-style theme files, and can convert them back for checking.

modu-ai/moai-cowork · 255 tokens

design-brand-system

A visual design-system guide for branded web projects. It defines reusable choices such as colors, typography, spacing, components, and design tokens, while checking contrast and other accessibility requirements.

modu-ai/moai-cowork · 130 tokens

design-landing-motion

A workflow for building animated landing pages, including page concepts, visual assets, and scroll-based effects such as parallax or 3D motion.

modu-ai/moai-cowork · 319 tokens

design-workflow

A workflow for bringing design handoff files, design tokens, and project design briefs into a code project. It validates the tokens and loads research, system, and specification notes before interface implementation.

modu-ai/moai-cowork · 159 tokens

doc-design-library

A pointer to a library of 75 brand design systems, each defining choices such as colors, typefaces, spacing, corner shapes, and interface components. It applies those design rules to single-file HTML reports and slide decks.

modu-ai/moai-cowork · 177 tokens

instant-ui

Build a BenAI-branded HTML page in the neo-brutalist instant-ui design language (cream background, near-black ink, 3px hard borders, 6px zero-blur shadows, a blue/green/amber gradient stripe, system font plus SF Mono, weight-900 headings). Use for any BenAI landing page, offer, sales, or pricing page, onboarding or…

naveedharri/benai-skills · 217 tokens