playwright-trace-analyzerlisted
Install: claude install-skill mthines/agent-skills
# Playwright Trace Analyzer
Turn a Playwright `trace.zip` into a ranked, evidence-backed report of
flakes, slow steps, and root causes.
> **Index file.** Detailed extraction rules, analysis playbooks, and
> report templates live under `rules/`, `references/`, and `templates/`.
> Load only what the current phase needs — the body of `SKILL.md` is a
> thin orchestrator.
---
## Inputs
The user passes one or more of:
| Input | Detection signal |
| ------------------------------------ | ---------------------------------------------------------------------- |
| GitHub Actions run URL | Matches `https://github.com/<owner>/<repo>/actions/runs/<id>` — fetch artifacts via `gh run download` |
| `trace.zip` archive | Magic bytes `50 4b 03 04`; entries include `trace.trace`, `trace.network`, `*.png`, `resources/` |
| Unpacked trace directory | Contains `trace.trace` + `trace.network` (NDJSON) and a `resources/` subdir |
| Single `trace.trace` JSONL stream | NDJSON; each line has `type`, `callId`, `startTime`, `params` (e.g. `before`, `action`, `after`) |
| Single `trace.network` JSONL stream | NDJSON; entries with `type: "resource-snapshot"` or `requestEvent` / `responseEvent` |
| `report.json` (Playwright reporter) | Top-level `config`, `suites`, `stats`; complementary, never authoritative for timing