Skip to content
SkillModel-led1,157 tokens in use

playwright-expert

Writes and debugs Playwright E2E tests with role-based locators, page objects, fixtures, API mocking and trace-driven fixes for flaky tests.

12,471 stars on the repository MIT LicenseJeffallan/claude-skills · skills/playwright-expert
/plugin marketplace add jeffallan/claude-skills /plugin install fullstack-dev-skills@fullstack-dev-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing playwright-expert costs

95tokens idle
1,157tokens in use
5,169tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter15/15
  • Structure23/25
  • Examples15/15
  • Output15/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Excellent
  • Development activity100
  • Maintenance100
  • Community60
  • Maturity36
  • Momentum40

Playwright Expert guides Claude through browser test work: pick the user flows to cover, configure Playwright, write tests with the Page Object Model and auto-waiting, debug failures with traces, and add the suite to CI.

The skill includes a role-based versus CSS selector comparison, a page object with a login spec, and a five-step routine for flaky tests that ends with a repeat-each run to confirm stability.

What You Get

  • A five-step workflow from flow analysis to CI integration
  • Examples for role-based locators, a LoginPage page object with a spec file and a flaky-test debugging routine
  • Reference files for selectors, the Page Object Model, API mocking, configuration and debugging flaky tests
  • Rules that forbid waitForTimeout, CSS class selectors, shared state between tests and unexplained first or nth calls
  • Output templates for page objects, test files, fixtures and configuration advice

Common Use Cases

  • Writing a login and dashboard test suite with page objects
  • Tracking down a flaky test with the trace viewer
  • Mocking API routes in browser tests
  • Setting up playwright.config.ts with traces, screenshots and reporters
  • Adding visual regression checks and a CI job

What Makes It Unique

Its debugging routine is concrete: run with traces on first retry, re-run with retries, open the trace viewer, replace arbitrary waits with element-state waits and confirm with ten repeated runs. Selector rules put role and label locators first and ban brittle class selectors.

Under The Hood

The skill is instructions and reference markdown that Claude loads by topic; it ships no scripts. Following it, Claude writes test, page object and config files in your project and runs npx playwright test, show-trace and repeat-each commands, which launch browsers that load the pages and URLs under test. It does not call outside services itself.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers