pw-trace-analyzerlisted
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