visual-regression-check
Skill9 starsChanged 23 days agoMITView on GitHub
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.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adversarial-feature-challengeSkill
- api-contract-versioningSkill
- bug-ticket-root-causeSkill
- bug-triage-structuredSkill
- ci-pipeline-orchestrationSkill
- commit-readiness-reviewSkill
- comprehensive-test-strategySkill
- database-schema-evolutionSkill
- ddd-backend-implementationSkill
- design-system-component-lifecycleSkill
- detection-sweepSkill
- domain-glossarySkill
- domain-modeling-designSkill
- frontend-fullstack-implementationSkill
- frontend-spec-call-site-auditSkill
- merge-request-reviewSkill
- performance-profilingSkill
- recording-decisionsSkill
- recurring-bug-root-causeSkill
- refactoring-shared-component-apiSkill
- validating-features-end-to-endSkill
- visual-regression-checkSkill
- writing-robust-testsSkill
- adversarial-feature-challengeSkill
- api-contract-versioningSkill
- audit-architectureSkill
- audit-ci-cdSkill
- audit-complianceSkill
- audit-industrialisationSkill
- audit-observabilitySkill
- audit-performance-frontendSkill
- audit-qualitySkill
- audit-reportSkill
- audit-securitySkill
- audit-testingSkill
- bug-ticket-root-causeSkill
- bug-triage-structuredSkill
- ci-pipeline-orchestrationSkill
- commit-readiness-reviewSkill
- comprehensive-test-strategySkill
- daily-workflow-optimizationSkill
- database-schema-evolutionSkill
- ddd-backend-implementationSkill
- design-system-component-lifecycleSkill
- detection-sweepSkill
- domain-glossarySkill
- domain-modeling-designSkill
- frontend-fullstack-implementationSkill
- frontend-spec-call-site-auditSkill
- merge-request-reviewSkill
- performance-profilingSkill
- production-incident-diagnosticSkill
- qa-session-intakeSkill
- recording-decisionsSkill
- recurring-bug-root-causeSkill
- refactoring-shared-component-apiSkill
- validating-features-end-to-endSkill
- writing-robust-testsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
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 …
- Very specific: line 17
validating-features-end-to-end: instead if: the question is "does the feature *work*" (golden path, API, DB) - functional evidence, not … - Very specific: line 18
commit-readiness-review: instead if: the question is "is it committable" (secrets, lint, debug leftovers) - Distinctive: line 87
No dedicated script here: dev command and viewports are project-specific.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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-endinstead if: the question is "does the feature work" (golden path, API, DB) - functional evidence, not renderingcommit-readiness-reviewinstead 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
undefinedon 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
- Start the app for real (dev command) and wait until it responds.
- Navigate to each affected surface (
browser_navigate). - Capture each surface in each viewport:
browser_resize1280×720 →browser_take_screenshot; thenbrowser_resize375×812 → screenshot. Save under a readable path (<surface>-<viewport>-<state>.png). - Cover the states: nominal, empty, error, loading (those reachable; flag the ones not reached).
- Inspect each capture (vision) with the objective checklist below.
- 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 stashor 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(andbrowser_snapshotfor 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

