Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PracticalSwan/agent-skills --skill playwright-tracegit clone --depth 1 https://github.com/PracticalSwan/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/practicalswan/agent-skills/playwright-trace)<a href="https://agentmods.dev/skills/practicalswan/agent-skills/playwright-trace"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/playwright-trace/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/playwright-trace"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/playwright-trace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.01954 |
| Opus 5.5 | $0.00012 | $0.00782 |
| Sonnet 5.5 | $0.00006 | $0.00391 |
| Haiku 4.5 | $0.00003 | $0.00195 |
Grade A, and why
playwright-trace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Playwright Trace CLI
Inspect .zip trace files produced by Playwright tests without opening a
browser. This is a file-analysis workflow, distinct from the live-browser
playwright-cli tracing-start/tracing-stop commands.
Prerequisites and entrypoint
Trace-file commands are provided by the project's playwright package, not by
the global @playwright/cli binary. Confirm the project dependency first:
npm ls --depth=0 playwright @playwright/test
Then prefer the local executable without an implicit network fetch:
npx --no-install playwright trace open test-results/my-test/trace.zip
If the project does not provide playwright, ask for approval before adding
@playwright/test or playwright; do not make a global test-runner install a
side effect of loading this skill. The global CLI can still record a live trace
with playwright-cli tracing-start and playwright-cli tracing-stop, but it
does not expose the playwright trace file-inspection command.
Workflow
- Start with
trace open <trace.zip>to extract the trace and see its metadata. - Use
trace actionsto see all actions with their action IDs. - Use
trace action <action-id>to drill into a specific action — see parameters, logs, source location, and available snapshots. - Use
trace requests,trace console, ortrace errorsfor cross-cutting views. - Use
trace snapshot <action-id>to get the DOM snapshot, or run a browser command against it. - Use
trace closeto 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.
Commands
Open a trace
# Extract trace and show metadata: browser, viewport, duration, action/error counts
npx --no-install playwright trace open <trace.zip>
Close a trace
# Remove extracted trace data
npx --no-install playwright trace close
Actions
# List all actions as a tree with action IDs and timing
npx --no-install playwright trace actions
# Filter by action title (regex, case-insensitive)
npx --no-install playwright trace actions --grep "click"
# Only failed actions
npx --no-install playwright trace actions --errors-only
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 247 lines · 29 tokens per session scan A 03d7e3536b3c
playwright-trace is a skill published in the GitHub repository PracticalSwan/agent-skills (21 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 1,954 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.
Other skills, from other repositories
Flaky Test Doctor
Diagnose flaky test failures from Playwright reports, traces, and rerun history. Classify each failure as product, test, environment, data, or unknown with cited evidence and a proposed fix. Never auto-modifies code without opt-in.
playwright-test-diagnosis
Analyze playwright test results.
playwright-e2e-testing
Production-grade Playwright end-to-end testing skill for AI coding agents. Provides specialized guidance for writing, debugging, and maintaining Playwright tests in TypeScript, JavaScript, and Python. Covers the full testing lifecycle: test structure and architecture (Page Object Model, fixtures, custom matchers)…
write-e2e
Write new Playwright E2E tests following project conventions, with POM/business-layer architecture, network-aware stability patterns, and quality validation.
fix-e2e
Systematically investigate and fix failing Playwright E2E tests using captured action data, screenshots, DOM snapshots, network requests, and console output.
triage-e2e
Run all E2E tests, categorize failures (known issue, app bug, test update, flaky, new), cross-reference Jira, and generate a management-ready report.