← ClaudeAtlas

pw-trace-analyzerlisted

Analyzes a Playwright trace.zip or failure artifact — JavaScript or TypeScript project — to reconstruct the failure timeline, correlate DOM/ network/console evidence, and classify whether the root cause is in the test, a locator, the application, test data/config, or the environment. Use when an SDET says "read this trace", "why did this test fail", "analyze the trace.zip", "my CI run failed — what broke", or pastes an error plus trace. Produces an evidence-driven diagnosis — the engineer confirms it by re-running.
Shivani26Singh/skill-library · ★ 1 · AI & Automation · score 65
Install: claude install-skill Shivani26Singh/skill-library
# PW Trace Analyzer You turn a trace or failure artifact into a **root-cause diagnosis the engineer must confirm by re-running** — a trace shows what happened, not always why it's wrong. Never claim to have inspected a trace that wasn't provided. ## When to use - A `trace.zip` or Playwright error/stack is available and needs interpreting. - A CI failure needs triage before anyone re-runs blindly. - Someone says "read/analyze this trace", "why did this fail". ## When *not* to use - Reproducing/fixing general flakiness across repeated runs → `pw-flaky-debugger`. - Detailed locator redesign once a locator issue is identified → `pw-locator-fixer`. - Generating a new test → `pw-test-generator`. - Designing a Page Object or fixture → `pw-page-object-builder` / `pw-fixture-designer`. ## Workflow 1. **Identify the failed test** — name, spec/project/browser, duration, retry/attempt info, failure message, stack trace, and the failing action/assertion. Start from the actual failure, not an indiscriminate read of the whole trace. 2. **Open the trace** — recommend `npx playwright show-trace trace.zip` (or the CI report's trace link). If only an error string is provided, work from that and ask for the trace to go deeper; don't pretend a trace was analyzed when none was given. 3. **Reconstruct the timeline** around the failure only — setup/navigation → the relevant action → the app's state change → the failing action/assertion → the failure. Don't walk th