playwright

A tool for running Playwright end-to-end tests, which check a complete application flow through a real web browser. It can run selected or all tests and provide an HTML test report.

In plain words
What is it for?
It is for listing tests, running them in Chromium, Firefox, or WebKit, choosing browser visibility and parallel workers, setting retries and time limits, and retrieving the latest report.
Why use it?
It removes the need to remember the test commands and makes the results available in a browser-readable report.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/fisker086/aiops/playwright
Any agent
npx skills add fisker086/AIOps --skill playwright
Clone the repo
git clone --depth 1 https://github.com/fisker086/AIOps

Made for: Claude Code, Codex.

Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.00502
Opus 5 $0.00010 $0.00251
Sonnet 5 $0.00004 $0.00100
Haiku 4.5 $0.00002 $0.00050

Measured 3d ago against content hash 66725b653b7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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/playwright/SKILL.md · 37 lines

What it actually says

Playwright E2E Test Skill

Run Playwright end-to-end tests from the e2e/ directory. Supports running all tests, filtering by file, and returning the HTML test report as a downloadable file (inline in web chat, file attachment in IM).

Use builtin_playwright tool with fields:

  • action: The action to perform. Options:
    • "run" (default): Run Playwright tests and return the HTML report file
    • "install": Install Playwright browsers
    • "list": List available tests without running
    • "report": Retrieve the latest test report without re-running
  • files: Comma-separated test file paths to run (e.g., "tests/auth.spec.ts"). Empty = run all tests.
  • headed: Run with browser GUI visible — "true" or "false" (default: "false", headless).
  • project: Playwright project name (default: "chromium"). Other options: "firefox", "webkit".
  • workers: Number of parallel workers (default: "2"). Use "1" for serial execution.
  • retries: Number of retries on failure (default: "1"). Use "0" for no retries.
  • timeout: Per-test timeout in milliseconds (default: "60000").

Result:

  • Returns the terminal output including pass/fail counts, durations, and failed test names.
  • The HTML report is auto-delivered as a file:
    • Web chat: shown as a downloadable link in the conversation
    • IM (Lark/DingTalk/Telegram/QQ): sent as a file attachment
  • If the e2e/ directory is not found (e.g., production Docker image without source), the skill reports this clearly.

Example usage:

  • "帮我跑一下 E2E 测试" → runs all tests, returns results + report file
  • "只跑 auth 的测试" → files="tests/auth.spec.ts"
  • "看看报告" → action="report"
  • "列出所有测试" → action="list"
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 First seen · 37 lines · 20 tokens per session scan A 66725b653b7e

Subscribe to this mod's changes

playwright is a skill published in the GitHub repository fisker086/AIOps (21 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 502 once invoked, about $0.0001 per session on Opus 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-30.

Related

Other skills, from other repositories

use-agent-browser-for-airi

Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…

moeru-ai/airi · 87 tokens

e2e-deployment-skill

Use this deployment skill to verify shared skills load during Playwright startup.

danny-avila/LibreChat · 22 tokens

launch

Launch Code OSS (VS Code from sources) into an isolated throwaway profile with unique debug ports so you can drive it with @playwright/cli AND attach a Node debugger via dap-cli in the same session. Use when working on VS Code itself and you want to interact with the running workbench, automate chat or UI flows, test…

microsoft/vscode · 96 tokens

actionbook-web-test

Run browser-based web tests against websites using Actionbook CLI. Activate when the user wants to test a website workflow, run smoke tests, verify a user flow, check if a web application works, run regression tests, or validate browser-based interactions. Supports test definition, execution, assertion, reporting, and…

actionbook/actionbook · 71 tokens

web-preview

Flutter Web版をビルド → サーバー起動 → Playwright でアクセス確認 → URLをユーザーに案内する。.

K9i-0/ccpocket · 32 tokens

qa/e2e-playwright

Playwright E2E 测试完整方法论,涵盖项目初始化、Page Object Model、认证复用、API Mock、视觉回归、多浏览器测试、CI 集成和调试技巧.

echoVic/boss-skill · 50 tokens