# Visual regression baseline

> Visual regression baseline is an open-source agent skill for developer tools. Compares UI screenshots against a known-good baseline under fixed, recorded conditions. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/visual-regression-baseline
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** visual-regression-baseline
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through visual regression testing of a user interface. It starts by listing the screens, components, breakpoints, theme variants and interaction states to verify, then captures a reference image for each one from a known-good build, recording the viewport, device scale, color scheme, locale and build commit alongside it.

Before comparing, the workflow asks the agent to remove sources of pixel noise that are unrelated to the change under test. That means freezing the clock and random seeds, disabling animations, waiting for web fonts to load, and masking declared dynamic areas such as timestamps, avatars, ads and carousels. The candidate build is then re-captured under the same conditions, and a pixel or perceptual diff with a declared tolerance produces a highlighted delta image for each changed entry.

The skill treats a numeric diff as a signal rather than a verdict. Each diff is reviewed and labelled either intended, in which case the new image is promoted to the baseline with a note, or a regression to reject. The skill names it as a specialist gate for web app and game production work and states that it checks appearance only, not functionality or accessibility.

## When your agent uses it

> Use when a known-good render and candidate captures must be compared reproducibly: lock viewport, scale, theme, locale, and time; mask declared dynamic regions; produce tolerance-bounded pixel/perceptual deltas; and classify each delta before replacing the reference set.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/visual-regression-baseline)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/visual-regression-baseline)

## Features

- **Capture set definition:** Lists the routes, components, breakpoints, themes and interaction states that each need a named capture.
- **Recorded baseline conditions:** Stores viewport, device scale, color scheme, locale and build commit with every reference image.
- **Non-determinism control:** Freezes clocks and seeds, disables animations, waits for fonts and masks declared dynamic regions before diffing.
- **Tolerance-bounded diffing:** Compares candidate and baseline images with a declared anti-aliasing tolerance and produces highlighted delta images.
- **Diff classification review:** Requires each non-identical capture to be classed as intended or regression before the baseline is replaced.

## Good for

- Check whether a CSS change moved any page layout across mobile, tablet and desktop widths
- Compare dark theme screenshots before and after a design system update
- Verify that a checkout flow's error and empty states still render as expected
- Review pixel differences in game UI screens between two builds

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/visual-regression-baseline` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/visual-regression-baseline &&
cp -R "$tmp/.agents/skills/visual-regression-baseline" ~/.claude/skills/visual-regression-baseline &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/visual-regression-baseline` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/visual-regression-baseline` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/visual-regression-baseline &&
cp -R "$tmp/.agents/skills/visual-regression-baseline" ~/.agents/skills/visual-regression-baseline &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/visual-regression-baseline` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/visual-regression-baseline` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/visual-regression-baseline &&
cp -R "$tmp/.agents/skills/visual-regression-baseline" ~/.cursor/skills/visual-regression-baseline &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/visual-regression-baseline` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/visual-regression-baseline
```

Or copy the folder to `~/.gemini/skills/visual-regression-baseline` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/visual-regression-baseline`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/visual-regression-baseline &&
cp -R "$tmp/.agents/skills/visual-regression-baseline" ~/.copilot/skills/visual-regression-baseline &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/visual-regression-baseline` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/visual-regression-baseline` into your agent's skills folder as `visual-regression-baseline`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does the skill need any scripts or external tools to run?

It ships no scripts. It refers to browser screenshot tools such as chrome-devtools or playwright take_screenshot functions and to an image viewing step for reviewing diffs.

### Can Visual regression baseline replace functional or accessibility testing?

No. The skill states that it checks how things look, not whether they work or are accessible, and points to separate audits and e2e tests for those.

### What happens if a diff is in a masked region?

Masked and tolerated deltas are documented rather than hidden, and the masks are versioned with the baseline.

### When is Visual regression baseline meant to be invoked?

It is named as the required visual verification gate for the project web-app and game-production workflows, and for any task that must judge a UI or render change.

### How do I install Visual regression baseline in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/visual-regression-baseline to use it in all your projects, or to .claude/skills/visual-regression-baseline in one project.

### Does Visual regression baseline run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Visual regression baseline?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Visual regression baseline?

The closest alternatives to Visual regression baseline are Visual verify, Differential review, PR screenshots, Benchmark and SEO drift.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Visual verify](https://ai-powered.com/skills/visual-verify): Visual verify is an open-source agent skill for developer tools.
- [Differential review](https://ai-powered.com/skills/differential-review-mtarcure): Differential review is an open-source agent skill for developer tools.
- [PR screenshots](https://ai-powered.com/skills/pr-screenshots-getsentry): PR screenshots is an open-source agent skill for developer tools.
- [Benchmark](https://ai-powered.com/skills/benchmark): Benchmark is an open-source agent skill for developer tools.
- [SEO drift](https://ai-powered.com/skills/seo-drift): SEO drift is an open-source agent skill for marketing and seo.
- [UI screenshots](https://ai-powered.com/skills/ui-screenshots): UI screenshots is an open-source agent skill for developer tools.
- [Browser QA](https://ai-powered.com/skills/browser-qa): Browser QA is an open-source agent skill for developer tools.
- [Web design reviewer](https://ai-powered.com/skills/web-design-reviewer): Web design reviewer is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/visual-regression-baseline
