ab-visual-compare

Compare two web pages and generate pixel and DOM-tree diff reports.

1|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/anouar1991/binaryPetsClaude --skill ab-visual-compare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ab-visual-compare
Source: https://github.com/anouar1991/binaryPetsClaude/tree/main/plugins/playwright-toolkit/skills/ab-visual-compare
Command: npx skills add https://github.com/anouar1991/binaryPetsClaude --skill ab-visual-compare

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires imagemagick, and includes scripts (resource) components.

What problem does it solve?

The tool helps teams quickly detect visual regressions and accessibility differences between web pages by generating pixel diffs, side-by-side comparisons, and DOM-tree diff reports.

Core Features & Use Cases

  • Visual regression detection using ImageMagick pixel differences
  • Accessibility snapshot comparison to catch ARIA/structure changes
  • Side-by-side and overlay diffs for QA and design reviews
  • Use Case: compare staging vs production, verify responsive layouts, and review design changes

Quick Start

Run the ab-visual-compare script with two URLs and an output directory to generate visual and accessibility diffs.

Frequently Asked Questions about ab-visual-compare

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect visual regressions between staging and production web pages?

Visual regression detection captures screenshots of two web pages and generates pixel diffs using ImageMagick to highlight structural differences. It produces side-by-side comparisons, overlay diffs, and DOM-tree reports to validate design changes between staging and production.

Can I compare accessibility snapshots to catch ARIA and DOM structure changes?

Yes, you can compare accessibility snapshots to catch ARIA and DOM structure changes. The tool diffs accessibility trees between two web pages, identifying structural modifications that standard pixel-level visual regression tests might miss during design reviews.

Do I need Playwright and ImageMagick to run visual diff tests?

Yes, generating visual and accessibility diffs requires the Playwright MCP server to capture web page states and ImageMagick to process pixel differences. A side-by-side script orchestrates the capture, diff, and report generation workflow to output comparison results.

What is the best way to verify responsive layout changes before and after an update?

The best way to verify responsive layout changes is using a side-by-side visual diff script that captures before and after states. It generates pixel comparisons and accessibility reports to validate that design updates do not break existing layouts across different viewports.

How does ImageMagick pixel diff work for web testing?

ImageMagick pixel diff works for web testing by comparing corresponding pixels of two captured screenshots to identify visual discrepancies. It generates an overlay or side-by-side image highlighting the exact pixel-level differences between the baseline and the updated page.