← Back to list

page-diff
by j-r-beckett
⭐ 0🍴 0📅 Jan 6, 2026
SKILL.md
name: page-diff description: Visual regression testing for web pages. Compares screenshots to detect UI changes, generates overlay images highlighting differences. Use after making frontend changes to verify visual correctness, catch unintended side effects, or validate that changes look as expected.
Page Diff
Compare screenshots to detect visual changes. Outputs similarity percentage and an overlay image with differences highlighted in magenta.
Usage
uv run .claude/skills/page-diff/scripts/diff.py <expected> <actual>
Output:
PASS: 99.2% similar (3,247 pixels differ)
/path/to/overlay.png
The overlay image shows the actual screenshot with changed regions tinted magenta. Use Read to view it.
Baselines
Store known-good screenshots in baselines/:
.claude/skills/page-diff/baselines/
├── demo.png
├── settings.png
└── upload-complete.png
Workflow:
- Capture baseline:
browser_take_screenshot→ save tobaselines/demo.png - Make changes, reload
- Capture current:
browser_take_screenshot→/tmp/current.png - Compare:
uv run .claude/skills/page-diff/scripts/diff.py baselines/demo.png /tmp/current.png - If diff is expected, update baseline
Interpreting Results
- 100% identical: No visual changes
- >99% similar: Minor differences (anti-aliasing, subpixel rendering) - usually a PASS
- <99% similar: Meaningful changes detected - review the overlay
When similarity is lower than expected, view the overlay image to see exactly what changed. Correlate with your code changes to determine if the diff is intentional.
Options
--threshold, -t Color difference threshold (0-1). Default: 0.1
Higher = more tolerant of minor color variations
--alpha, -a Overlay tint transparency (0-1). Default: 0.5
--output, -o Custom output path for overlay image
Fixes
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon