ui-skills

Enforce Tailwind CSS and React UI constraints for accessibility and performance.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Alfie728/my-skills --skill ui-skills-alfie728
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ui-skills
Source: https://github.com/Alfie728/my-skills/tree/main/UI
Command: npx skills add https://github.com/Alfie728/my-skills --skill ui-skills-alfie728

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a concise set of opinionated constraints and best-practice rules to help teams build consistent, accessible, and performant user interfaces for agent-powered products. Reduces design ambiguity, prevents regressions, and speeds implementation by setting clear defaults for stack, components, interaction, animation, typography, layout, performance, and design decisions.

Core Features & Use Cases

  • Stack conventions: Mandates Tailwind CSS defaults, motion/react for JS animations, and the cn utility for class logic to keep implementations consistent.
  • Accessible components & interactions: Requires accessible primitives, aria-labels for icon-only controls, AlertDialog for destructive actions, and respecting focus/keyboard behavior to improve usability and compliance.
  • Animation and performance constraints: Limits animations to compositor properties, enforces prefers-reduced-motion, forbids layout- and paint-heavy animations, and discourages expensive visual effects to maintain responsiveness.
  • Design and typography guidelines: Specifies text balancing, tabular numerics for data, fixed z-index scales, safe-area handling, and clear next actions for empty states to align design and engineering decisions.

Quick Start

Use the ui-skills guidelines to review a React + Tailwind codebase and produce a prioritized implementation plan that enforces accessibility, animation, and performance rules.

Frequently Asked Questions about ui-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize React and Tailwind CSS components for accessibility and performance?

To standardize React and Tailwind CSS components, apply opinionated constraints mandating accessible primitives, aria-labels for icon-only controls, AlertDialog for destructive actions, and compositor-only animations to enforce consistency and performance.

What are the best practices for animation performance in React user interfaces?

Best practices for animation performance dictate using motion/react for JS animations, enforcing prefers-reduced-motion, forbidding layout- and paint-heavy animations, and limiting animations to compositor properties to maintain UI responsiveness.

Do I need Tailwind CSS to enforce consistent UI typography and layout rules?

Yes, Tailwind CSS is required to enforce consistent UI typography and layout rules, providing the baseline defaults for text balancing, tabular numerics, fixed z-index scales, and safe-area handling across your frontend project.

How do I ensure accessible interaction patterns in agent user interfaces?

To ensure accessible interaction patterns in agent user interfaces, require accessible component primitives, apply aria-labels to icon-only controls, use AlertDialog for destructive actions, and respect focus and keyboard behavior.

Why does my React UI performance degrade during heavy visual animations?

React UI performance degrades during heavy visual animations because layout- and paint-heavy animations block the main thread, which is why you must limit animations to compositor properties and enforce prefers-reduced-motion support.