Skip to content
Skill

Visual regression baseline

Compares UI screenshots against a known-good baseline under fixed, recorded conditions

Visual regression baseline is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
227
Last commit
License
MIT
Listing updated

Similar skills

About Visual regression baseline

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (4 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Visual regression baseline 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.

More from mtarcure/claude-vibe-squad

  1. Writes alt text, timed captions and transcripts for images, footage and audio

    • Open source
    • 227 GitHub stars
    • Design and media
  2. Guides building product agent system prompts with eval-backed boundaries and output

    • Open source
    • 227 GitHub stars
    • AI models and LLM tooling
  3. Guides authorized adversarial testing of autonomous LLM agents for injection and approval

    • Open source
    • 227 GitHub stars
    • Security
  4. Writes a typed game-event to audio-cue map that hands adaptive audio designs to engines

    • Open source
    • 227 GitHub stars
    • Developer tools
  5. Generates missing README, CHANGELOG, LICENSE and agent-context files at project delivery

    • Open source
    • 227 GitHub stars
    • Developer tools
  6. Builds and proves multi-step exploit chains from weak bug-bounty findings

    • Open source
    • 227 GitHub stars
    • Security