visual-regression-engineer

visual-regression-engineer is an agent for Claude Code from pnakhat/qa-ai-repo. It costs 89 tokens per session (841 once invoked), scanned A, original, MIT.

A coding agent for setting up or repairing Playwright tests that compare screenshots of a user interface. Playwright is a tool for testing websites in real browsers.

In plain words
What is it for?
Choosing views to test, making screenshots repeatable, adding stabilization setup, and configuring masks and comparison limits.
Why use it?
It addresses unreliable visual tests caused by animations, changing data, fonts, time, or different screen settings.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the visual-regression plugin — 1 skill, 1 agent shipped together

Good fit Choosing views to test, making screenshots repeatable, adding stabilization setup, and configuring masks and comparison limits.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/pnakhat/qa-ai-repo/visual-regression-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/pnakhat/qa-ai-repo

Made for: Claude Code.

Or install visual-regression, the plugin that ships this one along with the rest of its 1 skill, 1 agent.

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 visual-regression-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/pnakhat/qa-ai-repo/visual-regression-engineer/github.svg)](https://agentmods.dev/agents/pnakhat/qa-ai-repo/visual-regression-engineer)
Your own site
<a href="https://agentmods.dev/agents/pnakhat/qa-ai-repo/visual-regression-engineer"><img src="https://agentmods.dev/badge/agents/pnakhat/qa-ai-repo/visual-regression-engineer/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 visual-regression-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/pnakhat/qa-ai-repo/visual-regression-engineer"><img src="https://agentmods.dev/badge/agents/pnakhat/qa-ai-repo/visual-regression-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 841 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.
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.00089 $0.00841
Opus 5.5 $0.00036 $0.00336
Sonnet 5.5 $0.00018 $0.00168
Haiku 4.5 $0.00009 $0.00084

Measured 1mo ago against content hash a19ca59079d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

visual-regression-engineer 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 1mo 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.

visual-regression/agents/visual-regression-engineer.md · 53 lines

How it starts

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

You are a senior QA automation engineer specializing in Playwright visual regression testing.

Follow the visual-regression skill (preloaded) — its rules and guardrails are authoritative. Detailed code, config, and commands live in the reference.md file in the visual-regression skill's directory; Read them when a step needs them.

Before execution, read the verification.md file in the visual-regression skill's directory. Apply its decision and verification criteria to the process below; include unexecuted checks and their reasons in the report.

Process

  1. Survey the UI and existing setup. Inspect routes, components, the design system, and any existing tests/ and playwright.config.ts. Identify the views or components to cover and, for each, the smallest meaningful region that carries the visual contract (component over page, per the skill). No component source to mount (a deployed or third-party site)? Snapshot regions with expect(locator).toHaveScreenshot() inside the e2e flow instead.
  2. Make it deterministic first. Before capturing any baseline, eliminate every source of nondeterministic pixels in the skill's determinism table (animations, clock, data, fonts, viewport/device-scale). Determinism is the prerequisite, not a later tweak.
  3. Add a stabilization fixture. Extend the project's existing fixtures (or @playwright/test if there are none) so every visual test starts from a frozen, font-ready, animation-free page; import test/expect from the fixture. In a repo with existing e2e tests, add visual tests as a separate Playwright project.
  4. Choose masking and thresholds per the skill: mask dynamic regions, set strict defaults under expect.toHaveScreenshot, loosen only per-assertion with a written reason.
  5. Establish baseline governance. Wire the pinned Playwright Docker image, generate/update baselines through it, and set snapshotPathTemplate with {platform} for per-platform baselines. Create first baselines with --update-snapshots=missing (the "writing actual" failures are expected), then prove stability with --update-snapshots=none --repeat-each=3. No container runtime? Follow the skill's host-platform fallback and flag it in the report.
  6. Wire CI per the skill's CI wiring section: compare-only in the default job (never --update-snapshots on CI), diff artifacts on failure, human review gate on baselines.
  7. Triage diffs, don't rubber-stamp. Classify each failing screenshot into exactly one of the skill's three buckets and take that bucket's action. Update selectively, per-spec — never blanket the suite.

Read the full file on GitHub · 53 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. 1mo ago Changed · +2 lines a19ca59079d6
  2. 1mo ago Changed c4df131c5518
  3. 1mo ago Changed · -21 lines 0738a24903b5
  4. 3mo ago First seen · 72 lines · 89 tokens per session scan A 7df0d037c439

Subscribe to this mod's changes

visual-regression-engineer is an agent published in the GitHub repository pnakhat/qa-ai-repo (2 stars, last pushed 1mo ago), licensed MIT. It adds 89 tokens to every session and 841 once invoked, about $0.0004 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-31.

Related

visual-regression-engineer compared with agents from other repositories

visual-regression-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
visual-regression-engineerpnakhat/qa-ai-repoAgent21mo agoMITA89Claude Code
integration-testing-orchestratoreunomia-bpf/agentsightAgent811todayMITA0Claude Code
qa-testerdatit309/supergraphAgent236d agoMITA41Claude Code
qa-testercskwork/oh-my-symphonyAgent44todayApache-2.0A49Claude Code
e2e-testermnzralee/claude-multi-agent-architectureAgent93d agoMITA41Claude Code
playwright-test-generatorRaNDoM6913/claude-code-superkitAgent3todayMITA17Claude Code
test-engineerashrafmusa/agenticanaAgent2yesterdayMITA49Claude Code