Community编程与开发github.com

verify-for-real

Verify a visible change in a real browser before saying \"done\": headless Chromium, preview or prod, the project's test account, modified state triggered, 0 console errors, 0 4xx/5xx responses, mobile 412 px with no overflow, screenshot attached. Run it as soon as the user says \"verify for real\", \"look at the page\", \"test it for real\", before any \"done\" or \"it's live\" on a visible change (page, screen, component, HTML e-mail, PDF), and at step 5 of ship-to-prod.

verify-for-real 是什么?

verify-for-real is a Claude Code agent skill that verify a visible change in a real browser before saying \"done\": headless Chromium, preview or prod, the project's test account, modified state triggered, 0 console errors, 0 4xx/5xx responses, mobile 412 px with no overflow, screenshot attached. Run it as soon as the user says \"verify for real\", \"look at the page\", \"test it for real\", before any \"done\" or \"it's live\" on a visible change (page, screen, component, HTML e-mail, PDF), and at step 5 of ship-to-prod.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/arthurceo1/claude-code-kit/tree/HEAD/skills/verify-for-real

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Verify for real: look at the page, not the code

Why: batches tested in jsdom and reviewed went live with overlapping buttons, spotted by eye in 10 minutes. jsdom does not compute layout; a green test is not a page that renders.

1. Target

  • The commit's preview (Vercel READY) or prod once the real deployment is confirmed (ship-to-prod, step 4).
  • A dev server under the sandbox is often unusable (ports, file limits): prefer the preview; for a local file (HTML, static build), a small Node server on 127.0.0.1 started and stopped in the script.

2. Browser

  • playwright-core + chromium-headless-shell installed ONCE, in a durable folder (the temp folder empties itself): npm i --prefix <durable folder> playwright-core then node <durable folder>/node_modules/playwright-core/cli.js install chromium-headless-shell. Always --prefix: without it, npm climbs to the first node_modules it finds and uninstalls whatever is not in its package.json (it happened to us).
  • Flags tested under a macOS sandbox: ['--no-sandbox', '--disable-gpu', '--single-process', '--no-zygote', '--disable-software-rasterizer', '--disable-gpu-rasterization', '--disable-accelerated-2d-canvas'] (the last 3 avoid a crash at GL initialization).
  • Behind a proxy: pass it to chromium.launch({ proxy }) from HTTPS_PROXY (otherwise ERR_NAME_NOT_RESOLVED).
  • With --single-process: never browser.newContext(); one launch per width, browser.newPage({ viewport }); closing the page closes the browser.
  • Script output goes to a file, read while filtering out harmless system noise.

3. Test account

  • The project's own, noted in its CLAUDE.md (where to find the login, never the password in clear text). Never the user's account nor a real customer's.
  • No account noted: verify the public part, then ask the user one question, and record it in the project's CLAUDE.md.
  • What the test creates in prod is deleted at the end, leftover rows included (deleting an account does not remove a setting placed on its role).

4. Trigger the modified state

  • Go all the way to the exact screen the diff changes (click, form, filter, empty case, error case, language), not just the home page.

5. Checks, at 412 px then at 1440 px

  • 0 console errors: page.on('console') of type error, and page.on('pageerror').
  • 0 4xx/5xx responses: page.on('response'); an expected 401 or 404 is justified in one line.
  • 0 overflow at 412 px: document.documentElement.scrollWidth - innerWidth equals 0; no button cut off, overlapping or hidden.
  • PNG screenshot of the modified state at each width, looked at (Read tool), one image at a time.

6. Report

  • The screenshot paths and the three numbers: console errors, 4xx/5xx responses, overflow.
  • What could not be seen: "not verifiable because ...", with the exact URL and what to look at.

What "done" looks like

  • Screenshot of the modified state at 412 and 1440 px, looked at.
  • 0 console errors, 0 4xx/5xx responses, 0 overflow at 412 px.
  • Or the sentence "not verifiable because ..." with the URL and what to look at.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

相关技能