visual-testing
Skill1 starsChanged 52 days agoMITView on GitHub
Use when checking visual/layout correctness — screenshot/visual regression testing, design-system and Figma-to-production validation, responsive layout, dark mode/theming, typography and spacing consistency. Distinct from functional correctness or accessibility (though related).
5 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- godhiraj-code/greenbuild-plugintheir own version, first seen Nov 1, 2026
- petrkindlmann/qa-skillstheir own version, first seen Oct 25, 2026
- handsontable/handsontabletheir own version, first seen Oct 8, 2026
- mejbaurbahar/fagunedited, first seen Jul 5, 2026
- Seaual/meta-knowledge-graphtheir own version, first seen May 24, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- mejbaurbahar/fagun★ 199% same
Wrote their own version · 4
- handsontable/handsontable★ 22ksame name
- petrkindlmann/qa-skills★ 209same name
- Seaual/meta-knowledge-graph★ 14same name
- godhiraj-code/greenbuild-plugin★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository98 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 42crunch-api-security-testingSkill
- a-b-testingSkill
- acceptance-testingSkill
- accessibility-testingSkill
- ai-agent-evaluationSkill
- ai-code-securitySkill
- ai-ml-testingSkill
- analytics-tracking-testingSkill
- api-testingSkill
- authn-authz-testingSkill
- autonomous-qa-orchestrationSkill
- bdd-gherkin-testingSkill
- blockchain-smart-contract-testingSkill
- bug-reportingSkill
- chaos-resilience-testingSkill
- chatbot-voice-agent-testingSkill
- cicd-testingSkill
- cli-testingSkill
- cloud-infrastructure-testingSkill
- code-coverage-analysisSkill
- compatibility-testingSkill
- compliance-testingSkill
- concurrency-race-condition-testingSkill
- configuration-feature-flag-testingSkill
- contract-testingSkill
- cross-browser-testingSkill
- database-testingSkill
- data-migration-testingSkill
- data-pipeline-etl-testingSkill
- date-time-timezone-testingSkill
- desktop-app-testingSkill
- disaster-recovery-backup-testingSkill
- e2e-testingSkill
- email-notification-testingSkill
- event-driven-messaging-testingSkill
- exploratory-testingSkill
- flaky-test-managementSkill
- functional-testingSkill
- fuzz-testingSkill
- game-testingSkill
- graphql-testingSkill
- iac-container-security-testingSkill
- installation-upgrade-testingSkill
- integration-testingSkill
- iot-embedded-testingSkill
- llm-security-auditSkill
- llm-testingSkill
- localization-testingSkill
- manual-testingSkill
- mcp-testingSkill
- memory-leak-resource-testingSkill
- microservices-testingSkill
- mobile-testingSkill
- mutation-testingSkill
- observability-testingSkill
- payment-ecommerce-testingSkill
- performance-testingSkill
- production-monitoring-synthetic-testingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Run against a consistent rendering environment (same OS/browser/font set, typically headless Chrome in CI) — cross-machine font rendering …
- Distinctive: line 28
Check that design tokens (colors, spacing, radii) are actually consumed from the shared token source in code, not hardcoded ad hoc values …
- Very specific: line 29
Verify every documented component state was actually implemented — hover/focus/active/disabled/loading/error are each a separate thing to …
- Distinctive: line 32
Test at real breakpoints, not just "resize until it looks broken" — use the design's documented breakpoints if specified.
- Distinctive: line 33
Check for horizontal scroll/clipped content at each breakpoint, especially with long/translated text (a string that fits in English can …
- Distinctive: line 34
Test with browser text-size zoom (not just viewport resize) since some users zoom text independently.
- Distinctive: line 37
Every themed surface — not just top-level pages — check modals, tooltips, charts, and third-party embedded widgets, which commonly get …
- Distinctive: line 38
Check contrast in *both* themes independently — a combination that passes contrast in light mode can fail in dark mode with the same …
- Distinctive: line 39
Verify theme persists correctly across navigation/reload and doesn't flash the wrong theme on load (FOUC).
- Very specific: line 44
Verify date/number/currency formatting matches locale, not hardcoded to one format.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Visual & UX Testing
Visual regression testing
- Capture baseline screenshots of key screens/components at known states (empty, populated, error, loading) and compare against new builds pixel-by-pixel or via perceptual diff.
- Set a sensible diff threshold — pixel-perfect comparison breaks on anti-aliasing/font-rendering noise across environments; use a perceptual diff tolerance instead of exact match.
- Mask/ignore known-dynamic regions (timestamps, ads, randomized content, animations) so they don't cause false-positive diffs every run.
- Run against a consistent rendering environment (same OS/browser/font set, typically headless Chrome in CI) — cross-machine font rendering differences are the #1 source of visual-regression flakiness.
- Triage every flagged diff as: intentional change (update baseline), real regression (file it), or noise/flake (fix the test's stability, don't just approve blindly).
Playwright visual testing
await expect(page).toHaveScreenshot('checkout.png', { maxDiffPixelRatio: 0.01 });Store baselines in version control alongside the test; review baseline updates in PR diffs like code changes, since an unreviewed baseline update can silently hide a real regression.
Design-system / Figma-to-production validation
- Compare implemented spacing, typography scale, color tokens, and component states (hover/focus/disabled/error) against the design system spec, not just "looks about right."
- Check that design tokens (colors, spacing, radii) are actually consumed from the shared token source in code, not hardcoded ad hoc values that will drift over time.
- Verify every documented component state was actually implemented — hover/focus/active/disabled/loading/error are each a separate thing to check, not just the default state.
Responsive & layout testing
- Test at real breakpoints, not just "resize until it looks broken" — use the design's documented breakpoints if specified.
- Check for horizontal scroll/clipped content at each breakpoint, especially with long/translated text (a string that fits in English can overflow in German or Bangla — see localization note below).
- Test with browser text-size zoom (not just viewport resize) since some users zoom text independently.
Dark mode / theming
- Every themed surface — not just top-level pages — check modals, tooltips, charts, and third-party embedded widgets, which commonly get missed in a dark-mode pass.
- Check contrast in both themes independently — a combination that passes contrast in light mode can fail in dark mode with the same relative colors.
- Verify theme persists correctly across navigation/reload and doesn't flash the wrong theme on load (FOUC).
Localization/internationalization visual impact
- Text expansion: German/Finnish/Russian strings run 30-50% longer than English on average — verify UI doesn't clip/overlap.
- RTL languages (Arabic, Hebrew/Bangla context-dependent) — verify layout actually mirrors, not just text direction, and that icons/directional cues (arrows, progress indicators) are appropriately flipped or intentionally not flipped.
- Verify date/number/currency formatting matches locale, not hardcoded to one format.
Tools
- Playwright/Cypress built-in screenshot comparison, Percy, Chromatic (Storybook-integrated), Applitools (AI-assisted visual diffing with more tolerance for legitimate rendering noise).
- Chrome DevTools MCP / Claude in Chrome
take_screenshot+resize_page/emulatefor ad hoc manual checks without a full visual-regression pipeline.
Reporting
Attach both the baseline and the diff image, not just the new screenshot — see [[bug-reporting]]. For contrast/ARIA-adjacent findings, cross-file with [[accessibility-testing]] rather than duplicating.
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.

