agentleFS
liatrio-labsliatrio-labs/ai-prompts/skills/browser-qa/SKILL.md

browser-qa

Skill4 starsChanged 13 months agoApache-2.0View on GitHub

Use when you need lightweight browser QA for a web page, local HTML file, or app: inspect console errors, broken assets, keyboard/focus behavior, viewport readability, and publish evidence-backed findings JSON through a local HTML report viewer.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use santa-method, pytorch-patterns and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mryeastcodeSkill

    santa-method

    Multi-agent adversarial verification with convergence loop. Two independent review agents must both pass before output ships.

    Also in 3 projects that use this

  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 3 projects that use this

  • InfopibeSkill

    deployment-patterns

    Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.

    Also in 5 projects that use this

  • InfopibeSkill

    carrier-relationship-management

    Codified expertise for managing carrier portfolios, negotiating freight rates, tracking carrier performance, allocating freight, and maintaining strategic carrier relationships. Informed by transportation managers with 15+ years experience. Includes scorecarding frameworks, RFP processes, market intelligence, and compliance vetting. Use when managing carriers, negotiating rates, evaluating carrier performance, or building freight strategies.

    Also in 3 projects that use this

  • tpavanipradeepSkill

    bun-runtime

    Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.

    Also in 3 projects that use this

  • saxon-ySkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 3 projects that use this

  • +4 more from Infopibe
  • +1 more from mryeastcode

The file

Show its rules and text

We split this skill into the rules it gives an agent

33 rules. 0 are common, 21 are distinctive, and 12 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 21

    Distinctive

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep the pass demo-sized. This is for quick confidence, reviewer proof, and actionable defect reports, not for full accessibility …

    line 12
  2. Distinctive:

    Use this skill when the user asks you to:

    line 16
  3. Distinctive:

    verify a page, local HTML file, UI change, or critical browser path

    line 18
  4. Distinctive:

    check console errors, failed requests, broken images, keyboard navigation, or obvious layout/readability issues

    line 19
  5. Distinctive:

    Do not use this skill for:

    line 23
  6. Distinctive:

    Prefer a named session for each QA pass so cleanup is precise and visible in the dashboard:

    line 53
  7. Distinctive:

    If you are unsure which session you created, list active sessions and close only the ones from this task:

    line 65
  8. Very specific:

    Use agent-browser close --all only when you are confident no unrelated browser automation should remain open.

    line 72
  9. Very specific:

    Do not rely on late JavaScript monkey-patching or visual error-overlay inspection for the console check.

    line 80
  10. Distinctive:

    Use this sequence for every QA run:

    line 82
  11. Very specific:

    Keep local report-viewer noise out of the target findings.

    line 109
  12. Distinctive:

    Before opening the browser, identify the smallest useful QA target:

    line 113
  13. Distinctive:

    If the target is missing and cannot be inferred, ask one question.

    line 120
  14. Distinctive:

    All browser-qa runs live under one system temp folder:

    line 124
  15. Distinctive:

    Use the platform temp directory, not the repository, for run outputs:

    line 134
  16. Very specific:

    Create one subfolder per QA run.

    line 144
  17. Very specific:

    Use a task-scoped named session such as browser-qa-<run-id> when running browser commands.

    line 152
  18. Distinctive:

    Start or verify the local app if the target is local.

    line 154
  19. Distinctive:

    Use a webinar-friendly browser-shaped viewport when tooling allows it, preferably taller than 720px such as 1366x900 or 1440x1080.

    line 156
  20. Distinctive:

    check browser console/network output when available

    line 166
  21. Very specific:

    after the path, collect agent-browser errors --json, agent-browser console --json, and agent-browser network requests --json before writing …

    line 168
  22. Very specific:

    Use references/checks.md for check definitions.

    line 172
  23. Very specific:

    Before rendering or summarizing, produce findings.json matching references/evidence-contract.md in the run subfolder under …

    line 184
  24. Distinctive:

    Check whether the server is already running before starting another one:

    line 200
  25. Distinctive:

    If that check fails, start it in the background from the repository root or skill folder:

    line 212
  26. Distinctive:

    If the server is already running, do not restart it.

    line 218
  27. Distinctive:

    Before finalizing, close the task-scoped browser session so the user is not left with orphaned agent-browser sessions:

    line 232
  28. Very specific:

    If you started the dashboard only for this run and the user does not need to keep watching background browser activity, stop it with …

    line 244
  29. Distinctive:

    Do not include secrets, cookies, tokens, or private page data.

    line 254
  30. Distinctive:

    Testing too much: Keep the pass narrow; propose follow-up paths instead of expanding silently.

    line 259
  31. Very specific:

    Marking console capture unknown without trying built-ins: Use agent-browser console, agent-browser errors, and agent-browser network …

    line 264
  32. Very specific:

    Losing unknowns: Use unknown when browser tooling cannot inspect a surface.

    line 266
  33. Very specific:

    Leaving orphaned browser sessions: Use a named session and close it before finalizing.

    line 268

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Browser QA

Overview

Use this skill for a focused, evidence-producing browser QA pass against a public URL, local page, or running web app. Browser automation drives the page; this skill defines which checks to run, what counts as evidence, how to classify results, where to store report data, and how to launch the local report viewer.

Keep the pass demo-sized. This is for quick confidence, reviewer proof, and actionable defect reports, not for full accessibility certification, cross-browser coverage, or CI replacement.

When to Use

Use this skill when the user asks you to:

  • verify a page, local HTML file, UI change, or critical browser path
  • check console errors, failed requests, broken images, keyboard navigation, or obvious layout/readability issues
  • capture evidence for a browser-visible defect
  • produce structured findings JSON and a local HTML report link

Do not use this skill for:

  • load testing or performance benchmarking
  • broad cross-browser/device certification
  • full WCAG compliance audits
  • replacing unit, integration, or end-to-end tests in CI

Composition Boundary

Load and use the agent-browser skill for browser mechanics before starting the QA pass. Confirm the browser automation path is available enough to navigate, inspect console/network state, and capture screenshots or snapshots.

This skill owns the QA judgment:

  • which checks to run
  • how each check is interpreted
  • status classification: pass, warn, fail, or unknown
  • findings JSON contract
  • temp-folder report layout
  • local report viewer startup and final link

Agent Browser Observability and Cleanup

For demos or multi-agent work, start the agent-browser dashboard before the QA pass so the user can watch what browser sessions are doing in the background:

agent-browser dashboard start

The dashboard defaults to http://localhost:4848 and shows live browser viewports plus command activity for all active sessions. Use it when the user wants to observe agent browser behavior, during webinar demos, or when multiple agents may be using browser automation at the same time.

Prefer a named session for each QA pass so cleanup is precise and visible in the dashboard:

agent-browser --session browser-qa-<run-id> open <target-url>

Clean up browser sessions before finishing. Close the named session when possible:

agent-browser --session browser-qa-<run-id> close

If you are unsure which session you created, list active sessions and close only the ones from this task:

agent-browser session list
agent-browser --session <session-name> close

Use agent-browser close --all only when you are confident no unrelated browser automation should remain open. If you started the dashboard only for the current task and the user no longer needs it, stop it too:

agent-browser dashboard stop

Agent Browser Console and Network Capture

Do not rely on late JavaScript monkey-patching or visual error-overlay inspection for the console check. agent-browser has built-in buffers for console messages, uncaught page errors, and network requests. Clear those buffers before opening the target, then read them after the page load and critical path.

Use this sequence for every QA run:

SESSION=browser-qa-<run-id>
TARGET_URL=https://example.com

agent-browser --session "$SESSION" open about:blank
agent-browser --session "$SESSION" console --clear
agent-browser --session "$SESSION" errors --clear
agent-browser --session "$SESSION" network requests --clear

agent-browser --session "$SESSION" open "$TARGET_URL"
agent-browser --session "$SESSION" wait --load networkidle

# Exercise the critical path here, then collect evidence.
agent-browser --session "$SESSION" errors --json
agent-browser --session "$SESSION" console --json
agent-browser --session "$SESSION" network requests --json

Classify console/network checks from those command outputs:

  • fail: uncaught JavaScript exceptions, page errors, or target-resource failures that break required behavior.
  • warn: relevant console warnings, blocked analytics/third-party resources, or suspicious non-blocking target-resource failures.
  • pass: buffers were inspected and no relevant errors or failed target resources were found.
  • unknown: only when these commands fail or the browser provider cannot expose the buffers.

Keep local report-viewer noise out of the target findings. For example, ignore 127.0.0.1:10891/favicon.ico when the target is https://example.com, but include failed requests from the target origin or required app assets.

First Response Contract

Before opening the browser, identify the smallest useful QA target:

  1. Target: URL, local file, route, or app/page name.
  2. Goal: what the user wants verified.
  3. Critical path: 1-3 actions that matter most.
  4. Evidence: screenshot, console/network excerpts, keyboard notes, or report only.

If the target is missing and cannot be inferred, ask one question. Otherwise proceed with the obvious target and state any assumption in the final report.

Report Storage Contract

All browser-qa runs live under one system temp folder:

/tmp/browser-qa-reports/
  20260528-154216-example-com/
    findings.json
    screenshot-home.png
    screenshot-focus.png

Use the platform temp directory, not the repository, for run outputs:

python - <<'PY'
import tempfile
from pathlib import Path
print(Path(tempfile.gettempdir()) / 'browser-qa-reports')
PY

Create one subfolder per QA run. Use a stable, readable run id such as YYYYMMDD-HHMMSS-slug. Keep screenshots and supporting artifacts in the same run subfolder. In findings.json, artifact values should be filenames or relative paths inside that run folder, for example "screenshot": "screenshot-home.png".

Workflow

1. Prepare the target and browser tool

  • Load agent-browser and follow its installed guidance for navigation, snapshots, console/network inspection, and screenshots.
  • For webinar demos or background observability, start the dashboard with agent-browser dashboard start and use http://localhost:4848 to watch live sessions.
  • Use a task-scoped named session such as browser-qa-<run-id> when running browser commands.
  • Clear agent-browser console, page-error, and network-request buffers before opening the target so load-time errors are captured from the start.
  • Start or verify the local app if the target is local.
  • Navigate directly to the URL, file, or route.
  • Use a webinar-friendly browser-shaped viewport when tooling allows it, preferably taller than 720px such as 1366x900 or 1440x1080. Avoid 1280x720 unless the user specifically wants a slide-shaped capture.
  • Record target URL/file, viewport if known, and any seeded test data.

2. Run the critical path first

Exercise the main flow before broad checks. For each step:

  • state the intended behavior
  • perform the browser action
  • observe visible result
  • check browser console/network output when available
  • capture screenshot evidence for failures, warnings, or important visual states
  • after the path, collect agent-browser errors --json, agent-browser console --json, and agent-browser network requests --json before writing findings.

3. Run the compact check set

Use references/checks.md for check definitions. Keep the default pass to:

  1. Console errors and failed resource requests.
  2. Broken images/assets.
  3. Keyboard/focus smoke test for primary nav or CTA.
  4. 16:9 viewport readability: clipping, overflow, unreadable hero/main content.
  5. Optional accessibility/content smoke checks: missing obvious heading, missing image alt text, or no main content.

Preserve unknown when automation cannot prove a result.

4. Write and validate findings JSON

Before rendering or summarizing, produce findings.json matching references/evidence-contract.md in the run subfolder under /tmp/browser-qa-reports.

