HƯỚNG DẪN SỬ DỤNG UI-UX PRO MAX SKILL - TỪ A-Z
Repo gốc: https://github.com/nextlevelbuilder/ui-ux-pro-max-skill - 138.2k stars, 14.6k forks (21/10/2026), MIT license Phiên bản scan: quét 2026-09 (bản đầu ghi “v2.13.0”, nhưng v2.13.0 phát hành 03/08/2026). Đối chiếu 21/10/2026 với release mới nhất v2.15.0 (13/08/2026): các con số dưới không đổi; package CLI vẫn là
ui-ux-pro-max-cli. - 1 skill duy nhất nhưng chứa 192 Reasoning Rules + 79 Styles + 192 Palettes + 74 Font Pairings + 34 Landing Patterns + 25 Chart Types + 119 UX Guidelines + 22 Tech Stacks Tác giả: NextLevelBuilder - https://uupm.cc Tương thích: Claude Code, Cursor, Windsurf, Copilot, Codex, Antigravity, OpenCode, Kiro, Trae, Gemini CLI, Qoder, CodeBuddy, Droid, Warp… (19 platforms) - specskill.json:platformsFile này: Hướng dẫn tiếng Việt nghiên cứu sâu - khi nào dùng domain nào, stack nào, riêng lẻ hay combo, dự án mới vs dự án có sẵn.
MỤC LỤC
- UI-UX Pro Max là gì? - Không phải 50 skill rời mà là 1 engine
- Cài đặt
- Kiến trúc - Design System Generator + 12 Domains + 22 Stacks
- 12 Domains - Khi nào dùng cái nào
- 22 Stacks - Viết đúng stack mới ra code dùng được
- Workflow chuẩn 4 bước (từ template chính thức)
- Design Dials - 3 núm vặn tinh chỉnh
- Persist - Master + Overrides (lưu hệ thống thiết kế xuyên session)
- Khi nào dùng riêng lẻ vs combo?
- Lộ trình DỰ ÁN MỚI (từ 0 -> design system -> code)
- Lộ trình DỰ ÁN ĐÃ TỒN TẠI (audit -> fix -> nâng cấp)
- Ma trận ra quyết định - Tôi muốn làm X -> dùng gì
- 7 Combo kinh điển
- Pre-delivery Checklist & bẫy thường gặp
- Nâng cấp, premium vs basic, troubleshooting
- Dùng thực tế trong team (đã thử 27/10/2026)
- Ghép với plugin frontend-design
1. UI-UX PRO MAX LÀ GÌ? - KHÔNG PHẢI 50 SKILL RỜI MÀ LÀ 1 ENGINE
Khác với marketingskills (53 skills rời), repo này chỉ có 1 skill duy nhất ui-ux-pro-max (skill.json:name) nhưng bên trong là một design intelligence engine với:
| Thành phần | Số lượng | File nguồn | Chức năng |
|---|---|---|---|
| Reasoning Rules | 192 rules theo ngành | src/ui-ux-pro-max/data/ui-reasoning.csv | Sinh design system tự động theo product type |
| UI Styles | 79 searchable (50 active, 29 supplemental) | src/ui-ux-pro-max/data/styles.csv | Glassmorphism, Claymorphism, Brutalism, Bento Grid… |
| Color Palettes | 192 palettes 1:1 với product types | src/ui-ux-pro-max/data/colors.csv | Mỗi ngành có palette riêng (light/dark, semantic tokens) |
| Font Pairings | 74 cặp | src/ui-ux-pro-max/data/typography.csv | Kèm Google Fonts URL + CSS import + Tailwind config |
| Landing Patterns | 34 patterns (Hero, Funnel, Pricing…) | src/ui-ux-pro-max/data/landing.csv | Cấu trúc section, CTA placement, conversion tips |
| Chart Types | 25 loại | src/ui-ux-pro-max/data/charts.csv | Line, Bar, Pie, Heatmap… + library đề xuất |
| UX Guidelines | 119 rules | src/ui-ux-pro-max/data/ux-guidelines.csv | Animations, layout, a11y, resilient text, cancellable interactions |
| Icon Catalog | 105 curated + 1,512 upstream Phosphor | src/ui-ux-pro-max/data/icons.csv | Import code Phosphor/Heroicons, semantic roles |
| Google Fonts | 1,934 approved + 8 exclusions | src/ui-ux-pro-max/data/google-fonts.csv | Lookup chi tiết |
| Motion (GSAP) | 17 snippets theo tier | src/ui-ux-pro-max/data/motion.csv | Hover, scroll reveal, stagger, page transition, parallax |
| Tech Stacks | 22 stacks | src/ui-ux-pro-max/data/stacks/*.csv | React, Next.js, Vue, SwiftUI, Flutter… guidelines |
| Google Fonts Licenses | 1,934 licenses | google-font-licenses.json | Provenance |
Công cụ tìm kiếm: src/ui-ux-pro-max/scripts/search.py + core.py (BM25 + regex hybrid) + design_system.py (reasoning engine).
Điểm khác biệt lớn nhất: Không phải bạn chọn thủ công từng màu/font, mà engine tự suy luận - bạn chỉ cần nói “beauty spa wellness” và nó trả về complete design system (pattern + style + colors + typography + effects + anti-patterns + checklist).
2. CÀI ĐẶT
Cách 1: CLI (khuyên dùng)
# Cài CLI global
npm install -g ui-ux-pro-max-cli
# Vào project của bạn
cd /path/to/your/project
# Cài cho từng AI assistant
uipro init --ai claude # Claude Code
uipro init --ai cursor # Cursor
uipro init --ai windsurf # Windsurf
uipro init --ai codex # Codex CLI
uipro init --ai opencode # OpenCode <- dùng cho OpenCode
uipro init --ai copilot # GitHub Copilot
uipro init --ai antigravity # Antigravity
uipro init --ai universal # Chuẩn chung -> .agents/skills/
uipro init --ai all # Cài hết cho mọi assistant đang có
# Không muốn cài global
npx ui-ux-pro-max-cli init --ai claude
Lưu ý: Package là
ui-ux-pro-max-cli(tạo lệnhuipro), không phảiuipro-clicũ. (README.md:Installation)
Cách 2: Claude Marketplace (chỉ Claude Code)
/plugin marketplace add nextlevelbuilder/ui-ux-pro-max-skill
/plugin install ui-ux-pro-max@ui-ux-pro-max-skill
Cách 3: Global install (dùng cho mọi project)
uipro init --ai claude --global # -> ~/.claude/skills/
uipro init --ai universal --global # -> ~/.agents/skills/
Quản lý
uipro versions # List versions
uipro update # Refresh từ CLI package
uipro update --global # Refresh global
uipro uninstall # Auto-detect platform
uipro uninstall --ai claude # Gỡ riêng
uipro uninstall --global # Gỡ global
# Preview không ghi file
uipro init --dry-run
uipro init --offline # Dùng bundled templates
Yêu cầu
- Python 3.x (chỉ stdlib, không cài thêm gì, không gọi network) - dùng cho
scripts/search.py. AI agent không được tự cài Python, phải hỏi bạn trước. (CLAUDE.md:Prerequisites) - Kiểm tra:
python3 --version(Windows dùngpython) - Nếu lỗi “response exceeded output token maximum” -> chia nhỏ task, hoặc
export CLAUDE_CODE_MAX_OUTPUT_TOKENS="64000"rồi restart Claude Code.
Gọi skill thế nào cho chắc chạy
- Gọi đích danh: gõ
/ui-ux-pro-maxhoặc ghi rõ “dùng skill ui-ux-pro-max” trong yêu cầu. Lần thử 27/10/2026 (xem review): chỉ mô tả việc (“dựng landing page…”) thì skill đã nạp nhưng không tự kích hoạt khi phiên có nhiều skill khác; gọi đích danh thì agent chạysearch.pyvà bản dựng thắng khi chấm mù (chi phí cao hơn khoảng 40 đến 70%). - Cài theo dự án cần giao diện (
.claude/skills/ui-ux-pro-max), không cần cài global cho mọi dự án. - Dự án đã có
design-system/MASTER.mdthì đưa file đó vào yêu cầu để agent dựng theo, thay vì sinh hệ thiết kế mới. - Dựng hoặc làm lại giao diện: gọi đích danh cả Pro Max và plugin frontend-design, ví dụ “dùng skill ui-ux-pro-max cho UX và bố cục, skill frontend-design cho hướng thị giác (màu, font, phong cách)”; sản phẩm đã có
MASTER.mdthì thêm “theo đúngMASTER.md”. Chấm mù 29/10 và 30/10/2026: cách ghép thắng bản chỉ có Pro Max cả 2 lần, kể cả khi đã cóMASTER.md; frontend-design cũng không tự kích hoạt nên phải gọi tên. Chi tiết ở Mục 17. Trang mới chưa có hệ thiết kế thì gọi Hallmark một mình (thắng cách ghép khi chấm mù 03/11/2026).
3. KIẾN TRÚC - DESIGN SYSTEM GENERATOR + 12 DOMAINS + 22 STACKS
Bạn nói: "Build a landing page for my beauty spa"
|
v
+---------------------------------------------------------+
| 1. USER REQUEST |
| Agent phân tích: product type, audience, keywords, |
| stack (từ package.json), platform (web/native) |
+---------------------------------------------------------+
|
v
+----------------------------------------------------------+
| 2. MULTI-DOMAIN SEARCH (5 parallel searches) |
| - Product type matching (192 categories) |
| - Style recommendations (79 searchable; 50 active) |
| - Color palette selection (192 palettes) |
| - Landing page patterns (34 patterns) |
| - Typography pairing (74 font combos) |
+----------------------------------------------------------+
|
v
+-----------------------------------------------------------+
| 3. REASONING ENGINE (ui-reasoning.csv) |
| - Match product -> UI category rules |
| - Apply style priorities (BM25 ranking) |
| - Filter anti-patterns cho ngành |
| - Process decision rules (JSON conditions) |
| VD: if_luxury -> style:liquid-glass |
| if_pre_launch -> pattern:Waitlist |
| must_have: [case-studies, roi-messaging] |
+-----------------------------------------------------------+
|
v
+----------------------------------------------------------+
| 4. COMPLETE DESIGN SYSTEM OUTPUT |
| Pattern + Style + Colors + Typography + Effects |
| + Anti-patterns to avoid + Pre-delivery checklist |
| + Semantic tokens (--color-primary, --space-*) |
+----------------------------------------------------------+
|
+--> Persist: design-system/<slug>/MASTER.md (+ pages/*.md)
+--> 3 Dials: --variance / --motion / --density
Ví dụ output thực tế (Serenity Spa)
TARGET: Serenity Spa - RECOMMENDED DESIGN SYSTEM
PATTERN: Hero-Centric + Social Proof
STYLE: Soft UI Evolution (soft shadows, calming, premium, organic shapes)
COLORS: Primary #E8B4B8 (Soft Pink), Secondary #A8D5BA (Sage), CTA #D4AF37 (Gold)
TYPOGRAPHY: Cormorant Garamond / Montserrat - Elegant, calming
KEY EFFECTS: Soft shadows + gentle hover states
AVOID: Bright neon + harsh animations + dark mode + AI purple/pink gradients
CHECKLIST: No emojis as icons, cursor-pointer, 4.5:1 contrast, prefers-reduced-motion...
4. 12 DOMAINS - KHI NÀO DÙNG CÁI NÀO
Đây là trái tim của việc dùng riêng lẻ. Mỗi domain là một CSV, search qua search.py --domain <domain>.
| # | Domain | File | Khi nào dùng | Ví dụ query | Output |
|---|---|---|---|---|---|
| 1 | product | products.csv (192 dòng) | Muốn xem product type của mình thuộc category nào, có gì đặc biệt | "SaaS dashboard" --domain product | Category, đặc điểm ngành |
| 2 | style | styles.csv (79 styles) | Chọn/bàn về visual style - “nên dùng style gì cho fintech?” | "glassmorphism dark" --domain style | Style ID, keywords, colors, effects, Best For / Do Not Use For, performance, a11y, checklist |
| 3 | color | colors.csv (192 palettes) | Lấy palette - mỗi ngành có 1 palette semantic (Primary/Accent/Background…) | "fintech banking" --domain color | 16 tokens: Primary, Secondary, Accent/CTA, Background, Foreground, Card, Muted, Border, Destructive, Ring + Notes |
| 4 | typography | typography.csv (74 cặp) | Chọn font pairing | "elegant serif" --domain typography | Heading Font + Body Font + Mood + Google Fonts URL + CSS import + Tailwind config |
| 5 | landing | landing.csv (34 patterns) | Chọn cấu trúc landing page + CTA placement | "hero social-proof" --domain landing | Pattern Name, Section Order, CTA Placement, Color Strategy, Effects, Conversion tips |
| 6 | chart | charts.csv (25 types) | Dashboard cần chart gì, dùng library nào | "real-time dashboard" --domain chart | Best Chart Type, secondary options, when to use/not, color guidance, library (Chart.js/Recharts/D3) |
| 7 | ux | ux-guidelines.csv (119 rules) | Best practices, anti-patterns, a11y, resilient text, cancellable interactions | "error summary validation" --domain ux | Category, Issue, Platform, Do/Don’t, Code Good/Bad, Severity |
| 8 | icons | icons.csv (105 curated) | Tìm icon + import code | "decorative icon aria hidden" --domain icons | Icon Name, Library (Phosphor), Import Code, Semantic Role, Allowed Contexts |
| 9 | google-fonts | google-fonts.csv (1,934 fonts) | Lookup font đơn lẻ | "variable sans serif" --domain google-fonts | Font details + license |
| 10 | gsap | motion.csv (17 snippets) | Animation snippet theo tier (Subtle/Standard/Complex) | "scroll reveal stagger" --domain gsap | Trigger, Duration, Easing, GSAP Snippet, Framework Notes, Do/Don’t, Performance Notes |
| 11 | react | react-performance.csv | React/Next.js performance patterns | "rerender memo list" --domain react | Waterfall, bundle, suspense, memo patterns |
| 12 | web | app-interface.csv | App interface guidelines (iOS/Android/React Native) - touch, safe areas, Dynamic Type | "accessibilityLabel touch safe-areas" --domain web | Native app UI rules |
Chi tiết Style Taxonomy (quan trọng để không chọn sai)
79 searchable styles:
+-- 50 active -> Được recommend mặc định, hiện trong gallery
+-- 29 supplemental -> Chỉ trả về khi query exact/explicit variant
+-- 9 deprecated -> Legacy name, redirect sang canonical style hoặc landing pattern
Thành phần active: 43 general visual families + 2 mobile-specific + 3 official design systems
(Fluent 2, Shopify Polaris, Adobe Spectrum) + 1 platform material (Liquid Glass) + 1 core analytics
Bẫy: Các landing-page structures (Hero-Centric, Conversion-Optimized…) đã chuyển sang
landingdomain, không còn cạnh tranh BM25 với visual styles nữa. Đừng search style để tìm landing pattern.
Lệnh search
# Tự động detect domain (không truyền --domain)
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa"
# Chỉ định domain
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "glassmorphism" --domain style
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "elegant serif" --domain typography
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "error summary validation" --domain ux
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "decorative icon aria hidden" --domain icons
# Design system (tổng hợp 5 domains cùng lúc)
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness" --design-system -p "Serenity Spa"
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness" --design-system -f markdown # Output markdown
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness" --design-system --json # Không truncate 300 chars
# Truncate: output thường cắt 300 chars, dùng --json để lấy full
5. 22 STACKS - VIẾT ĐÚNG STACK MỚI RA CODE DÙNG ĐƯỢC
Domain cho bạn ý tưởng thiết kế, Stack cho bạn code đúng framework.
python3 scripts/search.py "form validation" --stack react
python3 scripts/search.py "responsive layout" --stack html-tailwind
python3 scripts/search.py "virtualized list" --stack react-native
python3 scripts/search.py "atlantafx primer enterprise theme" --stack javafx
| Category | Stacks | Dùng khi |
|---|---|---|
| Web (HTML) | html-tailwind (default) | Không nói stack gì -> mặc định ra Tailwind. Guidelines: animate utilities, z-index scale, container, aspect-ratio… (stacks/html-tailwind.csv) |
| React Ecosystem | react, nextjs, shadcn | React performance (memo, suspense, waterfall), Next.js App Router |
| Vue Ecosystem | vue, nuxtjs, nuxt-ui | Vue/Nuxt specific |
| Other Web | svelte, astro, threejs, angular, laravel | Svelte, Astro, Three.js (WebGL), Angular, Laravel Blade/Livewire |
| Desktop | javafx, wpf, winui, avalonia, uno, uwp | JavaFX (có enterprise examples: Atlantafx, TableView density), WPF/WinUI |
| iOS | swiftui | SwiftUI navigation, controls |
| Android | jetpack-compose | Compose guidelines |
| Cross-Platform | react-native, flutter | React Native (virtualized list…), Flutter |
Nguyên tắc vàng (templates/base/skill-content.md:Step 1):
- Stack suy ra từ project thực tế (package.json, file đang mở, user nói rõ) - không đoán
react-nativemặc định. - Mỗi file
stacks/*.csvchứa: Category, Guideline, Description, Do/Don’t, Code Good/Bad, Severity, Docs URL, Status, Verified At. - Version-aware: query không ghi major cũ -> trả về current active guidance. Muốn legacy (VD
Svelte 4,Next.js 15) phải ghi rõ, nếu không có legacy curated thì trả về empty thay vì trộn lẫn.
6. WORKFLOW CHUẨN 4 BƯỚC (TỪ TEMPLATE CHÍNH THỨC)
Nguồn:
src/ui-ux-pro-max/templates/base/skill-content.md- đây là workflow agent bắt buộc tuân theo.
Bước 1: Analyze - Phân tích yêu cầu
Trích xuất:
- Product type: Entertainment / Tool / Productivity / hybrid (trong 192 categories)
- Target audience: C-end, độ tuổi, ngữ cảnh (commute, leisure, work)
- Style keywords: playful, vibrant, minimal, dark mode, content-first…
- Stack: Suy ra từ project (package.json, file hiện tại) hoặc hỏi - rồi load rules bằng
--stack <name> - Platform: web vs native app - nhiều sections (safe areas, haptics, bottom nav, Dynamic Type) chỉ áp dụng cho mobile, không áp dụng cho desktop-web.
Bước 2: Generate Design System - Chỉ cho project/page mới
python3 {{SCRIPT_PATH}} "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
# VD:
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
- Tổng hợp 5 domains (product, style, color, landing, typography)
- Áp dụng
ui-reasoning.csv(decision rules dạng JSON:if_ux_focused,if_data_heavy,must_have,if_luxury…) - Trả về: pattern + style + colors + typography + effects + anti-patterns + checklist + semantic tokens
Bước 2b & 2c: Persist + Dials (xem Mục 7, 8)
Bước 3: Supplement - Tìm chi tiết bổ sung (khi cần)
python3 {{SCRIPT_PATH}} "<keyword>" --domain <domain> [-n <max_results>]
# VD sau khi có design system:
python3 scripts/search.py "minimalism dark mode" --domain style
python3 scripts/search.py "search loading animation" --domain ux
python3 scripts/search.py "real-time dashboard" --domain chart
Bước 4: Stack Guidelines - Lấy best practices theo stack
python3 {{SCRIPT_PATH}} "<keyword>" --stack <stack>
# VD:
python3 scripts/search.py "virtualized list" --stack react-native
python3 scripts/search.py "form validation" --stack react
Sau đó: Tổng hợp design system + detailed searches + stack guidelines -> implement code.
Query Contract (quy tắc viết query)
- Mỗi query 1 intent chính, 2-5 từ có nghĩa + 1 constraint (product/platform/interaction). Không gộp nhiều checklist topic vào 1 query.
- A11y: search outcome trước (
"error summary validation" --domain ux), rồi mới component ("decorative icon aria hidden" --domain icons), cuối cùng mới stack. - Text layout bug: search semantic UX outcome trước (
"orphan heading line balance","badge chip label wraps"), rồi mới stack ("chip badge overflow nowrap" --stack html-tailwind). - Trước khi dùng result: verify domain/category, top result identity, có khớp product/platform không. Retry 1 lần với rewrite hẹp hơn nếu empty/off-topic. Nếu vẫn fail -> nói rõ “no verified match” rồi mới dùng general guidance. Không persist unverified output.
Khi nào bắt đầu từ đâu? (Bảng trong template)
| Scenario | Trigger ví dụ | Bắt đầu từ |
|---|---|---|
| New project / page | “Build a landing page”, “làm dashboard” | Step 1 -> Step 2 (design system) |
| New component | “Create a pricing card”, “Fix modal focus” | Step 3 (1 domain search tập trung) |
| Choose style/color/font | “What style fits fintech?”, “gợi ý palette” | Step 2 (design system) |
| Review existing UI | “Review this page for UX issues” | Quick Reference checklist |
| Fix UI bug | “Button hover broken”, “Layout shifts” | Quick Reference -> section liên quan |
| Improve / optimize | “Reduce React rerenders”, “Fix touch targets” | Step 3 (explicit react/ux/web) |
| Dark mode | “Add dark mode” | Step 3 (domain: style “dark mode”) |
| Charts | “Add analytics chart” | Step 3 (domain: chart) |
| Stack best practices | “React performance tips” | Step 4 (stack search) |
7. DESIGN DIALS - 3 NÚM VẶN TINH CHỈNH
Chỉ dùng kèm --design-system, 1-10, không thay query mà bias kết quả.
python3 scripts/search.py "<query>" --design-system --variance <1-10> --motion <1-10> --density <1-10>
# VD dashboard cần dense + motion vừa:
python3 scripts/search.py "internal analytics dashboard" --design-system --variance 8 --motion 7 --density 8 -p "Ops Console"
| Dial | 1-3 Low | 4-7 Mid | 8-10 High | Tác dụng |
|---|---|---|---|---|
--variance | Centered / Minimal - bias về Minimalism, Exaggerated Minimalism, centered, symmetric | Balanced / Modern | Bold / Asymmetric - bias về Brutalism, Bento Grids, asymmetric, experimental | Chọn style family |
--motion | Subtle micro-interactions | Standard scroll/stagger | Complex choreography (pin, Flip, SplitText) | Đính kèm GSAP snippet từ motion.csv theo tier (Subtle/Standard/Complex) |
--density | Spacious (24-96px spacing scale) | Standard (16-64px, default hiện tại) | Dense/dashboard (8-32px spacing scale) | Override bảng --space-* CSS variables trong output ASCII/markdown/MASTER.md |
--motionlấy snippet GSAP đã match tier, kèm Framework Notes, Do/Don’t, Performance Notes.--densityoverride luôn tokens - dùnghighcho dashboard,lowcho marketing page, khỏi sửa tay.- Không set dial nào -> giữ nguyên như trước (no behavior change).
8. PERSIST - MASTER + OVERRIDES (LƯU HỆ THỐNG THIẾT KẾ XUYÊN SESSION)
Vấn đề: Mỗi lần chat mới, agent quên design system đã chọn -> màu/font lệch.
Giải pháp: --persist lưu vào files để hierarchical retrieval.
# Lưu Master
python3 scripts/search.py "SaaS dashboard" --design-system --persist -p "MyApp" --output-dir "/path/to/project"
# Lưu kèm page override
python3 scripts/search.py "SaaS dashboard" --design-system --persist -p "MyApp" --page "dashboard" --output-dir "/path/to/project"
Cấu trúc tạo ra:
design-system/
+-- myapp/ # slug của -p "MyApp"
+-- MASTER.md # Global Source of Truth (colors, typography, spacing, components)
+-- pages/
+-- dashboard.md # Chỉ chứa deviations so với Master
Quy tắc:
- Nếu Master đã tồn tại -> tạo page file mới không đổi Master. Không có
--forcethì không overwrite. - Trước khi dùng
--force, phải đọcMASTER.mdhiện tại và chỉ overwrite khi user cho phép rõ ràng. - Đọc MASTER.md trước khi quyết định
--forcecó justified không.
Cách retrieve (prompt cho agent ở session sau):
I am building the [Page Name] page. Please read design-system/[project-slug]/MASTER.md.
Also check if design-system/[project-slug]/pages/[page-name].md exists.
If the page file exists, prioritize its rules.
If not, use the Master rules exclusively.
Now, generate the code...
Luồng:
- Build page cụ thể (VD “Checkout”) -> check
design-system/[slug]/pages/checkout.md - Nếu tồn tại -> rules trong page override Master
- Nếu không -> dùng
MASTER.mdthuần
9. KHI NÀO DÙNG RIÊNG LẺ VS COMBO?
Quy tắc ngón tay cái
| Tình huống | Dùng riêng lẻ | Dùng combo |
|---|---|---|
| Chỉ cần 1 thứ đơn (chọn màu, chọn font, fix 1 bug, thêm 1 chart) | [x] 1 domain hoặc 1 stack search | |
| Mục tiêu là page/project mới hoàn chỉnh | [x] Bắt buộc combo: Design System -> supplement -> stack | |
| Chưa có design system mà đi fix lẻ tẻ | [x] Quay lại Step 2 trước - không có system thì mọi fix rời rạc | |
| Task xuyên nhiều khía cạnh (landing + dashboard + dark mode) | [x] Combo nhiều domains | |
| Chỉ review/audit UI có sẵn | [x] Quick Reference checklist + 1-2 ux searches |
Ma trận combo chính
| Mục tiêu | Combo | Thứ tự |
|---|---|---|
| Landing mới từ 0 | --design-system -> --domain landing (chi tiết CTA) -> --domain ux (validation) -> --stack html-tailwind | System -> Structure -> Validation -> Code |
| Dashboard analytics | --design-system (với --density 8) -> --domain chart (chọn chart types) -> --domain ux (loading, data density) -> --stack react/nextjs | System dense -> Charts -> UX -> Stack |
| Fix UI bug | Quick Reference -> --domain ux (semantic outcome) -> --stack <your-stack> (implementation) | Outcome -> Code |
| Dark mode | --domain style (“dark mode”) -> --domain color (dark palettes) -> --stack <stack> (token theming) | Style -> Palette -> Tokens |
| Marketing site nhiều pages | --design-system --persist (MASTER) -> từng page --persist --page <name> với tweak | Master -> Overrides |
| Mobile app | --design-system -> --domain web (safe areas, haptics, touch targets) -> --domain icons -> --stack swiftui/react-native/flutter | System -> App UI rules -> Icons -> Native stack |
| Review toàn diện | Quick Reference Mục 1-3 (CRITICAL+HIGH) + focused ux searches cho từng concern có thật | Checklist -> targeted searches |
10. LỘ TRÌNH DỰ ÁN MỚI (TỪ 0 -> DESIGN SYSTEM -> CODE)
Dành cho: chưa có gì, muốn build landing/dashboard/app từ scratch
Phase 0 - Chuẩn bị (15 phút)
[ ] Xác định stack thực tế: đọc package.json, file hiện có, hoặc hỏi user
-> Đừng assume React Native nếu chưa rõ
[ ] Xác định platform: web vs native (quyết định có áp safe areas/haptics không)
[ ] Chuẩn bị prompt 2-5 từ có nghĩa + 1 constraint:
VD: "beauty spa wellness service" / "fintech crypto dashboard dark" / "AI chatbot platform minimal"
Phase 1 - Sinh Design System (5 phút)
# Bước quan trọng nhất - làm 1 lần, dùng cho cả project
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
# Nếu cần tinh chỉnh:
# Landing marketing -> spacious, subtle motion
python3 scripts/search.py "beauty spa wellness service" --design-system --variance 3 --motion 3 --density 3 -p "Serenity Spa"
# Dashboard internal -> bold, dense, standard motion
python3 scripts/search.py "internal analytics dashboard" --design-system --variance 7 --motion 5 --density 9 -p "Ops Console"
# Output formats:
# - ASCII box (default, terminal)
# - Markdown (docs): thêm -f markdown
# - JSON full (không truncate): thêm --json
Nhận được: Pattern + Style + Colors (16 semantic tokens) + Typography (Google Fonts URLs) + Effects + Anti-patterns + Pre-delivery checklist.
Phase 2 - Persist (để không mất khi chat mới)
python3 scripts/search.py "beauty spa wellness service" --design-system --persist -p "Serenity Spa" --output-dir "."
# Tạo: design-system/serenity-spa/MASTER.md
# Nếu có nhiều pages với tweak riêng:
python3 scripts/search.py "SaaS pricing page" --design-system --persist -p "Serenity Spa" --page "pricing" --output-dir "."
# Tạo: design-system/serenity-spa/pages/pricing.md (chỉ deviations)
Phase 3 - Supplement (tùy nhu cầu)
# Cần hiểu sâu style hơn?
python3 scripts/search.py "soft ui evolution" --domain style
# Cần chart cho dashboard?
python3 scripts/search.py "trend comparison" --domain chart
# Cần xử lý form validation?
python3 scripts/search.py "error summary validation" --domain ux
# Cần icon?
python3 scripts/search.py "navigation arrow" --domain icons
Phase 4 - Stack Guidelines -> Code
# Lấy guidelines đúng stack trước khi code
python3 scripts/search.py "responsive layout" --stack html-tailwind
python3 scripts/search.py "virtualized list" --stack react-native
python3 scripts/search.py "tableview binding" --stack javafx
# Rồi mới code - agent sẽ tổng hợp system + stack rules để sinh code
Lưu ý cho dự án mới
- Đừng skip Step 2. Nhiều người nhảy thẳng vào code 1 component -> màu/font/style lệch nhau giữa các pages. Design system phải có trước.
- Đừng gộp nhiều concerns vào 1 query. Mỗi query 1 intent. “glassmorphism dark mode dashboard animation accessibility” là query tệ - tách ra.
- Dùng Master + Overrides nếu project có >2 pages - tiết kiệm 80% thời gian maintain consistency.
11. LỘ TRÌNH DỰ ÁN ĐÃ TỒN TẠI (AUDIT -> FIX -> NÂNG CẤP)
Dành cho: đã có code/UI, muốn audit, fix bug, hoặc nâng cấp
Bước 0 - Kiểm tra có gì (10 phút)
[ ] Đã có design-system/MASTER.md chưa? Chưa -> chạy --design-system ngay để có baseline
[ ] Đã có stack guidelines chưa? Chưa -> chạy --stack <your-stack> cho concern hiện tại
[ ] Biết style hiện tại là gì không? -> search --domain style để identify
Kịch bản A - “UI trông không chuyên nghiệp / muốn review”
1. Quick Reference checklist (Mục 1-3 CRITICAL+HIGH) - chạy như final review:
- Icons: không dùng emoji làm icon, SVG + semantic tokens
- Interaction: tap feedback 80-150ms, touch targets 44pt iOS / 48dp Android
- Light/Dark: text contrast >=4.5:1 cả 2 themes, scrim đủ mạnh
2. Focused ux searches cho từng issue tìm thấy:
-> "keyboard focus modal" --domain ux
-> "content jumping layout shift" --domain ux
-> "z-index stacking context" --domain ux
3. Chỉ fix những concerns có thật trong interface - không search lan man
Kịch bản B - “Fix 1 bug cụ thể” (VD: button hover broken, layout shifts)
1. Quick Reference -> section liên quan (không search bừa)
2. Domain search 1 intent:
-> "button hover broken" --domain ux (semantic outcome)
3. Stack search cho implementation:
-> "hover transitions" --stack html-tailwind
-> "chip badge overflow nowrap" --stack html-tailwind
4. Fix theo Do/Don't + Code Good/Bad trong result
VD: ux-guidelines.csv:22-30 có Touch Target Size, Content Jumping, Viewport Units...
Quy tắc Text Layout Bugs (quan trọng):
- Search semantic UX outcome trước, rồi mới stack.
- Các query hữu ích:
"orphan heading line balance","badge chip label wraps to second line","live badge count screen reader","rapid chip animation interrupted"- đều--domain ux - Sau khi có UX guidance, mới:
"chip badge overflow nowrap" --stack html-tailwind
Kịch bản C - “Thêm feature mới vào app có sẵn” (VD: thêm dashboard, thêm dark mode)
# Thêm dashboard:
1. --design-system với --density 8 (dense) cho dashboard page riêng
2. --persist --page "dashboard" để không làm lệch MASTER
3. --domain chart cho chart types phù hợp
4. --stack <your-stack> cho implementation
# Thêm dark mode:
1. --domain style "dark mode" -> lấy Dark Mode (OLED) guidance
2. --domain color cho dark palettes (Financial Dashboard #020617 bg...)
3. --stack <stack> cho token-driven theming (không hardcode hex per-screen)
4. Test cả 2 themes - không assume light values work cho dark
Kịch bản D - “Tối ưu performance / animation”
1. --domain ux "transform performance" hoặc "continuous animation"
2. --domain gsap "scroll reveal stagger" cho snippet đúng tier
3. --domain react "rerender memo list" nếu là React/Next.js
4. --stack <stack> cho stack-specific perf patterns
VD: "virtualized list" --stack react-native (chỉ animate mounted items)
Kịch bản E - “Migrate / đổi stack” (VD: từ html-tailwind sang Next.js)
1. Giữ MASTER.md (design tokens không đổi)
2. Chạy lại --stack nextjs cho từng concern:
-> "streaming suspense" --stack nextjs
-> "route transition" --stack nextjs
3. So sánh stacks/*.csv cũ vs mới - chú ý Severity High
Kịch bản F - “Không biết nên làm gì tiếp theo”
1. Chạy --design-system cho product type của mình -> xem Anti-patterns
VD: SaaS General tránh "Excessive animation + Dark mode by default"
2. Đọc ui-reasoning.csv Decision_Rules cho category của mình
VD: B2B Service must_have: [case-studies, roi-messaging]
3. Từ đó chọn 1-2 việc có impact cao nhất
12. MA TRẬN RA QUYẾT ĐỊNH - TÔI MUỐN LÀM X -> DÙNG GÌ
| Tôi muốn… | Dùng | Lệnh |
|---|---|---|
| Tạo design system cho project/page mới | --design-system | search.py "beauty spa" --design-system -p "MyApp" |
| Chọn visual style | --domain style | search.py "glassmorphism" --domain style |
| Lấy palette màu | --domain color | search.py "fintech" --domain color |
| Chọn font pairing | --domain typography | search.py "elegant serif" --domain typography |
| Chọn cấu trúc landing + CTA | --domain landing | search.py "hero social-proof" --domain landing |
| Chọn chart cho dashboard | --domain chart | search.py "trend comparison" --domain chart |
| Fix UX / a11y / layout bug | --domain ux (outcome trước) | search.py "error summary validation" --domain ux |
| Tìm icon + import code | --domain icons | search.py "arrow navigation" --domain icons |
| Lookup Google Font đơn lẻ | --domain google-fonts | search.py "variable sans serif" --domain google-fonts |
| Lấy GSAP animation snippet | --domain gsap | search.py "scroll reveal stagger" --domain gsap |
| React/Next.js perf patterns | --domain react | search.py "rerender memo" --domain react |
| Native app guidelines | --domain web | search.py "safe areas haptics" --domain web |
| Code đúng framework | --stack <name> | search.py "form validation" --stack react |
| Tinh chỉnh bold/spacious/motion | --variance/--motion/--density | search.py "dashboard" --design-system --variance 8 --density 9 |
| Lưu system xuyên session | --persist | search.py "SaaS" --design-system --persist -p "MyApp" --output-dir "." |
| Tạo override cho 1 page | --persist --page | search.py "pricing" --design-system --persist -p "MyApp" --page "pricing" |
| Review UI có sẵn | Quick Reference + ux | Checklist Mục 1-3 + search.py "keyboard focus modal" --domain ux |
| Thêm dark mode | style + color + stack | style "dark mode" -> color dark palette -> stack token theming |
13. 7 COMBO KINH ĐIỂN
Combo 1 - “Landing mới từ 0” (Marketing)
# 1. Design system
python3 scripts/search.py "SaaS B2B service professional" --design-system -p "Acme" --persist --output-dir "."
# 2. Chi tiết landing structure
python3 scripts/search.py "hero features cta" --domain landing
# 3. Stack code
python3 scripts/search.py "responsive layout" --stack html-tailwind
# hoặc: --stack nextjs / --stack react
# 4. Checklist trước khi ship: Quick Reference Mục 1-3
Combo 2 - “Dashboard analytics” (Data-heavy)
# 1. Design system dense + dashboard pattern
python3 scripts/search.py "analytics dashboard data dense" --design-system --variance 6 --density 9 -p "OpsDash" --persist --output-dir "."
# 2. Chọn charts
python3 scripts/search.py "trend over time" --domain chart
python3 scripts/search.py "compare categories" --domain chart
python3 scripts/search.py "heatmap intensity" --domain chart
# 3. UX cho data
python3 scripts/search.py "data dense loading states" --domain ux
python3 scripts/search.py "virtualize lists" --domain ux
# 4. Stack
python3 scripts/search.py "chart rendering" --stack react
Combo 3 - “Fix UI bug” (Existing project)
# 1. Semantic outcome (ux) - KHÔNG gộp nhiều concerns
python3 scripts/search.py "orphan heading line balance" --domain ux
# hoặc: "badge chip label wraps" / "rapid chip animation interrupted"
# 2. Implementation (stack)
python3 scripts/search.py "chip badge overflow nowrap" --stack html-tailwind
# 3. Fix theo Do/Don't + Code Good/Bad
Combo 4 - “Mobile app mới”
# 1. Design system
python3 scripts/search.py "social media app vibrant engagement" --design-system -p "SocialApp" --persist --output-dir "."
# 2. App-specific guidelines
python3 scripts/search.py "touch targets safe areas" --domain web
python3 scripts/search.py "bottom nav limit back behavior" --domain web
# 3. Icons
python3 scripts/search.py "navigation tab bar icons" --domain icons
# 4. Stack native
python3 scripts/search.py "navigation safe areas" --stack react-native
# hoặc: --stack swiftui / --stack flutter / --stack jetpack-compose
# 5. Checklist mobile: touch 44pt/48dp, safe areas, Dynamic Type, haptics
Combo 5 - “Marketing site nhiều pages” (Master + Overrides)
# 1. Master - 1 lần
python3 scripts/search.py "SaaS general trust blue professional" --design-system --persist -p "Acme" --output-dir "."
# 2. Từng page - override riêng
python3 scripts/search.py "pricing page comparison" --design-system --persist -p "Acme" --page "pricing" --output-dir "."
python3 scripts/search.py "dashboard analytics dense" --design-system --persist -p "Acme" --page "dashboard" --output-dir "." --density 9
# 3. Khi build page "pricing": đọc MASTER.md + pages/pricing.md (ưu tiên page)
# 4. Khi build page "about": chỉ đọc MASTER.md
Combo 6 - “Thêm dark mode vào app có sẵn”
# 1. Style guidance
python3 scripts/search.py "dark mode oled" --domain style
# 2. Dark palettes (VD Financial Dashboard #020617 bg, Analytics #1E40AF...)
python3 scripts/search.py "financial dashboard dark" --domain color
# 3. Stack token theming
python3 scripts/search.py "dark mode token theming" --stack html-tailwind
# Quy tắc: semantic tokens per theme, không hardcode hex per-screen
# 4. Pre-delivery: test cả 2 themes, scrim measured, dividers visible in both
Combo 7 - “A11y audit & fix”
# 1. Outcome queries - mỗi query 1 criterion
python3 scripts/search.py "error summary validation" --domain ux
python3 scripts/search.py "focus not obscured" --domain ux
python3 scripts/search.py "dragging movements" --domain ux
python3 scripts/search.py "accessible authentication" --domain ux
# 2. Component-specific
python3 scripts/search.py "decorative icon aria hidden" --domain icons
python3 scripts/search.py "icon button accessible label" --domain icons
# 3. Stack a11y
python3 scripts/search.py "keyboard focus modal" --stack html-tailwind
# hoặc: --stack react / --stack swiftui
# 4. Không accept generic a11y result cho specific interaction/WCAG criterion
14. PRE-DELIVERY CHECKLIST & BẪY THƯỜNG GẶP
Checklist trước khi giao code (từ templates/base/skill-content.md)
Scope: Checklist này cho App UI (iOS/Android/React Native/Flutter). Với web/desktop, chỉ áp Mục 1-3 và các concerns có thật.
Visual Quality:
- Không dùng emoji làm icon (dùng SVG: Phosphor/Heroicons/Lucide)
- Icons cùng family/style (stroke 1.5px hoặc 2px nhất quán, không trộn filled/outline cùng level)
- Brand logos đúng tỉ lệ, clear space
- Pressed state không làm shift layout / jitter
- Semantic theme tokens nhất quán (không hardcode hex per-screen)
Interaction:
- Tất cả tappable elements có pressed feedback (ripple/opacity/elevation) trong 80-150ms
- Touch targets >=44 x 44pt (iOS) / >=48 x 48dp (Android) - expand hit area nếu icon nhỏ
- Animation timing dùng shared tokens, respects
prefers-reduced-motion - Disabled states rõ ràng, non-interactive, đúng semantics
- Screen reader focus order khớp visual order, labels descriptive
- Không có gesture conflicts (nested tap/drag/back-swipe)
Light/Dark Mode:
- Text contrast >=4.5:1 ở cả light và dark (3:1 chỉ cho large text / non-text UI)
- Dividers/borders và interaction states phân biệt được ở cả 2 themes
- Modal/drawer scrim đo trên background thật, đủ mạnh để isolate foreground
- Test cả 2 themes trước khi giao (không infer từ 1 theme)
Plus từ Quick Reference:
- Test 375px (small phone) + landscape
- Test với
prefers-reduced-motionenabled + Dynamic Type largest size - Chạy focused searches chỉ cho concerns có trong interface
- Quick Reference Mục 1-3 (CRITICAL+HIGH) như final review
Bẫy thường gặp
| Bẫy | Hậu quả | Cách tránh |
|---|---|---|
| Query quá dài / gộp nhiều concerns | BM25 ranking loạn, trả về off-topic hoặc empty | Mỗi query 1 intent, 2-5 từ + 1 constraint. Tách “glassmorphism dark mode dashboard animation” thành 3 queries. |
| Dùng style query để tìm landing pattern | Empty - landing patterns đã tách sang landing domain | Dùng --domain landing cho Hero, Funnel, Pricing, Waitlist… |
| Assume React Native mặc định | Code sai stack, guidelines không khớp | Suy ra stack từ package.json/file thực tế, hoặc hỏi user. Default là html-tailwind. |
| Hardcode hex per-screen | Dark mode vỡ, maintain khó | Dùng semantic tokens (--color-primary…), mapped per theme. |
| Dùng emoji làm icon | Inconsistent cross-platform, không control được design tokens | Dùng Phosphor (@phosphor-icons/react) / Heroicons, size tokens (icon-sm/md/lg). |
Không respect prefers-reduced-motion | A11y fail, motion sickness | Check @media (prefers-reduced-motion: reduce), pause GSAP, render final state. |
| Persist unverified output | Lưu design system sai, lệch cả project | Verify domain/category/top result khớp product/platform, retry 1 lần nếu empty/off-topic, không persist nếu chưa verify. |
Quên touch-action: manipulation | 300ms tap delay trên mobile | Thêm touch-action: manipulation hoặc fastclick. |
Dùng 100vh cho full-screen mobile | Bị browser chrome che | Dùng dvh hoặc min-h-dvh / min-h-screen. |
| Truncate 300 chars làm mất data | Thiếu tokens, import URLs | Dùng --json để lấy full untruncated. |
| Không test 375px + landscape | Layout vỡ trên small phone | Test 2 breakpoints này trước khi ship. |
| Overwrite MASTER.md không hỏi | Mất design decisions cũ | Đọc MASTER.md trước, chỉ --force khi user cho phép rõ ràng. |
15. NÂNG CẤP, PREMIUM VS BASIC, TROUBLESHOOTING
Basic (repo này) vs Premium (https://uupm.cc)
| Basic (Open Source) | Premium | |
|---|---|---|
| Giá | Miễn phí, MIT | Trả phí |
| UI/UX Intelligence | Đủ: 79 styles, 192 palettes, 74 fonts, 25 charts, 119 UX guidelines | Như Basic + thêm |
| Search | BM25 engine đầy đủ | Như Basic |
| Stacks | 22 stacks | Như Basic |
| Design System Generator | Có (192 reasoning rules) | Có |
| Brand Design | Không | Có: Brand Identity, Logo, CIP, Banners, Slides, Iconography |
| Asset Creation | Placeholders | AI image generation ra visual assets thật |
| Design Tokens | Standard | Enterprise-scale, team deployment |
| Support | Community (Issues/PRs) | Priority dedicated |
Nâng cấp CLI
npm install -g ui-ux-pro-max-cli@latest
uipro update # Refresh skill files từ package mới
uipro update --global # Nếu dùng global install
Troubleshooting
| Lỗi | Fix |
|---|---|
uipro: unknown command 'uninstall'/'update' | CLI cũ -> npm install -g ui-ux-pro-max-cli@latest |
No installed AI skill directories detected | Chạy từ project root đã cài, hoặc uipro uninstall --global, hoặc xóa tay rm -rf .claude/skills/ui-ux-pro-max |
Zip contains too many files (max 200) khi upload Claude.ai | Đừng upload repo ZIP - dùng Marketplace hoặc CLI |
Zip contains a symbolic link | Dùng CLI thay vì Marketplace (đã fix từ v2.5.1) |
npm install -g permission error | Dùng Node version manager, hoặc npx ui-ux-pro-max-cli init --ai claude (không cần -g) |
Python not found | Cài Python 3 từ python.org / Homebrew / apt / winget - agent không được tự cài |
| Output bị cắt/truncate | Dùng --json để lấy full |
response exceeded output token maximum | Chia task nhỏ, hoặc export CLAUDE_CODE_MAX_OUTPUT_TOKENS="64000" rồi restart Claude Code |
| Marketplace fail | Dùng CLI: npm install -g ui-ux-pro-max-cli && uipro init --ai claude |
Cấu trúc repo (để contribute)
src/ui-ux-pro-max/ # Source of Truth
+-- data/ # CSV databases (products, styles, colors...)
| +-- stacks/ # Stack-specific guidelines (22 stacks)
+-- scripts/
| +-- search.py # CLI entry
| +-- core.py # BM25 + regex engine
| +-- design_system.py # Reasoning engine
+-- templates/
+-- base/ # skill-content.md, quick-reference.md
+-- platforms/ # claude.json, cursor.json...
cli/ # NPM package ui-ux-pro-max-cli
+-- src/commands/init.ts
+-- assets/ # Mirrored từ src/ (~564KB)
.claude/skills/ui-ux-pro-max/ # Claude Code skill (mirrored, không symlink)
Sync rule: Sửa
data/*.csvhoặcscripts/*.pytrongsrc/ui-ux-pro-max/, rồicd cli && npm run sync:assets && npm run check:assets- không có symlink (tránh break trên Windows).
Catalog provenance
- 1,934 Google Fonts approved + 8 exclusions - cần license metadata mới promote.
- 105 curated icons (100 Phosphor web + React Native/fallback) + 1,512 upstream Phosphor manifest - validate names/weights/imports không flood search results.
npm --prefix cli run verify:data # Full offline gate
npm --prefix cli run validate:catalog-summary # Chỉ catalog summary
16. DÙNG THỰC TẾ TRONG TEAM (ĐÃ THỬ 27/10/2026)
Rút từ lần so mù A/B ở review: bản có skill thắng cả 2 việc dựng giao diện (landing page cho developer của một sản phẩm TTS, màn hình mobile của một app xem ngày), nhưng chỉ khi gọi đích danh.
Lúc thử đã làm gì
- Gọi skill đích danh: câu đầu prompt là “Dùng skill ui-ux-pro-max (đọc SKILL.md và chạy các script tìm kiếm của nó)”. Không có câu này thì skill không chạy.
- Agent đọc ngữ cảnh sản phẩm (README hoặc mô tả sản phẩm), rồi chạy
search.py2 đến 3 lần: một lần--design-systemđể chọn kiểu, bảng màu, font; một lần--domain landinghoặcuxđể lấy quy tắc bố cục. - Agent dựng một file
index.htmltự chứa theo hệ thiết kế vừa chọn. - Chụp màn hình bằng Chrome headless (desktop 1440 px, mobile 390 px) rồi chấm mù.
Khi làm thật chỉ khác một điểm: đưa MASTER.md có sẵn vào để agent dựng theo, thay vì để skill sinh hệ thiết kế mới.
Mẹo rút ra
- Luôn mở đầu bằng
/ui-ux-pro-max. Chỉ mô tả việc thì skill không chạy. - Kiểm tra skill đã chạy thật: trong phiên phải thấy lệnh
python3 .claude/skills/ui-ux-pro-max/scripts/search.py .... Không thấy thì nhắc lại. - Repo đã có
MASTER.mdthì luôn đưa vào. Không đưa thì skill sinh hệ thiết kế mới, lệch thương hiệu (bản thử màn hình mobile ở trên bị đúng chuyện này). - Tự xem kết quả: mở file HTML trong trình duyệt, chuyển sang chế độ điện thoại (F12, rồi Ctrl+Shift+M), chọn cỡ 390 px. Trang có hiệu ứng hiện dần thì phải cuộn hết trang mới thấy đủ.
- Chi phí: khoảng 1,1 đến 1,2 USD mỗi trang với Opus, cao hơn khoảng 40 đến 70% so với không dùng skill (đo 27/10/2026). Đáng cho việc dựng giao diện mới, không nên dùng cho chỉnh sửa nhỏ.
17. GHÉP VỚI PLUGIN FRONTEND-DESIGN
Plugin
frontend-design1.1.1 trong marketplaceanthropics/claude-plugins-official(Apache-2.0). Đọc từplugins/frontend-design/skills/frontend-design/SKILL.md(71 dòng, sửa lần cuối 01/09/2026), đối chiếu 29/10/2026. Review và kết quả thử:claude-plugins-official.md.
Vì sao ghép
Pro Max chọn style và bảng màu theo ngành từ kho dữ liệu, nên trang đúng chuẩn nhưng dễ giống nhau. frontend-design không có dữ liệu, chỉ là chỉ dẫn về gu: bắt agent chọn hướng thị giác riêng cho từng brief và tự soát lối mặc định. Hai bên bù nhau: Pro Max lo UX, bố cục, a11y theo stack; frontend-design lo màu, font, phong cách.
Lần thử 29/10/2026 (landing page cho developer, chấm mù desktop 1440 px và mobile 390 px): ghép hai skill > chỉ Pro Max > chỉ frontend-design. Bản ghép rẻ hơn (1,10 so với 1,40 USD), nhanh hơn (189 so với 261 giây), HTML gọn hơn (706 so với 1.141 dòng). Mỗi cách chạy 1 lần nên kết quả còn nhiễu; lỗi mobile của bản chỉ frontend-design chưa xác minh trên máy thật.
Lần thử 30/10/2026 (trang chủ của chính site này, đã có MASTER.md, chấm mù 4 bản ở 1440 và 390 px thật, sáng và tối): ghép, làm lại từ đầu > ghép, theo MASTER.md > chỉ Pro Max theo MASTER.md > trang cũ. Bản ghép theo MASTER.md không thêm màu, font hay bóng đổ nào ngoài hệ đã chốt: lời “theo đúng MASTER.md” trong prompt thắng chỉ dẫn tìm hướng mới của frontend-design (SKILL.md:45). Chi phí: chỉ Pro Max 0,84 USD/94 giây, ghép theo MASTER.md 1,12 USD/154 giây, ghép làm lại từ đầu 1,62 USD/243 giây. Bản làm lại từ đầu được tự chụp màn hình để soát còn hai bản kia bị chặn quyền, nên phần thắng của nó có lợi thế này. Site đã áp bản thắng và viết lại site/design-system/MASTER.md.
Cài và gọi
/plugin install frontend-design@claude-plugins-official
Plugin không tự kích hoạt trong lần thử (đã nạp nhưng agent không gọi), giống Pro Max. Luôn gọi tên cả hai:
Dùng skill ui-ux-pro-max cho UX và bố cục, skill frontend-design cho hướng thị giác
(màu, font, phong cách). Dựng landing page cho <sản phẩm>, người xem là <ai>,
việc chính của trang là <...>.
Chỉ có bản cho Claude Code và claude.ai; OpenCode phải tự chép SKILL.md (chưa thử).
frontend-design bắt agent làm gì
- Bám chủ đề (
SKILL.md:11-13): xác định sản phẩm, người xem, việc chính của trang trước khi vẽ; màu, chất liệu, ngôn ngữ thị giác lấy từ ngành của chủ đề. - Hai lượt (
SKILL.md:47-53): lập kế hoạch token (4 đến 6 màu hex có tên, font và vai trò, bố cục bằng wireframe ASCII, nguyên tắc riêng), tự soát phần nào là lựa chọn mặc định thì sửa và nói lý do, rồi mới viết code. - Tiết chế (
SKILL.md:57-59): dồn sự táo bạo vào một chỗ, phần còn lại yên tĩnh; tự chụp màn hình phê bình; nền chất lượng gồm responsive, focus bàn phím, reduced motion, tương phản. - Chữ trong giao diện (
SKILL.md:61-71): viết theo góc nhìn người dùng, nút nói rõ việc sẽ xảy ra (“Lưu thay đổi”, không phải “Gửi”), báo lỗi nói rõ sai gì và cách sửa.
Năm “dấu hiệu trang do AI làm” cần né (SKILL.md:38-45)
- Nền kem (gần
#F4F1EA), tiêu đề serif tương phản cao, màu nhấn terracotta (gần#D97757). - Nền gần đen với một màu nhấn xanh acid hoặc đỏ son.
- Bố cục kiểu báo giấy: kẻ chỉ mảnh, không bo góc, cột dày đặc.
- Bộ thẻ SaaS: mọi nội dung cắt thành thẻ bo góc giống hệt, cùng bóng xám, gradient trang trí.
- “Khung template”: nhãn chữ in hoa trên mọi tiêu đề, chuỗi ngăn bằng dấu chấm giữa, mũi tên
→cuối nút, font monospace cho nhãn nhỏ.
Ngoài ra (SKILL.md:17-32): tránh hero mặc định “số to + nhãn nhỏ + gradient”, tô màu riêng một chữ trong tiêu đề, đánh số 01/02/03 khi nội dung không phải trình tự, hiệu ứng hiện dần ở mọi section.
Brief nói rõ thì brief thắng (SKILL.md:45): nếu bạn yêu cầu đúng một kiểu trong danh sách trên thì agent vẫn làm theo.
Trang mới: dùng Hallmark thay cách ghép (từ 03/11/2026)
Lần thử 03/11/2026 (cùng việc landing page cho developer của một sản phẩm TTS như 29/10, chấm mù 1440 và 390 px, sáng và tối, cả ba bản có quyền tự chụp màn hình): chỉ Hallmark > Pro Max + Hallmark > Pro Max + frontend-design. Chi phí: ghép với frontend-design 2,03 USD/351 giây, chỉ Hallmark 3,43 USD/655 giây (khoảng 1,7 lần). Hallmark là skill cùng nhóm với frontend-design nhưng có máy kiểm: theme có sẵn, ngưỡng cứng về số chữ, linter sloplint đo trong trình duyệt. Mỗi bản chạy 1 lần, kết quả còn nhiễu.
- Trang mới, chưa có hệ thiết kế: gọi
/hallmark <brief>một mình, không cần Pro Max. - Sản phẩm đã có
MASTER.md: vẫn dùng cách ghép ở mục này. Hallmark chỉ nhậndesign.mdở thư mục gốc và ghi “theme thắng” mọi file khác, nên có thể kéo lệch hệ đã chốt; chưa thử.
Khi nào không ghép
- Sản phẩm đã có
MASTER.md: vẫn ghép, nhưng ghi rõ “theo đúngMASTER.md” và đưa file vào yêu cầu (thử 30/10/2026: không lệch hệ thiết kế). Chỉ bỏ câu đó khi bạn muốn làm lại cả hệ thiết kế; khi đó viết lạiMASTER.mdtheo bản mới. - Sửa nhỏ, sửa lỗi giao diện: không cần skill nào; hai lượt lập kế hoạch chỉ tốn thêm token.
- Dashboard nội bộ cần dày thông tin: Pro Max (
--density 8-9) là đủ; chưa thử frontend-design cho loại trang này.
Kiểm tra sau khi dựng
- Trong phiên phải thấy cả lệnh
search.pycủa Pro Max và bản kế hoạch token (màu hex, font, wireframe ASCII) của frontend-design. Thiếu cái nào thì skill đó chưa chạy. - Cho agent quyền chạy trình duyệt headless để tự chụp màn hình soát (frontend-design yêu cầu bước này,
SKILL.md:59); bị chặn quyền thì agent bỏ qua bước tự soát. - Tự xem ở 390 px: trình duyệt thật (F12, Ctrl+Shift+M), hoặc Chrome headless qua DevTools Protocol với
Emulation.setDeviceMetricsOverride(cờ--window-sizekhông dựng khung hẹp hơn 500 px nên ảnh bị cắt). - Soát nhanh 5 dấu hiệu ở trên.
KẾT
Quy tắc 1: Project/page mới -> luôn
--design-systemtrước. Không có system, mọi component rời rạc sẽ lệch nhau. Quy tắc 2: Mỗi query 1 intent (2-5 từ + 1 constraint). Đừng gộp, đừng lan man. Quy tắc 3: A11y/layout bug -> search semantic outcome (--domain ux) trước, rồi mới--stackcho code. Quy tắc 4: Project >2 pages -> dùng Master + Overrides (--persist) để giữ consistency xuyên session. Quy tắc 5: Trước khi ship -> chạy Quick Reference Mục 1-3 + focused ux searches cho từng concern có thật + test 375px/landscape/reduced-motion/Dynamic Type/cả 2 themes.
Cần hỗ trợ? Mở issue tại https://github.com/nextlevelbuilder/ui-ux-pro-max-skill/issues - hoặc xem gallery tại https://uupm.cc
File được tạo bởi nghiên cứu sâu skill.json + CLAUDE.md + templates/base/skill-content.md + 12 CSV databases + search.py/design_system.py/core.py của repo ui-ux-pro-max-skill. Mọi tham chiếu file:line trỏ tới file gốc trong src/ui-ux-pro-max/.