playwright-test

playwright-test is a skill for Claude Code from PostHog/posthog-foss. It costs 19 tokens per session (441 once invoked), scanned A, original, MIT.

A workflow for writing Playwright end-to-end tests, which operate a real web interface as a user would. It emphasizes checking visible interface changes and avoiding flaky tests that pass or fail unpredictably.

In plain words
What is it for?
Use it to explore a feature in a browser, write its Playwright test, run it, and debug failures until the test passes.
Why use it?
It helps turn a feature plan into a test that runs reliably, then guides investigation and correction when the test fails.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to explore a feature in a browser, write its Playwright test, run it, and debug failures until the test passes.

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

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-test

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/playwright-test"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/playwright-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 441 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.00019 $0.00441
Opus 5.5 $0.00008 $0.00176
Sonnet 5.5 $0.00004 $0.00088
Haiku 4.5 $0.00002 $0.00044

Measured 3mo ago against content hash 32a2c6c192f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

playwright-test 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 3mo 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.

.agents/skills/playwright-test/SKILL.md · 40 lines

What it actually says

Read @playwright/README.md for best practices, gotchas, and how to run tests.

Rules

  • Follow the best practices in the README strictly
  • After UI interactions, always assert on UI changes, do not assert on network requests resolving
  • Keep looping until all tests pass. Do not give up or ask the user for help. You must resolve every failure yourself.

Instructions

You are to plan an end to end playwright test for a feature.

Step 1: Plan the test(s) to be done.

Use the Playwright MCP tools (e.g., mcp__playwright__browser_navigate, mcp__playwright__browser_click, mcp__playwright__browser_screenshot) to interact with the browser and plan your tests.

After your exploration, present the plan to me for confirmation or any changes.

Step 2: Implement the test plan

  • Write the tests, making sure to use common patterns used in neighbouring files.
  • Run the tests with BASE_URL='http://localhost:8010' pnpm --filter=@posthog/playwright exec playwright test <file name> --retries 0 --workers 3
  • Debug any failures. Look at screen shots, if needed launch the playwright mcp skills to interact with the browser. Go back to step 1 after attempting a fix.

Step 3: Ensure no flaky tests

After all tests pass in the file, run with --repeat-each 10 added to the command. This will surface any flaky tests.

If any test fails across the 10 runs, treat it as a real failure: go back to Step 2, debug, fix, and re-run Step 3. Do not proceed to Step 4 until every run of every test passes.

Step 4: Report

Once all tests pass, output a single line: Testing Complete

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. 3mo ago First seen · 40 lines · 19 tokens per session scan A 32a2c6c192f5

Subscribe to this mod's changes

playwright-test is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 441 once invoked, about $0.0001 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

playwright-test compared with skills from other repositories

playwright-test next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwright-testPostHog/posthog-fossSkill736todayMITA19Claude Code
eval-dataset-designbojieli/ai-agent-bookSkill61k2d agoApache-2.0A138Claude Code, Codex
create-verification-skillYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA45Claude Code
verify-omnigentomnigent-ai/omnigentSkill12ktodayApache-2.0A100Claude Code, Codex
test-masterJeffallan/claude-skillsSkill13ktodayMITA104Claude Code
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code
cua-driverdavidondrej/skillsSkill4.4kyesterdayMITA68Claude Code, Codex