visual-diff

Community

Score replicas and map visual drift

Authorimehr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill measures how closely a rendered replica matches its reference capture and pinpoints where visual fidelity breaks down so refinement agents can prioritize fixes.

Core Features & Use Cases

  • Pixel-level comparison: Generate pixelmatch diffs and red/yellow visualizations that expose exact pixel divergences and compute an aggregate fidelity score.
  • Structural critique: Use LLM-guided vision prompts to interpret layout and token-level mismatches that pixel diffs alone cannot explain.
  • Token traceability & gating: Map drift regions back to design tokens, flag blocking failures (for example wrong font family or hero colour), and apply plateau detection to stop endless iteration.
  • Use Case: Validate replicas during the design-extraction pipeline, drive the refinement loop by locating problem regions, or run ad-hoc replica-vs-reference comparisons to produce gate verdicts.

Quick Start

Run visual-diff to compare replica.png with reference.png and produce a pixel diff image, a visual drift map, and a fidelity score.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: visual-diff
Download link: https://github.com/imehr/design-extractor/archive/main.zip#visual-diff

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.