/ralph-ban:browser-qa [scope of changes to verify]from ralph-ban
Drives a real browser to verify web UI changes by navigating, interacting, and capturing evidence. Supports agent-browser, Playwright CLI, or Chrome MCP.
Ships in ralph-ban. 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.
Drive a real browser: start the dev server, navigate, snapshot, interact, observe, capture evidence.
Scope: $ARGUMENTS
If no scope was provided, read the recent changeset to determine what needs verification.
Three viable drivers; check in order.
if [ -n "${MCP_CHROME_LOADED:-}" ] || command -v claude-mcp-chrome >/dev/null 2>&1; then
DRIVER=mcp-chrome # use mcp__claude-in-chrome__* tools directly
elif command -v agent-browser >/dev/null 2>&1; then
DRIVER=agent-browser
elif command -v playwright-cli >/dev/null 2>&1; then
DRIVER=playwright-cli
else
echo "ESCALATE: no browser driver available. Install agent-browser (preferred), playwright-cli, or load the chrome-browser MCP." >&2
exit 1
fi
echo "Using driver: $DRIVER"
If MCP is loaded, mcp__claude-in-chrome__* tools are the native interface and the CLI examples below translate to tool calls.
Driver-specific references (load on demand):
agent-browser (preferred CLI): references/agent-browser/overview.md.playwright-cli (fallback CLI): references/playwright-cli/overview.md.chrome-browser MCP: tool schemas load on demand via ToolSearch.git diff, git log, understand what UI surface changed.package.json scripts, Procfile, bin/rails server, vite.config.*, framework conventions. Read README and CLAUDE.md for project specifics.curl, do not sleep-and-hope).$DRIVER: open the URL, take a snapshot, identify elements by ref, interact, re-snapshot after every navigation..agent-history/oracle/<card-id>/<timestamp>/.SERVER_LOG="/tmp/qa-server-$$.log"
PORT=5173
npm run dev >"$SERVER_LOG" 2>&1 &
SERVER_PID=$!
trap '[ -n "$SERVER_PID" ] && kill "$SERVER_PID" 2>/dev/null; [ "$DRIVER" != mcp-chrome ] && "$DRIVER" close --all 2>/dev/null' EXIT
# Poll readiness *and* watch the process — exit if it dies before responding
ready=0
for i in $(seq 1 60); do
if ! kill -0 "$SERVER_PID" 2>/dev/null; then
echo "dev server died before becoming ready (see $SERVER_LOG)" >&2
exit 1
fi
if curl -sf "http://localhost:$PORT" >/dev/null 2>&1; then
ready=1
break
fi
sleep 0.5
done
[ "$ready" = 1 ] || { echo "dev server failed to become ready in 30s (see $SERVER_LOG)" >&2; exit 1; }
Three operational details:
kill -0 so a crashed boot fails fast, not against a corpse.5173 → 5174, 3000 → 3001) when occupied. Parse $SERVER_LOG for the bound port if the spec is port-sensitive.Replace npm run dev and 5173 with the project's command and port (Rails: bin/rails server -p 3000; Next.js: 3000; Vite: 5173).
Both drivers share this shape; references document exact syntax.
$DRIVER open <url> # navigate
# wait for SPA hydration:
# agent-browser: $DRIVER wait --load networkidle
# playwright-cli: see references/playwright-cli/overview.md
$DRIVER snapshot # accessibility tree + element refs (agent-browser @e1, playwright-cli e1)
$DRIVER click <ref> # interact
$DRIVER snapshot # RE-snapshot — refs invalidate
$DRIVER screenshot <path> # evidence
$DRIVER close
Three subtleties:
networkidle does not fire for websocket / SSE / long-polling apps; the wait times out. Wait on a UI condition (element appears, class changes) instead.Save artefacts under .agent-history/oracle/<card-id>/<timestamp>/:
before.png — screenshot before the asserted actionafter.png — screenshot aftersnapshot-before.txt — accessibility tree beforesnapshot-after.txt — accessibility tree afterconsole.log — console messages captured during the flowdiff.txt — agent-browser diff snapshot after the action; for playwright-cli, diff the captured before/after snapshotstrap … EXIT so cleanup happens on success, failure, and interrupt.agent-browser --session qa-<timestamp>; playwright-cli -s=qa-<timestamp>. Without a session name, parallel QAs collide.## Browser QA Report
**Scope**: <what was verified>
**Driver**: agent-browser | playwright-cli | chrome-browser MCP
**Verdict**: PASS | FAIL | PARTIAL
### Server
- [PASS/FAIL] `<dev server command>` — <port, ready time>
### Navigation
- [PASS/FAIL] `<url>` — <observed page state>
### Interactions
- [PASS/FAIL] <action> — <observed response>
- Evidence: `<path-to-screenshot-or-snapshot>`
### Console
- <any console errors observed during the flow>
### Issues
1. <description with reproduction steps and evidence path>
### Transcript
Path: `.agent-history/oracle/<card-id>/<timestamp>/`
Contents: <brief listing of what's in there>
references/agent-browser/overview.md (opens in a new tab)references/agent-browser/references/authentication.md (opens in a new tab)references/agent-browser/references/commands.md (opens in a new tab)references/agent-browser/references/profiling.md (opens in a new tab)references/agent-browser/references/proxy-support.md (opens in a new tab)references/agent-browser/references/session-management.md (opens in a new tab)references/agent-browser/references/snapshot-refs.md (opens in a new tab)references/agent-browser/references/video-recording.md (opens in a new tab)references/agent-browser/templates/authenticated-session.sh (opens in a new tab)references/agent-browser/templates/capture-workflow.sh (opens in a new tab)references/agent-browser/templates/form-automation.sh (opens in a new tab)references/playwright-cli/overview.md (opens in a new tab)references/playwright-cli/references/request-mocking.md (opens in a new tab)references/playwright-cli/references/running-code.md (opens in a new tab)references/playwright-cli/references/session-management.md (opens in a new tab)references/playwright-cli/references/storage-state.md (opens in a new tab)references/playwright-cli/references/test-generation.md (opens in a new tab)references/playwright-cli/references/tracing.md (opens in a new tab)references/playwright-cli/references/video-recording.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/cli-qaThis skill should be used when the user asks to "QA a CLI tool", "verify a command-line program", "check the binary's output", "validate exit codes", "compare against a golden file", or wants end-to-end behavioural verification of command-line tools. Drives a binary with representative inputs, captures stdout / stderr / exit code as separate evidence channels, asserts via golden-file comparison with volatile-field redaction./db-state-qaThis skill should be used when the user asks to "verify database state", "check what's in the database", "assert DB rows after the action", "validate the migration", or wants behavioural verification of database side effects. Snapshots database state before the action, exercises the system, snapshots after, and diffs structurally — ignoring volatile fields the spec does not assert. Used by primary-surface oracles (http-qa, cli-qa, library-qa) when a card asserts side-effect behaviour./http-qanpx claudepluginhub kylesnowschwartz/ralph-ban --plugin ralph-banOther plugins' skills for the same job