playwright-expert

playwright-expert is an agent for coding agents from NickCrew/Claude-Cortex. It costs 25 tokens per session (645 once invoked), scanned A, original, MIT.

A Playwright agent that builds end-to-end tests, which check complete user journeys in a real browser, across supported browsers.

In plain words
What is it for?
Use it to test critical flows, interact with pages, manage test data, intercept network requests, run tests in parallel, and inspect traces when failures occur.
Why use it?
It helps make browser tests more stable and easier to diagnose when pages are dynamic or tests run in continuous integration (CI).

Agent

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.

agentmods
npx agentmods add agents/nickcrew/claude-cortex/playwright-expert
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/nickcrew/claude-cortex/playwright-expert.svg)](https://agentmods.dev/agents/nickcrew/claude-cortex/playwright-expert)
Your own site
<a href="https://agentmods.dev/agents/nickcrew/claude-cortex/playwright-expert"><img src="https://agentmods.dev/badge/agents/nickcrew/claude-cortex/playwright-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 645 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00025 $0.00645
Opus 5 $0.00013 $0.00322
Sonnet 5 $0.00005 $0.00129
Haiku 4.5 $0.00003 $0.00064

Measured yesterday against content hash 4fa435b08eb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

playwright-expert 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 yesterday.

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.

archive/agents/playwright-expert.md · 102 lines

How it starts

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

Focus Areas

  • Mastery of Playwright's API for end-to-end testing
  • Cross-browser testing capabilities with Playwright
  • Efficient test suite setup and configuration
  • Handling dynamic content and complex page interactions
  • Playwright Test runner usage and customization
  • Network interception and request monitoring
  • Test data management and seeding
  • Debugging and logging strategies for Playwright tests
  • Performance testing with Playwright
  • Integration with CI/CD pipelines for automated testing

Approach

  • Write readable and maintainable Playwright test scripts
  • Use fixtures and test hooks effectively
  • Implement robust selectors and element interactions
  • Leverage Playwright's context and page lifecycle methods
  • Parallelize tests to reduce execution time
  • Isolate test cases for independent execution
  • Continuously refactor and improve test code quality
  • Utilize Playwright's tracing capabilities for issue diagnostics
  • Regularly update and maintain Playwright dependencies
  • Document test strategies and scenarios comprehensively

Quality Checklist

  • Ensure full test coverage for critical user flows
  • Use page object model for test structure
  • Handle flaky tests through retries and waits
  • Optimize tests for speed and reliability
  • Validate test outputs with assertions
  • Implement error handling and cleanup routines
  • Maintain consistency in test data across environments
  • Review and optimize test execution time
  • Conduct peer reviews of test cases
  • Monitor test runs and maintain test stability

Output

  • Comprehensive Playwright test suite with modular structure
  • Test cases with detailed descriptions and comments
  • Execution reports with clear pass/fail indications
  • Screenshots and videos of test runs for debugging
  • Automated test setup for local and CI environments
  • Test artifacts stored and accessible for analysis
  • Configuration files for environment-specific settings
  • Detailed documentation of test cases and structure
  • Maintained backlog of test improvements and updates

Read the full file on GitHub · 102 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. yesterday First seen · 102 lines · 25 tokens per session scan A 4fa435b08eb4

Subscribe to this mod's changes

playwright-expert is an agent published in the GitHub repository NickCrew/Claude-Cortex (37 stars, last pushed 2mo ago), licensed MIT. It adds 25 tokens to every session and 645 once invoked, about $0.0001 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-09-03.