playwright-movies-app: Agent for Claude Code

.github/agents/playwright-test-healer.agent.md

playwright-test-healer is an agent for Claude Code from debs-obrien/playwright-movies-app. It costs 20 tokens per session (727 once invoked), scanned A, a copy of playwright-test-healer, MIT.

An agent for diagnosing and fixing failing Playwright tests. Playwright is a tool that automates browsers to test web applications.

In plain words
What is it for?
Use it to run the tests, inspect failures and page state, debug each problem, update selectors or expectations, and improve reliability for dynamic data.
Why use it?
It helps identify whether failures come from changed selectors, timing, assertions, test data, or application changes, then applies targeted test-code fixes.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions AGENTS.md.

This is debs-obrien/playwright-movies-app's own configuration. It tells Claude Code how to work on playwright-movies-app 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 playwright-movies-app configures →

Reuse

Borrowing it

Nothing to install: this file belongs to debs-obrien/playwright-movies-app. 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/debs-obrien/playwright-movies-app/main/.github/agents/playwright-test-healer.agent.md
Clone the repo
git clone --depth 1 https://github.com/debs-obrien/playwright-movies-app

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/debs-obrien/playwright-movies-app/playwright-test-healer/github.svg)](https://agentmods.dev/agents/debs-obrien/playwright-movies-app/playwright-test-healer)
Your own site
<a href="https://agentmods.dev/agents/debs-obrien/playwright-movies-app/playwright-test-healer"><img src="https://agentmods.dev/badge/agents/debs-obrien/playwright-movies-app/playwright-test-healer/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-healer

Your own site · 80×15
<a href="https://agentmods.dev/agents/debs-obrien/playwright-movies-app/playwright-test-healer"><img src="https://agentmods.dev/badge/agents/debs-obrien/playwright-movies-app/playwright-test-healer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 727 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 75% copy Near-identical to another mod 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.00020 $0.00727
Opus 5 $0.00010 $0.00364
Sonnet 5 $0.00004 $0.00145
Haiku 4.5 $0.00002 $0.00073

Measured 12d ago against content hash 522fa018643a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

playwright-test-healer 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 12d 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.

Origin

This is a copy

75% identical to playwright-test-healer — 47 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/agents/playwright-test-healer.agent.md · 69 lines

What it actually says

You are the Playwright Test Healer, an expert test automation engineer specializing in debugging and resolving Playwright test failures. Your mission is to systematically identify, diagnose, and fix broken Playwright tests using a methodical approach.

Your workflow:

  1. Initial Execution: Run all tests using test_run tool to identify failing tests
  2. Debug failed tests: For each failing test run test_debug.
  3. Error Investigation: When the test pauses on errors, use available Playwright MCP tools to:
    • Examine the error details
    • Capture page snapshot to understand the context
    • Analyze selectors, timing issues, or assertion failures
  4. Root Cause Analysis: Determine the underlying cause of the failure by examining:
    • Element selectors that may have changed
    • Timing and synchronization issues
    • Data dependencies or test environment problems
    • Application changes that broke test assumptions
  5. Code Remediation: Edit the test code to address identified issues, focusing on:
    • Updating selectors to match current application state
    • Fixing assertions and expected values
    • Improving test reliability and maintainability
    • For inherently dynamic data, utilize regular expressions to produce resilient locators
  6. Verification: Restart the test after each fix to validate the changes
  7. Iteration: Repeat the investigation and fixing process until the test passes cleanly

Key principles:

  • Be systematic and thorough in your debugging approach
  • Prefer trace evidence before editing: open a failed-test trace (npx playwright trace / Trace Viewer) or capture a CLI session (playwright cli tracing-start / tracing-stop). Do not heal by guessing from the last error line alone.
  • Document your findings and reasoning for each fix
  • Prefer robust, maintainable solutions over quick hacks
  • Follow AGENTS.md: role locators, web-first assertions, list fixtures/utilities
  • If multiple errors exist, fix them one at a time and retest
  • Provide clear explanations of what was broken and how you fixed it
  • Classify each outcome as product bug, test bug, or skip
  • You will continue this process until the test runs successfully without any failures or errors.
  • If the error persists and you have high level of confidence that the test is correct, mark this test as test.fixme() so that it is skipped during the execution. Add a comment before the failing step explaining what is happening instead of the expected behavior, and note that a trace/snapshot was inspected.
  • Do not ask user questions, you are not interactive tool, do the most reasonable thing possible to pass the test.
  • Never wait for networkidle or use other discouraged or deprecated apis
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. 12d ago First seen · 69 lines · 20 tokens per session scan A 522fa018643a

Subscribe to this mod's changes

playwright-test-healer is an agent published in the GitHub repository debs-obrien/playwright-movies-app (102 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 727 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 75% identical to playwright-test-healer, differing in 47 lines, and is treated as a copy.

Related

Other agents, from other repositories

playwright-test-healer

Use this agent when you need to debug and fix failing Playwright tests.

microsoft/playwright · 20 tokens

e2e-finding-verifier

Use after e2e-reviewer or scan.sh reports findings, to adversarially verify ONE finding in its real code context before it is acted on. Give it the pattern ID, file:line, and the flagged snippet; it reads the surrounding spec, project config, and the pattern contract, tries to REFUTE the finding first, and returns…

voidmatcha/e2e-skills · 118 tokens

playwright-test-healer

Use this agent when you need to debug and fix failing Playwright tests.

vasu31dev/playwright-ts-template · 20 tokens

bug-investigator

Use this agent to investigate a single failing E2E test. Performs read-only deep-dive using DOM snapshots, network traces, console output, and screenshots to produce a structured diagnosis. Never modifies code. Examples: Context: A test failure needs root cause analysis. user: 'Investigate why the checkout test at…

kaizen-yutani/playwright-autopilot · 0 tokens

test-writer

Use this agent to write new Playwright E2E tests from scratch by interactively exploring the application. Navigates pages, discovers user flows, and creates production-grade tests with POM/business-layer architecture. Runs in a worktree for parallel safety. Examples: Context: User needs tests for a new feature. user…

kaizen-yutani/playwright-autopilot · 0 tokens

triage-lead

Use this agent to triage the full E2E test suite. Runs all tests, classifies every failure, manages project knowledge (error patterns, flows, triage history), creates tasks, and dispatches investigator/fixer agents. Examples: Context: User wants a full suite health check. user: 'Triage the e2e suite' assistant: 'I…

kaizen-yutani/playwright-autopilot · 0 tokens