Agent skill

Playwright Trace

by mellowagain in mellowagain/gitarena

Inspect Playwright trace files from the command line — list actions, view requests, console, errors, snapshots and screenshots.

MITAuto-check passedTesting & QA

Install Playwright Trace

skills CLI
$ npx skills add mellowagain/gitarena --skill playwright-trace -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mellowagain/gitarena playwright-trace --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mellowagain/gitarena.git skills-src && mkdir -p .claude/skills && cp -r skills-src/gitarena-frontend/.claude/skills/playwright-trace .claude/skills/playwright-trace && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
playwright-trace
GitHub stars
115
Used in
1 other repo
Token cost
~1.2k tokens
SKILL.md length
209 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Inspect Playwright trace files from the command line — list actions, view requests, console, errors, snapshots and screenshots.

  • Works in 6 steps: Start with trace open to extract the… → Use trace actions to see all actions… → Use trace action to drill into a… → …
  • Tasks that involve Browser testing
  • SKILL.md covers Workflow, Commands and Typical investigation
  • Calls npx

What it does

Playwright Trace is an agent skill from mellowagain/gitarena. Inspect Playwright trace files from the command line — list actions, view requests, console, errors, snapshots and screenshots.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Browser testing. It works with Playwright, Git, Rust and Linux. The repository describes itself as: Rust-based Software development platform (forge) with built-in vcs, issue tracking and code review. The licence is MIT.

When your agent uses it

  • Tasks that involve Browser testing

Example prompts

  • “/playwright-trace”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash(npx:*)

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Start with trace open to extract the trace and see its metadata.
  2. Use trace actions to see all actions with their action IDs.
  3. Use trace action to drill into a specific action — see parameters, logs, source location, and available snapshots.
  4. Use trace requests, trace console, or trace errors for cross-cutting views.
  5. Use trace snapshot to get the DOM snapshot, or run a browser command against it.
  6. Use trace close to remove the extracted trace data when done.

What it can do on your machine

