/alexop-skills:qa-explorefrom alexop-skills
Exploratory browser QA — drive agent-browser through a real UI flow, capture screenshots and console output, then produce a structured markdown report with TC-## test cases, pass/fail verdicts, defects, risks and a ship recommendation. Use this whenever the user says "qa this", "verify like a qa engineer", "exploratory test", "manually verify in browser", "drive the browser and check X works", or asks for a QA report on a change. Prefer this over just running automated tests when the user explicitly wants hands-on, real-browser verification.
Ships in alexop-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Act as a hands-on QA engineer. Drive a real browser, walk the flow a user would walk, capture evidence, and deliver a written report. The goal is to prove the feature actually works — not just that the code type-checks.
Argument (if provided): $ARGUMENTS — treat this as the feature, branch, or flow under test. If empty, infer from the recent conversation (the last implementation, the current branch diff, the open file).
Type-check + unit tests prove code correctness. They don't prove feature correctness. Things that slip past them: wrong copy rendered, silent fallbacks, empty states that render blank, nav that routes to a 404, API-dependent flows that secretly 500, components that throw on first mount for new accounts. The only way to catch these is to actually use the app.
Before touching the browser, spend one or two minutes figuring out the terrain. Do these in parallel where you can:
CLAUDE.md (project root) and any referenced brain/docs files for the dev command, test command, test-credentials path, and testing conventions.package.json scripts — what's dev / test / typecheck? Which port?brain/local/test-credentials.md, docs/local/*, .env.local. If Clerk is in use, note the +clerk_test convention and the 424242 OTP.If the user's intent is ambiguous (e.g. "qa this" with no diff), ask one concise clarifying question and then proceed.
# Start the dev server in the background; capture its output path.
pnpm dev # or npm run dev / yarn dev — whatever package.json says
Run in background (run_in_background: true). Poll the output file until the "ready" banner appears (e.g. Astro: Local http://localhost:4321/, Next: ready on http://…). Use the real port from the banner — don't guess.
If a server is already running on the expected port, reuse it. Don't start a second one.
Use agent-browser with a persistent named session so auth and local-first storage survive across runs:
agent-browser --session-name <project>-qa \
--profile ~/.<project>-qa-profile \
open http://localhost:<port>
Then set AGENT_BROWSER_SESSION=<project>-qa in subsequent commands so every call targets the same window:
AGENT_BROWSER_SESSION=<project>-qa agent-browser wait --load networkidle
AGENT_BROWSER_SESSION=<project>-qa agent-browser snapshot -i -u
Core commands you'll use constantly:
| Command | Use for |
|---|---|
snapshot -i -u | Accessibility tree with interactive elements + URLs. Refs are @e1, @e2… and only valid until the next DOM mutation. |
screenshot /tmp/qa-<step>.png | Save a visual. Read it back via Read to actually see it. |
click @eN / fill @eN "text" / press Enter | Act on refs. Re-snapshot after any action that changes the page. |
eval "<js>" | Last-resort inspection — read window.location.href, a textarea .value, a computed style. |
console | Full browser console log. Filter mentally for [error]. |
errors | Uncaught JS exceptions only. This is the cleanest signal. |
wait --load networkidle / wait --text "X" / wait --fn "<expr>" | Wait on real signals. Never sleep arbitrarily. |
close | End of session — do this in Phase 5. |
Frameworks like TanStack Router, Next App Router with client nav, or SvelteKit often 404 on direct URL loads for routes that were pushed in by a prior client nav. If open http://.../some/route gives a 404, navigate via the router instead:
AGENT_BROWSER_SESSION=<project>-qa agent-browser eval \
"window.history.pushState({}, '', '/app/insights'); window.dispatchEvent(new PopStateEvent('popstate'))"
For Clerk dev instances, use the +clerk_test email with OTP 424242 (no real email required). Load creds from the project's test-credentials file rather than hardcoding. Fill email, submit, fill OTP, submit, wait for redirect.
After login, verify the landing URL with eval "window.location.href" before you proceed — don't trust that a click "worked".
For each test case:
networkidle is a decent default; prefer wait --text when you know a specific string should appear).snapshot -i -u) — capture what's interactive and where links go./tmp/qa-<route>.png — later you'll Read it inline into your report reasoning.Things worth checking at every step:
errors once at the end of the flow; scan console for [error] entries. Distinguish product bugs (uncaught exceptions, React errors) from environmental noise (API 500s because a key isn't set locally).eval "document.querySelector('textarea').value" or similar when value matters.If a screen is blank or wrong, don't immediately declare a bug. Check:
window.location.href what you expect? (You might have landed on about:blank.)open actually navigate? Re-issue with the full URL.wait --fn on a real app signal.Triage before reporting.
In parallel with (or right after) the manual walk, run the project's own suites and a targeted grep sweep for data you expected to remove / change:
pnpm typecheck # or equivalent
pnpm test # or equivalent
Example grep sweep for the common "removed demo data" case:
# Pick terms relevant to what was removed.
rg 'MOCK_|SAMPLE_|DEMO_|TODO_DEMO|<specific-string-you-killed>' src/
Automated green + zero grep matches + zero uncaught browser errors = strong triangulation.
AGENT_BROWSER_SESSION=<project>-qa agent-browser close
Leave the dev server up unless you started it for this task and the user isn't using it.
Write the report as a markdown file in the project root (or a project-conventional location like docs/qa/ if it exists). Default filename: qa-report-<feature-slug>.md. Use the template at assets/report-template.md (sibling of this SKILL.md) — copy it, then fill every section from the evidence you captured.
Report discipline:
add-meal-flow.test.tsx" is a perfectly fine actual.Tell the user in one or two sentences where the report is, the verdict, and any caveat. Link screenshot paths so they can open them. Don't recap the body of the report.
snapshot -i (interactive only) often returns "no interactive elements" before the app has hydrated. Wait on networkidle first, or re-issue after a short wait.agent-browser open <url> occasionally leaves you at about:blank — verify with eval "window.location.href".history.pushState as shown above.errors returning no output is the best possible result. An empty errors is not a tool failure.--profile path. For "returning-user" tests, reuse one.cd into the project and fight with paths — use absolute paths for the profile and for screenshots so the session is portable.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (alexanderop/skills) — no native marketplace selected
npx claudepluginhub p/alexanderop-alexop-skills17 skills in this plugin
/screenshotting-appsGenerates annotated screenshot documentation for web apps and websites — local dev servers or live sites. Use when asked to "screenshot the app", "document the app", "visual docs", "screenshot documentation", "show me the app", "screenshot <url>", or "document this website".
/blog-generatorGenerates a self-contained, deeply-technical "deep dive" blog post as a single offline-capable HTML file — AstroPaper aesthetic, light/dark toggle, Mermaid diagrams (CDN), Shiki syntax highlighting (CDN ESM). Use when the user types "$blog" or "$blog-post", asks to "write a blog post", "deep dive blog", "generate a blog post about how X works", "explain X in a blog post so I can rebuild it", "in-depth post about", or wants a long-form publishable HTML article reverse-engineering a codebase, library, or architecture (not a quick summary, not an interactive walkthrough)./c4-architectureGenerate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document system architecture, visualize software structure, create C4 diagrams, or generate context/container/component/deployment diagrams. Triggers include "architecture diagram", "C4 diagram", "system context", "container diagram", "component diagram", "deployment diagram", "document architecture", "visualize architecture"./checkReview current changes with parallel subagents/clone-repoVendor a library's source code into the current repo as a git subtree under `repos/<name>/`, then wire it into AGENTS.md as reference material so coding agents read real source instead of fighting stale docs. Use when the user types "$clone-repo <url>", "/clone-repo <url>", "vendor <url>", "clone <url> as a subtree", "add <url> as reference for the agent", "feed <url> to the agent", "just clone the repo <url>", or otherwise asks to set up a third-party repo as agent-readable context./fix-pipelineCheck GitHub pipeline status and plan fixes if failing