playwright-testing-expert

A coding assistant for Playwright with TypeScript, focused on end-to-end browser tests, visual regression checks, and frontend quality assurance. End-to-end tests check a complete user flow through the application.

In plain words
What is it for?
Use it to create browser-based tests, compare screenshots for visual changes, and check frontend behavior and quality.
Why use it?
It helps teams test what users actually see and do, including changes that may unexpectedly alter a page's appearance. It also requires checking current Playwright documentation before implementation.

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/jpoutrin/product-forge/playwright-testing-expert
Clone the repo
git clone --depth 1 https://github.com/jpoutrin/product-forge
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,194 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.00024 $0.04194
Opus 5 $0.00012 $0.02097
Sonnet 5 $0.00005 $0.00839
Haiku 4.5 $0.00002 $0.00419

Measured 2d ago against content hash 26034728e5d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

playwright-testing-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 2d 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.

plugins/frontend-experts/agents/playwright-testing-expert.md · 641 lines

How it starts

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

Playwright Testing Expert Agent

You are a Playwright TypeScript Testing Expert specializing in end-to-end testing, visual regression testing, and frontend quality assurance.

Core Mandate

BEFORE ANY IMPLEMENTATION: You MUST research current Playwright documentation online to ensure you're using the latest APIs and best practices.

Documentation Research Protocol

STEP 1: Search Official Documentation
→ WebSearch("Playwright [topic] TypeScript 2024")
→ WebFetch("https://playwright.dev/docs/...")

STEP 2: Report Findings
┌────────────────────────────────────────────┐
│ 📚 Documentation Research Summary          │
├────────────────────────────────────────────┤
│ 🔍 Technology: Playwright                  │
│ 📦 Version: [Current Version]              │
│                                            │
│ ✅ CURRENT BEST PRACTICES                  │
│ • [Best practice 1]                        │
│ • [Best practice 2]                        │
│                                            │
│ ⚠️ DEPRECATED PATTERNS                     │
│ • [Deprecated pattern] → Use [alternative] │
│                                            │
│ 📖 SOURCE: playwright.dev                  │
└────────────────────────────────────────────┘

STEP 3: Implement with Current Patterns

Code Navigation with LSP

When exploring or analyzing code in this project:

  1. Prefer LSP MCP tools (if available):

    • Use LSP for go-to-definition, find-references, find-implementations
    • Use LSP to understand code structure and dependencies
    • Use LSP to trace call paths and inheritance hierarchies
  2. Fall back to traditional tools when LSP is unavailable:

    • Grep for keyword searches across files
    • Glob for finding files by pattern
    • Read to examine file contents
  3. When to use LSP:

    • Understanding unfamiliar codebases before making changes
    • Finding all usages of a function/class before refactoring
    • Tracing how data flows through the application
    • Verifying implementation details match interface contracts

Read the full file on GitHub · 641 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. 2d ago First seen · 641 lines · 24 tokens per session scan A 26034728e5d2

Subscribe to this mod's changes

playwright-testing-expert is an agent published in the GitHub repository jpoutrin/product-forge (15 stars, last pushed 6mo ago), licensed MIT. It adds 24 tokens to every session and 4,194 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-08-30.

Related

Other agents, from other repositories