browser-check
Skill2 starsChanged 8 months agoUnlicenseView on GitHub
AI self-verification of running UI via agent-browser CLI — live snapshot and optional interaction flow. Use for ad-hoc visual checks of a running dev server without writing test files. Do not use when persistent Playwright spec files are needed — use /e2e-tests instead.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- antsteyer/claude-skillstheir own version, first seen Oct 15, 2026
- jjanczur/tyrantheir own version, first seen Jul 27, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- jjanczur/tyran★ 81same name
- antsteyer/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository70 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-project-context.mdcCursor rule
- .cursor/rules/01b-component-gen-next.mdcCursor rule
- .cursor/rules/01-component-gen.mdcCursor rule
- .cursor/rules/02-component-tests.mdcCursor rule
- .cursor/rules/03b-vue-doctor.mdcCursor rule
- .cursor/rules/03-react-doctor.mdcCursor rule
- .cursor/rules/04-ui-tweak.mdcCursor rule
- .cursor/rules/05-refactor.mdcCursor rule
- .cursor/rules/06-frontend-code-review.mdcCursor rule
- .cursor/rules/07-fe-repo-scout.mdcCursor rule
- .cursor/rules/08-be-repo-scout.mdcCursor rule
- .cursor/rules/09-web-vitals.mdcCursor rule
- .cursor/rules/10-browser-check.mdcCursor rule
- .cursor/rules/11-api-bind.mdcCursor rule
- .cursor/rules/12-e2e-tests.mdcCursor rule
- .cursor/rules/13-api-mocks.mdcCursor rule
- agents-checkerSkill
- api-bindSkill
- api-mocksSkill
- be-repo-scoutSkill
- browser-checkSkill
- component-gen-nextSkill
- component-genSkill
- component-testsSkill
- curate-lessonsSkill
- e2e-testsSkill
- fe-repo-scoutSkill
- fix-markdownSkill
- frontend-code-reviewSkill
- init-agentSkill
- init-projectSkill
- init-skillSkill
- prSkill
- react-doctorSkill
- refactorSkill
- setup-configsSkill
- skill-auditSkill
- spec-auditSkill
- ui-tweakSkill
- update-ai-setupSkill
- vue-doctorSkill
- web-vitalsSkill
- agents-checkerSkill
- api-bindSkill
- api-mocksSkill
- be-repo-scoutSkill
- component-gen-nextSkill
- component-genSkill
- component-testsSkill
- curate-lessonsSkill
- e2e-testsSkill
- fe-repo-scoutSkill
- fix-markdownSkill
- frontend-code-reviewSkill
- init-agentSkill
- init-projectSkill
- init-skillSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 6 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
If url not provided → use http://localhost:5173
- Very specific: line 51
If url provided without protocol (http:// or https://) → prepend http://
- Very specific: line 52
If url provided with protocol → use as-is
- Distinctive: line 60
If command fails (exit code ≠ 0) → STOP.
- Distinctive: line 69
If fails (connection refused, page load error) → STOP.
- Very specific: line 88
CRITICAL BASH RULE: Always wrap fill text inputs in single quotes ('...') to prevent bash variable expansion and injection of special …
- Distinctive: line 99
After each step: take a new snapshot to confirm the result.
- Very specific: line 101
Race Condition Guard: If the snapshot shows loading indicators (text containing "loading", "spinner", skeleton placeholders, or disabled …
- Very specific: line 106
If expected element absent after snapshot: re-run snapshot -i up to 2 times (run sleep 2 between retries).
- Very specific: line 108
If same step fails 3 times → abort.
- Very specific: line 110
Loop Guard: If the same step fails 3 times → abort the entire flow.
- Very specific: line 123
Use ONLY when text/visibility assertions are impossible.
- Very specific: line 132
Run Gardener Analysis per .claude/protocols/gardener.md via silent tool calls.
- Distinctive: line 133
Do NOT output Gardener text to chat.
- Very specific: line 139
If same step fails 3 times → abort flow.
- Very specific: line 143
Do not use snapshot (full DOM) instead of snapshot -i — wastes tokens
- Distinctive: line 144
Do not interact with elements behind a loading overlay — wait and re-snapshot first
- Distinctive: line 184
No file artifacts written — output is chat-only
- Very specific: line 185
Default URL matches Vite dev server (same as /e2e-tests)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: /browser-check
Purpose
AI self-verification of running UI via agent-browser CLI.
Fast, ad-hoc snapshot + optional interaction flow — no file artifacts written.
Different from /e2e-tests: e2e-tests generates persistent .spec.ts test files.
/browser-check is ephemeral: live snapshot → chat-only pass/fail report.
Verbosity Protocol
SILENT MODE: No intermediate chat output. Tool calls first, analysis after. Output to chat: SKILL COMPLETE block only.
Input
/browser-check [url?] [flow-description?]| Param | Required | Default | Example |
url | No | http://localhost:5173 | http://localhost:3000 |
flow-description | No | (snapshot only) | "fill login form and submit" |
Allowed Tools
Bash(npx *agent-browser*) only. No file writes during this skill.
Workflow
Step 1 — Validate
- If
urlnot provided → usehttp://localhost:5173 - If
urlprovided without protocol (http://orhttps://) → prependhttp:// - If
urlprovided with protocol → use as-is
Step 2 — Check agent-browser is available
npx --yes agent-browser --versionIf command fails (exit code ≠ 0) → STOP. Output ⚠️ SKILL PARTIAL: Blockers: "agent-browser not found. Install: npm install -g @vercel-labs/agent-browser"
Step 3 — Open URL
npx --yes agent-browser open <url>If fails (connection refused, page load error) → STOP. Output ⚠️ SKILL PARTIAL:
Blockers: "Could not open <url> — dev server may not be running"
Step 4 — Snapshot
npx --yes agent-browser snapshot -iParse output:
- Count interactive elements (
@eNrefs) - Note page title / h1
Step 5 — Execute flow (if flow-description provided)
Translate the natural-language flow into sequential agent-browser commands
using refs from Step 4. See references/commands.md for command syntax.
CRITICAL BASH RULE: Always wrap fill text inputs in single quotes ('...') to prevent
bash variable expansion and injection of special characters ($, !, `, ").
Examples:
npx --yes agent-browser fill @e1 'user@example.com'
npx --yes agent-browser fill @e2 'P@ssw$rd!'
npx --yes agent-browser click @e3After each step: take a new snapshot to confirm the result.
Race Condition Guard: If the snapshot shows loading indicators (text containing
"loading", "spinner", skeleton placeholders, or disabled submit buttons), wait (sleep 2)
and re-snapshot before attempting the next interaction. Do not interact with elements
that are behind a loading overlay.
If expected element absent after snapshot: re-run snapshot -i up to 2 times
(run sleep 2 between retries). If still absent after 2 retries → mark step as failed.
If same step fails 3 times → abort. Output ⚠️ SKILL PARTIAL with LOOP_GUARD blocker.
Loop Guard: If the same step fails 3 times → abort the entire flow. Output ⚠️ SKILL PARTIAL: Blockers: "LOOP_GUARD: step [description] failed 3× — [last error]"
Step 6 — Assert outcome
Based on flow or snapshot-only:
npx --yes agent-browser get text @eN
npx --yes agent-browser is visible @eN⚠️ screenshot — LAST RESORT only. Outputs raw base64 (100k+ tokens).
Use ONLY when text/visibility assertions are impossible. Prefer is visible + get text.
Determine PASS / FAIL:
- PASS: Expected elements visible, no error state detected
- FAIL: Error message visible, expected element missing, or command failed
Step 7 — Gardener
Run Gardener Analysis per .claude/protocols/gardener.md via silent tool calls.
Do NOT output Gardener text to chat. SKILL COMPLETE block must be the only chat output.
Anti-Patterns
- If same step fails 3 times → abort flow. Output ⚠️ SKILL PARTIAL with Blockers: "LOOP_GUARD: [step] failed 3× — [error]"
- BANNED: Re-using
@eNrefs after ANY navigation or click that triggers route change — ALWAYS re-snapshot first. The DOM mutates, invalidating old refs. - BANNED: Using double quotes
"..."forfillinputs containing special characters ($,!,`). Use single quotes'...'to prevent bash expansion. - BANNED: Running
npxwithout--yesflag — causes interactive prompt hang in non-TTY environments. - Do not use
snapshot(full DOM) instead ofsnapshot -i— wastes tokens - Do not interact with elements behind a loading overlay — wait and re-snapshot first
Quality Gate
- URL was reachable (no connection error)
- Snapshot returned ≥1 interactive element
- All flow steps executed without LOOP_GUARD trigger
- PASS/FAIL determination is explicit
Output Format
✅ SKILL COMPLETE: /browser-check
├─ URL: [url checked]
├─ Flow: [flow-description | "snapshot only"]
├─ Snapshot: [N interactive elements]
├─ Steps: [N/N passed]
└─ Result: [PASS | FAIL]On failure:
⚠️ SKILL PARTIAL: /browser-check
├─ URL: [url]
├─ Flow: [flow-description | "snapshot only"]
├─ Snapshot: [N interactive elements | "failed"]
├─ Steps: [N/N passed]
└─ Blockers: [what failed and why]Notes
- Framework-agnostic: works for React and Vue projects
- No file artifacts written — output is chat-only
- Default URL matches Vite dev server (same as
/e2e-tests) snapshot -ionly — preserves token economy (93% fewer tokens vs raw DOM)- Dev server must be running before invoking this skill
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
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.

