agentleFS
KoshuxKoshux/agentic-sdlc-scaffold/.claude/skills/browser-verify/SKILL.md

browser-verify

Skill0 starsChanged 4 months agoMITView on GitHub

Drive the local stack in a real Chrome browser via the chrome-devtools MCP to verify UI behaviour against https://localhost:8443. Use when asked to browser-test, visually verify, check the UI, take a screenshot/snapshot, or confirm a frontend change against the running Docker stack. Requires the chrome-devtools MCP server to be connected; when it is not, record browser verification as pending operator review instead.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 1 is distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Verify UI behaviour with the chrome-devtools MCP against the live stack at https://localhost:8443.

    line 9
  2. Very specific:

    All browser actions are MCP tools prefixed mcp__chrome-devtools__.

    line 21
  3. Very specific:

    Wait for healthy status before navigating.

    line 42
  4. Distinctive:

    Stale-image warning: If the stack runs built images (no source bind-mount), the browser shows whatever image is *running*, not your working …

    line 45
  5. Very specific:

    If the build fails, up -d silently keeps the old image — you would be verifying stale code.

    line 52
  6. Very specific:

    When a browser action fails with ERR_CONNECTION_REFUSED, a gateway 502, or a timeout:

    line 57
  7. Very specific:

    Check service state: docker compose ps — every required service must be Up/healthy.

    line 59
  8. Very specific:

    If something is down, start it: docker compose up -d && docker compose ps.

    line 60

“Common” is measured: kept by at least 6 in 10 of the 5 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 Verification Workflow

Verify UI behaviour with the chrome-devtools MCP against the live stack at https://localhost:8443.

Optional module. This skill only works when the chrome-devtools MCP server is connected — its tools appear as mcp__chrome-devtools__*. If the tools are not present, do not simulate or substitute: record browser verification as pending operator review and move on.

This skill never changes the SDLC handoff boundary: agents do not merge to main, and a clean browser pass here is Stage 5 evidence, not Stage 6 sign-off. The operator performs the final browser review and the merge. See docs/sdlc.md.

Tool names and token economy

All browser actions are MCP tools prefixed mcp__chrome-devtools__. Full action → tool lookup: reference.md. The ones you reach for constantly: list_pages, navigate_page, take_snapshot (a11y tree + uids), take_screenshot, click, fill / fill_form, list_console_messages, list_network_requests / get_network_request.

  • Prefer snapshots over screenshots. take_snapshot returns the accessibility tree as text — cheap in tokens, and it carries the uids you need to act. Take a screenshot only when a visual detail (layout, colour, clipping) is the thing under test, or as evidence attached to a FAIL.
  • Act only on uids from the latest snapshot. Navigation and DOM re-renders invalidate uids. Re-snapshot after any action that changes the page; never reuse a uid from an earlier snapshot.

Prerequisites — running stack, fresh images

Required services: postgres-main, api-core, auth-service, web, and the gateway serving https://localhost:8443 (self-signed TLS — certificate warnings are expected).

docker compose up -d && docker compose ps

Wait for healthy status before navigating. A test failure caused by a stopped container is a setup failure, not a product bug — see .claude/rules/testing.md.

Stale-image warning. If the stack runs built images (no source bind-mount), the browser shows whatever image is running, not your working tree. Before verifying a UI change:

docker compose build web api-core && docker compose up -d web api-core

If the build fails, up -d silently keeps the old image — you would be verifying stale code. Confirm the build actually produced a new image before trusting anything you see in the browser.

Bounded infrastructure-retry protocol

When a browser action fails with ERR_CONNECTION_REFUSED, a gateway 502, or a timeout:

  1. Check service state: docker compose ps — every required service must be Up/healthy.
  2. If something is down, start it: docker compose up -d && docker compose ps; wait for healthy.
  3. Retry the failed action once (navigate_page or reload).
  4. Still failing → restart the gateway once: docker compose restart gateway. (A recreated backend container can leave the gateway proxying a stale upstream IP — 502s that a gateway restart fixes.)
  5. Retry login + target navigation one more time.
  6. Persistent failure after these two bounded retries → stop and report infrastructure instability, not a product bug. Never loop indefinitely on browser retries.

Step-by-step

  1. list_pages — see if a browser/tab is already connected.
  2. navigate_page → https://localhost:8443 (or straight to the feature, e.g. /projects/42/board). On connection failure, run the retry protocol above.
  3. Login if redirected to /login: take_snapshot to find the email/password/submit uids, then fill_form with your dev-seed account (the account your seed data creates — never commit or paste real credentials into files or reports), click sign-in, take_snapshot to confirm the landing page.
  4. take_snapshot of the target page to map structure and collect uids.
  5. Interact with click / fill / fill_form, re-snapshotting after each re-render.
  6. Check for errors — list_console_messages (error/warn) and list_network_requests (fetch/xhr). For any suspicious call, get_network_request to read the request body and the server response (status + payload). This is how you prove a form's field mapping: confirm the POST body keys and the response status, not just that the UI looked right.
  7. Report PASS / FAIL / PARTIAL using the format below.

Report format

## Browser Verification Report
**URL:** https://localhost:8443/...
**Feature:** <what was tested>
**Status:** PASS / FAIL / PARTIAL

### Verified behaviours
- [x] ...
- [ ] ... (couldn't test — why)

### Network / mapping evidence
- POST /api/<endpoint> → <status>; body keys: { ... }; response: { ... }

### Console errors
- None / <list>

### Notes
- <observations; for a FAIL include a screenshot>

Safety rules and handoff

  • No destructive actions unless the test explicitly requires them — do not delete projects, tasks, or members while verifying something else.
  • This is not a substitute for pnpm e2e or unit tests, and not an API/curl workflow — it verifies what a user sees in a real browser. Run the automated suites separately.
  • A passing automated browser check never substitutes for operator sign-off. Record the result in the implementation log; the operator does the final browser review and the merge.

Reference

  • Copilot twin: .github/skills/browser-verify/SKILL.md
  • Boundary rules for Copilot: .github/instructions/browser-verification.instructions.md
  • Action → tool lookup: reference.md
  • Stack vocabulary: docs/reference-stack.md — the frontend is a Nuxt 3 SPA with client-side routing.

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.