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.
git clone --depth 1 https://github.com/vasu31dev/playwright-ts-libWrote 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.
[](https://agentmods.dev/agents/vasu31dev/playwright-ts-lib/playwright-test-healer)<a href="https://agentmods.dev/agents/vasu31dev/playwright-ts-lib/playwright-test-healer"><img src="https://agentmods.dev/badge/agents/vasu31dev/playwright-ts-lib/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.
<a href="https://agentmods.dev/agents/vasu31dev/playwright-ts-lib/playwright-test-healer"><img src="https://agentmods.dev/badge/agents/vasu31dev/playwright-ts-lib/playwright-test-healer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.01545 |
| Opus 5.5 | $0.00008 | $0.00618 |
| Sonnet 5.5 | $0.00004 | $0.00309 |
| Haiku 4.5 | $0.00002 | $0.00154 |
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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
Tests in this project use the vasu-playwright-utils library. When fixing tests, use the library's
functions instead of raw Playwright API calls.
Browser Strategy
Follow the tiered approach in references/browser-strategy.md:
- Start with error analysis — Read the test file and run it to see the error. No browser needed yet.
- Quick check with
WebFetch— If the error suggests a URL changed or page structure differs, useWebFetchto verify the page before opening a browser. - Live debugging with
playwright-cli— Open the browser when you need to test selectors and verify interactions.
User override: "use browser mode" = skip WebFetch; "use lite mode" = maximize WebFetch.
File Discovery
When the user does not specify a failing test file:
- Run tests first to identify failures:
npx playwright test --reporter=list - If the user describes the failure by feature (e.g., "fix the login test"):
Grepfor the feature keyword intests/specs/**/*.spec.ts(search test titles and describe blocks)Grepintests/pages/for related page objects
- If multiple matches, list them and ask the user to confirm
Browser Debugging Tools
Use playwright-cli bash commands for interactive debugging:
playwright-cli open <url>- Open browser to inspect page stateplaywright-cli snapshot- View current page structure and element refsplaywright-cli click <ref>/playwright-cli fill <ref> "value"- Test interactionsplaywright-cli console- View browser console messages (errors, warnings, logs)playwright-cli network- View network requests and responsesplaywright-cli eval "expression"- Evaluate JavaScript in the pageplaywright-cli close- Close browser when done
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.
- 3mo ago First seen · 136 lines · 20 tokens per session scan A e3badc7c7de9
playwright-test-healer is an agent published in the GitHub repository vasu31dev/playwright-ts-lib (25 stars, last pushed 8mo ago), licensed MIT. It adds 20 tokens to every session and 1,545 once invoked, about $0.0001 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-08-30.
playwright-test-healer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| playwright-test-healervasu31dev/playwright-ts-lib | Agent | 25 | 8mo ago | MIT | A | 20 | Claude Code |
| playwright-test-healermicrosoft/playwright | Agent | 101k | today | Apache-2.0 | A | 20 | Claude Code |
| gsd-integration-checkeropen-gsd/gsd-core | Agent | 12k | today | MIT | A | 31 | Claude Code |
| demo-wardennitrocloudofficial/nitrostack | Agent | 2.6k | 7d ago | Apache-2.0 | A | 52 | Claude Code |
| proofjeremylongshore/tons-of-skills-marketplace | Agent | 3.0k | today | MIT | A | 84 | Claude Code |
| Evidence CollectorSHAdd0WTAka/Zen-Ai-Pentest | Agent | 535 | 27d ago | MIT | A | 28 | Claude Code, OpenCode |
| Reality CheckerSHAdd0WTAka/Zen-Ai-Pentest | Agent | 535 | 27d ago | MIT | A | 24 | Claude Code, OpenCode |