UI diff
On every pull request it compares the UI against its base and posts one comment saying what changed visually.
Compares every route a pull request touches at base and head, names the style changes it measured and posts one sticky PR comment that starts with the verdict. Only people who can read the repo can see the images.


- Hover and focus states. Links, buttons and form fields in the first viewport are also checked hovered and reached with Tab, so a PR that only changes a hover color or drops a focus ring reads
button 'Save' · hover: background #1d4ed8 → #1e3a8a, with a before and after crop. - Recorded flows. List a few steps in
flows, such as a click, typing or a wait, and ui-diff replays them on base and head and compares the page at each checkpoint, underflow 'menu' · after open. A flow that no longer gets through is reported:flow 'checkout' stops at step 3 on head: button 'Pay' not found. - Component mode. Point
componentsat one selector, on a route or after a flow, to get the same tight crop on both sides and only the changes inside it, undercomponent 'primary button'with how its box changed. A component the selector no longer finds is reported as removed.
The repo’s verified example: one page committed at 6737326 and cc13cab. The primary button got more padding and rounder corners, the gap beside it grew by 1px and the email label turned blue. This is the top of the comment ui-diff wrote for it, trimmed.
### UI diff · 5 measured changes on 1 route **Base** `6737326` → **Head** `cc13cab` · 1 route · desktop, mobile · light, dark #### Measured changes **`/`** - `label 'Work email'` (`label`): color #0f172a → #2563eb · desktop, mobile · light- `label 'Work email'` (`label`): color #f8fafc → #2563eb · desktop, mobile · dark- `link 'Start free trial'` (`a.cta`): padding 8px 14px → 10px 18px · desktop, mobile · light, dark - size 134.5×40px → 142.5×44px (from the padding change) <details><summary>10 effects on other elements</summary> …- `link 'Start free trial'` (`a.cta`): border-radius 4px → 8px · desktop, mobile · light, dark- `div.hero-actions`: gap 16px → 17px · desktop, mobile · light, dark
/ on mobile, light, and the line ui-diff puts under it: link 'Start free trial': padding 8px 14px → 10px 18px · border-radius 4px → 8px- Works out which routes your changed files affect, using
ui-diff.config.json, the framework’s routing and the import graph. - Runs the PR’s base and head in temporary git worktrees, or uses preview URLs, and captures each route with Playwright. Clock, randomness, animations and fonts are frozen on both sides, so the same page gives the same pixels.
- Matches base and head elements, measures their style changes and checks each one against the changed pixels. A change that fails the check is listed as unverified, never dropped.
- Creates or updates one sticky PR comment. The images go to an orphan branch of the same repository, so only people who can read the repo can see them.
The story behind it is in Issue 02: The camera was never the hard part.
When a pull request changes components, styles or pages and reviewers would otherwise approve it from the code. Run ui-diff check on your branch first. Nothing gets posted until you publish.
It also checks a menu, form or dialog after it is used and a single component on its own, puts design variants side by side (?hero=1..4), records hover and transition clips, reports new accessibility issues, and flags colors and spacing that match no design token.
The full-page image from the 2.0 comment for the repo’s verified example, at commits 6737326 and cc13cab.

Plain English works.
- /type-taste Fix the type before review.
- /ghost-record Demo the finished component.
The full skill
The instructions your agent reads, from SKILL.md, and 4 reference files.
- 01Privacy rules (always)
- 021. Context
- 032. Detect changed UI and choose routes
- 043. Capture and diff
- 054. Review and write the UX summary
- 065. Publish one sticky comment
- 076. Wrap up
- 08Extras
references/config.md· ui-diff.config.jsonreferences/extras.md· Extrasreferences/privacy.md· Privacy, image hosting and protected previewsreferences/troubleshooting.md· Troubleshooting