npx skills add ...
npx skills add microsoft/playwright --skill playwright-trace
Inspect Playwright trace files from the command line — list actions, view requests, console, errors, snapshots and screenshots.
npx skills add microsoft/playwright --skill playwright-trace
Inspect .zip trace files produced by Playwright tests without opening a browser.
trace open <trace.zip> to extract the trace and see its metadata.trace actions to see all actions with their action IDs.trace action <action-id> to drill into a specific action — see parameters, logs, source location, and available snapshots.trace requests, trace console, or trace errors for cross-cutting views.trace snapshot <action-id> to get the DOM snapshot, or run a browser command against it.trace close to remove the extracted trace data when done.All commands after open operate on the currently opened trace — no need to pass the trace file again. Opening a new trace replaces the previous one.
The action command displays available snapshot phases (before, action, after) and the exact command to extract them.
The snapshot command loads the DOM snapshot for an action into a headless browser and runs a single browser command against it. Without a browser command, it returns the accessibility snapshot.
Only three browser commands are useful on a frozen snapshot: snapshot, eval, and screenshot.