playwright-automation-expert

playwright-automation-expert is a skill for Claude Code, Codex from jmr85/e2e-agent-skills. It costs 73 tokens per session (1,158 once invoked), scanned A, original, MIT.

A guide for creating end-to-end tests with Playwright, a tool that controls browsers for automated testing. It covers browser test structure, flaky-test debugging, page objects, visual checks, and direct REST API testing.

In plain words
What is it for?
Use it to set up Playwright projects, test browser flows, structure page objects, mock APIs, compare screenshots, test REST endpoints, validate JSON and status codes, and measure API response performance.
Why use it?
It helps organize growing test suites and diagnose tests that fail inconsistently. It also provides guidance for testing both user journeys in a browser and API responses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set up Playwright projects, test browser flows, structure page objects, mock APIs, compare screenshots, test REST endpoints, validate JSON and status codes, and measure API response performance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jmr85/e2e-agent-skills/playwright-automation-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 jmr85/e2e-agent-skills --skill playwright-automation-expert
Clone the repo
git clone --depth 1 https://github.com/jmr85/e2e-agent-skills

Made for: Claude Code, Codex.

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-automation-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmr85/e2e-agent-skills/playwright-automation-expert/github.svg)](https://agentmods.dev/skills/jmr85/e2e-agent-skills/playwright-automation-expert)
Your own site
<a href="https://agentmods.dev/skills/jmr85/e2e-agent-skills/playwright-automation-expert"><img src="https://agentmods.dev/badge/skills/jmr85/e2e-agent-skills/playwright-automation-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-automation-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/jmr85/e2e-agent-skills/playwright-automation-expert"><img src="https://agentmods.dev/badge/skills/jmr85/e2e-agent-skills/playwright-automation-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,158 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.
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.00073 $0.01158
Opus 5 $0.00036 $0.00579
Sonnet 5 $0.00015 $0.00232
Haiku 4.5 $0.00007 $0.00116

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

Security

Grade A, and why

playwright-automation-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 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/scaffold.mjs, scripts/utils/api-assertions.ts, scripts/utils/schema-validator.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/playwright-automation-expert/SKILL.md · 104 lines

How it starts

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

Playwright Automation Expert

Senior E2E testing specialist with deep expertise in Playwright for robust, maintainable browser automation, project structure, and REST API testing.

Role Definition

You are a senior QA automation engineer with 8+ years of browser testing experience. You specialize in Playwright test architecture, Page Object Model, debugging flaky tests, project structure design, and REST API testing. You write reliable, fast tests that run in CI/CD.

When to Use This Skill

  • Writing E2E tests with Playwright
  • Setting up Playwright test infrastructure
  • Debugging flaky browser tests
  • Implementing Page Object Model
  • API mocking in browser tests
  • Visual regression testing
  • Setting up a new Playwright project (folder structure, naming conventions)
  • Organizing or scaling an existing test suite by feature/module
  • Testing REST API endpoints directly (login, register, CRUD flows)
  • Validating HTTP response codes, JSON schemas, and idempotency
  • Measuring API response performance

Core Workflow

  1. Analyze requirements - Identify user flows to test
  2. Setup - Configure Playwright with proper settings and project structure
  3. Write tests - Use POM pattern, proper selectors, auto-waiting
  4. Debug - Fix flaky tests, use traces
  5. Integrate - Add to CI/CD pipeline

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Selectors references/selectors-locators.md Writing selectors, locator priority
Page Objects references/page-object-model.md POM patterns, fixtures
API Mocking references/api-mocking.md Route interception, mocking
Configuration references/configuration.md playwright.config.ts setup
Debugging references/debugging-flaky.md Flaky tests, trace viewer
Folder Structure references/folder-structure.md Setting up folders, deciding project layout
Naming Conventions references/naming-conventions.md Naming spec files, Page Objects, fixtures
Feature Organization references/feature-organization.md Scaling tests by feature or module
Scaffolding Commands references/scaffolding-commands.md Generating the structure automatically — then run node scripts/scaffold.mjs to create all folders, fixture barrel, and .gitignore entries in one step
API REST Testing references/api-rest-testing.md REST API: auth flows, HTTP codes, idempotency, performance, schemas

Read the full file on GitHub · 104 lines

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. 11d ago First seen · 104 lines · 73 tokens per session scan A dd6f67d6a724

Subscribe to this mod's changes

playwright-automation-expert is a skill published in the GitHub repository jmr85/e2e-agent-skills (14 stars, last pushed 2mo ago), licensed MIT. It adds 73 tokens to every session and 1,158 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-08-30.

Related

Other skills, from other repositories

agent-browser

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

code-yeongyu/oh-my-openagent · 51 tokens

playwright

Browser automation, web testing, dynamic scraping, and visual verification using Playwright and agent-browser CLI. Supports DOM snapshots with @eN element references, form interactions, and screenshot validations.

Sdinzsh/PowerHou53 · 40 tokens

playwright-cli

Automates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for navigation, form filling, screenshots, tracing, bound browser sessions, debugging, or generating Playwright test code. Only use against applications you own or…

testdino-hq/playwright-skill · 64 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

datit309/supergraph · 35 tokens

devlab-web-visual-ops

A browser-based operations guide for web applications, including single-page apps, micro-frontends, and multi-page sites. It covers observing, navigating, interacting, inspecting, validating, and capturing pages with browser automation and visual fallbacks.

seed-forge/harness-ai-kit · 176 tokens

webapp-testing

Browser-tests a local webapp end to end — starts the app, installs Playwright if missing, writes a spec for the critical path plus edge cases, runs headless, captures screenshots, console and network logs on failure, and reports a pass/fail table with repro steps. Degrades to curl smoke tests when no browser is…

alebgl77/claude-inc · 103 tokens