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 Browser Qa?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/davidleberknight-browser-qa)
---
name: browser-qa
disable-model-invocation: true
description: Screenshot-based visual review, or a QA pass on pages the human names. Use only when the human asks; routine checking after a change is page-check.
---
# Browser QA / Visual Layout
Use this skill only when the human asks for a screenshot, a visual review or a named QA pass. Routine driving after a change is the page-check skill. Do not expand scope beyond what was named, and do not take screenshots unless specifically useful for the stated goal.
This skill is for ad-hoc human-driven browser review. The standing Playwright suite (`tests/e2e/`) is described in the Playwright strategy section of `docs/TESTING.md` and is a separate concern from this skill.
## Two modes
**Visual layout review**: human wants to see how a page looks and give feedback.
- Navigate to the named page, take one screenshot, report what is rendered.
- Do not run assertions or check the full target rendering invariants (the view-layer standard and the page's service-JSDoc contract) unless asked.
**QA verification**: human wants to confirm specific behavior is correct.
- State exactly what will be checked before running anything.
- Only check the URLs and interactions the human named.
- Do not expand to adjacent pages or broad QA passes.
- For anything layout-shaped (overflow, sizes, contrast, spacing), measure before looking, with the rendered-style helper as the `page-check` skill runs it.
## Token discipline
- Use `mcp__playwright__browser_snapshot` (accessibility tree) for content/structure checks: cheaper than screenshots.
- Use `mcp__playwright__browser_take_screenshot` only when visual appearance is the explicit goal.
- Do not take multiple screenshots per page unless the human asks for it.
- Close the browser when done (`mcp__playwright__browser_close`).
- If you started the dev server for this check, stop it afterwards; reuse one already running.
## Screenshot file hygiene
**Never let screenshots land in the repo root.** `mcp__playwright__browser_take_screenshot` writes its `filename` argument relative to the current working directory, which is the repo root by default. A bare `filename: "events.png"` will pollute the project tree.
Rules:
- Always pass an explicit `filename` that points into `.playwright-mcp/` (already gitignored), e.g. `filename: ".playwright-mcp/events-desktop.png"`. It is the Playwright server's own output folder, and the server refuses any path outside it, so the session scratchpad is not an option.
- After the requested check is reported, delete any screenshots created during the run unless the human explicitly asked to keep them.
- The repo root has a defensive `/*.png` rule in `.gitignore`, but do not rely on it. Place files correctly the first time.
## MCP tooling
Browser automation uses the **Playwright MCP server** via the `mcp__playwright__*` tools.
The server is a pinned devDependency that `.mcp.json` runs from
`node_modules/.bin/playwright-mcp`, so it starts only after `npm ci` has run.
The configured browser is **Chromium** (isolated mode: `.claude/playwright/config.json`).
## Procedure
1. Confirm with the human before running (questions follow `.claude/rules/asking.md`):
- exact URL(s) to visit
- what is being checked (layout, content, behavior)
- target environment: local dev server (default port 3000), staging, or explicit URL. On staging, submit no form: a form walk on staging belongs to the destructive staging tier of the bare `./run_all_tests.sh --staging` run.
2. Run only what was confirmed. Do not add pages or checks.
3. For QA verification, check against the target rendering invariants (the view-layer standard and the page's service-JSDoc contract) only for the named page(s).
4. Do not claim browser verification unless it was actually executed.
5. Report concisely:
- URL(s) visited
- what was observed (screenshot inline or description)
- any failures, mismatches, or JS console errors