frontend-ui-engineering

Builds accessible, responsive React components following design system conventions.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/raishoemi/traffic-sim-v2 --skill frontend-ui-engineering-raishoemi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-ui-engineering
Source: https://github.com/raishoemi/traffic-sim-v2/tree/main/.github/skills/frontend-ui-engineering
Command: npx skills add https://github.com/raishoemi/traffic-sim-v2 --skill frontend-ui-engineering-raishoemi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? AI-generated interfaces often look generic, ignore accessibility standards, and break on different screen sizes. This Skill provides concrete patterns for building React components that follow a project's design system, meet WCAG 2.1 AA accessibility requirements, and handle loading, error, and empty states properly. ## Core Features & Use Cases - Component Architecture Guidance: Enforces composition over configuration, colocated file structure, and separation of data fetching from presentation. - Accessibility Standards: Provides keyboard navigation, ARIA labeling, and focus management patterns that satisfy WCAG 2.1 AA. - Design System Adherence: Helps avoid the generic "AI aesthetic" (purple gradients, excessive rounding, stock layouts) by enforcing spacing scales, semantic color tokens, and type hierarchy. - Use Case: When building a new dashboard page in a React app, use this Skill to structure components, wire up state management correctly, and verify the result is keyboard-accessible and responsive at 320px through 1440px. ## Quick Start Ask the agent to build a new React component or page for the traffic simulator UI and have it follow the frontend UI engineering guidelines for accessibility and responsive design.

Frequently Asked Questions about frontend-ui-engineering

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

FAQPage Schema
How do I build accessible React components?

Use semantic HTML elements like button instead of div for interactions, add aria-label to icon-only controls, and manage focus when dialogs open. Verify by tabbing through the page and testing with a screen reader against WCAG 2.1 AA criteria.

How to choose state management in a React app?

Start with useState for local UI state, lift state for 2-3 sibling components, and use Context for read-heavy values like theme or auth. Use URL search params for shareable filters, React Query for server data, and Zustand or Redux only for complex app-wide state.

What is the difference between container and presentational components?

Container components handle data fetching, loading, and error states, while presentational components only render props. Separating them keeps rendering logic testable and lets you swap data sources without changing the UI.

Does this approach work with Tailwind CSS?

Yes, the guidance uses Tailwind-style utility classes for responsive mobile-first layouts and semantic tokens. The principles of spacing scales, type hierarchy, and color tokens apply regardless of the styling solution.

Why does AI-generated UI look generic?

Models default to purple palettes, heavy gradients, uniform card grids, and oversized padding regardless of the actual design system. Avoiding these patterns and using the project's real tokens and spacing scale produces interfaces that match the product's identity.

When should a React component be split into smaller components?

Split components that exceed roughly 200 lines, handle multiple responsibilities, or require prop drilling deeper than three levels. Composition and focused single-purpose components keep the tree maintainable.