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.
npx skills add nathanonn/agent-skills --skill pixel-diffgit clone --depth 1 https://github.com/nathanonn/agent-skillsWrote 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.
[](https://agentmods.dev/skills/nathanonn/agent-skills/pixel-diff)<a href="https://agentmods.dev/skills/nathanonn/agent-skills/pixel-diff"><img src="https://agentmods.dev/badge/skills/nathanonn/agent-skills/pixel-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.
<a href="https://agentmods.dev/skills/nathanonn/agent-skills/pixel-diff"><img src="https://agentmods.dev/badge/skills/nathanonn/agent-skills/pixel-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.00801 |
| Opus 5.5 | $0.00016 | $0.00320 |
| Sonnet 5.5 | $0.00008 | $0.00160 |
| Haiku 4.5 | $0.00004 | $0.00080 |
Grade A, and why
pixel-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 10d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pixel diff
Use the bundled command to compare a reference image with a candidate. It produces a PNG comparison sheet, native-resolution masks and overlays, readable detail tiles, and JSON in a new run folder. The comparison and rendering run locally.
Run a comparison
Identify the input paths and which is the reference. A prototype is normally the reference when checking an implementation. Use the caller's output directory, or a pixel-diff-runs directory inside the current task's artifact folder.
Resolve scripts/pixel_diff.py relative to this skill's location. With Python 3.11-3.13 available:
python3 /path/to/pixel-diff/scripts/pixel_diff.py reference.png candidate.png --output ./pixel-diff-runs
On Windows, use py -3.11 instead of python3. The launcher installs pinned packages into its own environment on first use, subject to the environment's permissions. Later runs reuse them offline. If the skill folder is not writable (read-only or sandboxed installs), set PIXEL_DIFF_ENV_ROOT to a writable directory before the first run and keep it set for later runs. For setup failures, read runtime and setup.
The inputs must be equal-size PNG, JPEG, or still WebP, with 8-bit sRGB pixels and orientation already applied. Untagged images are assumed sRGB and reported as such. On dimension, color, orientation, or format errors, report the reason and the needed caller preparation. The command preserves original coordinates and does not resize or align inputs.
Choose comparison settings
The default result is exact RGBA comparison with no pass/fail verdict. Every changed coordinate counts once, including hidden RGB in transparent pixels.
- For requested rendering-noise tolerance, add
--tolerant. Keep and report the exact result alongside it. Read comparison rules when choosing a color threshold or the separate--filter-antialiasingoption. - For an explicit acceptance budget, use
--max-changed-pixels N,--max-changed-percent P, or both. Percent units are 0 through 100. Both supplied limits must pass. A tolerant verdict additionally requires--verdict-mode tolerant. - For caller-specified ignored areas, repeat
--exclude X,Y,W,H. Exclusions affect verdict measurements only. Full-image masks and counts retain those changes.
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .gitignore 29 B
- agents/openai.yaml 216 B
- references/cli-and-artifacts.md 4.0 KB
- references/comparison.md 3.3 KB
- references/runtime.md 3.6 KB
- scripts/pd_cli.py 9.0 KB runs code
- scripts/pd_compare.py 6.1 KB runs code
- scripts/pd_inputs.py 7.6 KB runs code
- scripts/pd_render.py 7.1 KB runs code
- scripts/pixel_diff.py 3.2 KB runs code
- scripts/requirements.txt 28 B
- scripts/tests/test_core.py 4.3 KB runs code
- scripts/tests/test_inputs.py 4.9 KB runs code
- scripts/tests/test_workflow.py 7.9 KB runs code
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.
- 10d ago First seen · 43 lines · 40 tokens per session scan A 1e9613dff0bb
pixel-diff is a skill published in the GitHub repository nathanonn/agent-skills (23 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 801 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-11-22.
pixel-diff compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pixel-diffnathanonn/agent-skills | Skill | 23 | yesterday | MIT | A | 40 | Claude Code, Codex |
| webgl-holographic-foilnexu-io/open-design | Skill | 111k | today | Apache-2.0 | A | 41 | Claude Code, Codex |
| html-ppt-hermes-cyber-terminalnexu-io/open-design | Skill | 111k | today | Apache-2.0 | A | 53 | Claude Code, Codex |
| html-ppt-taste-brutalistnexu-io/open-design | Skill | 111k | today | Apache-2.0 | A | 78 | Claude Code, Codex |
| visual-ralphYeachan-Heo/oh-my-codex | Skill | 34k | today | MIT | A | 52 | Codex |
| glance-canonical-layoutsandroid/skills | Skill | 11k | 8d ago | Apache-2.0 | A | 56 | Claude Code |
| accessibilitymicrosoft/hve-core | Skill | 1.7k | today | MIT | A | 47 | Claude Code |