visual-regression

visual-regression is a skill for Claude Code from qf-studio/navigator. It costs 59 tokens per session (3,323 once invoked), scanned A, original, MIT.

A setup tool for visual regression testing, which compares screenshots of interface components to catch unintended visual changes. It creates Storybook stories, testing configuration, and continuous integration workflows for Chromatic, Percy, or BackstopJS.

In plain words
What is it for?
Use it to set up screenshot testing for React, Vue, or Svelte components, generate Storybook stories, configure a visual testing service, and add workflows for GitHub Actions, GitLab CI, or CircleCI.
Why use it?
It removes the manual work of preparing screenshot tests and running them in your build checks. It also helps ensure that component variants and states are covered.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],.

Part of the navigator plugin — 33 skills, 6 agents shipped together

Good fit Use it to set up screenshot testing for React, Vue, or Svelte components, generate Storybook stories, configure a visual testing service, and add workflows for GitHub Actions, GitLab CI, or CircleCI.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/qf-studio/navigator
agentmods
npx agentmods add skills/qf-studio/navigator/visual-regression

Made for: Claude Code.

Or install navigator, the plugin that ships this one along with the rest of its 33 skills, 6 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/qf-studio/navigator/visual-regression/github.svg)](https://agentmods.dev/skills/qf-studio/navigator/visual-regression)
Your own site
<a href="https://agentmods.dev/skills/qf-studio/navigator/visual-regression"><img src="https://agentmods.dev/badge/skills/qf-studio/navigator/visual-regression/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/qf-studio/navigator/visual-regression"><img src="https://agentmods.dev/badge/skills/qf-studio/navigator/visual-regression.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,323 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.00059 $0.03323
Opus 5.5 $0.00024 $0.01329
Sonnet 5.5 $0.00012 $0.00665
Haiku 4.5 $0.00006 $0.00332

Measured 20d ago against content hash 9f3099307980, 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 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 20d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (functions/chromatic_config_generator.py, functions/ci_workflow_generator.py, functions/story_generator.py, …), 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/visual-regression/SKILL.md · 552 lines

How it starts

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

Visual Regression Testing Setup Skill


Skill Purpose

Generate complete visual regression testing setup with Storybook stories, configuration files, and CI/CD workflows.

Supports: Chromatic, Percy, BackstopJS Frameworks: React, Vue, Svelte (TypeScript/JavaScript) CI/CD: GitHub Actions, GitLab CI, CircleCI


What This Skill Does

  1. Detects existing setup: Storybook version, VR tool, CI platform
  2. Validates component: Extract props, variants, states
  3. Generates stories: Complete .stories.tsx with all variants
  4. Creates config files: Chromatic, Percy, or BackstopJS configuration
  5. Sets up CI/CD: Auto-generate workflow files
  6. Provides instructions: Next steps for API tokens, first baseline

Workflow

Step 1: Validate Project Setup

Execute: vr_setup_validator.py

Check:

  • Framework (React/Vue/Svelte) from package.json
  • Existing Storybook config (.storybook/ directory)
  • Existing VR tool (chromatic, percy, backstopjs in dependencies)
  • CI platform (.github/, .gitlab-ci.yml, .circleci/)
  • Component file exists and is valid

Output:

{
  "framework": "react",
  "storybook_version": "7.6.0",
  "vr_tool": "chromatic",
  "ci_platform": "github",
  "component": {
    "path": "src/components/ProfileCard.tsx",
    "name": "ProfileCard",
    "props": [...],
    "valid": true
  },
  "dependencies": {
    "installed": ["@storybook/react", "@storybook/addon-essentials"],
    "missing": ["chromatic", "@chromatic-com/storybook"]
  }
}

If Storybook not found: Ask user if they want to install Storybook first, provide setup instructions.

If multiple VR tools found: Ask user which to use (Chromatic recommended).


Step 2: Generate Storybook Stories

Execute: story_generator.py

Process:

  1. Parse component file (TypeScript/JSX/Vue SFC)
  2. Extract props, prop types, default values
  3. Identify variants (size, variant, disabled, etc.)
  4. Generate story file from template
  5. Add accessibility tests (@storybook/addon-a11y)
  6. Add interaction tests (if @storybook/test available)

Read the full file on GitHub · 552 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. 20d ago First seen · 552 lines · 59 tokens per session scan A 9f3099307980

Subscribe to this mod's changes

visual-regression is a skill published in the GitHub repository qf-studio/navigator (355 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 3,323 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-09-25.

Related

Other skills, from other repositories

visual-regression

Setup visual regression testing with Storybook stories, configuration, and CI/CD workflows. Supports Chromatic, Percy, BackstopJS. Auto-invoke when user says "set up visual regression", "add Chromatic tests", "add screenshot testing", or "set up Percy".

alekspetrov/navigator · 59 tokens

nav-install-multi-claude

DEPRECATED. The multi-Claude orchestration scripts are deprecated in favor of native Claude Code Workflows; no installation is needed. Auto-invokes on "install multi-Claude workflows", "set up multi-Claude", "enable parallel execution" to explain the deprecation.

alekspetrov/navigator · 61 tokens

nav-multi

DEPRECATED. Multi-Claude shell orchestration is superseded by native Claude Code Workflows. Auto-invokes on "run multi-agent workflow", "parallel agents for", "multi-claude for", "spawn agents for" to redirect the user to the native Workflow and Agent tools.

alekspetrov/navigator · 62 tokens

test-first

Use when implementing any feature, bugfix, or refactor that has a testable outcome. Activate for keywords like "TDD", "test-first", "red-green", "write the test first", "implement ", "fix ". Enforces the red-green-refactor discipline -- write a failing test, make it pass with the smallest change, refactor with tests…

duthaho/claudekit · 106 tokens

browser

Use this skill when the user says browser, /browser, test in Chrome, inspect a webpage, verify a localhost app, capture screenshots, check console/network errors, run browser QA, or automate browser flows with the Mochi browser MCP.

DevZonayed/Mochi · 50 tokens

api-tester

Test HTTP APIs, validate responses, generate test suites, and diagnose API issues.

profclaw/profclaw · 19 tokens