playwright
Skill13 starsChanged 4 days agoMITView on GitHub
Automate browsers and E2E tests with Playwright: screenshots and traces.
94 other projects use a version of this.
Adopted by
Most recently taken up by
- Pamir-AI/skillstheir own version, first seen Nov 8, 2026
- shetengteng/skillix-hubtheir own version, first seen Nov 8, 2026
- LuisSambrano/antigravity-configtheir own version, first seen Nov 8, 2026
- fmind/dotword for word, first seen Nov 8, 2026
- miminashi/pvesetheir own version, first seen Nov 4, 2026
- thongdn-it/react-agent-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use develop-web-game, msw 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.
hebertzhuSkilldevelop-web-game
Use when building or iterating on a web game and you need a tight implement-test-observe loop; prefer the bundled Playwright client, inspect screenshots and text state, and validate every meaningful change before moving on.
Also in 4 projects that use this
thongdn-itSkillmsw
MSW (Mock Service Worker) best practices for API mocking in tests (formerly test-msw). This skill should be used when setting up MSW, writing request handlers, or mocking HTTP APIs. This skill does NOT cover general testing patterns (use test-vitest or test-tdd skills) or test methodology.
Also in 3 projects that use this
SupabaseSkillreact-hook-form
Correct React Hook Form usage anywhere in the monorepo — data flow, subscriptions,
Also in 3 projects that use this
thongdn-itSkilltailwind
Tailwind CSS v4 performance optimization and best practices guidelines (formerly tailwindcss-v4-style). This skill should be used when writing, reviewing, or refactoring Tailwind CSS v4 code to ensure optimal build performance, minimal CSS output, and correct usage of v4 features. Triggers on tasks involving Tailwind configuration, @theme directive, utility classes, responsive design, dark mode, container queries, or CSS generation optimization.
Also in 5 projects that use this
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 6 projects that use this
OpenAISkillweb-perf
Analyzes web performance using Chrome DevTools MCP. Measures Core Web Vitals (FCP, LCP, TBT, CLS, Speed Index), identifies render-blocking resources, network dependency chains, layout shifts, caching issues, and accessibility gaps. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed. Biases towards retrieval from current documentation over pre-trained knowledge.
Also in 5 projects that use this
- +1 more from thongdn-it
Other versions94 projects use a version of this.
Word for word · 1
- fmind/dot★ 13100% same
Edited · 0
None found.
Wrote their own version · 93
- openai/openai-agents-python★ 31ksame name
- openai/skills★ 27ksame name
- prowler-cloud/prowler★ 15ksame name
- hyperdxio/hyperdx★ 10ksame name
- bluesky-social/atproto★ 9.7ksame name
- netease-youdao/LobsterAI★ 6.2ksame name
- Kiln-AI/Kiln★ 5.3ksame name
- freestylefly/wesight★ 969same name
- Gram-ax/gramax★ 609same name
- JetBrains/skills★ 386same name
83 more not listed
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 repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dot_agents/AGENTS.mdAGENTS.md
- skills/repository-docs/references/agents.mdAGENTS.md
- chezmoiSkill
- dot-developmentSkill
- dot-releaseSkill
- dot-skillsSkill
- dot-verifySkill
- acliSkill
- agent-evaluationSkill
- agent-frameworksSkill
- agent-harnessesSkill
- agent-projectSkill
- agent-protocolsSkill
- agySkill
- airflowSkill
- auth-statusSkill
- awsSkill
- bfSkill
- chrome-devtoolsSkill
- clipboardSkill
- cloud-runSkill
- code-securitySkill
- colabSkill
- databricksSkill
- diagrams-as-codeSkill
- dockerSkill
- documentation-siteSkill
- dot-cliSkill
- dprintSkill
- draft-docSkill
- draft-mailSkill
- duckdbSkill
- fmind-visualsSkill
- full-reviewSkill
- gcloudSkill
- ghSkill
- git-deliverySkill
- github-actionsSkill
- github-issuesSkill
- github-pull-requestSkill
- github-repositorySkill
- google-developerSkill
- gwsSkill
- hfSkill
- infra-as-codeSkill
- kaggleSkill
- kubernetesSkill
- lesson-learnedSkill
- mcp-setupSkill
- miseSkill
- model-providersSkill
- project-scaffoldingSkill
- python-mlopsSkill
- python-stackSkill
- python-webSkill
- repository-docsSkill
- scheduled-jobsSkill
- skillifySkill
- <name>Skill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 80 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use Playwright for browser automation and end-to-end tests.
- Distinctive: line 19
Gather HTTP evidence before a browser: check status, headers, and bodies with xh.
“Common” is measured: kept by at least 6 in 10 of the 80 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
Playwright
Use Playwright for browser automation and end-to-end tests. This skill owns the tool: browsers, commands, and the official skills; python-testing owns test design and fixtures.
Workflow
- Gather HTTP evidence before a browser: check status, headers, and bodies with xh; use a browser only for rendering, interaction, session state, or accessibility, driving it through roles and labels and checking state after every action.
- Pin the Python integration:
uv add --dev playwright pytest-playwright, thenuv run playwright install chromium; keep both packages inuv.lock. If Linux system libraries are missing, report the administrator-owned prerequisite instead of invoking the privilegedinstall-depscommand. - Explore and record:
uv run playwright codegen --target python-pytest <url>records a pytest test while a human drives the headed browser;uv run playwright screenshot <url> <file>(add--viewport-size=390,844or--full-pageas needed) anduv run playwright pdf <url> <file>produce review evidence. For a one-off render check outside a project that locks Playwright, run the same commands throughuvx --from playwright==<version> playwright, installing chromium first; never add Playwright to an unrelated project. - Run tests:
uv run pytest -q tests/e2e --browser chromium --tracing retain-on-failure --screenshot only-on-failure. Inspect a saved trace from the shell withuv run playwright trace open <trace.zip>and the subcommands inuv run playwright trace --help(errors, actions, requests, console);trace closeremoves the extracted data.show-traceopens the GUI viewer for humans. To debug a failing test live, run it alone in the background with--playwright-debug=cli -s; when it pauses, attach withuv run playwright cli attach <session>from the printed instructions, then stop the background run and delete the.playwright-cli/snapshot directory the CLI writes in the working directory.
Gotchas
- Act only within authorized scope: use the profiles, accounts, data, and actions authorized for the task; reuse existing authorization. A test request alone does not authorize private browser-session reuse, cookie transfers, account creation, legal acceptance, purchases, paid browser services, real staging or production targets, destructive fixtures, or customer data; tear down only what the test created. When a required action falls outside that scope, prepare the local test and explain the specific missing authorization before proceeding. Treat login, MFA, and CAPTCHA as explicit authentication boundaries, never bypasses.
- Reuse the shared browser cache: install only required browsers and reuse the default shared cache (
~/.cache/ms-playwrighton Linux). Do not runplaywright uninstallas task teardown: other projects can need those binaries. Remove task-created temporary profiles and passing-run artifacts, preserve requested evidence and failure traces, and review native browser cleanup separately when disk pressure requires it. - Reinstall browsers after upgrades: browsers match the Playwright version that installed them; rerun
uv run playwright install chromiumafter an upgrade.
Official Skills
Upstream: microsoft/playwright-cli provides the official browser CLI skill. Select it through the shared vendor-skill policy only for CLI-driven exploration; its commands are not the Python API. Python tests continue to use the documentation below and the project's uv lockfile. openai/skills also curates a same-name playwright skill that drives playwright-cli: preview it, never install it under that name (policy). The uv-locked package also ships version-matched playwright-cli, playwright-trace, and JavaScript-only playwright-component-testing skills in one directory; uv run playwright cli --help prints the playwright-cli path. Review each under the same policy before exposing it, including through uv run playwright trace install-skill, and check its allowed-tools: copies before Playwright 1.64 and playwright-cli 0.1.22 pre-approve all of npx (playwright-cli also npm); later ones narrow them to npx playwright.
Documentation
- Playwright for Python · pytest plugin · Trace Viewer
- Releases: Playwright release notes · playwright-python
- Companion skills: python-stack, chrome-devtools (accessibility, Lighthouse, and performance audits), performance (load, not browser, testing).
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.

