ui-review
Review UI code for design system compliance, accessibility, and best practices
它会碰到什么
扫了多少1 个文本文件,5 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
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-6notp-[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-slotattribute - [ ] Uses
cn()for className merging - [ ] Props typed with
React.ComponentProps<> - [ ] Supports
classNameprop 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-visiblestyles 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
alttext - [ ] 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]ortracking-wide - [ ] No
line-height: 1.5on 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 ofw- h-* - [ ] Uses
ms-/me-instead ofml-/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-nonepanel withrounded-fullbuttons). - [ ] 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:
- Score: Pass / Needs Improvement / Fail
- Issues: List each violation with file:line reference
- Fixes: Concrete code changes for each issue
Example
User request:
> Review UI code for design system compliance, accessibility, and best practices.
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
星标★ 46,490
本站分层T1
该仓技能数6676
原文件路径
plugins/agentic-awesome-skills-claude/skills/ui-review/SKILL.md同一个仓库里的其他技能
同名技能的其他版本
有 4 个不同仓库或目录里都有叫 ui-review 的技能。它们内容并不相同,别混用:
- sickn33/agentic-awesome-skills — Review UI code for design system compliance, accessibility, and best practices
- sickn33/agentic-awesome-skills — Review UI code for design system compliance, accessibility, and best practices
- sickn33/agentic-awesome-skills — Review UI code for design system compliance, accessibility, and best practices