playwright-debugger
Installation
SKILL.md
Playwright Failed Test Debugger
Diagnose Playwright test failures from report files. Classifies root causes and provides concrete fixes.
Prerequisites: Get the Report
Determine the report source in this order:
1. playwright-report/ already exists locally → skip to Phase 1.
2. No report available → run tests locally and write output to a file (do NOT read stdout directly — output may be truncated):
npx playwright test --reporter=json 2>/dev/null > playwright-report/results.json
Phase 1: Extract Failures
Locate results.json under playwright-report/, then extract all tests where status is "failed" or "timedOut". For each failed test, collect: title, status, error.message, location.file, duration.