playwright-expert

playwright-expert is a skill for Claude Code from personamanagmentlayer/pcl. It costs 77 tokens per session (1,170 once invoked), scanned A, original, Apache-2.0.

A specialist guide to Playwright, a tool that drives real browsers to test web applications from a user's point of view.

In plain words
What is it for?
Use it to write and organize browser tests, check Chromium, Firefox, and WebKit, mock network responses, capture traces or screenshots, and test accessibility and mobile layouts.
Why use it?
It helps create reliable end-to-end tests, which check a complete user journey across the browser rather than testing one function in isolation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to write and organize browser tests, check Chromium, Firefox, and WebKit, mock network responses, capture traces or screenshots, and test accessibility and mobile layouts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/personamanagmentlayer/pcl/playwright-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add personamanagmentlayer/pcl --skill playwright-expert
Clone the repo
git clone --depth 1 https://github.com/personamanagmentlayer/pcl

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for playwright-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/playwright-expert/github.svg)](https://agentmods.dev/skills/personamanagmentlayer/pcl/playwright-expert)
Your own site
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/playwright-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/playwright-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for playwright-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/playwright-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/playwright-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,170 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.01170
Opus 5 $0.00039 $0.00585
Sonnet 5 $0.00015 $0.00234
Haiku 4.5 $0.00008 $0.00117

Measured 4d ago against content hash 69dba41e9802, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

playwright-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

stdlib/qa/playwright-expert/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Playwright Expert

Core Concepts

Playwright Framework

  • Cross-Browser - Chromium, Firefox, WebKit support
  • Auto-Waiting - Smart waits for elements and network
  • Browser Contexts - Isolated browser sessions
  • Page Objects - Organize test code
  • Fixtures - Reusable test setup
  • Trace Viewer - Visual debugging

Test Organization

  • Test Suites - Grouping related tests
  • Hooks - beforeEach, afterEach, beforeAll, afterAll
  • Annotations - @skip, @only, @slow, @fail
  • Tags - Filter and organize tests
  • Parallelization - Concurrent test execution
  • Retries - Automatic retry on failure

Advanced Features

  • Network Interception - Mock API responses
  • Video Recording - Capture test execution
  • Screenshots - Visual verification
  • Code Generation - Record and generate tests
  • Accessibility Testing - Built-in a11y checks
  • Mobile Emulation - Test responsive designs

Best Practices

Test Organization

  • Use descriptive test names
  • Group related tests in describe blocks
  • Use page object model for maintainability
  • Create reusable fixtures
  • Keep tests independent
  • Avoid test interdependencies

Selectors

  • Prefer user-facing attributes (text, role, label)
  • Use data-testid for complex elements
  • Avoid CSS selectors tied to styling
  • Use getByRole for accessibility
  • Chain locators for specificity
  • Use nth() judiciously

Assertions

  • Use specific expect matchers
  • Wait for conditions before asserting
  • Use soft assertions for multiple checks
  • Provide meaningful error messages
  • Test both positive and negative cases
  • Verify visual changes with screenshots

Performance

  • Run tests in parallel
  • Use browser context for isolation
  • Reuse authentication state
  • Mock external dependencies
  • Minimize navigation between pages
  • Use API calls for setup/teardown

Anti-Patterns

Common Mistakes

  • Using arbitrary waits (page.waitForTimeout)
  • Not handling network conditions
  • Coupling tests to implementation details
  • Missing cleanup in afterEach
  • Too many assertions in one test
  • Hard-coded test data

Read the full file on GitHub · 169 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 169 lines · 77 tokens per session scan A 69dba41e9802

Subscribe to this mod's changes

playwright-expert is a skill published in the GitHub repository personamanagmentlayer/pcl (40 stars, last pushed 2d ago), licensed Apache-2.0. It adds 77 tokens to every session and 1,170 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

playwright

Battle-tested Playwright patterns for E2E, API, component, visual, accessibility, and security testing. Covers locators, fixtures, POM, network mocking, auth flows, debugging, CI/CD (GitHub Actions, GitLab, CircleCI, Azure, Jenkins), framework recipes (React, Next.js, Vue, Angular), and migration guides from…

zebbern/termstack · 85 tokens

e2e-testing-patterns

Build reliable, fast E2E test suites with Playwright and Cypress. Critical user journey coverage, flaky test elimination, CI/CD integration.

wpank/ai · 35 tokens

qawolf-cli

Manage QA Wolf through the qawolf CLI. Use when asked to create, update, or list coverage requests, bug reports, or maintenance reports; start a run of flows or tags on the QA Wolf platform or read a run's results; list, set, or delete environment variables; manage environments, flows, or tags; request automation of…

qawolf/cli · 118 tokens

playwright-test

Run end-to-end browser tests using the Playwright Test CLI. Create test configs, write spec files with expect assertions, execute tests with npx playwright test, and analyze results. Pre-installed with Chromium in the computer image — no setup needed. Use for E2E testing, regression testing, smoke tests, visual…

TeamDay-AI/agents · 74 tokens

Playwright E2E

End-to-end testing with Playwright for web applications.

GetSkill-Agent/getskill-skills · 16 tokens

Playwright Browser Automation

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions…

QuestForTech-Investments/claude-code-skills · 78 tokens