review-ui
Skill11 starsChanged 7 days agoMITView on GitHub
Evidence-based code review for bydiorama/ui components, tokens and emitters. Use when reviewing a component PR, validating an implementation against the design, auditing the library, or investigating a "looks wrong" report. Complements add-component (the build pipeline) — this is the verification method that catches what compiles-and-passes but is broken at runtime.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- NVIDIA/kumo-enginetheir own version, first seen Oct 20, 2026
- vrppaul/claude-reviewtheir own version, first seen Oct 13, 2026
- XGENT-ai/skillstheir own version, first seen Oct 13, 2026
- dnywh/skillstheir own version, first seen Sep 16, 2026
- njt2810/claude-code-frameworktheir own version, first seen Sep 10, 2026
- kauffj/agent-configtheir own version, first seen Aug 28, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- NVIDIA/kumo-engine★ 442same name
- aaddrick/claude-pipeline★ 128same name
- kauffj/agent-config★ 8same name
- vrppaul/claude-review★ 3same name
- dnywh/skills★ 1same name
- njt2810/claude-code-framework★ 1same name
- XGENT-ai/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-componentSkill
- app-motionSkill
- craftSkill
- create-skillSkill
- demo-pageSkill
- design-componentSkill
- effectsSkill
- motion-componentSkill
- motion-mediaSkill
- static-renderingSkill
- stills-renderSkill
- video-renderSkill
- visual-reviewSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Never review by reading class strings.
- Distinctive: line 124
Measure, then write. Never the reverse: Every contrast figure in a doc, a comment or a ledger entry is a claim someone will rely on instead …
- Distinctive: line 126
Run the resolver, paste the number.
- Very specific: line 169
No framework/i18n/data-layer imports, no foreign icons, no new faces or paid assets.
- Distinctive: line 182
Do not use changing component or test totals as public copy.
- Very specific: line 190
Every contrast pair measured in light AND dark.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review UI code
The review method for this library, built from the bugs that actually shipped here. Its premise: in a token-bound, utility-compiled system, the source code is the least trustworthy layer. Every serious defect found so far was invisible in the source, green in CI, and only provable in the compiled CSS or the browser's computed styles.
The same premise applies to the DESIGN. A stated model — a message, a
spec, a naming convention someone gives you — is not the file, and the file is
what ships. A button model saying "Default (soft border radius)" was acted on
directly; a border-radius query across the page then returned 200+ matches
in which every composed button was a pill. Both are true: the model is the
intent, the compositions are the current state, and the gap between them is a
decision for the designer rather than something to resolve by picking one.
Query the file before telling anyone what the model implies for their screens.
The method: verify at the layer where the bug lives
Never review by reading class strings. Work down the stack until you hold evidence:
- Source — API contract, boundaries, token discipline (grep-able).
- Emitted theme — does every utility have a variable? (
check:utilities, plus eyeballtoTailwindTheme()output for wrong mappings, not just missing ones — a dimension emitted as a colour passes every resolver.) - Compiled CSS — build Storybook, open the stylesheet, read the actual
rule for each claim. Escaping matters:
hover:compiles tohover\:, parens to\(— a naive grep reports false missing. - Computed style in a real browser — the only ground truth for cursor, focus visibility, font size/weight/family, transition values. jsdom is banned here; it fabricates answers for exactly these questions.
- Behaviour in a real browser — keyboard activation, focus order,
document.fonts.check()for the face actually loading. - Laid-out geometry against the design's own numbers —
getBoundingClientRectversusdesign/paper/specs/<item>.geometry.json. Padding that reads symmetric in the source is not symmetric on screen once a fixed height fights it (ADR 0019). Runpnpm check:design-specand the geometry case inregistry/visual/geometry.browser.test.tsx.
Every accepted finding ships with a failing-first regression test at the
layer that caught it, then graduates up the ratchet (type → gate → lint →
skill line) per add-component.
Shipped-bug catalogue — recheck every one on every review
Each of these passed type-check, lint, unit tests and verify:
| Bug | Where it hid | Detection | |
Focus ring invisible: outline-none poisoned --tw-outline-style, so focus-visible:outline-2 drew style none | Compiled CSS | Computed outlineStyle === "solid" after .focus() | |
Motion dead: duration-[--x] emits the bare property name — invalid CSS, 0s transitions, no press-scale. Custom properties need the parens form duration-(--x) | Compiled CSS | Computed transitionDuration/transitionTimingFunction | |
tailwind-merge deleted text-button-sm as a "conflict" with text-ink-* — md/sm labels silently inherited 16px | Runtime class list | Computed fontSize per size; every new theme namespace registered in cn.ts | |
Consumer px-6 failed to displace px-md — §5 forwarding broken for custom spacing | Runtime class list | cn() unit probes | |
Emitter minted --color-nav-width: 17rem — a colour whose value is a length | Emitted theme | Read the theme for wrong-namespace mappings | |
| "Weight doesn't match" with identical declared weights | Rendering | Smoothing/synthesis parity (CONVENTIONS §6) before touching values | |
pnpm verify green while a gate silently skipped all hover: utilities | The gate itself | Probe: break it on purpose, watch it fail | |
Two contract tokens collapsed to one utility name (--color-edge-focus); the second silently overwrote the first | Emitted theme | Assert the theme has no duplicate variable names | |
Dark-mode placeholder at 3.2:1 — the role was simply absent from CONTRAST_PAIRS, so the audit never looked | Resolved theme | Measure BOTH schemes; an unlisted pair is an unchecked pair | |
| a11y "enforced at error severity" while axe never ran — addon-vitest installed but unwired, and an absolute stories glob matched zero files | The gate itself | Probe with a deliberately unlabelled control | |
Tabs' track inset 3px at the sides and 4px top and bottom. p-[2px] reads symmetric; h-8 demanded a height the parts did not reach and items-center spent the spare pixel vertically | Laid-out geometry | Measure all four gaps from the container's border box; assert against the sheet's world coordinates | |
The same test asserted padding === "2px" and called it "the sheet's own inset". It was 3px. The test had been written from the component, so it pinned the drift instead of catching it | The test itself | Every geometry assertion cites a design node id, or it is circular | |
| Computed style read immediately after a state change returns the pre-transition value — a working focus ring reads as broken | Test | await element.getAnimations() before asserting | |
--ui-border-strong composited to 1.78:1 in dark — weaker than --ui-border-control at 3.09:1, inverting ADR 0010's own ordering, so a mixed Checkbox had no visible box | Resolved theme | Assert the stack's ORDERING, both schemes; the pair was simply absent from NONTEXT_CONTRAST_PAIRS | |
| The rem emitter rounded to 3 places, rendering the designed 13px label at 13.008px | Computed style | Only visible against a px-exact expectation — assert the design's number, not the emitter's | |
| A contrast table read "Passes –:1" for a glass card that was never drawn — no pixels, reported as a pass | The gate itself | A measurement with no data FAILS (NaN → fail); then switch the guard off and watch it fail | |
| A shader canvas appended at the end of a Slider's track painted over the thumb and its SC 1.4.11 ring | DOM order | elementFromPoint at the thumb's centre must hit the thumb | |
Glass kept its blur in forced colours: the step-aside rule was less specific than the glass rule. A second loser hid behind the browser forcing box-shadow: none in that mode | Cascade | Render each effect with and without under emulated media (CDP Emulation.setEmulatedMedia) and compare computed styles — including Tailwind's --tw-*-shadow slots, which forced colours does NOT override | |
| Square corners mid-transition and a rectangle round a glow — only on an iPhone; every headless check was green | iOS Safari compositing | Look on a device. No CSS clip on an animating canvas; glow is a box-shadow, never drop-shadow | |
A stopped shader runtime resurrected canvases from a pending fonts.ready callback | Teardown | Start, stop, render again: no canvas may appear | |
test:browser never regenerated the token stylesheet, so the browser suite could assert against stale CSS | The gate itself | Change a token, run the suite, watch it not fail | |
check:utilities had no mt-/ms-/size-/inset- namespaces — a directional-margin typo emitted no CSS and went unreported | The gate itself | Probe with a nonexistent step (mt-nudge); coverage went 80 → 193 | |
tailwind-merge deleted leading-flat because our type roles sit in its font-size group, whose built-in conflict clears leading — stock text-sm bundles a line height, and ours did not at the time (they do since ADR 0020, as a companion an explicit leading-* still overrides). Badge md and sm both fell to the font's normal leading and rendered identically | Runtime class list | cn() unit tests — which did not exist at all until this review, despite two shipped bugs living there | |
Two sizes differing only by an icon: every test passed while md and sm were pixel-identical, because nothing compared the badges themselves | Computed style | Assert the sizes DIFFER, not just that each is internally consistent | |
pnpm test globbed only packages/*/src/** — registry-level unit tests never ran | The gate itself | Add a failing test under registry/ and watch the suite stay green | |
| A portalled surface ignores the brand theme entirely | Rendering | Theme vars are inherited CSS custom properties; createPortal to document.body leaves the subtree, so a brand scope applied to a wrapper never reaches a Popover/Modal/Multiselect panel. Check EVERY portalled component under a brand scope, not just the trigger | |
| A component "shrinks" in Storybook Docs but is correct in isolation | Layout | w-full inside a shrink-to-fit parent is circular and collapses to content. Reproduce in a fixed-width container BEFORE touching the component — the defect is usually the story, not the code | |
Test failure artifacts committed as if they were baselines — four -actual-/-diff- PNGs tracked under apps/registry/, a directory that should not exist | The index | A failing compare writes them relative to the VITEST ROOT, not the test file: apps/storybook/../registry/... resolves to apps/registry/, which no **/__screenshots__/ rule matches. Ignore the artifact NAMES globally, not the folder. Audit git ls-files '*.png' — debris that looks reviewed is worse than debris | |
| Story tests fail on the FIRST run and pass on the second | The runner | Vite discovered a new dependency mid-run, re-optimised and reloaded the page under the test ("Vite unexpectedly reloaded a test"). Pre-bundle via optimizeDeps.include. Originally seen when ADDING A STORY FILE; it fires on any newly-reachable specifier, and the second sighting was importing @base-ui/react/collapsible — a subpath of a package already in use — which failed three unrelated story files with "Failed to fetch dynamically imported module" while every test that ran passed. The tell is the shape: FILES failed, tests did not (`3 failed | 74 passedwithTests 899 passed`, none failed). Re-run before investigating; a file that cannot import is not a component that is broken |
| A contrast number in a doc that nobody measured. Progress shipped claiming "3.2:1 in light"; it was 1.24:1 and failing | The doc | Every number in a *.doc.ts must come from a command you ran in that session. A fabricated number is worse than none — it stops the next reviewer looking | |
| The same failure on a SHEET, where it reads as art direction. "border-subtle is invisible on bg-sunken" was written from a screenshot; measured, it is 1.21:1 against 1.76:1 for the replacement — and neither clears 3:1, which the prose implied the fix had done | The annotation | Measure the pair against the ground the sheet actually draws, paste the ratio into the annotation, and say which threshold applies — decoration is exempt from 1.4.11, and saying so is what stops the next reader "fixing" it | |
An API that cannot answer the question, answering anyway. get_node_info returns the artboard origin and height: 0 for every child of a hug-content Paper frame — so a geometry spec derived from it is arithmetic over constants | The measurement itself | Sibling coordinates that are all IDENTICAL are the tell. Assert that two children differ before subtracting them; if they do not, the layout was never resolved and the honest report is "not measured", not a number | |
| A claim about the design system quoted from memory instead of from its sheet | The reviewer | Chrome (Header, Sidebar, Nav Rail) has component sheets and a Patterns --- Navigation contract. Four screens were built from a paraphrase and every value was a legal token and the wrong one. Open the sheet, or say you did not | |
A prop forwarded to the behaviour layer that DOES NOT EXIST there. dismissible is not a Base UI Dialog prop, so isDismissable={false} did nothing and Escape closed the dialog anyway | Behaviour | JSX drops unknown props silently. Read the wrapped library's .d.ts for every prop you forward, and assert the BEHAVIOUR the prop promises, not that you passed it | |
[role="slider"] matches nothing, because a native input[type=range] carries the role IMPLICITLY | Test | Query the element (input[type="range"]), not the attribute. An implicit role is the reason to use the native control — a test that demands the explicit attribute is asking the platform to be worse | |
| Naming the GROUP does not name the control inside it — a labelled Slider whose inner input was anonymous | Behaviour | aria-labelledby belongs on the element that carries the role. Assert the name resolves from the focusable element, not from its wrapper | |
| The visual gate passed while a Switch track changed colour completely | The gate itself | allowedMismatchedPixelRatio has a floor: a small element can change entirely and stay under it. A green visual run is evidence about LARGE surfaces, not proof nothing moved | |
A fixed overlay takes the width of a docs cell | Layout | position: fixed resolves against the nearest transformed ancestor, not the viewport. Storybook's docs blocks transform their preview, so 100vw/inset-0 silently scope to it. Never size a fixed surface with viewport units alone; floor it | |
| Type at the right size in the design and 12.17px in the browser | Computed style | title-* and display-* are FLUID roles (clamp(…vw…)); their name and their peak both say 16, and only the computed value says otherwise. Inside a fixed-width surface — a nav rail, a docked panel — a fluid role tracks a viewport the surface ignores, and is smallest on the phone where the design draws it largest. Assert the sheet's px, not the role name | |
A size prop that has never had an effect | Computed style | max-w-md/max-w-xl look like Tailwind's container scale but resolve against this system's spacing scale — 12px and 24px caps that min-w-80 overrode, so every Modal rendered at 320px. Compare variants TO EACH OTHER, on the property the variant sets, not on rendered size: a viewport narrower than both caps makes them identical anyway | |
| An enter animation that is declared, compiles, and never runs | Behaviour | v4's scale-*/translate-* write the standalone properties; transition-[opacity,transform] covered none of them. getComputedStyle().transitionProperty reads exactly as authored in BOTH the working and broken versions — a Popover test asserted it contained "transform" and passed for the defect's entire life. Only el.getAnimations() distinguishes them | |
| A control that is not the library's control | Source | grep -n '<button' registry/ui/*/*.tsx. Every hit that is not Button, the chrome control or an allowlisted exemption is a component someone rebuilt by hand — and it is invisible to every other gate. check:controls enforces it; run the grep anyway on anything the gate cannot see, like a dynamic const Row = isLink ? "a" : "button" | |
| A variant that exists in the type and in no story | Storybook | The Matrix is the only place a reader sees the whole grid. outline and the soft radius at md/lg were reachable through the API and drawn nowhere, so the gap survived a build, a review and a release. Read the Matrix against the design's own axes, not against the props table | |
| An icon slot at the icon library's size, not the design's | Computed style | A slot the component never sizes inherits the library's default — griddy sets width/height="24" as ATTRIBUTES, and only Badge ever overrode it. Every Button, Input and Banner glyph shipped 50% oversize against a sheet that draws 16 at every control size, and at sm a 24px glyph exactly filled the 24px button. Measure the SVG, not the control | |
| An icon that ignores the ink colour | Rendering | 73 of griddy's ~1160 glyphs hard-code fill: "black" — the brand marks. X is the X/Twitter wordmark, not a cross; it rendered black-on-charcoal beside a correctly-lit sibling. lint-licensing now rejects any fixed-fill icon in distributed source. For a close control the glyph is Close | |
| A visual baseline that has always been cropped | The gate itself | elementLocator().toMatchScreenshot() captures what is VISIBLE, and vitest's browser viewport is 414px by default. A 608px matrix frame produced 450px PNGs, so the right-hand third of every case had never been compared — a trailing Switch and a set of trailing icons lived there. The tell was a clipped button written off as "the frame's width". Check a baseline's PIXEL DIMENSIONS against the frame you think you mounted | |
| A focus ring that vanishes in Windows High Contrast | Compiled CSS | Forced-colors mode forces box-shadow to none. Eleven of twelve components drew their ring with shadow-(--ui-focus-ring), so the indicator did not change colour there — it ceased to exist, for the users who most depend on it. Every box-shadow ring needs a forced-colors:outline fallback UNDER ITS OWN VARIANT: peer-focus-visible: on Switch and Checkbox, focus-within: on Input. A fallback under the wrong variant never matches, which is the quiet way this fix fails | |
| A visual tolerance expressed as a RATIO | The gate itself | A ratio is a proportion of the whole frame, so 1% of a 560x300 frame is ~1,700 pixels — more than an entire Switch track. Even 0.001 passed a 4px thumb move, because the changed region is ~64 pixels. Use an ABSOLUTE allowance; 0 is achievable when baselines are machine-specific, and it is the only setting that makes a green run mean "nothing moved" | |
| Every baseline written at 0.8 scale, forever | The gate itself | Vitest runs tests in an IFRAME sized to viewport, inside a Playwright page defaulting to 1280x720 — and an iframe that does not fit is SCALED DOWN. An 800x900 frame in a 720-tall page is 720/900 = 0.8 exactly, so 32 committed baselines were 448px wide for a 560px frame. It self-conceals: a scaled baseline compares cleanly against a scaled capture, so the suite is internally consistent and externally wrong, and at 0.8 a 1px border and a 1.5px ring resample into the same blur. Check a baseline's PIXEL DIMENSIONS against the frame — the same check that caught the crop. Fix by enlarging the PAGE (contextOptions.viewport), never by capping the frame, which trades the downscale back for the crop | |
| A panel that flips and shifts but never shrinks | Behaviour | Base UI does collision avoidance by DEFAULT, so an anchored panel visibly moves near an edge and looks finished. Repositioning cannot make a panel smaller than its space, and a fixed max-h-* knows nothing about the window — so on a short viewport the rows past the fold are unreachable. Cap to --available-height/--available-width, the measurement the positioner already publishes. check:overlays enforces it | |
| A containment test that passes on the bug | Test | "Open it in a corner, assert the rect is on screen" does NOT distinguish a measured cap from a constant one — 256px fits an 896px test viewport fine, and all four cases passed against the defect. Assert that the panel's resolved max-height EQUALS the positioner's published measurement; a constant cannot match it at any size. Any containment claim needs an assertion the broken version fails | |
| A prop whose behaviour depends on the INPUT METHOD | Behaviour | Base UI Select's alignItemWithTrigger defaults to true — the panel overlaps the trigger so the selected row lands on the trigger's value — and it applies to mouse input only, while silently swallowing sideOffset. So the panel lands in one place from a click and another from the keyboard, and a keyboard-driven test passes on the wrong code for free. Read the .d.ts prose, not just the type, and drive the test with the input the prop actually responds to | |
| A prop that announces to assistive tech and shows sighted users nothing | Rendering | Button's isBusy set aria-busy and had no visual for its whole life — the inverse of the usual failure, and invisible to every a11y check because the a11y half was the half that worked. Ask of any state prop: what does each audience get? | |
| A "pointless" fix to a 1.5px edge | Computed style | border: 1.5px computes to 1px (device-pixel flooring); box-shadow: 0 0 0 1.5px computes to 1.5px, because spread is not snapped. Button's ring is a box-shadow and Input's edge is a border, so the same declared number is real in one and lost in the other. Never carry a conclusion about one across to the other | |
| A DERIVED value nobody measured | Resolved theme | outline's edge was derived as "the next step up ADR 0010's stack" and measured 2.14:1 — under the 3:1 SC 1.4.11 wants from a control boundary, which is the only reason that variant exists. Derived means hypothesis: declare its contrast pair in the doc so check:contrast measures it, and let the gate tell you | |
tsc --noEmit passes and the browser cannot load the file | The runner | A {/* … */} between a ternary's ( and its element is two sibling expressions. Type-check was silent; vitest reported "Failed to fetch dynamically imported module", which names the symptom and not the cause. When a test file fails to import, read the vite transform error before anything else | |
| ARIA the type system cannot refuse | The gate itself | aria-selected is not allowed on role="button" — it belongs on the gridcell. React types accept every aria-* on every element, so only axe catches it, and only if a STORY renders the state. A component whose selected state never appears in a story is one axe never sees | |
| Two landmarks of the same kind on one page | The gate itself | <header> is the banner landmark, a document may have exactly one, and axe fails the second. It is a COMPOSITION rule the component cannot enforce — <header> only maps to banner outside article/aside/main/nav/section. Stories that render two must wrap them, and the doc has to say so | |
A part composed through render loses its own data-slot | Runtime DOM | <Sheet.Trigger render={<Header.MenuButton/>} /> renders ONE element and the trigger's data-slot wins, so the part is targetable only by the trigger's slot. True of every render slot here — Popover.Trigger, Modal.Trigger, Sheet.Close. A test or a consumer selector written against the part's own slot silently matches nothing, which reads as "the component did not render" | |
| A gate whose FILE FILTER excludes the new file | The gate itself | check:utilities scanned .tsx only, so the chrome control — a .ts file that is entirely utility classes — was never checked; two nonexistent utilities in it kept the gate green. The first-of-its-kind rule applies to file EXTENSIONS, not just utility families. When a new module carries styling without JSX, or lives in a folder no gate walks, check the gate's own glob before trusting its green | |
| A shared recipe that no per-component test covers | The gate itself | A lib export has no *.doc.ts, so check:contrast cannot see its pairs and no component test renders it. Declare its states in the doc of the component that SHIPS it, and add it to the cross-component suites by hand — the chrome control's hover fill had never been measured against any ink | |
| A gate that reads its own documentation | The gate itself | Tailwind scans comments for class names, which is harmless — until a gate REJECTS names, and a comment explaining why a class is wrong fails the build. Strip comments before scanning, or the fix cannot be documented next to the code | |
tsc passes, check:stories passes, and Storybook cannot index the file | The runner | A */ inside BACKTICKS in a block comment terminates the comment there — everything after it is parsed as code. TypeScript was silent (the remainder happened to parse), ESLint was silent, and check:stories only looks at export shapes; the CSF indexer reported SyntaxError: Missing semicolon at a line that is visibly prose, wrapped in Unable to index, wrapped in Failed to initialize projects. It fails the WHOLE browser suite, not one file, so it reads as an environment problem. When every project fails to start, read the FIRST error, not the aggregate | |
| A transition on a property nothing ever changes | Source | The motion twin of "a prop that announces and shows nothing". transition-[opacity] on a bar whose opacity never moves reads in review as a considered decision and animates no state that exists. Ask of every transition list: which line of this component changes that property, and under which variant? If there is no answer, delete it — check:motion cannot see this one, because a transition that never fires is indistinguishable from one whose trigger is elsewhere | |
| A motion test green on code that moves nothing, or red on code that works | Test | Three shapes, all from Presence: a change in the same task as the mount (no "before" style, so no transition — wait two frames first); a 1ms transition at Off read after it ended (assert transitionDuration and the transitionrun property instead); and a "no slide" assertion failing because 0%→none still creates a transition that moves nothing (assert the keyframes' START value). The motion-component skill has the full table | |
| A gate's first run reporting a false positive | The gate itself | check:utilities rule C found one thing on its first run and it was Table, which had already done the right thing — declaring its custom property through a style object because the value is a calc() an arbitrary class cannot hold. A rule that knows one of a thing's two spellings reports the file that used the other. Before treating a first-run finding as a bug, check whether the code is doing something the RULE has not met yet | |
| A focus ring that reads as broken when tabbed to from a test | Test | Two problems, both silent. :focus-visible does not match a programmatic .focus() on a link in Chromium — so drive it with real Tab presses. And a fixed count of Tabs asserts against whatever happens to be Nth: walk until document.activeElement is the element you mean, then assert |
Measure, then write. Never the reverse. Every contrast figure in a doc, a comment or a ledger entry is a claim someone will rely on instead of checking. Run the resolver, paste the number. This session shipped a fabricated 3.2:1 against a real 1.24:1, and the doc's confidence is exactly what would have stopped the next reviewer from looking.
Check the whole surface under a brand scope, not the trigger. Three of the four defects above were invisible in theme zero and in the contract suite: they only appear when a component is rendered inside a brand scope, inside Docs, or both. The BrandThemed story is mandatory for exactly this reason — but it only works if the thing you need to see is inside the themed subtree.
Probes must fail for the right reason. A bare scale-98 set from a test
file proves nothing about a component using data-[starting-style]:scale-98:
Tailwind compiles only what it finds when scanning source, so the probe is
absent even when the component's rule exists. It read as dead CSS and was not.
To check a variant utility, read the compiled rule out of
document.styleSheets — layer 3 — rather than inventing a class at runtime.
Also known: Tailwind scans comments for class names — a class named in a comment compiles a dead rule. Harmless, but don't let it fool a grep-count.
Review dimensions (industry-standard set, local enforcement noted)
A11y (the floor is WCAG 2.2 AA, verified not asserted — CONVENTIONS §10)
- Visible focus indicator, computed, on every interactive element — the industry's most-cited review item and the one we shipped broken.
- Keyboard contract exercised in Chromium (Enter, Space, Tab, escape/arrows where applicable); focus never lost on state change.
- Interactive state contrast, not just resting: hover/active/focus pairs
re-measured — a 5–10% darker hover can quietly fall under AA. Our resolver
audits declared pairs; new state tokens must join
CONTRAST_PAIRS. - Targets ≥24px (2.5.8); names on icon-only controls (type-enforced here).
Tokens (no hardcoded colour/size/space/z — the universal rule)
- Zero raw values and zero palette steps in components; roles only.
- New namespaces registered in
cn.tsmerge config the moment they exist. - Both schemes exercised; brand re-skin proven via the BrandThemed story.
API contract (CONVENTIONS §1–§5)
- Naming table upheld; variants are exported closed unions; slots unwrapped;
ref + className/rest forwarding; misuse states are type errors where
possible (
@ts-expect-errorfile present and honest).
Boundaries (lint + licensing gates)
- No framework/i18n/data-layer imports, no foreign icons, no new faces or paid assets. If a review approves an exception, it needs an ADR, not a nod.
Docs & governance (the review is not done at LGTM)
- Public registration: manifest
categoryanddocs, a usefulleadin the typed doc, andpnpm check:site-datagreen. Build withpnpm site:buildto verify the HTML reference, Markdown twin and registry route. A live specimen must import registry source;check:site-sourcerejects copied components. - Site UI changes:
pnpm test:sitechecks actual rendered scheme colors across brands and reload persistence. Saved attributes alone missed a CSS cascade bug. Inspect narrow API rows and the left edges of both navigation columns; use registry controls for preferences. Installation changes also needpnpm test:cli-package, which runs the packed executable. - Do not use changing component or test totals as public copy. Describe the work and its limits. Keep fixture values and API defaults in their context.
- Typed doc describes the component as shipped — including known gaps; a doc that names a prop that doesn't exist is a defect, found here once.
- Ledger entry with real
affects; registry rebuilt; Paper updated when the finding is a design bug (flow stays repo → Paper).
Schemes (both, always)
- Every contrast pair measured in light AND dark. Theme zero authors light
explicitly and lets dark derive, so a role missing from
ZERO_AUTHORED.darkfalls to derivation — which is where the placeholder failure lived.
Visual (geometry is gated; the rest is still eyes)
- Geometry is arithmetic now, not judgement (ADR 0019). If the item has a
spec,
check:design-specproves the sheet obeys its own laws and the geometry test proves the render reproduces its four insets. If it has no spec, say so in the report — an ungated component is not a passing one. - Matrix story vs the Paper export, both schemes, at two sizes. Still manual:
the visual baselines let a small element change ENTIRELY under
allowedMismatchedPixelRatio, so green is evidence about large surfaces only. Compare against a design export by diffing, not by looking — thevisual-reviewskill is the method: 1× exports of the frame and its key parts, the state reproduced by script, a canvas diff in the same browser (registry/tooling/visual-diff/visual-diff.mjs, shipped as thevisual-diffitem), then read the red — glyph outline is rasterisation, a doubled element is an offset, a red block is a missing or mis-sized part — and measure withgetBoundingClientRectagainst the design's layout values before proposing a fix. A baseline diff tells you the component moved; only this tells you it moved away from the design. - Looking is how findings enter; arithmetic is how they stay. A perceptual
finding ("the fill sits closer to the left than the top") is a hypothesis.
Discharge it exactly one of two ways: promote it to a law in
scripts/lib/geometry-laws.mjs, or record it as a specdeviationwith the reason written out. Never leave it as a comment — that is what "recorded in needsDesign" did for the 2px inset, for as long as Tabs existed.
Report format
Findings ordered by severity, each with: the evidence (rule/computed value, not the source line alone), the failing-first test added, the fix, and the ratchet step taken. A finding without evidence at the failing layer is a hypothesis, not a finding — say so.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

