visual-diff

Solid

Compare two renderings of the same set of pages - a "local" base against a "live" base - using odiff, and report which pages match. Use to verify a port/migration, check parity after edits, or QA before shipping, instead of eyeballing full-page screenshots. Drop to --sections to localize where a page differs. Triggered by /visual-diff.

Testing & QA 0 stars 0 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
0
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /visual-diff Run an odiff-powered visual comparison of two sites (a **local** base vs a **live** base) and report results **without burning tokens on full-page screenshots**. The batch runner writes a compact `report.md`; you read that, and open a diff image *only* for pages that fail. This is a portable build - nothing is hard-coded to one project. Bases and the page list come from config (see **Setup** below). ## Why this exists Manually comparing two renderings by reading two full-page PNGs per page is slow and token-expensive. `scripts/visual-diff.mjs` captures both sides, diffs them with odiff (native, fast), and emits a machine-readable report. The diff numbers do the matching; you only look at images when something is actually off. ## Setup (once per project) 1. Install the runtime deps in the host project (or globally): ```bash npm install --save-dev odiff-bin playwright pngjs npx playwright install chromium ``` 2. Create a `visual-diff.config.json` in the project root. Copy `config.example.json` from this skill and edit the two bases + page list: ```json { "localBase": "http://127.0.0.1:8765", "liveBase": "https://staging.example.com", "thresholdPct": 0.1, "pages": [ { "slug": "homepage", "path": "/" }, { "slug": "pricing", "path": "/pricing/" } ] } ``` Alternatively keep pages in a separate `visual-diff.pages.json` (`{ "pages": [...] }`) - the runner auto-discovers it. ## Steps 1. **...

Details

Author
wpfyorg
Repository
wpfyorg/visual-diff-skill
Created
1 months ago
Last Updated
4 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Solid

diff-visual

Visualize git diffs as interactive HTML reports with architecture diagrams, change analysis, and side-by-side split-diff of the actual changed code. Use when asked to visualize, review, or summarize a diff, branch, commit, or PR — including seeing the real changed lines, not just a summary. Accepts branch names, commit hashes, HEAD, PR numbers, or commit ranges.

48 Updated 1 weeks ago
LeeJuOh
Code & Development Listed

visual-recap

Side-route skill that renders a finished diff, PR, or branch as a single self-contained interactive HTML recap — file-tree + change flags, annotated split diffs with line-anchored callouts, schema/API contract cards, UI wireframes for rendered-UI changes, labeled before/after columns, CSS-first flow diagrams (Mermaid opt-in for complex graphs), and a copy-text feedback loop. Use when a reviewer who didn't author the change needs to grasp its shape before reading lines. Optional and never auto-invoked; skip for small or obvious diffs. Not a defect finder (that's /pre-merge), not free-form diagramming (that's /excalidraw-diagram), not a committed artifact (the HTML is transient).

2 Updated 1 weeks ago
chrislacey89
Code & Development Featured

accesslint-diff

Diff a live page's accessibility violations against a baseline — by default compares uncommitted changes (stash-based), or pass --branch [<name>] to diff against a branch. Reports only new violations introduced, violations fixed, and pre-existing count. Use `scan` for a full audit with no diffing.

44,050 Updated today
sickn33