--- name: frontend-engineering description: Accessible, performant, responsive UI patterns. Component design, state management discipline, and Core Web Vitals compliance. category: build applies-to: [claude, gemini, cursor, copilot, any] version: 1.0.0 --- ## Overview Frontend code touches every user. Poor UI engineering causes accessibility barriers, performance degradation, and broken experiences on non-standard devices. This skill enforces the discipline of building UI that works for everyone. ## When to Use - Building any user-facing UI component - Reviewing frontend PRs - Before any UI ships to production ## Process ### Step 1: Accessibility First 1. Every interactive element has a visible focus state. 2. All images have meaningful alt text (or `alt=""` for decorative). 3. Color contrast ratio ≥ 4.5:1 for normal text. 4. All functionality operable by keyboard alone. 5. Use semantic HTML: `