ui-verify
Measure the page, don't trust the screenshot. A skill for AI coding agents
(and a set of plain browser functions for humans) that checks web layout with
numbers: overflow and its culprit, contrast over real backgrounds, uneven
cards, which CSS rule won, theme switching, missing glyphs, covered elements,
clipped text, images, mobile basics, and every breakpoint in between.
Русская версия
Why
An agent looks at a screenshot, doesn't see the change, and "fixes" CSS that
was working. Or it sees a pale link that is pale only because the image was
compressed. Screenshots lose low-contrast detail and can be captured before
the page finishes painting, so:
- a positive result is reliable, a negative one is not — "I see it" is a
fact, "I don't see it" is a question;
- a confident number is also just a channel — a naive contrast meter
reports 1.36 : 1 for text that is really 9.4 : 1, and someone goes to fix it.
So every check here runs inside the page, measures what the browser actually
computed, and answers in three states: ok: true, ok: false with the
element, numbers and cause, or ok: null with the reason it cannot tell.
Where a check is unsure (an effect it does not model, an image it cannot
read) it says so instead of filling the gap with a made-up number — and every
answer lists what it covered, so a true is never read as more than it is.

What it checks
| Check | Catches | Typical answer |
|---|
settle | measuring too early: 0×0 viewport of a hidden pane, fonts/images loading, transitions running, 404 assets | blockers: ["viewport is 0×0 …"] |
overflow | page scrolls sideways — the outermost culprit, why, and the wider child inside | div.o-band 1100px in a 1015px section — wider than its container |
widths | bugs that live between breakpoints: reads the page's own @media widths, sweeps them, bisects to the exact pixel; flags fractional-zoom gaps | failingRanges: ["1024–1039"], gaps: ["1039px/1040px"] |
contrast | WCAG contrast against what is really under the text: translucent layers, gradients, siblings, image pixels; any CSS colour incl. oklch(), color-mix() | 1.55 : 1 fail · over a photo: judged on its pixels · inconclusive, range 1–21 |
grid | cards, tiles, covers of different size; points at min-width: auto blow-outs | widths differ: 182px ×2, 512px ×1 |
rules | "my CSS didn't apply": every matching rule with @media/@layer/@supports context, active or not, specificity, likely winner | .r-box (unlayered) beats @layer #r-target |
theme | theme mechanism (class, data-theme, data-bs-theme, media); switch there and back — colours that don't return or are frozen by a transition | stale: #t-ld color |
glyphs | characters drawn by a fallback font (arrows, ✓, currency signs) | missing: ["→", "€"] |
visible | "numbers are fine but it's not on screen": covered by a sibling, clipped by overflow, opacity, off-screen, and whether clicks reach it | covered by img.v-frame — static under positioned |
clipped | text cut off by overflow: hidden or spilling out of a button/card; ignores ellipsis, line-clamp, .sr-only | button#cl-btn spills 91px |
images | broken, stretched, blurry for the screen's DPR, oversized, no width/height, no alt | distorted 200×200 from 200×100 |
mobile | viewport meta, text < 12px, inputs < 16px (iOS zoom), tap targets < 24×24 with WCAG 2.2 exceptions | smallTargets: 2 icons 16×16, 4px apart |
Each answer comes with a fix recipe in
references/fixes.md.
Contrast that doesn't lie

The check hit-tests every line of the text, walks every layer beneath it
(not just the parents) and composites them back together, including group
opacity of ancestors and the colours between gradient stops. Over a
same-origin <img> or <video> it reads the actual pixels under the text,
about one per CSS pixel: it passes only if every sampled pixel passes. Where
the pixels are unknowable (CSS background image, cross-origin), it computes
the bound over any colour underneath (exact for opaque text): if even the
worst case passes, the overlay
guarantees legibility; if not, the answer is inconclusive with a range.
Filters, blend modes and big ::before overlays it cannot model make the
answer inconclusive, with the estimate attached.
Every width that matters, not two presets

Install
Claude Code (plugin):
claude plugin marketplace add itpartypattaya/ui-verify
claude plugin install ui-verify@ui-verify
or inside a session: /plugin marketplace add itpartypattaya/ui-verify, then
/plugin install ui-verify@ui-verify.