Design Review — Kiểm tra chất lượng
Các công cụ review và đảm bảo chất lượng design: web guidelines compliance, accessibility, performance.
Công cụ review
| Công cụ | Mô tả | Khi nào dùng |
|---|
web-design-guidelines | Review UI theo Web Interface Guidelines | Sau khi code UI |
accessibility-auditor agent | WCAG 2.1 AA compliance | Trước release |
/qa-full a11y URL | Accessibility scan toàn diện | Testing |
| Chrome DevTools → Lighthouse | Performance + a11y + SEO audit | Sau deploy staging |
design:accessibility-review | Anthropic plugin accessibility | Review design |
Web Design Guidelines
Skill web-design-guidelines review UI code theo best practices:
Trigger khi nói:
- “Review my UI”, “check accessibility”
- “Audit design”, “review UX”
- “Check my site against best practices”
Kiểm tra:
- Semantic HTML structure
- Color contrast ratios
- Touch target sizes
- Keyboard navigation
- Focus management
- Responsive breakpoints
- Loading states
- Error states
Accessibility Checklist
Semantic HTML
- Dùng đúng heading hierarchy (h1 → h2 → h3)
- Dùng
<button> cho interactive elements (không dùng <div onClick>)
- Dùng
<nav>, <main>, <aside> cho landmarks
- Images có
alt text mô tả
Keyboard Navigation
- Tất cả interactive elements có thể Tab đến
- Focus visible rõ ràng (outline)
- Modal trap focus bên trong
- Escape để đóng modal/dropdown
Color & Contrast
- Text contrast ratio ≥ 4.5:1 (AA normal text)
- Large text contrast ≥ 3:1
- Không dùng color alone để truyền thông tin
- Dark mode đảm bảo contrast
ARIA
aria-label cho icon-only buttons
aria-expanded cho accordion/dropdown
role="alert" cho error messages
aria-live cho dynamic content
Dùng Chrome DevTools MCP để chạy Lighthouse audit:
| Metric | Target | Mô tả |
|---|
| Performance | 90+ | Core Web Vitals (LCP, FID, CLS) |
| Accessibility | 95+ | WCAG compliance score |
| Best Practices | 90+ | Security, modern APIs |
| SEO | 90+ | Meta tags, structured data |
Cách chạy:
- Navigate đến trang cần audit
- Dùng
lighthouse_audit tool từ Chrome DevTools MCP
- Review kết quả, fix issues
Quy trình review design
Self-review
Dùng web-design-guidelines skill để review code UI vừa viết.
Accessibility scan
/qa-full a11y https://staging.site.com
Scan WCAG 2.1 AA toàn diện.Lighthouse audit
Dùng Chrome DevTools MCP → lighthouse_audit cho performance + a11y score.
Cross-browser
Test trên Chrome, Firefox, Safari. Dùng responsive mode cho mobile.
Ngoài Lighthouse audit, Chrome DevTools MCP còn cung cấp 3 skills chuyên biệt:
Debug Optimize LCP
Skill chrome-devtools-mcp:debug-optimize-lcp — hướng dẫn debug và tối ưu Largest Contentful Paint:
| Bước | Mô tả |
|---|
| 1. Measure | Đo LCP hiện tại qua Performance trace |
| 2. Identify | Xác định LCP element (image, text block, video) |
| 3. Analyze | Phân tích bottleneck: server response, resource load, render delay |
| 4. Optimize | Suggest fixes: preload, lazy load, image optimization, CDN |
A11y Debugging
Skill chrome-devtools-mcp:a11y-debugging — accessibility debugging theo web.dev guidelines:
| Tính năng | Mô tả |
|---|
| ARIA tree inspection | Kiểm tra accessibility tree |
| Contrast checker | Đo contrast ratio real-time |
| Focus order | Trace tab order qua page |
| Screen reader simulation | Test với screen reader output |
Troubleshooting
Skill chrome-devtools-mcp:troubleshooting — troubleshoot connection và target issues:
| Vấn đề | Giải pháp |
|---|
| MCP connection failed | Check Chrome debug port, restart browser |
| Target not found | List pages, verify URL, select correct tab |
| Script evaluation error | Check content security policy, CORS |
| Performance trace stuck | Kill orphan Chrome processes, retry |
Best practice: Chạy accessibility review trong lúc code (không chờ đến cuối sprint).
Dùng web-design-guidelines skill sau mỗi component mới.