ui-review
Review UI for visual consistency, layout structure, and design system compliance. Two modes — code review (check view files against patterns) and visual audit…
от steveclarke★ 37 звёзд на GitHub
Установить ui-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
UI Review
Review application UI for consistency, design system compliance, and structural patterns. This skill acts as the "designer eye" — catching inconsistencies that accumulate when features are built ad-hoc.
Two Modes
Mode 1: Code Review (/ui-review or "review the UI code")
Analyze view files for structural consistency. Run this after building new views or when things feel inconsistent.
What to check:
Layout usage — Every page should use a Kiso dashboard layout component (
dashboard_group,dashboard_navbar,dashboard_sidebar,dashboard_panel). Flag any page that hand-rolls its own shell.Page structure — Compare all page templates side-by-side. Look for:
- Consistent page header pattern (title, description, actions)
- Consistent content wrapper (padding, max-width)
- Consistent spacing between sections
- Flag pages that deviate from the dominant pattern
Component usage — Every UI element should use a
kui()component. Flag raw HTML that Kiso already covers: hand-rolled buttons, cards, tables, badges, alerts, avatars, dialogs, dropdowns.Spacing values — Check for arbitrary Tailwind spacing (p-7, mt-11, gap-3.5). All spacing should come from the standard scale: 1, 1.5, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24. Flag non-standard values as potential inconsistencies.
Typography — Check for consistent heading hierarchy. Same type of page should use the same heading size. Flag mixed heading sizes for the same structural role.
Color usage — Should use semantic tokens (primary, secondary, muted, destructive) not raw colors (blue-500, zinc-700). Flag raw color classes except in Kiso component overrides.
Pattern drift — If the same UI concept appears in multiple places (e.g., "a list of items with actions"), they should look the same. Flag divergent implementations of the same concept.
Output format:
## UI Code Review
### Consistency Issues
1. **[file:line]** — Description of what's inconsistent and what it should match
### Missing Kiso Components
1. **[file:line]** — Raw HTML that should use `kui(:component)`
### Non-Standard Values
1. **[file:line]** — `p-7` should be `p-6` or `p-8` (standard scale)
### Recommendations
- Concrete suggestions for extracting shared patterns
Mode 2: Visual Audit ("audit the UI" or "screenshot audit")
Systematic visual analysis of every screen in the app.
Step 1: Discover routes
bin/rails routes | grep "GET" | grep -v "rails/" | grep -v "turbo"
Step 2: Capture each page
Use the browser automation tools (Chrome MCP or claude-in-chrome) to:
- Log in to the app
- Navigate to each route
- For each page, capture two things:
- Screenshot — Save to
tmp/ui-audit/screenshots/with descriptive names - Rendered HTML — Save the page's rendered DOM to
tmp/ui-audit/html/. This is the post-render HTML with all Tailwind classes resolved and Kiso components expanded. More useful than ERB source because it captures final output without tracing through layouts, partials, and components.
- Screenshot — Save to
Step 3: Analyze rendered HTML
The HTML reveals things screenshots can't:
- Kiso component usage — Elements with
data-slotattributes are Kiso components. Elements without them are hand-rolled HTML. Flag hand-rolled elements that have a Kiso equivalent (e.g. a raw<button>whenkui(:button)exists). - Spacing scale compliance — Grep for Tailwind spacing classes (
p-,m-,gap-,space-) and flag values not on the standard scale (1, 1.5, 2, 3, 4, 6, 8, 12, 16). Values likep-7,mt-11,gap-3.5are drift. - Color token compliance — Flag raw color classes (
text-gray-500,bg-blue-600) that should use semantic tokens (text-muted-foreground,bg-primary). - Typography consistency — Check that text size/weight combinations match the defined hierarchy across all pages.
- Layout structure — Verify pages use the expected wrapper components (dashboard shells, content wrappers).
Step 4: Analyze screenshots as a set
Look at ALL screenshots together. Check for:
- Header consistency — Same height, same elements, same positions across pages
- Sidebar consistency — Same width, same style, same active states
- Content area — Same padding, same max-width, same background
- Card styles — Same border radius, same shadow, same padding
- Typography hierarchy — Page titles same size? Section titles same size?
- Spacing rhythm — Consistent gaps between sections across pages
- Color palette — Are the same semantic colors used for the same purposes?
- Empty states — Do pages without data handle it consistently?
- Action placement — Are primary actions always in the same position?
Step 5: Report
Group findings by severity:
- Structural — Different layout shells, missing sidebar, different header
- **Spacin
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ui-review?
Review UI for visual consistency, layout structure, and design system compliance. Two modes — code review (check view files against patterns) and visual audit (screenshot all routes and analyze). Use when reviewing UI code, checking consistency, auditing views, or when user says "review the UI", "check consistency", "UI audit", "design review".
Как установить скилл ui-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ui-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…