wp-calypso: Agent for Claude Code

.claude/agents/playwright-test-generator.md

Playwright Test Generator is an agent for Claude Code from Automattic/wp-calypso. It costs 45 tokens per session (274 once invoked), scanned A, original, GPL-2.0.

An agent that creates and converts automated browser tests with Playwright Test, a tool for checking websites through a browser.

In plain words
What is it for?
It is for generating new browser tests or converting existing tests while following the project's conventions.
Why use it?
It reduces the manual work of turning web-user flows into repeatable end-to-end tests.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is Automattic/wp-calypso's own configuration. It tells Claude Code how to work on wp-calypso itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything wp-calypso configures →

About the project

Automattic/wp-calypso is the JavaScript front end for WordPress.com, using a single-page web application and the WordPress.com REST API to provide a dashboard for reading, writing, and managing WordPress sites. It is used by WordPress.com users and contributors working on the dashboard. The catalogue items support coding-agent work on this application.

Automattic/wp-calypso · 12,650 stars · on GitHub · developer.wordpress.com

Reuse

Borrowing it

Nothing to install: this file belongs to Automattic/wp-calypso. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Automattic/wp-calypso/trunk/.claude/agents/playwright-test-generator.md
Clone the repo
git clone --depth 1 https://github.com/Automattic/wp-calypso

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 Generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/automattic/wp-calypso/playwright-test-generator/github.svg)](https://agentmods.dev/agents/automattic/wp-calypso/playwright-test-generator)
Your own site
<a href="https://agentmods.dev/agents/automattic/wp-calypso/playwright-test-generator"><img src="https://agentmods.dev/badge/agents/automattic/wp-calypso/playwright-test-generator/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 Generator

Your own site · 80×15
<a href="https://agentmods.dev/agents/automattic/wp-calypso/playwright-test-generator"><img src="https://agentmods.dev/badge/agents/automattic/wp-calypso/playwright-test-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 274 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 unknown 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.00045 $0.00274
Opus 5.5 $0.00018 $0.00110
Sonnet 5.5 $0.00009 $0.00055
Haiku 4.5 $0.00005 $0.00027

Measured today against content hash b5f7541ce59b, 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 Generator 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.

.claude/agents/playwright-test-generator.md · 7 lines

The source is not reproduced here

Licensed GPL-2.0

The repository is licensed GPL-2.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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 · 7 lines · 45 tokens per session scan A b5f7541ce59b

Subscribe to this mod's changes

Playwright Test Generator is an agent published in the GitHub repository Automattic/wp-calypso (12,650 stars, last pushed today), licensed GPL-2.0. It adds 45 tokens to every session and 274 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-07.

Related

Playwright Test Generator compared with agents from other repositories

Playwright Test Generator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Playwright Test GeneratorAutomattic/wp-calypsoAgent13ktodayGPL-2.0A45Claude Code
playground-verifierpluginslab/wp-agentic-kitAgent201mo agoMITA61Claude Code
test-masterakaszubski/autonomous-devAgent341mo agononeA40Claude Code
mobile-testerakaszubski/autonomous-devAgent341mo agononeA31Claude Code
ui-testerakaszubski/autonomous-devAgent341mo agononeA20Claude Code
javascript-expertandisab/swe-marketplaceAgent212d agoMITA47Claude Code
integration-testing-orchestratoreunomia-bpf/agentsightAgent7767d agoMITA0Claude Code