browser-testing
Skill36 starsChanged 6 months agoMITView on GitHub
Browser automation and testing using playwright-cli (stateful Bash CLI for scripted tests — network inspection, console monitoring, screenshots, tracing) and Browser-Use MCP (autonomous agent flows). Use when the user needs to test web apps, debug browser issues, analyze performance, fill forms, run E2E user flows, or inspect network/console activity.
- Installs packages
8 other projects use a version of this.
Adopted by
Most recently taken up by
- Univers42/claude-deal-with-the-deviltheir own version, first seen Oct 4, 2026
- Patrity/skillstheir own version, first seen Sep 3, 2026
- thiientv/godmodetheir own version, first seen Aug 13, 2026
- arjunprabhulal/agent-skillstheir own version, first seen Aug 3, 2026
- roundpilot/superpowers-antigravitytheir own version, first seen Jun 10, 2026
- ironbee-ai/ironbee-devtools-skillstheir own version, first seen May 16, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- thiientv/godmode★ 96same name
- roundpilot/superpowers-antigravity★ 70same name
- neuron-one/GODMODE★ 33same name
- arjunprabhulal/agent-skills★ 4same name
- Univers42/claude-deal-with-the-devil★ 4same name
- bhaumikmaan/claude-code-master-skills★ 3same name
- ironbee-ai/ironbee-devtools-skills★ 3same name
- Patrity/skills★ 2same 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 repository157 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a2ui-angularSkill
- accessibility-auditSkill
- adk-deploy-guideSkill
- adk-dev-guideSkill
- adk-eval-guideSkill
- adk-observability-guideSkill
- agentic-ai-coding-standardSkill
- agentic-ai-devSkill
- ai-auditSkill
- ai-chatSkill
- ai-decision-recordSkill
- ai-incident-responseSkill
- ai-launch-checkSkill
- ai-playbookSkill
- angular-best-practicesSkill
- angularSkill
- angular-spaSkill
- angular-ui-patternsSkill
- api-design-principlesSkill
- app-store-optimizationSkill
- architect-reviewSkill
- architecture-decision-recordsSkill
- architecture-designSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-release-flowSkill
- asc-signing-setupSkill
- asc-submission-healthSkill
- asc-testflight-orchestrationSkill
- changelog-generatorSkill
- claude-actions-auditorSkill
- clean-codeSkill
- codebase-onboardingSkill
- code-explainerSkill
- code-reviewerSkill
- code-simplifierSkill
- comment-analyzerSkill
- database-schema-designerSkill
- ddd-architectSkill
- decision-frameworksSkill
- dedup-code-agentSkill
- deployment-ci-cdSkill
- design-systemSkill
- dockerSkill
- documentation-generationSkill
- domain-finderSkill
- error-detectiveSkill
- eval-guideSkill
- feature-forgeSkill
- firebase-basicsSkill
- firebase-hosting-basicsSkill
- fixing-accessibilitySkill
- fixing-motion-performanceSkill
- flutter-animationsSkill
- flutter-genuiSkill
- flutter-mobileSkill
- flutter-security-expertSkill
- frontend-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Iron Law: Never claim a UI flow works without running it in a real browser.
- Distinctive: line 67
Rule: Default to playwright-cli.
- Very specific: line 96
Use when the dev server is not already running (CI environments, clean machines, automated flows).
- Very specific: line 97
Run --help first. Treat it as a black box — do NOT read source unless you must customise it.
- Very specific: line 157
Use this for: sketch-wireframe outputs, premium-wireframe-2026 outputs, any .html in the project.
“Common” is measured: kept by at least 6 in 10 of the 8 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.
Files
Iron Law: Never claim a UI flow works without running it in a real browser. Use playwright-cli (Bash) for inspection and scripted steps; use Browser-Use MCP for autonomous goal-driven flows.
Browser Automation & Testing Skill
This skill combines two tools for complete browser automation:
- playwright-cli — stateful Bash CLI for deterministic scripted tests (navigation, snapshots, screenshots, network/console inspection, tracing)
- Browser-Use MCP — autonomous agent for goal-driven interaction (describe a goal, not steps)
Install & Setup
# Install (package name is @playwright/mcp; binary is playwright-cli)
npm install -g @playwright/mcp@latest
# Initialize workspace (downloads browsers)
playwright-cli install
# Verify
playwright-cli --versionSession Model
playwright-cli is stateful — each named session persists browser state across commands:
# Use -s flag to name a session (persists across calls)
playwright-cli -s=login-test goto http://localhost:4200/login
playwright-cli -s=login-test snapshot
playwright-cli -s=login-test fill [email-ref] "user@example.com"
playwright-cli -s=login-test click [submit-ref]
# Without -s: uses a default unnamed session
playwright-cli goto http://localhost:4200When to Use Which Tool
| Task | playwright-cli (Bash) | Browser-Use MCP |
| Scripted test steps | Preferred | Works |
| Network request list | playwright-cli network | Not available |
| Console messages | playwright-cli console | Not available |
| Execute JavaScript | playwright-cli eval <func> | Not available |
| Performance tracing | playwright-cli tracing-start/stop | Not available |
| Accessibility tree | playwright-cli snapshot | Not available |
| Autonomous goal completion | Needs scripting | Preferred |
| Real Chrome with existing login | Limited | --browser real |
Rule: Default to playwright-cli. Use Browser-Use only when describing a goal is better than scripting steps.
Quick Example: Testing Login Flow
# Step 1: Navigate and take baseline snapshot
playwright-cli -s=login goto http://localhost:4200/login
playwright-cli -s=login snapshot
# → Returns accessibility tree with [ref] for each element
# Step 2: Fill and submit
playwright-cli -s=login fill [email-ref] "user@example.com"
playwright-cli -s=login fill [password-ref] "password123"
playwright-cli -s=login click [submit-ref]
# Step 3: Verify result
playwright-cli -s=login network
# → Check POST /api/auth/login → 200
playwright-cli -s=login console
# → Check for errors
playwright-cli -s=login screenshot --output login-success.pngFor full command reference, Read reference/playwright-cli-tools.md
For combined playwright-cli + Browser-Use workflow patterns, Read reference/browser-testing-workflows.md
Server Lifecycle — scripts/with_server.py
Use when the dev server is not already running (CI environments, clean machines, automated flows).
Run --help first. Treat it as a black box — do NOT read source unless you must customise it.
python scripts/with_server.py --helpStack Presets
| Stack | Command |
| Angular | python scripts/with_server.py --server "ng serve" --port 4200 -- playwright-cli goto http://localhost:4200 |
| NestJS | python scripts/with_server.py --server "npm run start:dev" --port 3000 -- playwright-cli goto http://localhost:3000 |
| FastAPI | python scripts/with_server.py --server "uvicorn main:app --port 8000" --port 8000 -- playwright-cli goto http://localhost:8000 |
| Spring Boot | python scripts/with_server.py --server "mvn spring-boot:run" --port 8080 -- playwright-cli goto http://localhost:8080 |
| Flutter Web | python scripts/with_server.py --server "flutter run -d web-server --web-port 8080" --port 8080 -- playwright-cli goto http://localhost:8080 |
Multi-server (backend + frontend together)
python scripts/with_server.py \
--server "npm run start:dev" --port 3000 \
--server "ng serve --port 4200" --port 4200 \
-- playwright-cli -s=e2e goto http://localhost:4200When server is already running (default dev workflow) → skip with_server.py, use playwright-cli directly.
Decision Quick Reference
| Need to... | Command |
| Navigate to URL | playwright-cli goto <url> |
| Test a local HTML file (no server) | playwright-cli goto "file:///$(pwd)/path/to/file.html" |
| Get element refs | playwright-cli snapshot |
| Fill an input | playwright-cli fill <ref> <text> |
| Click a button | playwright-cli click <ref> |
| Check console errors | playwright-cli console error |
| Check network requests | playwright-cli network |
| Take a screenshot | playwright-cli screenshot [--output file.png] |
| Run JS in page | playwright-cli eval "<expression>" |
| Resize viewport | playwright-cli resize <w> <h> |
| Start perf trace | playwright-cli tracing-start |
| Stop perf trace | playwright-cli tracing-stop |
| Run Lighthouse audit | mcp__chrome-devtools__lighthouse_audit (via Chrome DevTools MCP) |
| Debug a failing flow end-to-end | Load Agentic Debug Loop — observe → diagnose → fix → re-verify |
| Close session | playwright-cli close-all |
| Start server then test | python scripts/with_server.py --server "<cmd>" --port <N> -- <test-cmd> |
| Autonomous flow | Browser-Use MCP: browser_navigate → browser_get_state → browser_input |
Static HTML / Wireframe Testing
For local HTML files (wireframes, generated output, prototypes) — no server needed:
# Absolute path required for file:// URLs
playwright-cli goto "file:///$(pwd)/wireframes/dashboard.html"
playwright-cli snapshot
playwright-cli screenshot --output wireframe-check.pngUse this for: sketch-wireframe outputs, premium-wireframe-2026 outputs, any .html in the project.
Critical Rules
- NEVER use
browser_get_state({ include_screenshot: true })— generates 126K+ tokens. Useplaywright-cli screenshotinstead. - Always close sessions — run
playwright-cli close-allwhen done. - Check network + console after every critical action — form submissions, navigation, button clicks.
- Screenshots as proof — required for APPROVED verdicts in reality-checker.
- Console errors = NEEDS WORK — any unhandled console error is an automatic failure.
- Load reference files only when the Quick Reference table above doesn't answer your question — each reference file is 150–400 lines. Load selectively, not by default.
Reference Files
| Resource | When to Load |
| playwright-cli Tools | Full command reference, all flags, session management |
| Browser-Use Tools | Browser-Use MCP command reference and best practices |
| Combined Workflows | Login flows, performance, E2E journeys, validation, accessibility |
| Chrome DevTools Tools | Core Web Vitals analysis, performance traces, CPU/network throttling, Lighthouse audit |
| Agentic Debug Loop | Observe → diagnose → fix → re-verify pattern for AI-driven bug diagnosis on live apps |
Process
- Determine which tool — See "When to Use Which Tool" above
- Load reference files — Read detailed docs for the tool you're using
- For inspection/scripted tasks — Use playwright-cli Bash
- For goal-driven tasks — Use Browser-Use MCP
- For combined testing — playwright-cli monitors (network/console), Browser-Use acts
- Verify results — Check both user perspective and technical perspective
- Report findings — Present both perspectives
- Clean up —
playwright-cli close-all
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.

