Skip to content
Back to skills

Visual Regression Setup

ASecurity

Configure visual regression testing with Percy, Chromatic, or custom screenshot comparison

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentsjavascriptgojavabashtestingfullstackci/cd

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill visual-regression-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Visual Regression Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Visual Regression Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-visual-regression-setup-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-visual-regression-setup-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: visual-regression-setup
description: Configure visual regression testing with Percy, Chromatic, or custom screenshot comparison
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
tags: [testing, visual-regression, screenshots, ui-testing, desktop]
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:desktop-development]
  skillAreas: [skill-area:visual-regression-testing, skill-area:cross-platform-desktop]
  roles: [role:desktop-developer, role:fullstack-engineer]
  workflows: [workflow:feature-development, workflow:release-management]
---

# visual-regression-setup

Configure visual regression testing for desktop applications to catch unintended UI changes.

## Capabilities

- Configure Percy integration
- Set up Chromatic for Storybook
- Custom screenshot comparison
- Configure threshold settings
- Handle dynamic content masking
- Set up CI/CD integration

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "provider": { "enum": ["percy", "chromatic", "reg-suit", "custom"] },
    "framework": { "enum": ["playwright", "cypress", "puppeteer"] }
  },
  "required": ["projectPath"]
}
```

## Percy Integration

```javascript
// playwright.config.js
import { defineConfig } from '@playwright/test';

export default defineConfig({
  use: {
    screenshot: 'only-on-failure'
  }
});

// test.spec.js
import { test } from '@playwright/test';
import percySnapshot from '@percy/playwright';

test('visual test', async ({ page }) => {
  await page.goto('/');
  await percySnapshot(page, 'Home page');
});
```

## Custom Comparison

```javascript
const { toMatchImageSnapshot } = require('jest-image-snapshot');
expect.extend({ toMatchImageSnapshot });

test('matches screenshot', async () => {
  const screenshot = await page.screenshot();
  expect(screenshot).toMatchImageSnapshot({
    failureThreshold: 0.01,
    failureThresholdType: 'percent'
  });
});
```

## Related Skills

- `playwright-electron-config`
- `desktop-ui-testing` process

Files in this skill

  • README.md460 B
  • SKILL.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.