frontend-ui-engineering

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

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill frontend-ui-engineering-pikachu0310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-ui-engineering
Source: https://github.com/pikachu0310/codex-agent-ops-public/tree/main/.agents/skills/frontend-ui-engineering
Command: npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill frontend-ui-engineering-pikachu0310

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI-generated UI often looks generic, ignores accessibility requirements, and breaks on different screen sizes. This Skill provides concrete engineering standards for building interfaces that meet WCAG 2.1 AA accessibility, follow real design systems, and avoid the recognizable "AI aesthetic" of purple gradients and stock layouts. ## Core Features & Use Cases - Component Architecture Patterns: Enforces composition over configuration, colocated file structures, and separation of data fetching from presentation in React/TypeScript components. - Accessibility Compliance: Provides concrete patterns for keyboard navigation, ARIA labels, focus management, and meaningful empty/error states that meet WCAG 2.1 AA. - Design System Adherence: Guides use of spacing scales, semantic color tokens, typography hierarchy, and responsive breakpoints instead of arbitrary values. - Use Case: When asked to build a task management page, apply this Skill to produce a component with skeleton loading states, optimistic updates via React Query, keyboard-accessible controls, and a mobile-first responsive grid tested at 320px through 1440px. ## Quick Start Build a responsive, accessible task list component with loading, error, and empty states following the project's 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 a custom element is unavoidable, add role="button", tabIndex={0}, and handle Enter and Space key events explicitly.

How to structure React components for large applications?

Colocate each component with its tests, stories, hooks, and types in a single folder. Prefer composition over configuration props, keep components under 200 lines, and separate data-fetching container components from presentational components.

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

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

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 or information.

Why does AI-generated UI look generic and how to avoid it?

AI defaults to purple gradients, excessive rounding, uniform card grids, and oversized padding. Avoid this by using the project's actual color palette, consistent spacing scale, design-system border radii, and realistic content instead of placeholder text.

What breakpoints should responsive layouts be tested at?

Test at 320px, 768px, 1024px, and 1440px using a mobile-first approach. Start with a single-column layout and expand with responsive utilities like sm:grid-cols-2 and lg:grid-cols-3 as screen width increases.