Chuyển đến nội dung
Skillpedia
Giao diện (UI/UX)48k · #6042

ui-review

Skill này làm gì

Công cụ này rà soát code giao diện người dùng (UI) để đảm bảo nó tuân theo quy tắc thiết kế, dễ truy cập với mọi người và đáp ứng các thực hành lập trình tốt nhất.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra code giao diện có tuân theo tiêu chuẩn hình ảnh đã định không.
  • ✓Khi bạn cần đảm bảo giao diện hoạt động tốt với người khuyết tật.
  • ✓Khi bạn muốn chắc chắn code tuân theo các thực hành phát triển tốt.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-review/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-review/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Rà soát code UI trong file này: ui-code.js”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ so sánh code của bạn với danh sách quy tắc về màu sắc, kích thước, khả năng truy cập và các thực hành tốt khác. Nó chỉ ra những chỗ lệch khỏi tiêu chuẩn và gợi ý cách sửa.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

UI Design Review

When to Use

Use this skill when you need review UI code for design system compliance, accessibility, and best practices.

When NOT to use

  • For accessibility-only issues → use /ss-a11y
  • For Nielsen UX heuristics → use /ss-audit
  • For a quick automated check → use /ss-lint
  • For non-UI code (data fetching, business rules)

Review the file: $ARGUMENTS

Checklist

1. Design Token Compliance

  • No hardcoded hex colors (use semantic tokens: text-foreground, bg-brand, etc.)
  • No hardcoded px spacing in Tailwind (use p-6 not p-[24px])
  • Shadows use CSS variables (shadow-[var(--shadow-card)])
  • Border radius follows the scale (rounded-md, rounded-lg, rounded-2xl)

2. Component Conventions

  • Uses data-slot attribute
  • Uses cn() for className merging
  • Props typed with React.ComponentProps<>
  • Supports className prop override
  • Named export (not default export for components)
  • No wrapper components that only add a className

3. Accessibility (a11y)

  • Touch targets >= 44x44px for interactive elements
  • focus-visible styles on all interactive elements
  • Proper aria-* attributes where needed
  • Color contrast meets WCAG AA (4.5:1 for text, 3:1 for large text)
  • Animations respect prefers-reduced-motion
  • Images have alt text
  • Form inputs have associated labels

4. Mobile Best Practices

  • No horizontal overflow
  • Touch-friendly spacing between interactive elements
  • Safe area insets handled for notched devices
  • Text sizes >= 12px for readability
  • Scrollable containers have -webkit-overflow-scrolling: touch

5. Performance

  • No unnecessary re-renders (stable references, memoization where needed)
  • Images are lazy-loaded
  • Heavy components are code-split

6. Typography

  • Uses the Pretendard/Inter font stack
  • Font sizes from the 14-step scale (10-48px, see CLAUDE.md)
  • Proper font weights (400, 500, 600, 700)
  • Display text (36-48px): leading-none + tracking-[-0.02em]
  • Heading text (18-24px): leading-snug + tracking-[-0.01em]
  • Body text (14-17px): leading-normal (no custom tracking)
  • Caption uppercase (10-13px): tracking-[0.05em] or tracking-wide
  • No line-height: 1.5 on display/heading text (too loose)

7. Spacing Consistency

  • All spacing values are multiples of 6px (p-1.5, p-3, p-6, etc.)
  • No arbitrary spacing (p-5=20px, gap-3.5=14px are violations)
  • Uses size-* shorthand instead of w-* h-*
  • Uses ms-*/me-* instead of ml-*/mr-* (logical properties)
  • Motion transitions use design tokens (duration-[var(--duration-fast)])

8. Coherence (VISUAL-CRAFT.md §C0 — the "one choice per axis" laws)

The biggest reason a UI reads as "AI-generated" isn't ugly parts — it's mixed parts. Check that each axis below uses ONE value system-wide; flag a mix as a real issue, not a nitpick.

  • One radius personality — sharp (0-4px) OR soft (8-12px) OR pill, applied to every card/button/input/modal. No mixing (e.g. a rounded-none panel with rounded-full buttons).
  • One accent color for interactive emphasis (+ semantic red/green/amber only) — not two+ competing accents.
  • No emoji as UI icons (🚗🧺⭐ as list/nav/status/category markers) — they inject many uncontrolled hues; use one line-icon set in currentColor.
  • Status color = severity, not decoration — a normal/OK/"보통" state is neutral grey (not colored); color marks only the minority of rows that need attention; same value → same color.
  • No decorative hues — favorite stars, category dots, avatars use the accent or grey, not a new color each.
  • One shadow language — same light direction, same scale/tint; not some black + some tinted, some up-lit + some down-lit.
  • One icon family / fill mode / stroke weight across the file.
  • Nested-radius law — an element inside a rounded container uses inner = outer − padding, not the same radius (which bulges).
  • Consistent control heights — buttons, inputs, selects share a height set (e.g. 40px).
  • Errors/states never rely on color alone (icon + text too).

Output Format

Provide:

  1. Score: Pass / Needs Improvement / Fail
  2. Issues: List each violation with file:line reference
  3. Fixes: Concrete code changes for each issue

Example

User request:

…

Câu hỏi thường gặp

“Design tokens” là gì?

Đó là các khối xây dựng định sẵn cho màu sắc, khoảng cách và các phần tử hình ảnh khác, đảm bảo thiết kế nhất quán.

“Accessibility (a11y)” là gì?

Đó là việc đảm bảo giao diện có thể được mọi người sử dụng, kể cả người khiếm thị, khiếm thính hoặc khiếm khuyết vận động.

“Hardcoded” nghĩa là gì?

Nghĩa là một giá trị (như màu sắc hoặc kích thước) được viết trực tiếp vào code, thay vì dùng một quy tắc hoặc biến đã định nghĩa.

Chi tiết

Mô tả gốc của tác giả

Review UI code for design system compliance, accessibility, and best practices

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#6042
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự