visual-proof
FreeRuns bundled scriptsNot checkedCapture before/after screenshot evidence of a web page at real breakpoints (375, 768, 1440) in both light and dark themes, using Playwright against a local…
by frankxai★ 51 GitHub starsAbout this skill
Visual Proof
Screenshots are the only claim about a page's appearance that cannot be hallucinated. Capture before you change anything, and after.
If you cannot capture — no server, no Chromium, no network to the deployed URL — say so and stop making visual claims. Describing a page you never rendered is the single most common way UI work goes wrong undetected.
The matrix
Six shots per state. Not one, not a single desktop hero crop.
| Width | Stands for |
|---|---|
| 375 | phone — where layouts actually break |
| 768 | tablet / the awkward middle breakpoint |
| 1440 | desktop |
× light and dark, if the site ships both themes.
Run it
The pack ships a runner. From the repo root:
# against a local dev server
node .claude/skills/visual-proof/capture.mjs --url http://localhost:3000/ --label before
# ...make the change...
node .claude/skills/visual-proof/capture.mjs --url http://localhost:3000/ --label after
# or against a deployed preview
node .claude/skills/visual-proof/capture.mjs --url https://<preview>.vercel.app/pricing --label after
Output lands in .visual-proof/<label>/<width>-<theme>.png and the script prints
each path. .visual-proof/ belongs in .gitignore — these are evidence for the
turn, not repo artifacts.
Flags: --widths 375,768,1440 · --themes light,dark · --full (full-page
instead of viewport) · --reduced-motion (emulates prefers-reduced-motion: reduce; give it its own label, such as after-reduced, so it does not
overwrite the after shots) · --out <dir>.
Exit 0 means every width × theme was captured. Exit 6 means some were not: the
paths it printed are real, the rest are not captured, and the report says which.
The Stop gate does not accept a partial run as proof; capture the missing states
or say why they cannot be captured. Nor does it accept a before run on its own:
that records the starting point, and only the after run shows the change.
The after run must cover all six shots (narrow --widths or --themes for a
quick look, not for the receipt) and start after your last UI edit: change
anything after capturing, and capture again.
Environment notes
- Cloud / remote Claude Code sessions: Chromium is already installed and
PLAYWRIGHT_BROWSERS_PATH=/opt/pw-browsersis set. Do not runplaywright install— it is blocked and unnecessary. If a project pins its own@playwright/test, launch withexecutablePath: '/opt/pw-browsers/chromium'. - No dev server running: start one in the background first
(
npm run dev), wait for the port, capture, then stop it. Do not leave a dev server running after the work is done. - Theme switching is site-specific. The runner tries, in order:
?theme=darkon the URL, adata-theme="dark"attribute on<html>, a.darkclass on<html>, and Playwright'scolorScheme: 'dark'emulation. If the site uses something else, pass--themes lightand say dark mode was not verified.
Reading the result
Look at the images. Specifically check:
- horizontal scroll at 375 (the most common regression)
- text that wraps into a widow or clips at 768
- contrast in dark mode on anything using a translucent surface
- the fold at 1440 — what is above it, and is the primary action there
- images that shift as they load (compare against
core-web-vitals)
Then state what changed, in words, with the paths attached. "Hero is 40px shorter at 375 and the CTA is now above the fold" is a finding. "Looks great" is not.
Install visual-proof in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the visual-proof skill do?
Capture before/after screenshot evidence of a web page at real breakpoints (375, 768, 1440) in both light and dark themes, using Playwright against a local dev server or a deployed URL. Use before starting any visual change to capture the current state, and again after to prove the delta. Also use when asked to "show me what it looks like", check responsive behavior, verify dark mode, or confirm a layout does not break on mobile. Reports honestly when a browser or server is unavailable rather than describing a page it never rendered.
How do I install the visual-proof skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the visual-proof skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic