heal-test

heal-test is a skill for Claude Code from hueanmy/qa-playwright-agent. It costs 62 tokens per session (997 once invoked), scanned A, original, MIT.

A procedure for diagnosing and rewriting a failing Playwright browser test, where Playwright is a tool for testing web applications.

In plain words
What is it for?
It helps inspect a failing test and its error log, classify the failure, write a corrected test file, and produce a report explaining the repair.
Why use it?
It distinguishes broken test setup or selectors from real application bugs, avoiding fixes that merely weaken the test.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the qa-playwright-agent plugin — 4 skills, 4 commands, 1 agent shipped together

Good fit It helps inspect a failing test and its error log, classify the failure, write a corrected test file, and produce a report explaining the repair.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hueanmy/qa-playwright-agent/heal-test
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.

Any agent
npx skills add hueanmy/qa-playwright-agent --skill heal-test
Clone the repo
git clone --depth 1 https://github.com/hueanmy/qa-playwright-agent

Made for: Claude Code.

Or install qa-playwright-agent, the plugin that ships this one along with the rest of its 4 skills, 4 commands, 1 agent.

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 heal-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/hueanmy/qa-playwright-agent/heal-test/github.svg)](https://agentmods.dev/skills/hueanmy/qa-playwright-agent/heal-test)
Your own site
<a href="https://agentmods.dev/skills/hueanmy/qa-playwright-agent/heal-test"><img src="https://agentmods.dev/badge/skills/hueanmy/qa-playwright-agent/heal-test/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 heal-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/hueanmy/qa-playwright-agent/heal-test"><img src="https://agentmods.dev/badge/skills/hueanmy/qa-playwright-agent/heal-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 997 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 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.1 $0.00062 $0.00997
Opus 5 $0.00031 $0.00498
Sonnet 5 $0.00012 $0.00199
Haiku 4.5 $0.00006 $0.00100

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

Security

Grade A, and why

heal-test 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 9d 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.

skills/heal-test/SKILL.md · 76 lines

How it starts

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

Heal Test

You are a senior automation engineer diagnosing and fixing broken Playwright tests. You will not mask real app bugs by weakening assertions.

Inputs

  • ${user_config.app_name} — slug for the app
  • ${user_config.output_dir} — output base dir
  • $ARGUMENTS<failing-spec-path> <error-log-path> [app-diff-path]
    • failing-spec-path (required) — path to the broken .spec.ts
    • error-log-path (required) — path to a file containing Playwright's stderr/stdout
    • app-diff-path (optional) — path to a file containing recent app changes (e.g. git diff output)

If any required arg is missing, ask the user. Suggest:

# Capture the failing run first:
cd <app-repo>
npx playwright test path/to/foo.spec.ts 2>&1 | tee /tmp/foo-error.txt

Steps

  1. Read the spec, the error log, and the app diff (if provided).
  2. Classify the failure into one of these categories:
    • selector-broken — element locator no longer matches DOM
    • timing — action fired before element was ready
    • mock-mismatch — mocked response shape no longer matches expected
    • auth-failure — pre-seeded auth state rejected
    • route-change — URL or guard changed
    • assertion-wrong — test logic correct but assertion too strict/lenient (rare)
    • test-setup — precondition or fixture broken
    • app-regression — genuine app bug; do not modify the test to hide it
  3. For app-regression: leave the spec content unchanged but prepend a comment // HEALER: genuine app bug — do not auto-fix. Filed as: <describe>. Set isAppRegression: true in the report.
  4. For all other categories: produce the full corrected file content.
  5. Write outputs:
    • Fixed spec → ${user_config.output_dir}/${user_config.app_name}/healed/<basename(failing-spec)>
    • Healing report → ${user_config.output_dir}/${user_config.app_name}/healed/<basename(failing-spec)>.healing-report.json
  6. Report the classification, the diagnosis (2–4 sentences), and the changes made. If isAppRegression, surface it loudly.

Read the full file on GitHub · 76 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. 9d ago First seen · 76 lines · 62 tokens per session scan A 1de4e2a4a81b

Subscribe to this mod's changes

heal-test is a skill published in the GitHub repository hueanmy/qa-playwright-agent (2 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 997 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

verify-bug

Post-merge UAT verification workflow. Walks JIRA reproduce steps, performs comparative audits (Before/After), attaches evidence to JIRA, and transitions status on PASS.

HoangNguyen0403/agent-skills-standard · 39 tokens

reality-verification

This skill should be used when the user asks to "verify a fix", "reproduce failure", "diagnose issue", "check BEFORE/AFTER state", "VF task", "reality check", "check test quality", "mock-only tests", or needs guidance on verifying fixes by reproducing failures before and after implementation, or detecting mock-heavy…

tzachbon/smart-ralph · 81 tokens

testing-blocks

Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how.

adobe/skills · 61 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog · 112 tokens

qa

Read-only automated QA sweep of a deployed stardust site on AEM Edge Delivery Services — validates routing, content fidelity vs the source capture, template conformance, rendered integrity (geometry, JS errors, broken images), visual regression vs baselines, metadata/SEO/JSON-LD, link integrity, accessibility (axe)…

adobe/skills · 138 tokens

flutter-skill

Automate and test Flutter applications — launch apps, inspect widgets, tap elements, enter text, scroll, swipe, take screenshots, validate state, and debug via Dart VM Service Protocol. Use when the user wants to run Flutter app tests, automate Flutter UI interactions, inspect widget trees, debug a running Flutter…

ai-dashboad/flutter-skill · 73 tokens