--- name: frontend-production-quality description: Use before implementing UI changes or frontend PRs. Enforces TodoWrite with 18+ items. Triggers: "accessibility audit", "WCAG", "Lighthouse", "screen reader", "a11y", "NVDA", "VoiceOver", "keyboard navigation", "focus indicator". For "Core Web Vitals" in frontend/UI context, use this skill. For pure backend/API performance optimization, use performance-optimization instead. If thinking "WIP doesn't need this" - use it anyway. --- # Frontend Production Quality ## MANDATORY FIRST STEP **CREATE TodoWrite** with 3 sections (18+ items total): - **Accessibility (WCAG 2.1 AA)**: 8+ items - **Performance (Core Web Vitals)**: 6+ items - **Evidence Collection**: 4+ items Do not design, implement, or review until TodoWrite is created and verified. --- ## WIP Code is NOT an Exception 🚨 **CRITICAL: If thinking "I'll commit this now and finish accessibility before code review/merge/deploy"** → STOP - 80% of "I'll finish it later" items never get finished - Code review often approves incomplete work under pressure - "WIP" becomes "deployed" without completing deferred items **If you can't complete the work now:** 1. `git stash push -m "WIP: feature - needs accessibility verification"` 2. Finish tomorrow 3. Commit only when complete **Never commit incomplete work.** --- ## Emergency Protocol (10-minute minimum) If production is down and rollback impossible: ``` Emergency Verification (10 min): 1. axe CLI accessibility scan (2 min) 2. Manual functional test + keyboard nav (3 min) 3. Lighthouse audit (2 min) 4. Visual inspection - contrast, focus indicators (3 min) If ANY issues found: DO NOT DEPLOY. Fix first or rollback. ``` Post-deployment (within 24 hours): Full accessibility audit, Core Web Vitals measurement, incident ticket. --- ## Verification Checkpoint After creating TodoWrite, verify 3 random items pass this test: **For each item, ALL THREE must be YES:** - Has concrete numbers/thresholds? (LCP < 2.5s, 4.5:1 contrast, tab order 1-5) - Names specific tools/technologies? (NVDA, WebAIM, Lighthouse, `