ui-visual-self-review
БесплатноБез исполняемых скриптовНе проверенUse when you are about to hand off any UI change - the four-width check and the screenshot checklist that decide whether the screen is really done.
от makifbaysal★ 123 звезды на GitHubОб этом скилле
UI Visual Self-Review
Overview
A change that compiles and passes its tests has not been looked at. The UI you're about to hand off is not done because the build is green or because you read the JSX and it looked right — it is done when you have screenshots at four widths that prove it.
Core principle: Default assumption: the change is NOT done until the screenshots prove it. Be the skeptic here, not the advocate — look for what's still wrong, not for confirmation that it's fine.
The procedure (exact tool calls)
- Start the dev server detached, as your main instructions' "Seeing the change" section describes:
mkdir -p /tmp/tt-<task key> && npm run dev > /tmp/tt-<task key>/dev.log 2>&1 &, thensleep 5; cat /tmp/tt-<task key>/dev.logto read the port. browser_navigateto the changed page.browser_wait_forthe content that proves the page actually rendered (not a spinner, not a blank shell).- For each width in the four-width table, in order:
browser_set_viewportwith the exact args from the table below.- Read its response: whether the page scrolls horizontally, and which elements overflow. That response is itself a finding — don't discard it once you've glanced at the screenshot.
browser_screenshotwithfull_page: trueand nowidthargument (passingwidthhere re-emulates the viewport and silently throws away the size you just set).- Look at the screenshot against the checklist below.
browser_read_domwithcontains: "..."for each new element, to confirm it's actually present (and whether hidden) — this is not a substitute for looking at the screenshot, it's a second signal.- Drive the interactive states at phone width at minimum: open the mobile menu, an accordion, a dialog; submit a form with empty required fields and look at the errors.
| Name | Width | browser_set_viewport call |
Tailwind band |
|---|---|---|---|
| phone | 360 | {device: "mobile", width: 360} |
below sm |
| tablet | 768 | {device: "tablet"} |
md |
| laptop | 1024 | {device: "desktop", width: 1024} |
lg |
| desktop | 1440 | {device: "desktop"} |
xl+ |
Phone is 360, not 390, on purpose — most real overflow bugs show up between 320 and 375, and 390 is wide enough to hide some of them.
Batch, then fix, then one re-check
Collect every finding from every width before you touch any code. Fixing after each screenshot means re-screenshotting after each fix, which is slower and hides whether one fix broke another width. Fix everything from the batch in one pass, then re-run the full four-width check once. At most two rounds total — whatever is still open after round two goes into the closing message, honestly, rather than triggering a third silent pass.
The checklist
Each item is a yes/no question with a concrete threshold — "looks okay" is not an answer to any of them.
Layout & overflow
- Does
browser_set_viewportreport zero horizontal scroll and zero overflowing elements at all four widths? - Is anything clipped, overlapping, or cut off in the screenshot that wasn't in the report (decorative elements near an edge, a dropdown that opens off-screen)?
- Do flex/grid rows with text children carry
min-w-0, and are long wordsbreak-wordsnotbreak-all?
Hierarchy & rhythm
- Is there exactly one visually primary action per view, and is it the most prominent thing on screen?
- Is spacing tighter inside a group than between groups, with more space above a heading than below it?
- Squint test: blur your eyes (or back away from the screenshot) — is the primary action still the first thing you'd tap?
Typography
- Is body measure 60–75ch (
max-w-prose), are headingstext-balanceand bodytext-pretty, are numbers/pricestabular-nums? - Does every heading step correctly per breakpoint, with no heading wrapping to an awkward single orphan word?
Colour & contrast
- Only semantic tokens (
bg-primary,text-muted-foreground) — no raw palette class, no hex, in the diff? - Body text ≥4.5:1 contrast, large text ≥3:1, in both themes if the project has dark mode?
- Is status (error/success/warning) carried by an icon or text, never colour alone?
States & content resilience
- Loading: does the skeleton match the final layout's shape, not a generic spinner?
- Empty: is there a message and one clear next action, not a blank rectangle?
- Error: is there a recovery action, not just red text?
- Hover,
focus-visible, active, and disabled all styled on every control you touched? - Did you feed the longest realistic string and an empty list/value to anything you added, and look at both?
Navigation & touch
- Below
md, does ≥5 links collapse into a menu button witharia-expanded/aria-controls, and does the panel close on link click andEscape? - Are touch targets ≥44×44px on phone, ≥24px on desktop, with no function that only works on hover?
Consistency
- Does the same kind of control (a primary button, a card, a b
Установить ui-visual-self-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ui-visual-self-review?
Use when you are about to hand off any UI change - the four-width check and the screenshot checklist that decide whether the screen is really done.
Как установить скилл ui-visual-self-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ui-visual-self-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic