Skip to content
Skills Library
DevOps & cloud · Testing

ui-visual-validator

/ui-visual-validator

CI/CD visual regression setup and pre-commit visual verification checklist. Scoped complement to reality-checker agent — adds: visual regression tool ecosystem (Chromatic, Percy, Applitools, BackstopJS, Playwright Visual), 13-item mandatory verification checklist, and GitHub Actions screenshot diff pipelines. Use when setting up automated visual regression tests in CI/CD or running systematic pre-PR visual verification beyond what reality-checker provides.

Licence
MIT
Last repository change
30.06.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
6
Deprecation

No signals detected. Repository changed on 30.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

CI/CD visual regression setup and pre-commit visual verification checklist. Scoped complement to reality-checker agent — adds: visual regression tool ecosystem (Chromatic, Percy, Applitools, BackstopJS, Playwright Visual), 13-item mandatory verification checklist, and GitHub Actions screenshot diff pipelines. Use when setting up automated visual regression tests in CI/CD or running systematic pre-PR visual verification beyond what reality-checker provides.

Original author description

CI/CD visual regression setup and pre-commit visual verification checklist. Scoped complement to reality-checker agent — adds: visual regression tool ecosystem (Chromatic, Percy, Applitools, BackstopJS, Playwright Visual), 13-item mandatory verification checklist, and GitHub Actions screenshot diff pipelines. Use when setting up automated visual regression tests in CI/CD or running systematic pre-PR visual verification beyond what reality-checker provides.

How it works

  1. Iron Law
  2. Scope vs reality-checker
  3. When to Use This Skill
  4. When NOT to Use This Skill
  5. Core Principle
  6. 13-Item Mandatory Verification Checklist
  7. Visual Regression Tool Setup
  8. Flutter Visual Testing
  9. Analysis Protocol
  10. How This Fits the Review Stack
Original SKILL.md headings · 293 lines, 1,258 words
SKILL.md preview
---
name: ui-visual-validator
description: "CI/CD visual regression setup and pre-commit visual verification checklist. Scoped complement to reality-checker agent — adds: visual regression tool ecosystem (Chromatic, Percy, Applitools, BackstopJS, Playwright Visual), 13-item mandatory verification checklist, and GitHub Actions screenshot diff pipelines. Use when setting up automated visual regression tests in CI/CD or running systematic pre-PR visual verification beyond what reality-checker provides."
risk: low
source: community (adapted for workspace)
date_added: "2026-02-27"
updated: "2026-03-15"
allowed-tools: Read, Bash
metadata:
  triggers: visual regression, screenshot testing, visual diff, Chromatic, Percy, Applitools, BackstopJS, Playwright visual, visual testing CI, pixel diff, visual QA, UI looks wrong, before and after screenshot
  related-skills: browser-testing, accessibility-audit, web-design-guidelines, design-system
  domain: quality
  role: specialist
  scope: review
  output-format: report
last-reviewed: "2026-03-15"
---

## Iron Law

**DO NOT REPLACE `reality-checker` — USE IT FIRST for live browser screenshots and binary APPROVED/NEEDS WORK verdict. This skill adds: (1) visual regression tooling setup for CI/CD pipelines, (2) the 13-item mandatory verification checklist for systematic pre-PR checks, (3) automated screenshot diff configuration. Use both together.**

# UI Visual Validator

> Systematic visual verification methodology + CI/CD visual regression tooling. Skeptic-first: the modification goal has NOT been achieved until proven with visual evidence.

## Scope vs `reality-checker`

| Capability | `reality-checker` agent | `ui-visual-validator` (this skill) |
|---|---|---|
| Live browser screenshot | ✅ Chrome DevTools MCP | ❌ (use reality-checker for this) |
| Binary APPROVED/NEEDS WORK verdict | ✅ | ❌ (defer to reality-checker) |
| Visual regression tool setup (CI/CD) | ❌ | ✅ Chromatic, Percy, Applitools, BackstopJS |
| GitHub Actions visual diff workflow | ❌ | ✅ |
| 13-item mandatory verification checklist | ❌ | ✅ |
| Accessibility visual compliance checklist | ❌ | ✅ |
| Pre-commit systematic analysis protocol | ❌ | ✅ |

**Workflow:** Run `ui-visual-validator` checklist → gather screenshots → pass to `reality-checker` for final verdict.

## When to Use This Skill

- **Setting up** Chromatic, Percy, or Playwright Visual in a CI/CD pipeline
- **Before a PR** that touches Angular components or Flutter screens — run through the 13-item checklist
- **Investigating** "it looks different on CI than locally" — visual regression diagnosis
- **New Angular component** needs visual baseline established for regression testing
- **Flutter screen** needs screenshot test added to CI

## When NOT to Use This Skill

- For live browser screenshots — use `browser-testing` skill + Chrome DevTools MCP
- For the final APPROVED/NEEDS WORK gate — use `reality-checker` agent
- For WCAG compliance audit — use `accessibility-audit` skill

---

## Core Principle

> The modification goal has NOT been achieved until proven by visual evidence.
> Ignore code hints. Base judgments solely on visual output.

**Forbidden behaviors:**
- Assuming code changes automatically produce correct visual results
- Quick conclusions without systematic analysis
- Accepting "looks different" as "looks correct"
- Using expectation to replace direct observation

**Required output format (when performing visual analysis):**
Always start with: *"From the visual evidence, I observe..."*

---

## 13-Item Mandatory Verification Checklist

Run through ALL 13 items before declaring a UI change complete:

### Structural
- [ ] **1. Objective description** — Described actual visual content without assumptions?
- [ ] **2. Goal verification** — Compared each element against stated modification goals systematically?
- [ ] **3. Measurement validation** — For rotation/position/size changes: verified through actual visual measurement (not assumed from code)?

### Visual Quality
- [ ] **4. Responsive breakpoints** — Verified at 375px, 768px, 1024px, 1440px?
- [ ] **5. Dark/light mode** — Both themes validated (if applicable)?
- [ ] **6. Loading and transition states** — Skeleton/spinner shown correctly? Transitions smooth?
- [ ] **7. Error and edge cases** — Empty states, error states, disabled states all verified?

### Accessibility (Visual)
- [ ] **8. Color contrast** — WCAG 4.5:1 minimum for normal text verified visually?
- [ ] **9. Focus indicators** — Visible focus rings on interactive elements?
- [ ] **10. Touch targets** — Interactive elements >= 44px (Angular) / 48dp (Flutter)?

### Design System
- [ ] **11. Token compliance** — No hardcoded colors visible that should use semantic tokens?
- [ ] **12. Design system alignment** — Component matches design system spec?

### Regression
- [ ] **13. Reverse validation** — Actively looked for evidence the modification FAILED (not just succeeded)?

---

## Visual Regression Tool Setup

### Option 1: Playwright Visual (Recommended for Angular)

```bash
# Install
npm install -D @playwright/test

# angular.json — add e2e target
```

```typescript
// visual.spec.ts
import { test, expect } from '@playwright/test';

test('dashboard visual regression', async ({ page }) => {
  await page.goto('/dashboard');
  await page.waitForLoadState('networkidle');

  // Full page snapshot
  await expect(page).toHaveScreenshot('dashboard.png', {
    fullPage: true,
    threshold: 0.1, // 10% pixel difference tolerance
  });
});

test('mobile breakpoint', async ({ page }) => {
  await page.setViewportSize({ width: 375, height: 812 });
  await page.goto('/dashboard');
  await expect(page).toHaveScreenshot('dashboard-mobile.png');
});
```

```yaml
# .github/workflows/visual-regression.yml
name: Visual Regression
on: [pull_request]
jobs:
  visual-test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
      - run: npm ci
      - run: npx playwright install --with-deps chromium
      - run: npx ng build --configuration=production
      - run: npx playwright test --reporter=html
      - uses: actions/upload-artifact@v4
        if: failure()
        with:
          name: playwright-visual-report
          path: playwright-report/
```

### Option 2: Chromatic (Storybook-based, component-level)

```bash
npm install --save-dev chromatic
npx chromatic --project-token=<token> --auto-accept-changes main
```

```yaml
# GitHub Actions
- name: Publish to Chromatic
  uses: chromaui/action@latest
  with:
    projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
    onlyChanged: true  # Only test changed components
```

**Best for:** Angular component libraries with Storybook stories.

### Option 3: BackstopJS (Config-based, no Storybook needed)

```bash
npm install -g backstopjs
backstop init
```

```json
// backstop.json
{
  "viewports": [
    { "label": "mobile", "width": 375, "height": 812 },
    { "label": "tablet", "width": 768, "height": 1024 },
    { "label": "desktop", "width": 1440, "height": 900 }
  ],
  "scenarios": [
    {
      "label": "Dashboard",
      "url": "http://localhost:4200/dashboard",
      "selectors": ["#main-content"],
      "delay": 500,
      "misMatchThreshold": 0.1
    }
  ],
  "engine": "playwright"
}
```

```bash
backstop reference  # Create baseline screenshots
backstop test       # Compare against baseline
backstop approve    # Approve changes as new baseline
```

### Option 4: Percy (Cross-browser, cloud-based)

```bash
npm install --save-dev @percy/cli @percy/playwright
```

```typescript
// In Playwright test
import percySnapshot from '@percy/playwright';

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

---

## Flutter Visual Testing

```dart
// widget_test.dart — golden file testing
import 'package:flutter_test/flutter_test.dart';
import 'package:golden_toolkit/golden_toolkit.dart';

testGoldens('DashboardScreen renders correctly', (tester) async {
  await loadAppFonts();

  final builder = DeviceBuilder()
    ..overrideDevicesForAllScenarios(devices: [
      Device.phone,
      Device.iphone11,
      Device.tabletPortrait,
    ])
    ..addScenario(
      widget: const DashboardScreen(),
      name: 'default state',
    )
    ..addScenario(
      widget: const DashboardScreen(isLoading: true),
      name: 'loading state',
    );

  await tester.pumpDeviceBuilder(builder);
  await screenMatchesGolden(tester, 'dashboard');
});
```

```bash
# Generate golden files (baseline)
flutter test --update-goldens

# Run comparison
flutter test
```

---

## Analysis Protocol

When performing visual analysis:

1. **Describe first** — What is literally visible? (shapes, colors, positions, text)
2. **Verify goals** — Does each element match the stated change?
3. **Measure** — For rotation/size/position: measure actual pixels, don't estimate
4. **Reverse-validate** — What would failure look like? Is that what I see?
5. **Accessibility** — Is contrast sufficient? Are focus rings visible?
6. **Cross-platform** — Same breakpoints, same themes?
7. **Edge cases** — Long text, empty states, error states?
8. **Conclude** — "From the visual evidence, I observe [X]. The goal [is/is not] achieved because [Y]."

---

## How This Fits the Review Stack

| Layer | Tool | What It Catches |
|---|---|---|
| **Layer 1 — Design tokens** | `/lint-design-system` | Hardcoded colors, raw spacing |
| **Layer 2 — WCAG** | `accessibility-auditor` agent | Contrast, ARIA, keyboard nav |
| **Layer 3 — Interaction patterns** | `web-design-guidelines` | Loading/empty/error states |
| **Layer 4 — Live screenshot** | `reality-checker` agent | Binary pass/fail with visual evidence |
| **Layer 5 — CI regression** | `ui-visual-validator` (this skill) | Baseline regression, cross-browser |

---

## Related Skills and Agents

- `reality-checker` agent — **run BEFORE this skill** for live browser verdict (Chrome DevTools MCP)
- `browser-testing` skill — Chrome DevTools MCP + Browser-Use for live UI interaction
- `accessibility-audit` skill — deeper WCAG 2.1 AA compliance (beyond visual checks)
- `web-design-guidelines` skill — Vercel Web Interface Guidelines audit (loading/error/empty state patterns)
- `design-system` skill — token compliance enforcement

## Additional Resources

- [Playwright Visual Comparisons](https://playwright.dev/docs/test-screenshots)
- [Chromatic Docs](https://www.chromatic.com/docs/)
- [BackstopJS GitHub](https://github.com/garris/BackstopJS)
- [Flutter Golden Toolkit](https://pub.dev/packages/golden_toolkit)
- [Percy Docs](https://docs.percy.io/)

Versions

RepositoryScoreLicence
This page · kumaran-is/claude-code-onboarding100MIT
rmyndharis/antigravity-skills100MIT

Database snapshot: 13.11.2026 · package version a989319b7a4f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95visual-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".
  • 95visual-testing
    Use for visual regression testing to catch unintended UI changes. Covers Chromatic (Storybook integration), Percy (BrowserStack), BackstopJS (headless CSS regression), Playwright screenshot assertions, and Applitools Eyes (AI-powered). Includes baseline management, approval…
  • 90quality-visual-testing
    Use this skill when setting up visual testing, visual regression, screenshot diff, Percy, Chromatic, Applitools, or snapshot testing. This skill enforces: tool setup (Percy or Chromatic), baseline management, diff threshold configuration, cross-browser visual testing, and CI…
  • 100visual-regression
    When the user wants to design, integrate, or operate visual regression testing — pixel diffs, DOM snapshots, AI-powered visual diffs, baseline management, dynamic-content masking. Use when the user mentions "visual regression," "visual testing," "screenshot testing," "Percy,"…
  • 100agent-e2e-test-specialist
    Specialist subagent: Playwright, Cypress, and visual regression testing specialist. Use only when the user explicitly asks for E2E tests, browser test automation, or visual regression testing. Trigger phrases: E2E, end-to-end, Playwright, Cypress, visual regression, browser…
  • 95vrt
    DST — Trigger the Visual-Regression-Tests (Chromatic) GitHub Actions workflow on the current or a given branch. Use ONLY when the user explicitly asks to run visual regression tests, run Chromatic, or types `/vrt`. Dispatching consumes Chromatic snapshot quota, so never invoke…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.