# image-compare

The image-compare Claude Code skill compares images and marks visual differences. It runs for design-to-screenshot checks and visual regression reviews.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 102 installs · ★ 102 repo stars
- Author: pascalorg
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pascalorg/skills/tree/HEAD/image-compare/SKILL.md
- Updated: 2026-09-11
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/image-compare

## What it does

The skill checks two images pixel by pixel and creates a diff image with changed areas marked in red. Its report includes the differing-pixel count, the mismatch share, and the dimensions used for the comparison.

The script relies on `pixelmatch` and scales differently sized images to their smaller shared dimensions. The output path and sensitivity threshold accept custom arguments; defaults are `./diff.png` and `0.1`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pascalorg/skills --skill image-compare -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/image-compare/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/image-compare/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pascalorg/skills --skill image-compare -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/image-compare/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pascalorg/skills --skill image-compare -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/image-compare/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pascalorg/skills image-compare
```

2. **Manually: put the files in place**
- File: `.github/skills/image-compare/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pascalorg/skills --skill image-compare -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pascalorg/skills --path image-compare
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/image-compare/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pascalorg/skills --skill image-compare -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pascalorg/skills/tree/HEAD/image-compare/SKILL.md

## When to use it
- compare a page screenshot with its design
- find visual changes between two interface versions
- check whether a UI matches a Figma export
- create an image that marks visual differences

## Example prompts
- Compare `design.png` with `screenshot.png` and show me the visual differences.
- Check what changed between `before.png` and `after.png`, saving the diff to `./changes.png`.
- Compare these two page screenshots and report the share of pixels that differ.

## Similar
- [ux-compare](https://affpapa.org/en/nevibecode/skills/ux-compare.md) — skill · 675 installs
- [recipe-compare-sheet-tabs](https://affpapa.org/en/nevibecode/skills/recipe-compare-sheet-tabs.md) — skill · 31800 installs
- [compare-shows](https://affpapa.org/en/nevibecode/skills/compare-shows.md) — skill · 5200 installs
- [strategy-compare](https://affpapa.org/en/nevibecode/skills/strategy-compare.md) — skill · 2400 installs
- [geo-compare](https://affpapa.org/en/nevibecode/skills/geo-compare.md) — skill · 933 installs
- [supabase-report-compare](https://affpapa.org/en/nevibecode/skills/supabase-report-compare.md) — skill · 509 installs

From the same set: [pascalorg/skills](https://affpapa.org/en/nevibecode/by/pascalorg/skills.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
