Screenshot a web UI at 1440/1024/768/390 wide, look at every image, and report concrete visual blockers with selector and screenshot path, then a pass/repair verdict.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Visual Qa?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/k6w-visual-qa)
---
name: visual-qa
description: Screenshot a web UI at 1440/1024/768/390 wide, look at every image, and report concrete visual blockers with selector and screenshot path, then a pass/repair verdict.
---
# Visual QA
Tests prove the code runs; only screenshots prove the page looks right. This skill is how to take
them, how to read them and how to report what you saw.
Driving flows, asserting console/network/accessibility and feeding worst-case data is `ui-testing`;
animation review is `motion`.
## 1. Get the page running
- Use the project's dev or preview command on `$PORT` (other agents run servers too; never use a
fixed port). Wait until the URL answers before capturing.
- A static file works too: `file:///absolute/path/index.html`.
- Capture the states that matter, not only the first screen: an open menu, a filled form with an
error, an empty list, a long list.
## 2. Capture at four widths
**Baton's screen tools (preferred inside Baton).** `browser_open(url, { width: 1440, height: 900 })`,
then `browser_screenshot({ path: ".baton/shots/<label>/home-1440.png", fullPage: true })`; repeat with
each width. `browser_eval` runs the overflow check below. For a terminal UI, `term_run(command, cols, rows)`
and `term_screenshot(path)`. They run off-screen and only load localhost and files in your worktree.
**Never drive real windows.** No SendKeys, keybd_event / SendInput, xdotool key/type, AppleScript
`keystroke`, nircmd, AutoHotkey, pyautogui or clipboard-paste automation into a real window, and
never focus or type into a terminal or browser the user can see: those keystrokes land in the user's
own windows (their editor, their Baton session). Baton asks the user before running such a command,
at every autonomy level.
Widths: **1440, 1024, 768, 390**. Save into one folder, e.g. `.baton/shots/<label>/`, named
`<page>-<width>.png` (add `-before` / `-after` when comparing).
**Playwright (preferred: full page, any OS).** One-off command:
```sh
bunx playwright install chromium # first time only
bunx playwright screenshot --full-page --viewport-size "1440,900" http://localhost:$PORT/ shots/home-1440.png
```
Or a script that does all four widths and also measures overflow (save it outside the project's
source, e.g. `.baton/shots/shoot.ts`, run with `bun .baton/shots/shoot.ts <url> <outdir>`):
```ts
import { chromium } from "playwright"
const [url = "http://localhost:3000/", out = "shots"] = process.argv.slice(2)
const browser = await chromium.launch()
for (const width of [1440, 1024, 768, 390]) {
const page = await browser.newPage({ viewport: { width, height: 900 }, deviceScaleFactor: 1 })
await page.goto(url, { waitUntil: "networkidle" })
await page.evaluate(() => document.fonts.ready)
await page.screenshot({ path: `${out}/page-${width}.png`, fullPage: true })
const overflow = await page.evaluate(() => {
const w = document.documentElement.clientWidth
return [...document.querySelectorAll("body *")]
.filter((el) => el.getBoundingClientRect().right > w + 1)
.slice(0, 10)
.map((el) => el.tagName.toLowerCase() + (el.id ? `#${el.id}` : "") + (el.classList[0] ? `.${el.classList[0]}` : ""))
})
console.log(width, overflow.length ? `overflow: ${overflow.join(", ")}` : "no horizontal overflow")
await page.close()
}
await browser.close()
```
**No Playwright? Headless Chrome or Edge** (captures the window, not the full page, so use a tall
window and say the shot is cropped):
```sh
# macOS
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --hide-scrollbars --window-size=1440,2400 --screenshot=shots/home-1440.png http://localhost:$PORT/
# Linux
google-chrome --headless=new --hide-scrollbars --window-size=390,2400 --screenshot=shots/home-390.png http://localhost:$PORT/
# Windows (PowerShell; Edge is always installed)
& "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --headless=new --hide-scrollbars --window-size=768,2400 --screenshot="$PWD\shots\home-768.png" http://localhost:$env:PORT/
```
Chrome on Windows is usually `C:\Program Files\Google\Chrome\Application\chrome.exe`. Use an
absolute path for `--screenshot`, and a fresh `--user-data-dir` if a running browser interferes.
## 3. Read every image
Open each screenshot with your image-reading tool and look at it. Don't infer from the code what
it probably looks like. **Judge a cropped screenshot only on what it shows**: if the capture stops
halfway, say the rest is unverified instead of guessing.
Look for these blockers, at each width:
- **Overlap or clipping:** text running into other text or images, buttons cut off, sticky headers
covering content, badges escaping their container.
- **Horizontal overflow:** a sideways scrollbar or content wider than the viewport (the script
above names the elements).
- **Stretched or squashed images,** blurry upscaled ones, broken image icons, missing alt-sized gaps.
- **Unstyled native controls:** default select, checkbox, date or file inputs next to a styled UI.
- **Inconsistent fonts or radii:** a fallback font in one section, three different corner radii,
mixed icon sets or stroke weights.
- **Accent only in tiny labels:** the brand colour never carries a primary action or a surface.
- **Placeholder content:** lorem ipsum, "Title here", Acme/John Doe, grey boxes, round fake numbers.
- **Low contrast:** muted text on tinted surfaces, white text on light photos, disabled-looking
primary buttons.
- **Layout breakage at 390:** tiny tap targets, nav that doesn't collapse, tables that don't scroll,
text at desktop size.
- **The generic tells** from `design-taste` (glow blobs, gradient text, six identical cards, …),
reported as major, not blocking, unless the brief forbade them.
## 4. Fix at the root
- Find the cause in the shared layer first: a token, a base style, a layout primitive. One fix to
`--radius-card` beats nine overrides.
- Make no more than **two repair passes**. After each one, re-capture the same widths and re-read
the images. Whatever is still wrong after the second pass is reported, not patched again.
- If you are a read-only reviewer, don't fix; report.
## 5. Report
List the findings first, then the verdict. One finding per problem:
```
[blocking] 390 · header nav overlaps the logo
selector: header .nav-links
shot: .baton/shots/home/home-390.png
fix: collapse .nav-links into the menu button below 600px
[major] all widths · primary button uses the fallback font
selector: .btn-primary
shot: .baton/shots/home/home-1440.png
fix: apply font-family: var(--font-ui) in the button base style
```
Severity: **blocking** (broken, unreadable, unusable), **major** (clearly off-brand or sloppy),
**minor** (polish). Then:
- **Verdict: pass** — no blocking or major findings at any width.
- **Verdict: repair** — anything blocking or major remains. Say which widths and states were *not*
checked.
As a reviewer, send this with `submit_review`: verdict `approve` for pass, `changes_requested` for
repair, and the findings list as the notes.