playwright-core

playwright-core is a skill for Claude Code, Codex from hzijad/playwright-agent-skills. It costs 53 tokens per session (2,338 once invoked), scanned A, original, MIT.

A set of rules for writing and reviewing Playwright end-to-end tests. Playwright is a browser-testing tool, and end-to-end tests check complete user journeys through an application.

In plain words
What is it for?
Creating, refactoring, or reviewing Playwright tests that cover real user actions without fixed sleep timers or implementation-detail checks.
Why use it?
It helps tests remain reliable when the interface or network timing changes by favouring user-facing selectors, automatic waiting, accessibility, and isolated tests.

Skill for Claude CodeCodex

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

Good fit Creating, refactoring, or reviewing Playwright tests that cover real user actions without fixed sleep timers or implementation-detail checks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hzijad/playwright-agent-skills/playwright-core"><img src="https://agentmods.dev/badge/skills/hzijad/playwright-agent-skills/playwright-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,338 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.00053 $0.02338
Opus 5 $0.00026 $0.01169
Sonnet 5 $0.00011 $0.00468
Haiku 4.5 $0.00005 $0.00234

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

Security

Grade A, and why

playwright-core 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 10d 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.

skills/playwright-core/SKILL.md · 195 lines

How it starts

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

Playwright Core: Test Architecture and Quality Gates

Overview

Writing end-to-end tests is easy. Writing end-to-end tests that survive UI refactors and network latency without flaking requires discipline.

Use this skill when you are authoring, reviewing, or refactoring Playwright tests that should behave like a real user journey. It pairs well with playwright-auth-state for logged-in flows, playwright-network-mocking for external API control, and playwright-debugging when a test is already failing.

The approval standard: A test is only valid if it tests the application exactly how a human user interacts with it. We do not test implementation details, we do not rely on fixed sleep timers, and we do not share state between tests. If a test fails, it should indicate a true user-facing bug, not a brittle CSS selector or a race condition.

When to Use

  • Before writing new Playwright E2E tests or component tests.
  • When reviewing a PR that adds or modifies test coverage.
  • When fixing a "flaky" test that passes locally but fails in CI.
  • When refactoring existing Page Object Models (POMs) or test fixtures.

When Not to Use

  • When you need authenticated state reuse; use playwright-auth-state instead.
  • When you need request interception; use playwright-network-mocking instead.
  • When you are diagnosing a specific failure or flake; use playwright-debugging instead.
  • When you need CI configuration, fixture scaffolding, or a broader test framework recipe.

The Five-Axis Test Review

Every Playwright test must be evaluated across these five dimensions before execution:

1. Resiliency (Locator Strategy)

Does the test target user intent, or is it coupled to implementation?

  • Are we using getByRole as the absolute first choice?
  • Are we avoiding CSS classes, XPaths, and DOM hierarchy dependencies?
  • If the developer changes a <div> to a <span>, or swaps a CSS framework (e.g., Bootstrap to Tailwind), will the test survive?

2. Determinism (Web-First Assertions)

Read the full file on GitHub · 195 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. 10d ago First seen · 195 lines · 53 tokens per session scan A ef93897086e7

Subscribe to this mod's changes

playwright-core is a skill published in the GitHub repository hzijad/playwright-agent-skills (9 stars, last pushed 1mo ago), licensed MIT. It adds 53 tokens to every session and 2,338 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

133-java-testing-acceptance-tests

Use when you need to implement acceptance tests from maintainer-sanitized Gherkin scenario facts for framework-agnostic Java (no Spring Boot, Quarkus, Micronaut) — confirming @acceptance scenarios before coding, happy path with RestAssured, DB/Kafka test fixtures, WireMock for external REST only, and AT classes run by…

jabrena/plinth · 142 tokens

323-frameworks-spring-boot-testing-acceptance-tests

Use when you need to implement acceptance tests from maintainer-authored or maintainer-sanitized Gherkin scenario facts for Spring Boot applications — including selecting scenarios tagged @acceptance, implementing happy path tests with TestRestTemplate, @SpringBootTest, Testcontainers with @ServiceConnection for…

jabrena/plinth · 156 tokens

423-frameworks-quarkus-testing-acceptance-tests

Use when you need to implement acceptance tests from maintainer-sanitized Gherkin scenario facts for Quarkus applications — including @acceptance scenarios, @QuarkusTest, BaseAcceptanceTest with QuarkusTestResourceLifecycleManager for Testcontainers and WireMock, REST Assured for full HTTP pipeline testing, WireMock…

jabrena/plinth · 219 tokens

523-frameworks-micronaut-testing-acceptance-tests

Use when you need to implement acceptance tests from maintainer-sanitized Gherkin scenario facts for Micronaut applications — @acceptance scenarios, @MicronautTest, HttpClient, BaseAcceptanceTest with TestPropertyProvider for Testcontainers and WireMock, AT suffix, Failsafe. Requires a maintainer-authored scenario…

jabrena/plinth · 172 tokens

132-java-testing-integration-testing

Use when you need to set up, review, or improve Java integration tests — including generating a BaseIntegrationTest.java with WireMock for HTTP stubs, detecting HTTP client infrastructure from import signals, injecting service coordinates dynamically via System.setProperty(), creating WireMock JSON mapping files with…

jabrena/plinth · 155 tokens

322-frameworks-spring-boot-testing-integration-tests

Use when you need to write or improve integration tests — including Testcontainers with @ServiceConnection, @DataJdbcTest persistence slices, TestRestTemplate or MockMvcTester for HTTP, data isolation, and container lifecycle management for Spring Boot 4.0.x. This should trigger for requests such as Review Java code…

jabrena/plinth · 123 tokens