UI

An opinionated assistant that enforces strict coding standards for React and Tailwind projects to ensure accessible, performant UI.

Install

mkdir -p .claude/skills/ui-skills-ktasl && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9860" && unzip -o skill.zip -d .claude/skills/ui-skills-ktasl && rm skill.zip

Installs to .claude/skills/ui-skills-ktasl

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Apply strict, opinionated UI constraints to any UI work (React/Tailwind) in this conversation.
94 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Enforce Tailwind CSS defaults and class merging
  • Implement accessible component primitives
  • Apply specific typography and layout constraints
  • Manage interaction feedback and animation properties
  • Apply dark mode theme and glassmorphism styling

How it works

The skill enforces a set of strict constraints on UI code, mandating the use of specific utilities like cn for class logic and framer-motion for animations. It dictates specific CSS properties for layout, typography, and interaction feedback to ensure consistency.

Inputs & outputs

You give it
UI code (tsx/css)
You get back
Optimized, accessible, and consistent UI components

When to use ui-skills

  • Writing accessible UI code
  • Ensuring Tailwind consistency
  • Optimizing framer-motion animations
  • Reviewing component styles

About this skill

UI Skills - Opinionated UI Constraints

How to use

When writing or reviewing UI code (tsx/css), strictly follow these constraints.

Stack

  • MUST use Tailwind CSS defaults unless custom values already exist or are explicitly requested.
  • MUST use framer-motion (or motion/react) when JavaScript animation is required.
  • MUST use cn utility (clsx + tailwind-merge) for class logic.

Components

  • MUST use accessible component primitives (Headless UI, Radix, etc.) for complex interactions.
  • MUST use the project’s existing component primitives first.
  • MUST add an aria-label to icon-only buttons.
  • NEVER rebuild keyboard or focus behavior by hand unless explicitly requested.

Interaction

  • MUST use an AlertDialog for destructive or irreversible actions.
  • SHOULD use structural skeletons (pulse) for loading states.
  • NEVER use h-screen, use h-dvh for full viewport height.
  • MUST respect safe-area-inset for fixed elements (especially on mobile).
  • MUST show errors next to where the action happens.
  • NEVER block paste in input or textarea elements.

Animation

  • NEVER add animation unless it is explicitly requested (專案註記:若使用 animate-in utilities from tailwindcss-animate,優先於自訂 JS 動畫)。
  • MUST animate only compositor props (transform, opacity).
  • NEVER animate layout properties (width, height, top, left, margin, padding).
  • SHOULD use ease-out on entrance.
  • NEVER exceed 200ms for interaction feedback.

Typography

  • MUST use text-balance for headings and text-pretty for body/paragraphs (if supported by browser/tailwind version, otherwise standard wrapping).
  • MUST use tabular-nums for data/numbers (Stock prices, percentages).
  • SHOULD use truncate or line-clamp for dense UI.

Layout

  • MUST use a fixed z-index scale (no arbitrary z-[123]).
  • SHOULD use size-* for square elements instead of w-* + h-*.

Project Specific (Lazy Stock)

  • Theme: "Modern, Clean, Slightly Luxurious Dark Mode".
  • Colors: Use slate-900 for background, indigo-400 / purple-400 for accents.
  • Glassmorphism: Use backdrop-blur-md and semi-transparent backgrounds for cards.

When not to use it

  • When rebuilding keyboard or focus behavior is explicitly requested
  • When custom Tailwind values are not already defined

Limitations

  • Cannot use h-screen for full viewport height
  • Cannot animate layout properties like width or height
  • Cannot block paste in input or textarea elements

How it compares

Unlike standard UI development, this skill mandates strict adherence to opinionated constraints and specific utility libraries to prevent inconsistent styling and accessibility issues.

Compared to similar skills

ui-skills side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ui-skills (this skill)02moNo flagsIntermediate
web-design-reviewer77moNo flagsIntermediate
baseline-ui36moNo flagsIntermediate
bencium-innovative-ux-designer15moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

Search skills

Search the agent skills registry