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.zipInstalls 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.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
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(ormotion/react) when JavaScript animation is required. - MUST use
cnutility (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-labelto icon-only buttons. - NEVER rebuild keyboard or focus behavior by hand unless explicitly requested.
Interaction
- MUST use an
AlertDialogfor destructive or irreversible actions. - SHOULD use structural skeletons (pulse) for loading states.
- NEVER use
h-screen, useh-dvhfor full viewport height. - MUST respect
safe-area-insetfor 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-inutilities fromtailwindcss-animate,優先於自訂 JS 動畫)。 - MUST animate only compositor props (
transform,opacity). - NEVER animate layout properties (
width,height,top,left,margin,padding). - SHOULD use
ease-outon entrance. - NEVER exceed 200ms for interaction feedback.
Typography
- MUST use
text-balancefor headings andtext-prettyfor body/paragraphs (if supported by browser/tailwind version, otherwise standard wrapping). - MUST use
tabular-numsfor data/numbers (Stock prices, percentages). - SHOULD use
truncateorline-clampfor dense UI.
Layout
- MUST use a fixed z-index scale (no arbitrary
z-[123]). - SHOULD use
size-*for square elements instead ofw-* + h-*.
Project Specific (Lazy Stock)
- Theme: "Modern, Clean, Slightly Luxurious Dark Mode".
- Colors: Use
slate-900for background,indigo-400/purple-400for accents. - Glassmorphism: Use
backdrop-blur-mdand 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ui-skills (this skill) | 0 | 2mo | No flags | Intermediate |
| web-design-reviewer | 7 | 7mo | No flags | Intermediate |
| baseline-ui | 3 | 6mo | No flags | Intermediate |
| bencium-innovative-ux-designer | 1 | 5mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
web-design-reviewer
github
This skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design", "check the UI", "fix the layout", "find design problems". Detects issues with responsive design, accessibility, visual consistency, and layout breakage, then performs fixes at the source code level.
baseline-ui
agentset-ai
Enforces an opinionated UI baseline to prevent AI-generated interface slop.
bencium-innovative-ux-designer
bencium
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
theme-system
btriapitsyn
Use when creating or modifying UI components, styling, or visual elements in OpenChamber. All UI colors must use theme tokens - never hardcoded values or Tailwind color classes.
frontend-system
ZroZoom
UI/UX expert. Use for creating components, styling (Tailwind), accessibility, and translations (I18n). Trigger when: create a component, change appearance, add a chart, translate, stwórz komponent, zmień wygląd, dodaj wykres, przetłumacz.
userinterface-wiki
raphaelsalaja
UI/UX best practices for web interfaces. Use when reviewing animations, CSS, audio, typography, UX patterns, prefetching, or icon implementations. Covers 11 categories from animation principles to typography. Outputs file:line findings.