diff

diff is a skill for Claude Code, Codex from Dragoon0x/dragoon-skills. It costs 92 tokens per session (329 once invoked), scanned A, original, MIT.

A command that sets up Playwright screenshot tests for selected website routes. Playwright is a browser-testing tool, and these tests compare new full-page screenshots with saved reference images.

In plain words
What is it for?
Use it before or after a major interface change to create route lists, test files, configuration, and screenshot baselines.
Why use it?
It helps detect visual changes after UI work, so layout or styling regressions do not rely on manual checking.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/dragoon0x/dragoon-skills/diff
Any agent
npx skills add Dragoon0x/dragoon-skills --skill diff
Clone the repo
git clone --depth 1 https://github.com/Dragoon0x/dragoon-skills

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 diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/diff.svg)](https://agentmods.dev/skills/dragoon0x/dragoon-skills/diff)
Your own site
<a href="https://agentmods.dev/skills/dragoon0x/dragoon-skills/diff"><img src="https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/diff.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00092 $0.00329
Opus 5 $0.00046 $0.00164
Sonnet 5 $0.00018 $0.00066
Haiku 4.5 $0.00009 $0.00033

Measured 4d ago against content hash 5509599b6d0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/diff.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/diff/SKILL.md · 41 lines

What it actually says

/diff

Scaffolds visual regression with playwright snapshots.

When to use

  • The user wants visual regression coverage
  • "Set up screenshot diffing", "snapshot tests", "pixel diff"
  • Before any major UI refactor

What it writes

  • playwright.visual.config.ts snapshot-tuned config
  • tests/visual/routes.ts list of routes to capture (default /)
  • tests/visual/snapshots.spec.ts spec that loops routes and runs toHaveScreenshot

Pixel diffing is done by playwright's built-in toHaveScreenshot, not by dragoon. We just generate the harness.

Run it

dragoon diff
dragoon diff --apply
dragoon diff --apply --routes "/,/about,/login"

Then

npm i -D @playwright/test
npx playwright install --with-deps chromium
npx playwright test tests/visual --update-snapshots   # first time, baselines
npx playwright test tests/visual                      # after that, regression
Files

What ships with it

1 file 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.

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. 4d ago First seen · 41 lines · 92 tokens per session scan A 5509599b6d0b

Subscribe to this mod's changes

diff is a skill published in the GitHub repository Dragoon0x/dragoon-skills (4 stars, last pushed 4mo ago), licensed MIT. It adds 92 tokens to every session and 329 once invoked, about $0.0005 per session on Opus 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-31.

Related

Other skills, from other repositories

tauri-pilot

Inspect, interact with, and test a running Tauri v2 app via CLI. Communicates over Unix socket using JSON-RPC 2.0. Use when testing UI, automating interactions, or debugging a Tauri app.

mpiton/tauri-pilot · 52 tokens

form-validation-scan

Probe the forms on a page for validation gaps — missing required-field enforcement, no client-side validation, accepts malformed input, and absent error messaging. Reports per-field findings. Playwright MCP only, no signup.

Quality-Max/free-qa-skills · 47 tokens

broken-link-scan

Find broken links on any website. Crawls the page, checks every link for 404s, redirects, and timeouts. Reports dead links with their location. Uses Playwright MCP only — no signup.

Quality-Max/free-qa-skills · 47 tokens

chrome-ext-testing

This skill should be used when writing or setting up tests for a Chrome extension. Trigger when: "test chrome extension", "extension unit test", "extension e2e test", "Vitest extension", "Playwright extension", "@webext-core/fake-browser", "test content script", "test service worker", "test messaging", "test storage"…

RadOrigin-LLC/RAD-Claude-Skills · 101 tokens

sigil-audit

The auditor crawls every /docs/components/ page on the local dev server and combines static MDX analysis with a real Chromium browser pass.

Kevin-Liu-01/Sigil-UI · 4 tokens

qa-explore

Exploratory end-to-end QA with a team of agents that drive a real browser like human testers — they click through the whole app, create/fill/submit, screenshot and visually judge rendering + data correctness, capture trace/HAR/console/video evidence, adversarially verify each finding, learn from rejected findings, and…

victoraguilarsantamariadev/qa-explore · 158 tokens