Skip to content
Skills Library
Programming · Review & audit

visual-regression-check

/visual-regression-check

Use when a UI change is about to be committed and its real rendering needs checking on desktop and mobile - "does it render well?", "does it display correctly?", "ça rend bien ?", "est-ce que ça s'affiche bien ?", suspected visual regression, layout/restyle changed, green tests but the rendering never seen.

Licence
MIT
Last repository change
22.10.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
0
Deprecation

No signals detected. Repository changed on 22.10.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

Use when a UI change is about to be committed and its real rendering needs checking on desktop and mobile - "does it render well?", "does it display correctly?", "ça rend bien ?", "est-ce que ça s'affiche bien ?", suspected visual regression, layout/restyle changed, green tests but the rendering never seen.

Triggers from the description

does it render well?does it display correctly?ça rend bien ?est-ce que ça s
Original author description

Use when a UI change is about to be committed and its real rendering needs checking on desktop and mobile - "does it render well?", "does it display correctly?", "ça rend bien ?", "est-ce que ça s'affiche bien ?", suspected visual regression, layout/restyle changed, green tests but the rendering never seen.

How it works

  1. This skill vs. others
  2. Principle
  3. Context to gather (before acting)
  4. Protocol
  5. Templates
  6. Traps & rationalizations
  7. Exit condition
  8. Tooling
Original SKILL.md headings · 80 lines, 788 words
SKILL.md preview
---
name: visual-regression-check
description: Use when a UI change is about to be committed and its real rendering needs checking on desktop and mobile - "does it render well?", "does it display correctly?", "ça rend bien ?", "est-ce que ça s'affiche bien ?", suspected visual regression, layout/restyle changed, green tests but the rendering never seen.
version: 1.0.2
metadata:
  last-reviewed: 2026-09-04
  category: frontend
---

# Visual regression check - see the real rendering before commit

> If the current repo has a dedicated visual skill, it wins - it knows the pages, the snapshot harness, and the project commands.

## This skill vs. others

- **This skill** when: a UI change is ready to commit - you must see the **real rendering** (not just the tests) on desktop AND mobile, and catch anything broken
- **`validating-features-end-to-end`** instead if: the question is "does the feature *work*" (golden path, API, DB) - functional evidence, not rendering
- **`commit-readiness-review`** instead if: the question is "is it committable" (secrets, lint, debug leftovers)

## Principle

- **"Green tests ≠ correct rendering"**: typecheck/lint/unit do not see a broken grid, a mobile overflow, a never-mounted component, an `undefined` on screen. Vision detects them reliably.
- You are **not** asked for an aesthetic judgment but for detecting what is *broken*: overlapping layout, truncated text, overflow, an empty state showing `undefined`.
- **This is NOT a substitute for human visual testing**: it is a detection net before commit, not a design validation.

## Context to gather (before acting)

- **Which surfaces are affected**: from the diff, which pages/screens render the changed components. A shared component = check at least 2 consuming surfaces.
- **How to run the app** locally (dev command + URL/port) - read `package.json` / `Makefile` / the project config.
- **States to cover**: nominal + reachable ones - empty (filter with no results), error (500 response), loading if stable.
- **Viewports**: desktop **1280×720** + mobile **375×812** by default; adapt to the project's real breakpoints.

## Protocol

1. **Start the app** for real (dev command) and wait until it responds.
2. **Navigate** to each affected surface (`browser_navigate`).
3. **Capture each surface in each viewport**: `browser_resize` 1280×720 → `browser_take_screenshot`; then `browser_resize` 375×812 → screenshot. Save under a readable path (`<surface>-<viewport>-<state>.png`).
4. **Cover the states**: nominal, empty, error, loading (those reachable; flag the ones not reached).
5. **Inspect each capture** (vision) with the objective checklist below.
6. **Compare** to the expected rendering described by the ticket/diff, and to the project's snapshot harness if it exists. A comparison to the **state before the change** counts only if a before-capture exists: the same surfaces, same viewports, same states, captured on the pre-change code (`git stash` or a worktree on the base commit, steps 1-3 run a second time). Capture it before applying the change when you can, or skip that comparison and say so - your memory of how it looked is not a before-capture.

Inspection checklist:

```
- [ ] Nothing truncated, overlapping, overflowing; no horizontal scroll on mobile
- [ ] The expected change is visible (the component actually renders - orphan-component trap)
- [ ] Empty/error/loading states rendered, no undefined/NaN/raw i18n key on screen
- [ ] Text legible against the background (contrast), density consistent with neighboring surfaces
- [ ] Layout consistent on desktop AND mobile (both viewports re-read)
```

## Templates

Verdict to trace (MR description / report):

```
Surfaces checked: <list>
Viewports: desktop 1280×720 ✅ · mobile 375×812 ✅
States: nominal ✅ · empty ✅ · error ✅ · loading <✅/not reached>
Captures: <paths>
Anomalies: <fixed before commit / none>
Not checked: <unreachable state/surface - explicit>
```

## Traps & rationalizations

| Excuse | Reality |
|--------|---------|
| "The tests pass so the rendering is fine" | typecheck/lint/unit see neither a broken grid nor a never-mounted component. |
| "I looked on desktop, that's enough" | Mobile (375px) is blind spot #1: overflow and wrap only appear when narrow. |
| "No need for the empty/error state" | That is where `undefined`/`NaN`/raw i18n keys surface. One state = partial evidence. |
| "A human review will validate it" | This skill does not replace the human, but does not assume they will look: be the detection gate before commit. |
| "It looked different before, I remember" | Memory is not a capture. Either a before-capture from the pre-change code exists, or the comparison was not made - say which. |

## Exit condition

- [ ] Desktop **and** mobile captures of each affected surface, read with the checklist
- [ ] Empty/error states checked or explicitly flagged as not checked
- [ ] Compared to the project's snapshot harness if it exists (intentional diff re-read, otherwise fixed)
- [ ] Before/after comparison made against a before-capture, or explicitly declared not made
- [ ] Verdict + capture paths traced - never "it should render"

## Tooling

- Browser driving via Playwright MCP: `mcp__<server>__browser_navigate`, `mcp__<server>__browser_resize`, `mcp__<server>__browser_take_screenshot` (and `browser_snapshot` for the accessibility tree).
- Failing that: the project's E2E runner / visual snapshot harness (read its config).
- No dedicated script here: dev command and viewports are project-specific.

Versions

The database has no other skills named visual-regression-check.

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version 7d75d0a87a88 (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

  • 100validating-features-end-to-end
    Use when a feature is just implemented and tests pass, before closing a ticket or announcing it done - "is it good?", "does it work?", "ready to close the ticket?", "c'est bon ?", "est-ce que ça marche ?", "je peux fermer le ticket ?", green unit tests as only evidence.
  • 90snapshot
    This skill should be used when the user runs /touchdesigner:snapshot or asks to see, preview, capture, or confirm the visual output of a TouchDesigner TOP — trigger phrases include "show me the output", "what does this look like", "capture the render", "snapshot the TOP", "check…
  • 100viewport
    Visually verify the SpawnForge editor renders correctly — Playwright canvas readback, scene graph inspection, WebGPU/WebGL2 output validation. Use when visual rendering may be broken, after engine changes, or for visual regression checks.
  • 100visual-qa
    Use when verifying that a UI renders correctly. Covers visual regression testing, responsive checks across breakpoints, cross-browser verification, and screenshot-based review of an implementation against a design. Trigger on "does this match the figma", "set up screenshot…
  • 100dev-visual-verdict
    Visual regression testing — capture before/after screenshots of UI changes and compare. Use when a UI change might have unintended visual impact across components.
  • 100doncheli-visual-test
    Run visual regression tests by comparing UI screenshots against baselines. Activate when user mentions "visual test", "screenshot", "UI regression", "visual diff", "pixel diff", "visual snapshot".

Feedback and reports

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