npx skills add ...
npx skills add software-mansion/argent --skill argent-screenshot-diff
Compare saved or live app screenshots with the argent screenshot-diff tool. Use when testing visual regressions, before/after UI comparisons, screenshot diff checks, visible layout, spacing, color, typography, clipping, overflow, text rendering, or image/icon rendering changes.
npx skills add software-mansion/argent --skill argent-screenshot-diff
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.
Do not use screenshot diffing for tap-coordinate discovery. Use describe, debugger-component-tree, or native-describe-screen to find targets first.
screenshot-diff supports physical iPhones (kind "device") for both saved-file diffs and live captures. A live capture on hardware goes through the on-device runner at full resolution, is device-wide, and needs no registered app. Keep baselines per device model and resolution, and note that the rotation parameter is ignored on hardware: the capture follows the device's real orientation.
Use screenshot-diff when pixel comparison can answer the verification question:
Use normal downscaled screenshot calls for UI context and state checks. Use full-resolution screenshots only when saving baseline/current PNG files for visual regression comparison. Suppress the image block so the full-size PNG is not loaded into context:
Capture the stable baseline before the relevant interaction or before editing whenever feasible. Compare it to the post-change or post-interaction screen after the app reloads, rebuilds, or reaches the state under test.
Provide udid and exactly one input for the baseline side and exactly one input for the current side:
baselinePath, captureCurrent: true, udid, outputDir.baselinePath, currentPath, udid, outputDir.captureBaseline: true, currentPath, udid, outputDir.captureBaseline: true with captureCurrent: true, or provide both a path and live capture flag for the same side.screenshot using scale: 1.0 and includeImageInContext: false; keep the returned path.screenshot-diff with the saved baselinePath, captureCurrent: true, udid, and outputDir.If both images are already saved, use file paths for both sides:
{
"baselinePath": "/tmp/baseline.png",
"currentPath": "/tmp/current.png",
"udid": "<UDID>",
"outputDir": "/tmp/argent-diff"
}