frontend-ui-engineering

Builds accessible, responsive, production-quality user interfaces following design system standards.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/yourlabpt/yourlabpt_website --skill frontend-ui-engineering-yourlabpt
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: frontend-ui-engineering
Source: https://github.com/yourlabpt/yourlabpt_website/tree/main/projects/skills/frontend-ui-engineering
Command: npx skills add https://github.com/yourlabpt/yourlabpt_website --skill frontend-ui-engineering-yourlabpt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI-generated UI often looks generic, ignores accessibility requirements, and breaks down on real content. This Skill guides the construction of user-facing interfaces that meet WCAG 2.1 AA accessibility standards, follow the project's actual design system, and handle loading, error, and empty states properly. ## Core Features & Use Cases - Component Architecture Guidance: Enforces composition over configuration, colocated file structures, and separation of data fetching from presentation. - Accessibility Compliance: Provides concrete patterns for keyboard navigation, ARIA labels, focus management, and meaningful empty/error states meeting WCAG 2.1 AA. - Design System Adherence: Helps avoid the generic "AI aesthetic" (purple gradients, excessive rounding, stock card grids) by enforcing spacing scales, typography hierarchy, and semantic color tokens. - Use Case: When building a new task management page, use this Skill to structure components correctly, implement responsive layouts across 320px–1440px breakpoints, add skeleton loading states, and verify keyboard accessibility before shipping. ## Quick Start Build a responsive, accessible task list page with proper loading, error, and empty states following our design system.

Frequently Asked Questions about frontend-ui-engineering

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

FAQPage Schema
How do I make React components accessible for keyboard users?▼

Use native interactive elements like <button> instead of <div> with onClick, since they are focusable by default. If you must use a div, add role="button", tabIndex={0}, and handle both Enter and Space key events. Always verify by tabbing through the page.

How to structure React components for a production application?▼

Colocate component files (implementation, tests, stories, hooks) in a single folder, prefer composition over configuration props, and separate data-fetching container components from presentational components. Keep components under 200 lines and focused on one responsibility.

When should I use Context vs Zustand vs React Query for state management?▼

Use useState for local UI state, Context for read-heavy values like theme or auth, URL search params for shareable filters and pagination, React Query or SWR for remote server data, and Zustand or Redux only for complex client state shared app-wide.

What contrast ratio does WCAG 2.1 AA require for text?▼

WCAG 2.1 AA requires a 4.5:1 contrast ratio for normal text and 3:1 for large text. Use semantic color tokens rather than raw hex values, and never rely on color alone to convey state—pair it with icons or text.

Why does AI-generated UI look generic and how do I avoid it?▼

AI defaults to purple/indigo palettes, excessive gradients, maximum border rounding, and stock card grids. Avoid this by using the project's actual design system tokens, consistent spacing scales, realistic content instead of lorem ipsum, and purpose-driven layouts.

What breakpoints should I test for responsive design?▼

Test at 320px, 768px, 1024px, and 1440px. Design mobile-first using progressive enhancement—for example, Tailwind's grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 pattern—rather than retrofitting desktop layouts for small screens.