# UI Screenshot Drift Gate

> Stop silent UI drift. Compare two local PNG screenshots, highlight changed regions, and get a reproducible PASS/FAIL gate with evidence.

UI Screenshot Drift Gate is a paid AI agent skill on Agensi by Eichan, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Eichan](https://www.agensi.io/creators/eichan)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ui-screenshot-drift-gate
- Tags: testing, web-design, code-review, python, visual-regression, screenshot-diff, ai-coding, frontend-qa

## About this skill

**Your coding agent says the UI is finished. Did the layout actually stay intact?**

UI Screenshot Drift Gate compares two **user-supplied, identically sized 8-bit PNG screenshots** locally. A dependency-free Python script measures visual changes, highlights drift in red, and writes review-ready `report.md`, `report.json`, and `diff.png` files.

### Included
- Deterministic per-pixel changed-rate gate with configurable tolerance and an explicit acceptance threshold.
- Highlighted diff image, changed bounding box, and top hotspot tiles for fast review.
- Optional user-approved rectangle masks for truly dynamic regions; fully masked images are blocked.
- Strict input checks for PNG CRC, size limits, matching dimensions, malformed masks, and no silent overwrites.
- Full synthetic before/after UI example, masks, measured report, references and self-tests.
- No API key, network, Node, Playwright, subscription, external dependency, or creator access to your files needed for the Python gate.

### Best for
Verifying before/after snapshots of AI-edited web and app UI, triaging unintended layout shifts, and preparing evidence for release review.

### Important limitations
The skill **does not capture screenshots, browse pages, judge aesthetics or functionality, scan accessibility, or auto-fix code**. Supply stable local PNG pairs captured at matching viewport, DPR, browser and fonts. PASS means only that this pair meets the chosen visual drift threshold. Other formats must be exported to supported 8-bit non-interlaced PNG.

## Requires

- Python 3.9+ (standard library only)

## Known limitations

Requires two user-authorized, identically sized, 8-bit non-interlaced PNGs captured with the same browser, viewport, DPR, scroll state and fonts. The skill does not capture images, browse sites, judge aesthetics, test functionality or accessibility, or fix code. PASS only means this image pair stayed under the chosen pixel-change threshold.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the UI Screenshot Drift Gate skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Do I need Playwright or a browser?

Not to run the diff. You need two pre-captured local PNG files; obtaining them is a separate workflow.

### What exactly does PASS mean?

The fraction of changed unmasked pixels is within the configured threshold. It does not establish that the UI looks good or works properly.

### Does it compare mobile and desktop?

Yes, one matching-size pair at a time. The two inputs in each run must have exactly the same dimensions.

### Can I ignore animated clocks or rotating content?

Yes, with narrow, explicitly reviewed JSON rectangle masks. The output reports every excluded pixel.

### Will my images or source code be sent to the seller?

The included script makes no network calls and only writes local reports. Your AI-agent host may have its own data policies.

### Which image formats work?

Non-interlaced 8-bit grayscale, RGB and RGBA PNG variants. Re-export palette or high-bit-depth sources first.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