Read from SKILL.md and the folder at commit a9b0bf7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(npx:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Playwright Trace loads about 1.2k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 209 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mellowagain/gitarena at commit a9b0bf7, republished under its MIT licence (© mellowagain). 209 words, ~1,210 tokens.

Download SKILL.mdSave it as .claude/skills/playwright-trace/SKILL.md (or your agent's skills folder).
name
playwright-trace
description
Inspect Playwright trace files from the command line — list actions, view requests, console, errors, snapshots and screenshots.
allowed-tools
Bash(npx:*)

Playwright Trace CLI

Inspect .zip trace files produced by Playwright tests without opening a browser.

Workflow

  1. Start with trace open <trace.zip> to extract the trace and see its metadata.
  2. Use trace actions to see all actions with their action IDs.
  3. Use trace action <action-id> to drill into a specific action — see parameters, logs, source location, and available snapshots.
  4. Use trace requests, trace console, or trace errors for cross-cutting views.
  5. Use trace snapshot <action-id> to get the DOM snapshot, or run a browser command against it.
  6. Use 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.

Commands

Open a trace
bash
# Extract trace and show metadata: browser, viewport, duration, action/error counts
npx playwright trace open <trace.zip>
Close a trace
bash
# Remove extracted trace data
npx playwright trace close
Actions
bash
# List all actions as a tree with action IDs and timing
npx playwright trace actions

# Filter by action title (regex, case-insensitive)
npx playwright trace actions --grep "click"

# Only failed actions
npx playwright trace actions --errors-only
Action details
bash
# Show full details for one action: params, result, logs, source, snapshots
npx playwright trace action <action-id>

The action command displays available snapshot phases (before, action, after) and the exact command to extract them.

Requests
bash
# All network requests: start time (on the `trace actions` clock), method, status, URL, duration, size
npx playwright trace requests

# Filter by URL pattern
npx playwright trace requests --grep "api"

# Filter by HTTP method
npx playwright trace requests --method POST

# Only failed requests (status >= 400)
npx playwright trace requests --failed
Request details
bash
# Show full details for one request: headers, body, security
npx playwright trace request <request-id>
Console
bash
# All console messages and stdout/stderr
npx playwright trace console

# Only errors
npx playwright trace console --errors-only

# Only browser console (no stdout/stderr)
npx playwright trace console --browser

# Only stdout/stderr (no browser console)
npx playwright trace console --stdio

# Filter by message text pattern
npx playwright trace console --grep "failed to fetch"
Errors
bash
# All errors with stack traces and associated actions
npx playwright trace errors
Snapshots

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.

bash
# Get the accessibility snapshot (default)
npx playwright trace snapshot <action-id>

# Use a specific phase
npx playwright trace snapshot <action-id> --phase before

# Run eval to query the DOM
npx playwright trace snapshot <action-id> -- eval "document.title"
npx playwright trace snapshot <action-id> -- eval "document.querySelector('#error').textContent"

# Eval on a specific element ref (from the snapshot)
npx playwright trace snapshot <action-id> -- eval "el => el.getAttribute('data-testid')" e5

# Take a screenshot of the snapshot
npx playwright trace snapshot <action-id> -- screenshot

# Redirect output to a file
npx playwright trace snapshot <action-id> -- eval "document.body.outerHTML" --filename=page.html
npx playwright trace snapshot <action-id> -- screenshot --filename=screenshot.png

Only three browser commands are useful on a frozen snapshot: snapshot, eval, and screenshot.

Attachments
bash
# List all trace attachments
npx playwright trace attachments

# Extract an attachment by its number
npx playwright trace attachment 1
npx playwright trace attachment 1 -o out.png

Typical investigation

bash
# 1. Open the trace and see what's inside
npx playwright trace open test-results/my-test/trace.zip

# 2. What actions ran?
npx playwright trace actions

# 3. Which action failed?
npx playwright trace actions --errors-only

# 4. What went wrong?
npx playwright trace action 12

# 5. What did the page look like at that moment?
npx playwright trace snapshot 12

# 6. Query the DOM for more detail
npx playwright trace snapshot 12 -- eval "document.querySelector('.error-message').textContent"

# 7. Any relevant network failures?
npx playwright trace requests --failed

# 8. Any console errors?
npx playwright trace console --errors-only

© mellowagain, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in gitarena-frontend/.claude/skills/playwright-trace of mellowagain/gitarena.

Open the folder on GitHubat commit a9b0bf7

Used in 1 other repository

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in mellowagain/gitarena, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Playwright Trace next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Playwright Trace compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Playwright Trace this skillmellowagain/gitarena1151 repos~1.2kAutomated safety check: PassMIT
Reprovaadin/web-components582—~1.3kAutomated safety check: PassNone
Mobius Self Evo Demomobius-system/mobius138—~3.8kAutomated safety check: PassCustom licence
Playwright Rs Usagepadamson/playwright-rust153—~5.3kAutomated safety check: PassApache-2.0
Xhs Auto PublisherDjangoPeng/agentic-ai152—~570Automated safety check: PassMIT
Reprovaadin/flow-components129—~1.3kAutomated safety check: PassNone

Similar skills

  • Repro

    vaadin/web-components

    Reproduce a Vaadin web component bug from a GitHub issue in vaadin/web-components.

    582 GitHub stars~1.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Mobius Self Evo Demo

    mobius-system/mobius

    Produce a Mobius self-evolution demo video for requests that ask to show an existing UI, submit the same requirement to the Xiao Mo assistant, implement the requirement, record the changed UI…

    138 GitHub stars~3.8k tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Playwright Rs Usage

    padamson/playwright-rust

    Procedural reference for using playwright-rs in Rust browser-automation code — object model (Browser/Context/Page/Locator), the locator!() macro, builder pattern for options, auto-wait semantics…

    153 GitHub stars~5.3k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Xhs Auto Publisher

    DjangoPeng/agentic-ai

    面向云服务器的小红书图文自动发布 Skill。适用于需要在 Linux 云服务器上,通过 Playwright/CDP、二维码人工接管、登录缓存、龙虾代发飞书群图片消息、截图留痕与审计日志来完成小红书草稿或发布流程的场景。

    152 GitHub stars~570 tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Repro

    vaadin/flow-components

    Reproduce a Vaadin Flow component bug from a GitHub issue in vaadin/flow-components or a component-specific issue in vaadin/flow.

    129 GitHub stars~1.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Hydra Dev

    streamband/hydra-srt

    Run HydraSRT development workflows: mix q quality gate, Elixir unit/E2E tests, native Rust tests, web Vitest/Playwright, and make dev.

    146 GitHub stars~995 tokensUpdated 21 days ago
    Testing & QAAuto-check passed

More from mellowagain/gitarena

  • Playwright Component Testing

    mellowagain/gitarena

    Set up component testing with Playwright using a story gallery — scaffold stories and a gallery dev page driven by the built-in mount fixture, no dedicated component-testing runtime.

    115 GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed
  • Design Guidelines

    mellowagain/gitarena

    Applies GitArena's official design system, colors, and typography to frontend components and pages.

    115 GitHub stars~2.5k tokensUpdated today
    Auto-check passed

Categories

Questions about Playwright Trace

What does Playwright Trace do?

Inspect Playwright trace files from the command line — list actions, view requests, console, errors, snapshots and screenshots. Playwright Trace is an agent skill from mellowagain/gitarena. Inspect Playwright trace files from the command line — list actions, view requests, console, errors, snapshots and screenshots.

When should I use Playwright Trace?

Playwright Trace fits situations like: tasks that involve Browser testing.

How do I install Playwright Trace in Claude Code?

Run `npx skills add mellowagain/gitarena --skill playwright-trace -a claude-code`. Or copy the skill folder (gitarena-frontend/.claude/skills/playwright-trace in mellowagain/gitarena) into .claude/skills/playwright-trace in your project. Claude Code loads it when a task matches its description.

How do I install Playwright Trace in Codex?

Run `npx skills add mellowagain/gitarena --skill playwright-trace -a codex`. Or copy the skill folder (gitarena-frontend/.claude/skills/playwright-trace in mellowagain/gitarena) into .agents/skills/playwright-trace in your project. Codex loads it when a task matches its description.

Can I use Playwright Trace in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mellowagain/gitarena --skill playwright-trace -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/playwright-trace, .gemini/skills/playwright-trace, .github/skills/playwright-trace and .opencode/skills/playwright-trace in your project.

What does Playwright Trace need to run?

Going by SKILL.md and its folder, Playwright Trace needs the command-line tools its instructions call (npx). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash(npx:*).

Does Playwright Trace access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Playwright Trace safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Playwright Trace use?

Playwright Trace is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Playwright Trace use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Playwright Trace?

Skills that share tags, products or a category with Playwright Trace: Repro (vaadin/web-components, 582 stars), Mobius Self Evo Demo (mobius-system/mobius, 138 stars), Playwright Rs Usage (padamson/playwright-rust, 153 stars) and Xhs Auto Publisher (DjangoPeng/agentic-ai, 152 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Playwright Trace?

mellowagain (a GitHub user) maintains it in mellowagain/gitarena, which has 115 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.

Source: mellowagain/gitarena on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.