Agent skill

Playwright Automation

by majiayu000 in majiayu000/spellbook

Browser automation and testing with Playwright. An agent skill from majiayu000/spellbook.

MITAuto-check: notesTesting & QA

Install Playwright Automation

skills CLI
$ npx skills add majiayu000/spellbook --skill playwright-automation -a claude-code

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

GitHub CLI
$ gh skill install majiayu000/spellbook playwright-automation --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/majiayu000/spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/playwright-automation .claude/skills/playwright-automation && 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-automation
GitHub stars
287
Token cost
~335 tokens
SKILL.md length
142 words
Files
2 (incl. references)
Skills in repo
97
Repo updated
First seen
Licence
MIT

At a glance

Browser automation and testing with Playwright. An agent skill from majiayu000/spellbook.

  • Works in 5 steps: Confirm the target, available context,… → Read the relevant section of… → Execute the smallest reversible action… → …
  • Testing web applications
  • SKILL.md covers Routing, Quick Workflow and References
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Playwright Automation is an agent skill from majiayu000/spellbook. Browser automation and testing with Playwright. Use when testing web applications, automating browser tasks, taking screenshots, or validating UI behavior.

Its SKILL.md is about 340 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/full-guide.md`).

It sits in Testing & QA, covering Browser testing and Browser automation. It works with Playwright. The repository describes itself as: Cross-runtime skills for Claude Code, Codex, and multi-agent workflows. The licence is MIT.

When your agent uses it

  • Testing web applications
  • Automating browser tasks
  • Taking screenshots
  • Validating UI behavior

Example prompts

  • “/playwright-automation”

Requirements

  • Pre-approved tools (allowed-tools): Read, Bash, Write, Edit

Workflow steps

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

  1. Confirm the target, available context, constraints, and done-when signal.
  2. Read the relevant section of references/full-guide.md for task-specific details.
  3. Execute the smallest reversible action that satisfies the request.
  4. Verify with a runnable script, explicit target URL, captured output or artifact path, and cleanup of any started local servers.
  5. Report changed files, commands run, evidence collected, and any remaining risk.

What it can do on your machine

Read from SKILL.md and the folder at commit ed52af7. 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:

    • Read
    • Bash
    • Write
    • Edit

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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 Automation loads about 335 tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 44 tokens; SKILL.md has 142 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~335
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.3k

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash, Write, Edit

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 majiayu000/spellbook at commit ed52af7, republished under its MIT licence (© majiayu000). 142 words, ~335 tokens.

Download SKILL.mdSave it as .claude/skills/playwright-automation/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
playwright-automation
description
Browser automation and testing with Playwright. Use when testing web applications, automating browser tasks, taking screenshots, or validating UI behavior.
allowed-tools
Read, Bash, Write, Edit

Playwright Browser Automation

Use this skill for Playwright scripts that inspect pages, capture screenshots, automate forms, test responsive views, or collect console/network evidence.

Routing

  • Start here to confirm scope, safety boundaries, and the minimum workflow.
  • Load references/full-guide.md before executing detailed commands, applying templates, or relying on examples from this skill.
  • Keep the work limited to the user-requested target; do not add adjacent improvements unless the user asks.

Quick Workflow

  1. Confirm the target, available context, constraints, and done-when signal.
  2. Read the relevant section of references/full-guide.md for task-specific details.
  3. Execute the smallest reversible action that satisfies the request.
  4. Verify with a runnable script, explicit target URL, captured output or artifact path, and cleanup of any started local servers.
  5. Report changed files, commands run, evidence collected, and any remaining risk.

References

  • references/full-guide.md - complete command patterns, examples, checklists, and edge cases.

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

Files

SKILL.md and 1 other file (references) in skills/playwright-automation of majiayu000/spellbook.

  • SKILL.md
  • references/full-guide.md

Open the folder on GitHubat commit ed52af7

Compare with similar skills

Playwright Automation 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 Automation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Playwright Automation this skillmajiayu000/spellbook287—~335Automated safety check: NotesMIT
playwright-cli Browser Automationgithub/gh-aw5.4k25 repos~2.8kAutomated safety check: PassMIT
Playwright Skilllackeyjb/playwright-skill3.2k—~1.9kAutomated safety check: PassMIT
TabbitTabbit-Browser/dsh-tabbit104—~780Automated safety check: PassMIT
Agenttinyfish-io/tinyfish-cookbook2.2k—~1.1kAutomated safety check: PassMIT
Measure Startup RequestsTriliumNext/Trilium38k—~1.5kAutomated safety check: PassAGPL-3.0

Similar skills

  • Official

    Drives a real browser from the command line with playwright-cli to open pages, interact, mock requests, save state and work with Playwright tests.

    5.4k GitHub starsUsed in 25 repos~2.8k tokens
    Testing & QAAuto-check passed
  • Playwright Skill

    lackeyjb/playwright-skill

    Complete browser automation with Playwright. An agent skill from lackeyjb/playwright-skill.

    3.2k GitHub stars~1.9k tokensUpdated 10 days ago
    Testing & QAAuto-check passed
  • Tabbit

    Tabbit-Browser/dsh-tabbit

    Control Tabbit Browser in a task-isolated Playwright workspace; never switch browser backends.

    104 GitHub stars~780 tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Agent

    tinyfish-io/tinyfish-cookbook

    Default browser automation agent — click, fill forms, navigate, log in, and extract structured data from any website using a natural-language goal, or run the same task across multiple sites in…

    2.2k GitHub stars~1.1k tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Measure Startup Requests

    TriliumNext/Trilium

    A skill your agent uses when measuring what the Trilium client loads at startup — "what loads at boot?", "did this change reduce the startup bundle?", "is <dependency lazy?", or any before/after…

    38k GitHub stars~1.5k tokensUpdated today
    Testing & QAAuto-check passed
  • Playwright MCP Browser Control

    Hainrixz/editor-pro-max

    Drives a live browser through the Playwright MCP server to navigate, inspect, fill forms and screenshot pages, with snapshot-first habits and output-size care.

    264 GitHub stars~2k tokensUpdated 6 mo ago
    Testing & QAAuto-check passed

More from majiayu000/spellbook

All 97 skills in this repo
  • Skill Ecosystem Doctor

    majiayu000/spellbook

    Audits and repairs how coding-agent Skills are owned, copied and exposed across runtimes, from canonical sources to quarantine and retirement.

    287 GitHub stars~3k tokensUpdated 3 days ago
    Auto-check passed
  • AGENTS.md Scaffold

    majiayu000/spellbook

    Scans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries.

    287 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Product Demo Builder

    majiayu000/spellbook

    Plans, produces or diagnoses evidence-backed product demo videos: script, capture plan, pacing checks and verified final media built on real product behavior.

    287 GitHub stars~3.3k tokensUpdated 3 days ago
    Auto-check passed
  • Flowguard Task Guard

    majiayu000/spellbook

    Single entry point that routes long or ambiguous agent tasks, checks live state, bounds autonomous loops and leaves a resumable handoff.

    287 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • npm Supply Chain Check

    majiayu000/spellbook

    Scans a repository, its lockfiles and node_modules for known malicious npm package versions and install-time indicators, using a read-only Python scanner.

    287 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Product Manager Toolkit

    majiayu000/spellbook

    Product management helpers: a RICE scoring script, an interview transcript analyzer and PRD templates for prioritizing features, synthesizing research and writing requirements.

    287 GitHub stars~2.2k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Playwright Automation

What does Playwright Automation do?

Browser automation and testing with Playwright. An agent skill from majiayu000/spellbook. Playwright Automation is an agent skill from majiayu000/spellbook. Browser automation and testing with Playwright.

When should I use Playwright Automation?

Playwright Automation fits situations like: testing web applications; automating browser tasks; taking screenshots; validating UI behavior.

How do I install Playwright Automation in Claude Code?

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

How do I install Playwright Automation in Codex?

Run `npx skills add majiayu000/spellbook --skill playwright-automation -a codex`. Or copy the skill folder (skills/playwright-automation in majiayu000/spellbook) into .agents/skills/playwright-automation in your project. Codex loads it when a task matches its description.

Can I use Playwright Automation 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 majiayu000/spellbook --skill playwright-automation -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-automation, .gemini/skills/playwright-automation, .github/skills/playwright-automation and .opencode/skills/playwright-automation in your project.

What does Playwright Automation need to run?

SKILL.md names no scripts, command-line tools or credentials: Playwright Automation is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Bash, Write, Edit.

Does Playwright Automation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Playwright Automation safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Playwright Automation use?

Playwright Automation 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 Automation use?

About 335 tokens (SKILL.md is roughly 1.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.9k tokens, read only when the agent opens those files.

What are the alternatives to Playwright Automation?

Skills that share tags, products or a category with Playwright Automation: playwright-cli Browser Automation (github/gh-aw, 5.4k stars), Playwright Skill (lackeyjb/playwright-skill, 3.2k stars), Tabbit (Tabbit-Browser/dsh-tabbit, 104 stars) and Agent (tinyfish-io/tinyfish-cookbook, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Playwright Automation?

majiayu000 (a GitHub user) maintains it in majiayu000/spellbook, which has 287 GitHub stars. The repository holds 97 skills in this directory. The repository was last updated on October 8, 2026.

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