
Why it mattersA reviewer sees what the change looks like without running the branch. The agent can run the skill from a one-line prompt.
A reviewer on a UI pull request still has to run the branch to see the change. The description says the margin changed. The screenshots are from the old version. Nobody has time to check every PR, so most reviews read the diff and trust the author.
Murat Alpay released ui-diff on GitHub on 18 November 2026. The licence is MIT. The repository had 117 stars and 7 forks when checked. ui-diff is an agent skill for Claude Code, Cursor and Codex. It takes screenshots of each UI pull request before and after the change. It highlights the pixel diffs and writes a short summary. It posts everything as one sticky comment on the pull request.
What the skill posts
The agent runs on a pull request that touches the interface. It captures the affected pages from the base branch and from the branch under review. It compares each pair of pictures, highlights the pixels that changed, and writes a short summary.
The summary names the thing that moved and by how much. One example from the README reads "link padding 8px 14px to 10px 18px". The reviewer reads the style change in words, not only in pixels.
The result is one comment on the pull request. The skill updates the same comment on every push. The images are kept in a separate branch of the same repository. Only people who can read the repository can see them.
How the skill finds the pages that changed
A developer prompts the agent in one line. The README gives the example: "Run the ui-diff skill on PR #123 and update the sticky PR comment." The skill is installed once per machine. The command is ./install.sh --claude for Claude Code, or --codex for Codex. Cursor reads the same path as Claude Code.
The skill knows which pages changed. It reads the project's routing from Next.js, SvelteKit, Nuxt, Astro, Remix or TanStack Router. It can also use a config file that lists each page and the files it depends on. A user can name the pages by hand if neither of the two works.
What makes each run repeatable
The clock is frozen. Random seeds are fixed. Animations are stopped. Scrollbars are hidden. Service workers are turned off. These choices mean the same code produces the same picture. A real change in the screenshots is a real change on the page.
The browser is Chromium, through Playwright, and the project can use the Chrome already on the machine instead. Pixel comparison runs through pixelmatch. The first run installs the dependencies and builds once, which takes about a minute.
The limits Murat Alpay states
The skill needs Node.js 20.10 or newer, git, and a lockfile in the repository. It needs the GitHub command line tool to post the comment. It can only compare pages the agent can render. A page that needs a logged-in user or a live database is not covered without a test account.
Source
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.