Common Web Visual Testing
HoangNguyen0403/agent-skills-standard
Standardizes visual audits, responsive design, and behavioral testing for web apps.
Compare a baseline URL against a dev or Storybook URL by taking Playwright screenshots at multiple breakpoints, running a pixel-level image diff, and reporting results to guide style and HTML…
$ npx skills add bitovi/ai-enablement-prompts --skill visual-diff -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install bitovi/ai-enablement-prompts visual-diff --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/playwright/skills/visual-diff .claude/skills/visual-diff && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "visual-diff" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/visual-diff into .claude/skills/visual-diff/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "visual-diff", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/visual-diffType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add bitovi/ai-enablement-prompts --skill visual-diff -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install bitovi/ai-enablement-prompts visual-diff --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/playwright/skills/visual-diff .agents/skills/visual-diff && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "visual-diff" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/visual-diff into .agents/skills/visual-diff/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "visual-diff", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bitovi/ai-enablement-prompts --skill visual-diff -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install bitovi/ai-enablement-prompts visual-diff --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/playwright/skills/visual-diff .cursor/skills/visual-diff && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "visual-diff" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/visual-diff into .cursor/skills/visual-diff/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "visual-diff", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/bitovi/ai-enablement-prompts.git --path plugins/playwright/skills/visual-diff--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add bitovi/ai-enablement-prompts --skill visual-diff -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install bitovi/ai-enablement-prompts visual-diff --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/playwright/skills/visual-diff .gemini/skills/visual-diff && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "visual-diff" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/visual-diff into .gemini/skills/visual-diff/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "visual-diff", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install bitovi/ai-enablement-prompts visual-diffInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add bitovi/ai-enablement-prompts --skill visual-diff -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/playwright/skills/visual-diff .github/skills/visual-diff && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "visual-diff" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/visual-diff into .github/skills/visual-diff/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "visual-diff", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bitovi/ai-enablement-prompts --skill visual-diff -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install bitovi/ai-enablement-prompts visual-diff --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/playwright/skills/visual-diff .opencode/skills/visual-diff && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "visual-diff" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/visual-diff into .opencode/skills/visual-diff/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "visual-diff", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
visual-diffCompare a baseline URL against a dev or Storybook URL by taking Playwright screenshots at multiple breakpoints, running a pixel-level image diff, and reporting results to guide style and HTML…
Visual Diff is an agent skill from bitovi/ai-enablement-prompts. Compare a baseline URL against a dev or Storybook URL by taking Playwright screenshots at multiple breakpoints, running a pixel-level image diff, and reporting results to guide style and HTML corrections. Use when replicating an existing page or component, verifying visual accuracy, or checking responsive fidelity.
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design, covering Visual regression testing, Responsive design and Browser testing. It works with Storybook and Playwright. The repository describes itself as: Prompts Bitovi uses for software development. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit df229b1. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
nodenpxFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
bitovi.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Visual Diff loads about 2.9k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 994 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from bitovi/ai-enablement-prompts at commit df229b1, republished under its MIT licence (© bitovi). 994 words, ~2,911 tokens.
.claude/skills/visual-diff/SKILL.md (or your agent's skills folder).Compare two URLs visually — a baseline (e.g. production site) and a current (e.g. local dev server or Storybook story) — to find pixel-level differences and guide corrections.
Before starting, confirm:
.vscode/mcp.json with --caps=visionpackage.json devDependencies:4321, Storybook on :6006, etc.)temp/ directory exists in the workspace root (it's gitignored)If the dev server or Storybook isn't running, start them using the VS Code tasks:
The agent needs:
| Input | Required | Example |
|---|---|---|
| Baseline URL | Yes | https://www.bitovi.com/ |
| Current URL | Yes | http://localhost:4321/ or http://localhost:6006/?path=/story/card--default |
| CSS selector | No | #hero-section or .card-grid (for element-scoped comparison) |
| Breakpoints | No | Defaults to mobile (375×667), tablet (768×1024), desktop (1280×720) |
When comparing a specific component — especially when the Storybook story renders only that component but the baseline page has a full page around it — crop to the component's bounding box so the diff isn't polluted by unrelated page sections (nav bars, sticky overlays, other modules above/below).
How to crop on the baseline page:
{ width: 1280, height: 720 }() => document.querySelector('<selector>').scrollIntoView({ behavior: 'instant', block: 'start' })() => document.querySelector('<selector>').getBoundingClientRect().heightmcp_playwright_browser_resize → { width: 1280, height: <measured height> }Background bleed warning: What's visible behind the component will differ between Storybook (blank) and the baseline page (other modules). Common cases: sticky/local nav bars overlapping the top, modals/overlays with other page content visible behind them, and partially transparent components. These residual diffs cluster outside the component's own content and are not actionable — ignore them.
How to crop on the Storybook story:
Storybook iframe.html renders only the component with no surrounding chrome — no resizing needed. Just navigate and screenshot:
mcp_playwright_browser_navigate → { url: "http://localhost:6006/iframe.html?id=<story-id>&viewMode=story" }
mcp_playwright_browser_resize → { width: 1280, height: <same height as baseline crop> }
mcp_playwright_browser_take_screenshot → { filename: "temp/vdiff-current-desktop.png" }1. mcp_playwright_browser_navigate → { url: "<baseline-url>" }
2. mcp_playwright_browser_resize → { width: 1280, height: 720 }
3. mcp_playwright_browser_wait_for → { time: 2 } # let page fully render
4. mcp_playwright_browser_take_screenshot → {
type: "png",
filename: "temp/vdiff-baseline-desktop.png"
}Repeat for each breakpoint:
| Breakpoint | Width | Height | Filename suffix |
|---|---|---|---|
| Mobile | 375 | 667 | -mobile |
| Tablet | 768 | 1024 | -tablet |
| Desktop | 1280 | 720 | -desktop |
Repeat the exact same process for the current URL, using temp/vdiff-current-{breakpoint}.png filenames.
Important: Use the same viewport dimensions and the same cropping strategy (component-scoped or full-page) on both sides so the comparison is apples-to-apples.
For each breakpoint, run the visual-diff script in the terminal:
node scripts/visual-diff.mjs \
--baseline temp/vdiff-baseline-desktop.png \
--current temp/vdiff-current-desktop.png \
--output temp/vdiff-diff-desktop.pngThe script outputs JSON to stdout:
{
"totalPixels": 921600,
"diffPixels": 4521,
"diffPercent": 0.49,
"width": 1280,
"height": 720,
"baselineDimensions": { "width": 1280, "height": 720 },
"currentDimensions": { "width": 1280, "height": 720 },
"dimensionsMismatch": false,
"diffImagePath": "/absolute/path/to/temp/vdiff-diff-desktop.png"
}If dimensionsMismatch is true, the images had different sizes. The script pads the smaller image with transparent pixels before comparing. This often indicates a layout issue worth investigating.
Start a temporary HTTP server to serve the temp/ directory, then navigate Playwright to the diff image:
# Start server in background (run once per session)
npx -y http-server temp/ -p 8787 --cors -c-1 &Then navigate Playwright to the diff image:
mcp_playwright_browser_navigate → { url: "http://localhost:8787/vdiff-diff-desktop.png" }
mcp_playwright_browser_take_screenshot → {} # triggers vision — agent can now see the diffThe --caps=vision flag on Playwright MCP means the agent can see the image directly in the screenshot output.
Note: file:// URLs are blocked by Playwright MCP, so the HTTP server is required. Start it once and reuse it for all diff images in the session.
Reading the diff image:
Combine the quantitative JSON data with the visual diff inspection:
| diffPercent | Interpretation | Action |
|---|---|---|
| < 1% | Visually identical | Minor sub-pixel differences only. No action needed. |
| 1–5% | Close match | Inspect diff image for spacing, font weight, or border differences. Small CSS tweaks likely needed. |
| 5–15% | Notable differences | Layout shifts, color mismatches, or missing elements. Review the red clusters in the diff to identify which sections need work. |
| > 15% | Significant gap | Major structural or styling differences. Focus on the largest red regions first — these indicate the biggest layout discrepancies. |
When interpreting the diff image, note:
diffPercent reaches an acceptable levelTypical targets:
By default, screenshots capture only the visible viewport. For long pages, use the fullPage option:
mcp_playwright_browser_take_screenshot → {
type: "png",
fullPage: true,
filename: "temp/vdiff-baseline-desktop-full.png"
}Warning: Full-page screenshots produce large images and slower diffs. Only use when comparing entire page layouts.
When screenshotting Storybook stories:
Use the iframe URL for cleaner screenshots (no Storybook chrome):
http://localhost:6006/iframe.html?id=components-card--default&viewMode=storyWait for render — Storybook stories may take a moment to hydrate:
mcp_playwright_browser_wait_for → { time: 3 }Element screenshots work well for isolating the story content from any Storybook padding.
The --threshold flag (0 to 1) controls pixelmatch sensitivity:
| Value | Sensitivity | Use case |
|---|---|---|
| 0.05 | Very strict | Exact pixel matching, catches everything |
| 0.1 | Default | Good balance, ignores most anti-aliasing |
| 0.2 | Lenient | Tolerates font rendering differences across systems |
| 0.3 | Very lenient | Only catches major color/layout differences |
node scripts/visual-diff.mjs \
--baseline temp/vdiff-baseline-desktop.png \
--current temp/vdiff-current-desktop.png \
--output temp/vdiff-diff-desktop.png \
--threshold 0.2# 1. Screenshot baseline (production site hero)
mcp_playwright_browser_navigate → { url: "https://www.bitovi.com/" }
mcp_playwright_browser_resize → { width: 1280, height: 720 }
mcp_playwright_browser_wait_for → { time: 2 }
mcp_playwright_browser_snapshot → {}
# Find ref for hero section, e.g. ref="hero-[1]"
mcp_playwright_browser_take_screenshot → {
type: "png",
element: "hero section",
ref: "hero-[1]",
filename: "temp/vdiff-baseline-hero-desktop.png"
}
# 2. Screenshot current (Storybook story)
mcp_playwright_browser_navigate → { url: "http://localhost:6006/iframe.html?id=components-hero--default" }
mcp_playwright_browser_resize → { width: 1280, height: 720 }
mcp_playwright_browser_wait_for → { time: 3 }
mcp_playwright_browser_take_screenshot → {
type: "png",
filename: "temp/vdiff-current-hero-desktop.png"
}
# 3. Run diff (in terminal)
node scripts/visual-diff.mjs \
--baseline temp/vdiff-baseline-hero-desktop.png \
--current temp/vdiff-current-hero-desktop.png \
--output temp/vdiff-diff-hero-desktop.png
# 4. Start temp server (once per session, in background terminal)
npx -y http-server temp/ -p 8787 --cors -c-1 &
# 5. View diff image via Playwright
mcp_playwright_browser_navigate → { url: "http://localhost:8787/vdiff-diff-hero-desktop.png" }
mcp_playwright_browser_take_screenshot → {} # triggers vision
# 6. Interpret: read JSON output + visually inspect diff
# 7. Fix styles, re-screenshot current, re-diffAll output files go to temp/ which is gitignored. To clean up after a session:
rm -f temp/vdiff-*.png© bitovi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/playwright/skills/visual-diff of bitovi/ai-enablement-prompts.
Open the folder on GitHubat commit df229b1
Visual Diff next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Visual Diff this skillbitovi/ai-enablement-prompts | 121 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Common Web Visual TestingHoangNguyen0403/agent-skills-standard | 570 | — | ~760 | Automated safety check: Pass | MIT | |
| Browser QAaffaan-m/ECC | 274k | 2 repos | ~1k | Automated safety check: Pass | MIT | |
| Website Responsive Validationmacalbert/envilder | 138 | — | ~739 | Automated safety check: Pass | MIT | |
| Economical Visual Testsigrlk/storybook-addon-test-codegen | 154 | 1 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Extract Design Systemespennilsen/pi | 122 | — | ~2k | Automated safety check: Pass | MIT |
HoangNguyen0403/agent-skills-standard
Standardizes visual audits, responsive design, and behavioral testing for web apps.
affaan-m/ECC
Run automated post-deploy UI verification with a browser automation MCP (claude-in-chrome, Playwright, or Puppeteer): console-error and Core Web Vitals smoke checks, form and auth-flow interaction…
macalbert/envilder
Playwright-based visual validation procedure for Envilder website changes.
igrlk/storybook-addon-test-codegen
Author economical visual tests — full visual coverage in the fewest billable snapshots.
espennilsen/pi
Reverse-engineer a design system from a live website (public URL or localhost).
sanity-io/sanity
Add, review, and maintain Chromatic visual regression coverage in the Sanity monorepo via dev/storybook stories, the vitest browser-mode suite, and Playwright e2e snapshots.
bitovi/ai-enablement-prompts
Track reusable UI components and unextracted patterns. An agent skill from bitovi/ai-enablement-prompts.
bitovi/ai-enablement-prompts
Extract and compare computed CSS styles between a baseline URL and a dev/Storybook URL using Playwright MCP evaluate calls.
bitovi/ai-enablement-prompts
A skill your agent uses when the user asks to "create a plugin", "add a plugin", "make a new plugin", "build a plugin", or wants to package skills into an installable plugin for this marketplace.
bitovi/ai-enablement-prompts
Create React components, hooks, or utilities following the modlet pattern.
bitovi/ai-enablement-prompts
A skill your agent uses when the user asks to "create a skill", "add a skill", "make a new skill", "build a skill", or wants to automate a repeated workflow into a reusable prompt.
bitovi/ai-enablement-prompts
Create new Agent Skills for this project. An agent skill from bitovi/ai-enablement-prompts.
Works with
Categories
Compare a baseline URL against a dev or Storybook URL by taking Playwright screenshots at multiple breakpoints, running a pixel-level image diff, and reporting results to guide style and HTML…. Visual Diff is an agent skill from bitovi/ai-enablement-prompts. Compare a baseline URL against a dev or Storybook URL by taking Playwright screenshots at multiple breakpoints, running a pixel-level image diff, and reporting results to guide style and HTML corrections.
Visual Diff fits situations like: replicating an existing page; verifying visual accuracy; checking responsive fidelity.
Run `npx skills add bitovi/ai-enablement-prompts --skill visual-diff -a claude-code`. Or copy the skill folder (plugins/playwright/skills/visual-diff in bitovi/ai-enablement-prompts) into .claude/skills/visual-diff in your project. Claude Code loads it when a task matches its description.
Run `npx skills add bitovi/ai-enablement-prompts --skill visual-diff -a codex`. Or copy the skill folder (plugins/playwright/skills/visual-diff in bitovi/ai-enablement-prompts) into .agents/skills/visual-diff in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bitovi/ai-enablement-prompts --skill visual-diff -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/visual-diff, .gemini/skills/visual-diff, .github/skills/visual-diff and .opencode/skills/visual-diff in your project.
Going by SKILL.md and its folder, Visual Diff needs the command-line tools its instructions call (node and npx). Our summary lists: Node.js.
SKILL.md names 1 domain. In commands or code: bitovi.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Visual Diff is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Visual Diff: Common Web Visual Testing (HoangNguyen0403/agent-skills-standard, 570 stars), Browser QA (affaan-m/ECC, 274k stars), Website Responsive Validation (macalbert/envilder, 138 stars) and Economical Visual Tests (igrlk/storybook-addon-test-codegen, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
bitovi (a GitHub organization) maintains it in bitovi/ai-enablement-prompts, which has 121 GitHub stars. The repository holds 40 skills in this directory. The repository was last updated on September 11, 2026.
Source: bitovi/ai-enablement-prompts on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.