Minimum rule: every non-pass check must include evidence. Evidence can be console text, network URL/status, screenshot path, DOM/snapshot detail, or a manual note.

Validate the JSON before reporting:

uv run skills/browser-qa/scripts/validate-findings.py /tmp/browser-qa-reports/<run-id>/findings.json

Fix the JSON until validation passes.

5. Start or reuse the report server

The report viewer is static HTML served by a tiny Python server in this skill. It lists every findings.json under /tmp/browser-qa-reports and lets the user switch runs from a dropdown.

Check whether the server is already running before starting another one:

python - <<'PY'
from urllib.request import urlopen
try:
    print(urlopen('http://127.0.0.1:10891/api/reports', timeout=1).status)
except Exception:
    raise SystemExit(1)
PY

If that check fails, start it in the background from the repository root or skill folder:

uv run skills/browser-qa/scripts/serve-report.py --port 10891

If the server is already running, do not restart it. Just use the existing server.

6. Provide the direct report link

Give the user a link that opens the latest run directly:

http://127.0.0.1:10891/?report=<run-id>

Also include the run folder path so artifacts are easy to inspect locally.

7. Clean up agent-browser sessions

Before finalizing, close the task-scoped browser session so the user is not left with orphaned agent-browser sessions:

agent-browser --session browser-qa-<run-id> close

Then verify there are no sessions from this QA run still active:

agent-browser session list

If you started the dashboard only for this run and the user does not need to keep watching background browser activity, stop it with agent-browser dashboard stop. Do not stop a dashboard the user explicitly wants to keep open for a demo.

Output Rules

  • Lead with pass, warn, fail, or unknown.
  • Say exactly what was checked; do not claim full coverage.
  • Include URL/route/file and the action sequence.
  • Include the validated findings.json path.
  • Include the local report URL with ?report=<run-id>.
  • Quote only relevant console/network lines.
  • Do not include secrets, cookies, tokens, or private page data.
  • Separate blocking defects from warnings, observations, and unchecked areas.

Common Pitfalls

  1. Testing too much. Keep the pass narrow; propose follow-up paths instead of expanding silently.
  2. Turning taste into defects. Mark subjective visual notes as observations unless they violate a requirement.
  3. Writing JSON in the repo root. The demo viewer only discovers runs under the system temp folder's browser-qa-reports directory.
  4. Restarting the report server unnecessarily. Probe /api/reports; only start the server if the probe fails.
  5. Using absolute artifact paths in JSON. Store screenshots in the run folder and reference them by filename or run-relative path.
  6. Marking console capture unknown without trying built-ins. Use agent-browser console, agent-browser errors, and agent-browser network requests; only mark unknown if those commands fail or the provider lacks the buffers.
  7. Clearing buffers after the page loaded. Clear on about:blank before target navigation so hydration/load-time errors are not missed.
  8. Losing unknowns. Use unknown when browser tooling cannot inspect a surface.
  9. Overstating confidence. A focused browser pass is evidence, not proof of complete quality.
  10. Leaving orphaned browser sessions. Use a named session and close it before finalizing. Run agent-browser session list to verify cleanup.

Verification Checklist

Before finishing, confirm:

  • Target URL, file, or route loaded.
  • agent-browser was loaded or a browser tooling fallback was explicitly noted.
  • agent-browser console, page-error, and network-request buffers were cleared before target navigation.
  • Critical path exercised.
  • Compact check set completed or marked unknown.
  • agent-browser errors --json, agent-browser console --json, and agent-browser network requests --json outputs were checked after the critical path.
  • Findings JSON is saved at /tmp/browser-qa-reports/<run-id>/findings.json.
  • Findings JSON validates with validate-findings.py.
  • Report server is running or known to already be running on port 10891.
  • Final response includes http://127.0.0.1:10891/?report=<run-id>.
  • Final report distinguishes checked items, defects, warnings, and unchecked areas.
  • Task-scoped agent-browser session is closed, or any intentionally retained session is called out.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.