argent-screenshot-diff

argent-screenshot-diff is a skill for Claude Code, Codex from software-mansion/argent. It costs 41 tokens per session (507 once invoked), scanned A, original, Apache-2.0.

A screenshot comparison tool for checking whether an app's visible appearance changed. It compares saved or live screenshots, but does not replace checks of behavior or accessibility.

In plain words
What is it for?
Use it for before-and-after UI checks and visual regression tests when the same screen can be captured in stable states.
Why use it?
It helps detect visual regressions, such as unexpected changes to layout, spacing, colors, text, clipping, or icons.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for before-and-after UI checks and visual regression tests when the same screen can be captured in stable states.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/software-mansion/argent/argent-screenshot-diff
About the project

Argent is a toolkit that lets an AI assistant control and inspect iOS, Android, TV, Electron, and Chromium applications through simulators, emulators, physical devices, or desktop connections. It is for developers who want an agent to interact with interfaces, reproduce issues, test features, debug applications, or run profiling tasks. The catalogue add-ons expose Argent's device-control and development workflows to coding agents.

software-mansion/argent · 3,292 stars · on GitHub · argent.swmansion.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add software-mansion/argent --skill argent-screenshot-diff
Clone the repo
git clone --depth 1 https://github.com/software-mansion/argent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for argent-screenshot-diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/software-mansion/argent/argent-screenshot-diff/github.svg)](https://agentmods.dev/skills/software-mansion/argent/argent-screenshot-diff)
Your own site
<a href="https://agentmods.dev/skills/software-mansion/argent/argent-screenshot-diff"><img src="https://agentmods.dev/badge/skills/software-mansion/argent/argent-screenshot-diff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for argent-screenshot-diff

Your own site · 80×15
<a href="https://agentmods.dev/skills/software-mansion/argent/argent-screenshot-diff"><img src="https://agentmods.dev/badge/skills/software-mansion/argent/argent-screenshot-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 29 Nov 2026
  • Snyk warn 3 Dec 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00507
Opus 5.5 $0.00016 $0.00203
Sonnet 5.5 $0.00008 $0.00101
Haiku 4.5 $0.00004 $0.00051

Measured yesterday against content hash 82f452a10beb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

argent-screenshot-diff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skills/skills/argent-screenshot-diff/SKILL.md · 26 lines

How it starts

The opening of the file, as written. The whole thing — 26 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 26 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 82f452a10beb
  2. 6d ago Changed · -18 tokens per session 1b542882b5ae
  3. 12d ago Changed 8d179e9a31b4
  4. 23d ago Changed c859d2e9ad46
  5. 26d ago Changed · -44 lines 10dd761a93c9
  6. 3mo ago Changed · +2 lines 121eddcf8aca
  7. 3mo ago First seen · 68 lines · 59 tokens per session scan A 86a7af274c90

Subscribe to this mod's changes

argent-screenshot-diff is a skill published in the GitHub repository software-mansion/argent (3,292 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 507 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

argent-screenshot-diff compared with skills from other repositories

argent-screenshot-diff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
argent-screenshot-diffsoftware-mansion/argentSkill3.3ktodayApache-2.0A41Claude Code, Codex
truesheet-usagelodev09/react-native-true-sheetSkill2.1ktodayMITA171Claude Code, Codex
react-nativeericrisco/rsc-harnessSkill707yesterdayMITA90Claude Code, Codex
uniwinduni-stack/uniwindSkill1.8ktodayMITA130Claude Code, Codex
Detox Mobile TestingPramodDutta/qaskillsSkill2531mo agoMITA48Claude Code, Codex
migrate-nativewind-to-uniwinduni-stack/uniwindSkill1.8ktodayMITC82Claude Code, Codex
react-native-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0A62Claude Code