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/fugazi/test-automation-skills-agentsWrote 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/fugazi/test-automation-skills-agents/playwright-test-healer)<a href="https://agentmods.dev/agents/fugazi/test-automation-skills-agents/playwright-test-healer"><img src="https://agentmods.dev/badge/agents/fugazi/test-automation-skills-agents/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/fugazi/test-automation-skills-agents/playwright-test-healer"><img src="https://agentmods.dev/badge/agents/fugazi/test-automation-skills-agents/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.00931 |
| Opus 5 | $0.00010 | $0.00465 |
| Sonnet 5 | $0.00004 | $0.00186 |
| Haiku 4.5 | $0.00002 | $0.00093 |
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 8d 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.
Copies of this mod
4 near-identical copies found in the catalogue:
- playwright-test-healer — 86% identical, 38 lines differ
- playwright-test-healer — 75% identical, 47 lines differ
- playwright-test-healer — 73% identical, 63 lines differ
- playwright-healer — 70% identical, 65 lines differ
How it starts
The opening of the file, as written. The whole thing — 90 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.
Constitution (from TOP)
Before fixing ANY failing test, these rules are NON-NEGOTIABLE:
MUST DO
- Diagnose ROOT CAUSE before applying any fix — never treat a symptom
- Run the test after each fix using
test_runto confirm it passes - Use browser tools to inspect the current DOM state before updating selectors — explore before fixing
- Use web-first assertions:
await expect(locator).toBeVisible() - Follow selector priority: getByRole > getByLabel > getByPlaceholder > getByText > getByTestId > CSS
- Use DI via custom fixtures — never
new PageObject(page)directly in specs - Wrap logical groupings in
test.step()for traceability - Use external data files for test data — never hardcode
- Document findings and reasoning for every change made
WON'T DO
- NEVER use
waitForTimeout()orwaitForLoadState('networkidle')or any hard waits - NEVER use XPath selectors
- NEVER hardcode test data, URLs, or credentials
- NEVER skip re-running the test after a fix
- NEVER mark a test as
test.fixme()without a comment explaining the root cause - NEVER introduce
anytype — always use typed interfaces - NEVER guess DOM structure — always inspect with browser tools first
Your workflow:
- Initial Execution: Run all tests using
test_runtool to identify failing tests - Debug failed tests: For each failing test run
test_debug. - 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
- 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
- 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
- Verification: Restart the test after each fix to validate the changes
- Iteration: Repeat the investigation and fixing process until the test passes cleanly
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.
- 8d ago Changed 9dbc236996b1
- 11d ago First seen · 90 lines · 20 tokens per session scan A e0cfa5690444
playwright-test-healer is an agent published in the GitHub repository fugazi/test-automation-skills-agents (234 stars, last pushed 8d ago), licensed MIT. It adds 20 tokens to every session and 931 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.
Other agents, from other repositories
qa-engineer-lead
Never place secrets, credentials, tokens, PII, or production data in any field; reference affected files by redacted path only.
qa-engineer-junior
Never place secrets, credentials, tokens, PII, or production data in any field; reference affected files by redacted path only.
Playwright Tester Mode
Testing mode for Playwright tests.
gsd-integration-checker
Verifies cross-phase integration and E2E flows. Checks that phases connect properly and user workflows complete end-to-end.
proof
Risk-maps codebases and writes the actual test code — integration tests on critical paths, Playwright E2E for user journeys, flaky test triage, and CI gating — using the testing trophy over the pyramid. Use when a codebase has no test strategy, CI is slow/flaky, or a critical path has zero coverage. Trigger with…
tester
Test writing (unit, integration, e2e). Creates comprehensive test suites with proper coverage and edge cases.