playwright-test-writer

playwright-test-writer is a skill for Claude Code, Codex from beel-collab/presets.dev. It costs 51 tokens per session (901 once invoked), scanned A, original, MIT.

A test-writing guide for Playwright, a browser testing tool, that creates end-to-end tests with page locators and checks based on browser behavior.

In plain words
What is it for?
Use it to write a Playwright regression test, browser test, or end-to-end case for a web application.
Why use it?
It helps reproduce a web bug in a test that fails before the fix and passes afterward.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; $skill-name invocation.

Good fit Use it to write a Playwright regression test, browser test, or end-to-end case for a web application.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/beel-collab/presets.dev/playwright-test-writer"><img src="https://agentmods.dev/badge/skills/beel-collab/presets.dev/playwright-test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 901 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.00051 $0.00901
Opus 5.5 $0.00020 $0.00360
Sonnet 5.5 $0.00010 $0.00180
Haiku 4.5 $0.00005 $0.00090

Measured today against content hash 710b4d3189bf, 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-writer 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 today.

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.

antigravity/playwright/playwright-test-writer/SKILL.md · 85 lines

How it starts

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

Playwright Test Writer Skill for Antigravity CLI

Install

Install the native export at .agents/skills/playwright-test-writer/SKILL.md (one file shared with Codex). Copy that export, not this catalog file. Catalog fields such as tools and author are for presets.dev. Install one skill file per name. Cursor, GitHub Copilot, Codex, Antigravity CLI, and Devin can all read .agents/skills, so a second copy with the same name collides.

Playwright Test Writer

Shared skill playwright-test-writer for Playwright. Codex and Antigravity CLI both read .agents/skills/playwright-test-writer/SKILL.md. Install this one file. Codex calls it with $playwright-test-writer or /skills. Cursor, GitHub Copilot, and Devin also read .agents/skills. A second copy with the same name collides. Do not install another tool's file there.

When to run

Run this when the user wants a Playwright test, a regression for a UI bug, or an end-to-end case. The result is a spec that fails before the fix and passes after it.

When to leave it

Do not upgrade dependencies or the framework version unless the user asked.

Stop for a unit-test request in pytest, Jest, or another runner, or when the repository has no Playwright config and the user did not ask to add Playwright.

Steps

  1. Read playwright.config and one existing spec. Match fixtures, the base URL, and the import style. Read the installed version before using a 1.65-only reporter or lock.
  2. Write the failure down in one sentence: who does what, and what they should see.
  3. Drive the UI with role or test-id locators. Assert the outcome with a web-first assertion. Do not add a timeout sleep.
  4. Keep the test isolated. Use the existing auth fixture. Create only the data this case needs.
  5. Run the single spec. If it cannot fail on the bug, the test is wrong. Record the command and the result. If the browser cannot start, write not run and the error. Do not claim a pass.

Output

## Files written
- tests/login.spec.ts

## Covered
- A signed-in user clicks Save and sees the note.

## How to run
npx playwright test tests/login.spec.ts

## Result
pass, fail, or not run, with the command output. No production URL and no password.

## Gaps
- Browsers or projects this run did not execute.

Read the full file on GitHub · 85 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. today First seen · 85 lines · 51 tokens per session scan A 710b4d3189bf

Subscribe to this mod's changes

playwright-test-writer is a skill published in the GitHub repository beel-collab/presets.dev (3 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 901 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-11-13.

Related

playwright-test-writer compared with skills from other repositories

playwright-test-writer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwright-test-writerbeel-collab/presets.devSkill3todayMITA51Claude Code, Codex
e2e-testingCrowdStrike/foundry-skillsSkill382d agoMITA116Claude Code
e2e-automatorAtulPurohit/Antigravity-Awesome-SkillsSkill54mo agononeA33Claude Code, Codex
e2e-testing-patternswpank/aiSkill129mo agononeA35Claude Code, Codex
hatch3r-browser-verifyhatch3r/hatch3rSkill261mo agoMITA83Claude Code
aif-web-testingainative-build/skillsSkill1022d agoMITA36Claude Code
e2e-testing-patternsFluxonLab/SkillrySkill9yesterdaynoneA51Claude Code, Codex