playwright-trace-analyzer

playwright-trace-analyzer is a skill for Claude Code from mthines/agent-skills. It costs 77 tokens per session (2,735 once invoked), scanned A, original, MIT.

A Playwright trace-analysis skill for investigating browser test recordings. Playwright is a tool for automated browser testing; its trace files contain actions, network requests, console messages, and page snapshots.

In plain words
What is it for?
Use it with a trace archive, extracted trace files, a trace JSONL stream, a network log, or a GitHub Actions run to locate problems in end-to-end tests.
Why use it?
It turns raw test recordings into an evidence-based report about flaky waits, slow steps, failed actions, network delays, and browser errors.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the mthines-agent-skills plugin — 49 skills, 3 agents shipped together

Good fit Use it with a trace archive, extracted trace files, a trace JSONL stream, a network log, or a GitHub Actions run to locate problems in end-to-end tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mthines/agent-skills/playwright-trace-analyzer
Install

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.

Any agent
npx skills add mthines/agent-skills --skill playwright-trace-analyzer
Clone the repo
git clone --depth 1 https://github.com/mthines/agent-skills

Made for: Claude Code.

Or install mthines-agent-skills, the plugin that ships this one along with the rest of its 49 skills, 3 agents.

Wrote 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.

agentmods badge for playwright-trace-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/mthines/agent-skills/playwright-trace-analyzer/github.svg)](https://agentmods.dev/skills/mthines/agent-skills/playwright-trace-analyzer)
Your own site
<a href="https://agentmods.dev/skills/mthines/agent-skills/playwright-trace-analyzer"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/playwright-trace-analyzer/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.

agentmods 80×15 button for playwright-trace-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/mthines/agent-skills/playwright-trace-analyzer"><img src="https://agentmods.dev/badge/skills/mthines/agent-skills/playwright-trace-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 120
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 95
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 98
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 101
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 102
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Excessive Agency · line 165
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.02735
Opus 5.5 $0.00031 $0.01094
Sonnet 5.5 $0.00015 $0.00547
Haiku 4.5 $0.00008 $0.00274

Measured 3d ago against content hash b31467f65617, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

playwright-trace-analyzer 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 3d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/fetch-gh-run.mjs, scripts/trace-diff.mjs, scripts/trace-extract.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/analysis/playwright-trace-analyzer/SKILL.md · 234 lines

How it starts

The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

If the user passes a report.json plus a trace.zip, treat the report as a high-level test status map and the trace as the source of truth for timing and network data.

If a test-results/ directory is passed, scan for the most recent trace.zip per failed test and process them in order of failure recency.

See rules/input-detection.md for the precise detection logic and unpack recipe.


Workflow

Six phases. Do not skip a gate.

Phase Name Rule file Gate
0 Intake rules/input-detection.md Format detected, archive unpacked, trace.trace + trace.network parseable
1 Measurement frame rules/measurement-methodology.md Failure mode named (timeout, assertion, error, slow-but-passing) and primary metric chosen (action ms, total wall-clock, request count)
2 Hotspot extraction rules/action-timing.md, rules/network-analysis.md, rules/console-and-errors.md Top-N slow actions, top-N slow requests, error/console list — all with concrete numbers
3 Root-cause rules/flake-diagnosis.md Each hotspot mapped to a code-level cause (selector, locator, network call, app event) with file path or line where possible
4 Confidence gate rules/confidence-loop.md /confidence analysis ≥ 90% — else iterate (max 2 deep-dives)
5 Fix plan templates/analysis-report.md Report written with ranked fixes, expected impact, and verification plan

Read the full file on GitHub · 234 lines

Changes

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.

  1. 3d ago Changed · -9 lines · -155 tokens per session b31467f65617
  2. 1mo ago First seen · 243 lines · 232 tokens per session scan A 997bbf6a3cd2

Subscribe to this mod's changes

playwright-trace-analyzer is a skill published in the GitHub repository mthines/agent-skills (20 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 2,735 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

testing-blocks

Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how.

adobe/skills · 61 tokens

qa

Read-only automated QA sweep of a deployed stardust site on AEM Edge Delivery Services — validates routing, content fidelity vs the source capture, template conformance, rendered integrity (geometry, JS errors, broken images), visual regression vs baselines, metadata/SEO/JSON-LD, link integrity, accessibility (axe)…

adobe/skills · 150 tokens

diagnosing-bugs

Build a tight, red-capable feedback loop before diagnosing failures, then minimize, test ranked hypotheses, and lock the fix with a regression test.

jellydn/my-ai-tools · 34 tokens

tdd-workflow

Runs the full TDD workflow for a TypeScript/JavaScript feature — user journeys to test cases, unit tests (Jest/Vitest + Testing Library), API/integration tests, Playwright E2E, and a coverage gate wired into CI. Use when building a Next.js/React/Node feature end to end, not just a single unit test, or when asked to…

shennawardana23/skillme · 92 tokens

e2e-testing

Guides Playwright end-to-end test design — Page Object Model, CI configuration, and flaky test diagnosis. Use when writing browser-based end-to-end tests, debugging a test that fails intermittently, setting up Playwright CI configuration, or reviewing E2E test code for race conditions and arbitrary waits.

shennawardana23/skillme · 66 tokens

adhoc-verification

Produce fresh, focused, local verification evidence for a code change without relying on the full test suite. Use when a system reminder (or the user) demands ad-hoc verification after an edit, or when you want to prove one behavior in isolation. Covers the correct way to write a throwaway supertest/harness script…

pedroiff0/awesome-skills · 86 tokens