Screenshot compare

From stevehuang0115/crewly · View interactive version

Screenshot compare is an AI agent skill from the GitHub repository stevehuang0115/crewly. Compare two screenshots (e.g., iOS reference vs Web implementation) using Gemini Vision API. Returns a structured diff report with categorized issues, severity levels, and CSS fix suggestions. Use when verifying UI parity, checking design implementation accuracy, or auditing visual consistency acros

How to use this skill

Skill file

Screenshot Compare

Compare two UI screenshots using Gemini Vision API and get a structured diff report.

Actions

| Parameter | Required | Description |

|-----------|----------|-------------|

| reference | Yes | Path to the reference screenshot (source of truth, e.g., iOS app) |

| target | Yes | Path to the target screenshot (implementation to verify, e.g., web app) |

| focus | No | Comma-separated focus areas: icons,layout,colors,text,images,spacing (default: all) |

| context | No | Additional context (e.g., "This is the settings page", "Dark mode") |

Usage

# Basic comparison
bash execute.sh '{"reference":"/path/to/ios-screenshot.png","target":"/path/to/web-screenshot.png"}'

# Focused comparison (only icons and colors)
bash execute.sh '{"reference":"ref.png","target":"web.png","focus":"icons,colors"}'

# With context
bash execute.sh '{"reference":"ios-home.png","target":"web-home.png","context":"Home screen, light mode"}'

Output Format

Returns JSON with:

Issue Types

| Type | Description |

|------|-------------|

| icon_missing | Icon present in reference but missing in target |

| icon_wrong | Icon exists but is the wrong icon |

| layout_shift | Elements positioned differently |

| spacing | Padding/margin differences |

| color_mismatch | Colors don't match between reference and target |

| text_mismatch | Text content differs |

| font_mismatch | Font family, size, or weight differs |

| image_missing | Image present in reference but missing/broken in target |

| image_wrong | Image exists but is different |

| border_radius | Rounded corners differ |

| shadow | Box shadow differences |

| alignment | Vertical/horizontal alignment issues |

| responsive | Layout doesn't adapt correctly |

Prerequisites

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.