visual-qa
Skill33 starsChanged 35 days agoMITView on GitHub
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 tests", "layout breaks on mobile", "looks wrong in safari". Do not use for exploratory behavior testing — see the web-app-testing skill; for design critique, see the ui-review skill.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- DevNewbie1826/skillstheir own version, first seen Nov 8, 2026
- claude-world/cf-browsertheir own version, first seen Nov 1, 2026
- toribryan/design-skillstheir own version, first seen Oct 25, 2026
- UXLana/design-skills-packtheir own version, first seen Oct 25, 2026
- Alfred-Lau/skillstheir own version, first seen Oct 20, 2026
- wjgoarxiv/litopencodetheir own version, first seen Oct 13, 2026
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- RandallLiuXin/GodotMaker★ 555same name
- dylanfeltus/skills★ 179same name
- liangdabiao/Godogen★ 120same name
- DanielKerridge/claude-code-power-platform-skills★ 61same name
- archibate/agent-skills★ 16same name
- claude-world/cf-browser★ 9same name
- UXLana/design-skills-pack★ 8same name
- dev-ik/ai-design-rules★ 3same name
- DevNewbie1826/skills★ 2same name
- wjgoarxiv/litopencode★ 2same name
10 more not listed
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 repository137 other files it gives its agents.
- agent-instructionsSkill
- agent-memorySkill
- hooksSkill
- plugin-developmentSkill
- skill-authoringSkill
- skill-reviewSkill
- slash-commandsSkill
- subagentsSkill
- agent-designSkill
- context-engineeringSkill
- fine-tuningSkill
- llm-cost-optimizationSkill
- llm-evaluationSkill
- llm-integrationSkill
- mcp-serverSkill
- ml-pipelineSkill
- model-selectionSkill
- prompt-engineeringSkill
- ragSkill
- structured-outputSkill
- api-designSkill
- background-jobsSkill
- cachingSkill
- djangoSkill
- event-driven-architectureSkill
- fastapiSkill
- graphqlSkill
- microservicesSkill
- nestjsSkill
- realtime-websocketsSkill
- spring-bootSkill
- competitive-analysisSkill
- lead-researchSkill
- product-analysisSkill
- resumeSkill
- user-researchSkill
- database-performanceSkill
- data-modelingSkill
- data-qualitySkill
- pandasSkill
- postgresSkill
- sparkSkill
- brand-guidelinesSkill
- generative-artSkill
- themingSkill
- ui-reviewSkill
- visual-designSkill
- architecture-decisionsSkill
- bug-fix-protocolSkill
- cli-developmentSkill
- code-reviewSkill
- debuggingSkill
- design-patternsSkill
- domain-modelingSkill
- git-workflowSkill
- legacy-modernizationSkill
- refactoringSkill
- repository-explorationSkill
- simple-designSkill
- system-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 56
Test the states that are hard to reach manually — error, empty, and loading — because those are the ones nobody looks at before shipping.
- Distinctive: line 57
Run visual tests in a container so the fonts and rendering engine are identical to CI.
“Common” is measured: kept by at least 6 in 10 of the 20 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 QA
Purpose
Catch visual defects before users do. Functional tests confirm the button works; they say nothing about the button being invisible, overlapping, or off-screen on a phone.
When to Use
- Verifying an implementation against a design.
- Setting up visual regression testing.
- Checking responsive behavior across breakpoints.
- Reviewing a UI change that a unit test cannot meaningfully assert on.
Capabilities
- Visual regression testing with deterministic screenshots.
- Responsive verification across a defined breakpoint set.
- Cross-browser and cross-platform rendering checks.
- Design-to-implementation comparison.
- Detection of layout shift, overflow, and truncation.
Inputs
- The design reference, if there is one.
- The breakpoints and browsers that are in scope.
- The pages or components under test, and their states.
Outputs
- Baseline screenshots committed to the repository.
- A diff report for each change, with the pixel delta.
- A list of visual defects with viewport and browser.
Workflow
- Enumerate the states — Not just the happy one. Empty, loading, error, long content, and the state with a 60-character name in a field designed for eight.
- Make screenshots deterministic — Freeze time, seed data, disable animations, and wait for fonts and images. A flaky visual test is worse than no visual test; it will be ignored, then deleted.
- Capture at every breakpoint — Mobile (375), tablet (768), desktop (1280), wide (1920). Check the boundaries themselves, where layouts switch.
- Diff against the baseline — Review each diff. Approve intentional changes to update the baseline; investigate the rest.
- Check the overflow cases — Long words, long lists, missing images, and a 200% browser zoom. These are where layouts break, and where designs rarely go.
Best Practices
- Animation and time are the two causes of visual-test flakiness. Disable both in the test environment before you do anything else.
- Screenshot the component, not the whole page, when testing a component. A full-page baseline changes every time anything on the page does.
- A visual diff threshold that is too tight flags anti-aliasing noise; too loose and it misses a 4px misalignment. Tune it once, on real diffs.
- Test the states that are hard to reach manually — error, empty, and loading — because those are the ones nobody looks at before shipping.
- Run visual tests in a container so the fonts and rendering engine are identical to CI. Screenshots taken on macOS will not match those taken on Linux.
- Review the diff, do not just approve it. A rubber-stamped baseline update defeats the entire mechanism.
Examples
Deterministic Playwright visual test across breakpoints and states:
const VIEWPORTS = [
{ name: "mobile", width: 375, height: 812 },
{ name: "tablet", width: 768, height: 1024 },
{ name: "desktop", width: 1280, height: 800 },
];
for (const vp of VIEWPORTS) {
test.describe(`order card @ ${vp.name}`, () => {
test.use({ viewport: { width: vp.width, height: vp.height } });
for (const state of ["default", "loading", "error", "long-content"] as const) {
test(state, async ({ page }) => {
await page.clock.setFixedTime(new Date("2026-01-15T12:00:00Z")); // freeze time
await page.goto(`/storybook/order-card?state=${state}`);
await page.waitForFunction(() => document.fonts.ready); // fonts settled
await expect(page.getByTestId("order-card")).toHaveScreenshot(
`order-card-${state}-${vp.name}.png`,
{ animations: "disabled", maxDiffPixelRatio: 0.01 },
);
});
}
});
}Catching overflow that a functional test would pass:
test("long customer name does not overflow the card", async ({ page }) => {
await page.goto("/orders/ord_1?customer=Bartholomew%20Wintersmith-Kensington");
const card = page.getByTestId("order-card");
const overflows = await card.evaluate(
(el) => el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight,
);
expect(overflows).toBe(false);
});Notes
page.clock(Playwright 1.45+) freezes bothDateand timers, which is what makes relative timestamps ("2 hours ago") stable in screenshots.- Storybook plus a visual-testing runner gives you every component state in isolation, which is far cheaper to screenshot than navigating the real application into each state.
- Visual tests are not a substitute for accessibility testing. A screenshot cannot tell you the contrast is 2.1:1.
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.

