Basic information
About ui-ux-expert-skill
Technical workflow for implementing accessible React user interfaces with shadcn/ui, Tailwind CSS, and TanStack Query. Includes 6-phase process with mandatory Style Guide compliance, Context7 best practices consultation, Chrome DevTools validation, and WCAG 2.1 AA accessibility standards. Use after Test Agent, Implementer, and Supabase agents complete their work.
ui-ux-expert-skill is an agent skill listed in the AddMCP.net directory, published by fercracix33. Runtime: TypeScript. Source code is hosted on github.com.
Overview
What is ui-ux-expert-skill?
name: ui-ux-expert-skill description: Technical workflow for implementing accessible React user interfaces with shadcn/ui, Tailwind CSS, and TanStack Query. Includes 6-phase process with mandatory Style Guide compliance, Context7 best practices consultation, Chrome DevTools validation, and WCAG 2.1 AA accessibility standards. Use after Test Agent, Implementer, and Supabase agents complete their work.
UI/UX Expert Technical Skill
Version: 1.0.0 Agent: ui-ux-expert Last Updated: 2025-01-26
Purpose
This skill provides the complete technical workflow for implementing accessible, performant React user interfaces that:
- Pass 100% of E2E tests without modification
- Comply with WCAG 2.1 AA accessibility standards
- Follow the project's Style Guide exactly
- Achieve Core Web Vitals green metrics
- Integrate with implemented use cases (not data services directly)
6-PHASE WORKFLOW (MANDATORY)
{board.name}
{/* Conditional rendering based on multiple abilities */} {canManage && ( Manage Board )} {/* Disable button if user cannot perform action */} archiveBoard(board.id)} > ArchiveName: {board.name}
Description: {board.description}
{/* Show sensitive field ONLY if user can read it */}Settings: {JSON.stringify(board.settings)}
Tasks
Manage your tasks and track progress
Context
Creating user interface for [Feature Name]
Work Completed
Pages Created
- {Feature}Page (
app/(main)/{feature}/page.tsx)
- Description of functionality
- Data fetching setup
- Layout composition
Components Created
- {Feature}Form (
features/{feature}/components/{Feature}Form.tsx)
- React Hook Form + Zod validation
- Loading states
- Error handling
- Accessibility: WCAG 2.1 AA compliant
- {Feature}List (
features/{feature}/components/{Feature}List.tsx)
- TanStack Query integration
- Empty states
- Responsive grid
[List all components...]
Technical Decisions
- Component Library: shadcn/ui (Button, Dialog, Form, Card)
- State Management: TanStack Query for server state
- Validation: Zod schemas with zodResolver
- Internationalization: next-intl (no hardcoded strings)
Evidence
E2E Tests
\```bash npm run test:e2e -- --grep "{feature}"
PASS: 12/12 tests ✅
All user flows working
\```
Screenshots
Mobile (375px):  
Tablet (768px):  
Desktop (1440px):  
Accessibility Audit
- [x] Keyboard navigation works (Tab, Enter, Escape, Arrow keys)
- [x] Screen reader compatible (tested with VoiceOver)
- [x] Focus indicators visible
- [x] ARIA labels present on icon buttons
- [x] Color contrast ratios meet WCAG AA (≥4.5:1 text, ≥3:1 UI)
- [x] Form labels properly associated (htmlFor + id)
Style Guide Compliance
- [x] All colors from semantic tokens (no arbitrary hex values)
- [x] Typography from scale (text-xs through text-4xl)
- [x] Spacing from scale (spacing-1 through spacing-24)
- [x] Animation durations: 200ms, 300ms, or 500ms only
- [x] NO traditional CSS (Tailwind utilities only)
Performance Metrics
- Lighthouse Score: 95+ (Performance + Accessibility)
- LCP: 1.8s ✅ (<2.5s target)
- FID: 50ms ✅ (<100ms target)
- CLS: 0.05 ✅ (<0.1 target)
Coverage Against Requirements
| Requirement | Status | Evidence | |------------|--------|----------| | Create {entity} flow | ✅ | E2E test passing | | List view | ✅ | E2E test passing | | Accessibility WCAG AA | ✅ | Audit passed | | Responsive design | ✅ | Screenshots at all breakpoints | | Style Guide compliant | ✅ | No violations found |
Quality Checklist
- [x] All E2E tests passing (100%)
- [x] Style Guide followed exactly
- [x] WCAG 2.1 AA compliance verified
- [x] No hardcoded strings (i18n complete)
- [x] shadcn/ui components used (no custom UI library)
- [x] Chrome DevTools validated
- [x] Screenshots provided (all breakpoints, both modes)
- [x] Cross-browser compatible (Chromium, Firefox, Safari)
Review Status
Submitted: YYYY-MM-DD HH:MM
Architect Review
Status: Pending
User Review
Status: Pending
**Deliverable**: Complete iteration document with screenshots and evidence.
---MCP INTEGRATIONS
Context7 (MANDATORY in Phase 1)
Purpose: Get latest React/Next.js/Tailwind/TanStack Query best practices
Critical queries:
/reactjs/react.dev- React Hooks, component patterns/vercel/next.js- App Router, client components/tailwindlabs/tailwindcss.com- Responsive design, utilities/tanstack/query- Data fetching patterns
shadcn MCP (MANDATORY in Phase 1)
Purpose: Discover shadcn/ui components and composition patterns
Functions:
search_items_in_registries- Find componentsview_items_in_registries- Get component detailsget_item_examples_from_registries- Usage examples
Chrome DevTools (MANDATORY in Phase 4)
Purpose: Visual validation and accessibility audits
Functions:
new_page- Start browser sessionnavigate_page- Go to URLtake_screenshot- Capture visualsevaluate_script- Run JavaScript (e.g., toggle dark mode)
REFERENCES (Load on Demand)
Reference files in references/ provide detailed guidance. Load only when needed:
- react-patterns.md - React Hook patterns, composition strategies
- shadcn-composition.md - shadcn/ui component catalog and usage
- tailwind-responsive.md - Responsive design patterns, breakpoints
- accessibility-wcag.md - WCAG 2.1 AA compliance checklist
- performance-web-vitals.md - Core Web Vitals optimization
- tanstack-query-patterns.md - Data fetching best practices
- form-validation-patterns.md - React Hook Form + Zod integration
- animation-best-practices.md - Framer Motion & Tailwind animations
Example:
User: "How do I implement optimistic updates?"
↓
Read('references/tanstack-query-patterns.md')
↓
Apply optimistic update pattern from reference
SCRIPTS (Automation Helpers)
Scripts in scripts/ automate repetitive tasks. Run when needed:
- take-baseline-screenshots.sh - Capture before-implementation screenshots
- validate-accessibility.sh - Run Lighthouse accessibility audit
- check-style-guide-compliance.sh - Scan for Style Guide violations
- run-e2e-tests.sh - Execute E2E tests for feature
- capture-final-screenshots.sh - Capture after-implementation screenshots
- generate-component-manifest.sh - List all components created
Example:
./scripts/check-style-guide-compliance.sh features/tasks/
# Scans for arbitrary colors, spacing, font sizes
ASSETS (Component Templates)
Templates in assets/ provide starting points. Customize as needed:
- component-templates/page-template.tsx - Page component structure
- component-templates/form-template.tsx - Form with validation
- component-templates/list-template.tsx - Data list pattern
- component-templates/modal-template.tsx - Dialog pattern
- form-examples/simple-form.tsx - Basic form
- form-examples/multi-step-form.tsx - Wizard pattern
- layout-patterns/dashboard-layout.tsx - Dashboard structure
Example:
User: "Create a task creation form"
↓
Read('assets/component-templates/form-template.tsx')
↓
Customize for task-specific fields
↓
Integrate with taskUseCases.createTask
CRITICAL REMINDERS
DO (MANDATORY)
✅ Read Style Guide FIRST (Phase 0) ✅ Consult Context7 + shadcn MCP BEFORE design (Phase 1) ✅ Make E2E tests pass WITHOUT modifying them ✅ Use Chrome DevTools for visual validation ✅ Achieve WCAG 2.1 AA compliance ✅ Use semantic tokens (NO arbitrary values) ✅ Capture screenshots at ALL breakpoints ✅ Document with evidence in iteration file ✅ Wait for Architect + User approval
DO NOT (PROHIBITED)
❌ Implement business logic (use cases handle this) ❌ Modify E2E tests to make them pass ❌ Access data services directly (go through use cases) ❌ Use non-approved libraries (shadcn/ui + Tailwind ONLY) ❌ Write traditional CSS (Tailwind utilities ONLY) ❌ Create inaccessible components (WCAG AA mandatory) ❌ Use arbitrary values outside Style Guide ❌ Skip Context7 consultation ❌ Advance without approval
SUCCESS CRITERIA
Implementation is complete when:
- ✅ 100% E2E tests passing
- ✅ Lighthouse accessibility score >90
- ✅ WCAG 2.1 AA compliant (verified)
- ✅ Core Web Vitals green (LCP <2.5s, FID <100ms, CLS <0.1)
- ✅ Style Guide compliance 100%
- ✅ Cross-browser compatible
- ✅ Screenshots at all breakpoints (mobile, tablet, desktop)
- ✅ Both light and dark modes verified
- ✅ Documented in iteration file
- ✅ Architect + User approval received
This skill ensures UI implementations are accessible, performant, beautiful, and exactly match the project's visual design system.
Videos
Tutorials, guides, and showcases related to ui-ux-expert-skill. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In