Skip to main content

Build

Argent Screenshot Diff

argentOfficialCertified

Compare saved or live app screenshots via `screenshot-diff`. Use when checking visual regressions, before/after UI diffs, layout, typography, or rendering changes.

  • 1 install
  • v1.0.2
  • No reviews yet

Getting started

Full instructions

Install 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

  1. Navigate to the known-good state. Capture the baseline before the relevant interaction or before editing whenever feasible.
  2. Save a baseline PNG with screenshot using scale: 1.0 and includeImageInContext: false, so the full-size image stays out of context, and out at an absolute path unique to this run, so another session cannot overwrite it. Use normal downscaled screenshots for everything else. Images of different sizes return dimension_mismatch and are not compared, so keep one baseline per device model.
  3. Perform the interaction, apply the code change and navigate to the state under test, after the app reloads or rebuilds.
  4. Call screenshot-diff with that out path as baselinePath, captureCurrent: true, udid, and outputDir. If both images are already saved, pass currentPath instead of captureCurrent.
  5. 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
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

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.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/argent-screenshot-diff)](https://skills-hub.ai/skills/argent-screenshot-diff)
HTML
<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.