playwright-core

playwright-core is a skill for Claude Code, Codex from zebbern/claude-code-guide. It costs 62 tokens per session (1,450 once invoked), scanned A, original, MIT.

A collection of guidance and examples for Playwright, a tool that tests websites by controlling a browser. It covers end-to-end, API, component, visual, accessibility, and security testing in JavaScript and TypeScript.

In plain words
What is it for?
Use it to write tests for React, Next.js, Vue, or Angular applications, including login flows, network mocks, screenshots, accessibility checks, API calls, debugging, and test fixtures.
Why use it?
It helps avoid brittle tests, timing problems, shared test state, and hard-to-debug failures. The patterns explain which browser-testing approaches to use and when.

Skill for Claude CodeCodex

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

Good fit Use it to write tests for React, Next.js, Vue, or Angular applications, including login flows, network mocks, screenshots, accessibility checks, API calls, debugging, and test fixtures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zebbern/claude-code-guide/core
About the project

Claude Code Guide is a reference collection for configuring and using Claude Code, Anthropic’s command-line coding agent. Developers use it to learn commands, skills, agents, MCP, automation, security, integrations, and troubleshooting. Its catalogue add-ons provide many of the documented skills and agents.

zebbern/claude-code-guide · 4,665 stars · on GitHub

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 zebbern/claude-code-guide --skill core
Clone the repo
git clone --depth 1 https://github.com/zebbern/claude-code-guide

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/zebbern/claude-code-guide/core/github.svg)](https://agentmods.dev/skills/zebbern/claude-code-guide/core)
Your own site
<a href="https://agentmods.dev/skills/zebbern/claude-code-guide/core"><img src="https://agentmods.dev/badge/skills/zebbern/claude-code-guide/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/zebbern/claude-code-guide/core"><img src="https://agentmods.dev/badge/skills/zebbern/claude-code-guide/core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,450 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.00062 $0.01450
Opus 5.5 $0.00025 $0.00580
Sonnet 5.5 $0.00012 $0.00290
Haiku 4.5 $0.00006 $0.00145

Measured 1mo ago against content hash 552bc243a63d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/playwright/core/SKILL.md · 95 lines

How it starts

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

Playwright Core Testing

Opinionated, production-tested Playwright guidance — every pattern includes when (and when not) to use it.

46 reference guides covering the full Playwright testing surface: selectors, assertions, fixtures, network mocking, auth, visual regression, accessibility, API testing, debugging, and more — with TypeScript and JavaScript examples throughout.

Golden Rules

  1. getByRole() over CSS/XPath — resilient to markup changes, mirrors how users see the page
  2. Never page.waitForTimeout() — use expect(locator).toBeVisible() or page.waitForURL()
  3. Web-first assertions — expect(locator) auto-retries; expect(await locator.textContent()) does not
  4. Isolate every test — no shared state, no execution-order dependencies
  5. baseURL in config — zero hardcoded URLs in tests
  6. Retries: 2 in CI, 0 locally — surface flakiness where it matters
  7. Traces: 'on-first-retry' — rich debugging artifacts without CI slowdown
  8. Fixtures over globals — share state via test.extend(), not module-level variables
  9. One behavior per test — multiple related expect() calls are fine
  10. Mock external services only — never mock your own app; mock third-party APIs, payment gateways, email

Guide Index

Writing Tests

What you're doing Guide Deep dive
Choosing selectors locators.md locator-strategy.md
Assertions & waiting assertions-and-waiting.md
Organizing test suites test-organization.md test-architecture.md
Playwright config configuration.md
Fixtures & hooks fixtures-and-hooks.md
Test data test-data-management.md
Auth & login authentication.md auth-flows.md
API testing (REST/GraphQL) api-testing.md
Visual regression visual-regression.md
Accessibility accessibility.md
Mobile & responsive mobile-and-responsive.md
Component testing component-testing.md
Network mocking network-mocking.md when-to-mock.md
Forms & validation forms-and-validation.md
File uploads/downloads file-operations.md file-upload-download.md
Error & edge cases error-and-edge-cases.md
CRUD flows crud-testing.md
Drag and drop drag-and-drop.md
Search & filter UI search-and-filter.md

Read the full file on GitHub · 95 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. 1mo ago First seen · 95 lines · 62 tokens per session scan A 552bc243a63d

Subscribe to this mod's changes

playwright-core is a skill published in the GitHub repository zebbern/claude-code-guide (4,665 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 1,450 once invoked, about $0.0002 per session on Opus 5.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