Compare saved or live app screenshots via `screenshot-diff`. Use when checking visual regressions, before/after UI diffs, layout, typography, or rendering changes.
Getting started
Full instructionsInstall the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.
Instructions: SKILL.mdv1.0.2
1. Role
Use screenshot-diff as supporting visual evidence for UI QA and visual regression checks. It highlights pixel-visible change or stability; it does not replace visual inspection, accessibility/component-tree state, frame/attribute checks, logs, network evidence, or app behavior. Its description covers the input combinations, physical-iPhone captures and the result.
Do not use screenshot diffing for tap-coordinate discovery. Use describe to find targets first.
2. When To Use
- Required for explicit "UI regression test", "visual regression test", "screenshot diff", "compare screenshots", or "before/after visual comparison" requests, unless stable comparable screenshots cannot be produced.
- Good fit when the expected result is pixel-visible, or when the risk is an unintended visual regression outside the exact element changed.
- Poor fit when the result is better verified structurally: state changes, navigation existence, accessibility tree contents, console/network behavior, or unit tests.
- Poor fit when dynamic content, unpausable animation, timestamps, ads, random data, or missing baseline/current screenshots would make the comparison noisy or meaningless.
3. Deterministic Flow
- Navigate to the known-good state. Capture the baseline before the relevant interaction or before editing whenever feasible.
- Save a baseline PNG with
screenshotusingscale: 1.0andincludeImageInContext: false, so the full-size image stays out of context, andoutat an absolute path unique to this run, so another session cannot overwrite it. Use normal downscaled screenshots for everything else. Images of different sizes returndimension_mismatchand are not compared, so keep one baseline per device model. - Perform the interaction, apply the code change and navigate to the state under test, after the app reloads or rebuilds.
- Call
screenshot-diffwith thatoutpath asbaselinePath,captureCurrent: true,udid, andoutputDir. If both images are already saved, passcurrentPathinstead ofcaptureCurrent. - Inspect the summary and artifact paths, then combine the diff with normal visual inspection and any structural/runtime evidence needed for the assertion.
Explore more skills
Browse all- Argent QA E2EWrite repeatable QA regression e2e tests from test cases, tickets, or acceptance criteria (iOS, Android, Chromium, Mac…
- Argent Test UI FlowAutonomously verify one-off mobile UI flows (iOS/Android) with interact-screenshot-verify loops. Use when testing…
- Argent Settings PermissionsGrant, deny, or reset app runtime permissions out-of-band on an iOS simulator or Android device via…
- Argent Device InteractDrive iOS, Android, or Chromium apps with Argent MCP tools. Use when tapping, swiping, typing, launching apps, waiting…
- Argent Screen RecordingRecord a screen video with Argent on iOS, Android, or Mac apps. Use when asked to capture a video clip of a flow,…
- Argent React Native OptimizationEntry-point for React Native performance optimization; profiles first via `argent-react-native-profiler`. Use when the…
Security
Reviews (0)
More from argent
View source →Frequently asked questions about argent-screenshot-diff
What does the argent-screenshot-diff skill do?
Compare saved or live app screenshots via `screenshot-diff`. Use when checking visual regressions, before/after UI diffs, layout, typography, or rendering changes. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the argent-screenshot-diff skill?
Run `npx @skills-hub-ai/cli install argent-screenshot-diff` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/argent-screenshot-diff/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does argent-screenshot-diff work with?
argent-screenshot-diff runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the argent-screenshot-diff skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use argent-screenshot-diff after installing it?
In Claude Code, type `/argent-screenshot-diff` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the argent-screenshot-diff skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/argent-screenshot-diff)<a href="https://skills-hub.ai/skills/argent-screenshot-diff"><img src="https://skills-hub.ai/api/badges/skill/argent-screenshot-diff" alt="Install on Skills Hub"></a>More options in the badge docs.