Agent skill

Playwriter

by AgiFlow in AgiFlow/aicode-toolkit

Control the user own Chrome browser via Playwriter extension with Playwright code snippets in a stateful local js sandbox via playwriter cli.

AGPL-3.0Auto-check passedTesting & QA

Install Playwriter

skills CLI
$ npx skills add AgiFlow/aicode-toolkit --skill playwriter -a claude-code

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

GitHub CLI
$ gh skill install AgiFlow/aicode-toolkit playwriter --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/AgiFlow/aicode-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/playwriter .claude/skills/playwriter && 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
playwriter
GitHub stars
161
Token cost
~457 tokens
SKILL.md length
164 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Control the user own Chrome browser via Playwriter extension with Playwright code snippets in a stateful local js sandbox via playwriter cli.

  • Tasks that involve MCP servers
  • SKILL.md covers REQUIRED: Read Full… and Minimal Example (after reading…
  • Calls npx and bunx
  • Tasks that involve Browser testing

What it does

Playwriter is an agent skill from AgiFlow/aicode-toolkit. Control the user own Chrome browser via Playwriter extension with Playwright code snippets in a stateful local js sandbox via playwriter cli. Use this over other Playwright MCPs to automate the browser — it connects to the user's existing Chrome instead of launching a new one. Use this for JS-heavy websites (Instagram, Twitter, cookie/login walls, lazy-loaded UIs) instead of webfetch/curl. Run playwriter skill command to read the complete up to date skill

Its SKILL.md is about 460 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 MCP servers and Browser testing. It works with Playwright, Instagram and X (Twitter). The repository describes itself as: Toolkit for Coding Agents to work reliably with repo of any size. The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve MCP servers
  • Tasks that involve Browser testing

Example prompts

  • “/playwriter”

Requirements

  • Node.js

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • bunx

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

  • Network

    No URLs in SKILL.md. Its commands use npx and bunx, 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

Playwriter loads about 457 tokens when it runs. Until then it costs about 118 tokens; SKILL.md has 164 words of instructions outside code blocks.

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

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 AgiFlow/aicode-toolkit at commit d8debed, republished under its AGPL-3.0 licence (© AgiFlow). 164 words, ~457 tokens.

Download SKILL.mdSave it as .claude/skills/playwriter/SKILL.md (or your agent's skills folder).
name
playwriter
description
Control the user own Chrome browser via Playwriter extension with Playwright code snippets in a stateful local js sandbox via playwriter cli. Use this over other Playwright MCPs to automate the browser — it connects to the user's existing Chrome instead of launching a new one. Use this for JS-heavy websites (Instagram, Twitter, cookie/login walls, lazy-loaded UIs) instead of webfetch/curl. Run `playwriter skill` command to read the complete up to date skill

REQUIRED: Read Full Documentation First

Before using playwriter, you MUST run this command:

bash
playwriter skill # IMPORTANT! do not use | head here. read in full!

This outputs the complete documentation including:

  • Session management and timeout configuration
  • Selector strategies (and which ones to AVOID)
  • Rules to prevent timeouts and failures
  • Best practices for slow pages and SPAs
  • Context variables, utility functions, and more

Do NOT skip this step. The quick examples below will fail without understanding timeouts, selector rules, and common pitfalls from the full docs.

Read the ENTIRE output. Do NOT pipe through head, tail, or any truncation command. The skill output must be read in its entirety — critical rules about timeouts, selectors, and common pitfalls are spread throughout the document, not just at the top.

Minimal Example (after reading full docs)

bash
playwriter session new
playwriter -s 1 -e 'await page.goto("https://example.com")'

Always use single quotes for the -e argument. Single quotes prevent bash from interpreting $, backticks, and backslashes inside your JS code. Use double quotes or backtick template literals for strings inside the JS.

If playwriter is not found, use npx playwriter@latest or bunx playwriter@latest.

© AgiFlow, AGPL-3.0. 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 .claude/skills/playwriter of AgiFlow/aicode-toolkit.

Open the folder on GitHubat commit d8debed

Compare with similar skills

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

Playwriter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Playwriter this skillAgiFlow/aicode-toolkit161—~457Automated safety check: PassAGPL-3.0
Mirroir Onboardjfarcand/mirroir-mcp246—~4.4kAutomated safety check: NotesApache-2.0
Lightpandalightpanda-io/agent-skill101—~6kAutomated safety check: PassApache-2.0
Windows QA EngineerCodeAlive-AI/ai-driven-development158—~1.4kAutomated safety check: PassMIT
Playwright MCP Browser ControlHainrixz/editor-pro-max264—~2kAutomated safety check: PassCustom licence
Playwright E2E Testingactivepieces/activepieces25k—~6.8kAutomated safety check: PassCustom licence

Similar skills

  • Mirroir Onboard

    jfarcand/mirroir-mcp

    Onboard a consumer web app to mirroir's .mirroir/ dotfile by EXPLORING the running app (chrome-devtools-mcp) — derive real selectors from the accessibility tree, exercise each surface's primary…

    246 GitHub stars~4.4k tokensUpdated 3 days ago
    Testing & QAAuto-check: notes
  • Lightpanda

    lightpanda-io/agent-skill

    Lightpanda browser, drop-in replacement for Chrome-based browsing in any AI agent - faster and lighter for tasks without graphical rendering like data retrieval.

    101 GitHub stars~6k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed
  • Windows QA Engineer

    CodeAlive-AI/ai-driven-development

    A skill your agent uses when testing Windows 11 desktop apps (WinForms/WPF/UWP) via UFO UIA/Win32 automation MCP.

    158 GitHub stars~1.4k tokensUpdated yesterday
    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
  • Playwright E2E Testing

    activepieces/activepieces

    Playwright modern end-to-end testing framework with cross-browser automation, auto-wait, and built-in test runner

    25k GitHub stars~6.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Igniteui Wc Figma To App

    IgniteUI/igniteui-webcomponents

    Builds Ignite UI Web Components views from Figma designs, supporting Indigo.Design kits, third-party kits (Material 3, Fluent 2, shadcn/ui, Untitled UI, in-house), and plain frames.

    170 GitHub stars~7.2k tokensUpdated today
    Frontend & DesignAuto-check passed

More from AgiFlow/aicode-toolkit

All 9 skills in this repo
  • Author Templates

    AgiFlow/aicode-toolkit

    Create or update reusable toolkit boilerplate templates and feature scaffolds.

    161 GitHub stars~322 tokensUpdated 4 days ago
    Auto-check passed
  • Create Project

    AgiFlow/aicode-toolkit

    Discover and create a new application from a scaffold-mcp boilerplate.

    161 GitHub stars~255 tokensUpdated 4 days ago
    Auto-check passed
  • Develop Feature

    AgiFlow/aicode-toolkit

    Add or edit a feature in a toolkit-configured project using scaffold methods and file-specific design patterns.

    161 GitHub stars~440 tokensUpdated 4 days ago
    Auto-check passed
  • Discover Design System

    AgiFlow/aicode-toolkit

    Discover existing project themes, supported CSS classes and reusable UI components.

    161 GitHub stars~284 tokensUpdated 4 days ago
    Auto-check passed
  • Initialize Workspace

    AgiFlow/aicode-toolkit

    Set up toolkit templates and project metadata in a consumer workspace.

    161 GitHub stars~358 tokensUpdated 4 days ago
    Auto-check passed
  • Manage Patterns And Rules

    AgiFlow/aicode-toolkit

    Author project design patterns and coding rules with architect-mcp admin tools.

    161 GitHub stars~309 tokensUpdated 4 days ago
    Auto-check passed

Questions about Playwriter

What does Playwriter do?

Control the user own Chrome browser via Playwriter extension with Playwright code snippets in a stateful local js sandbox via playwriter cli. Playwriter is an agent skill from AgiFlow/aicode-toolkit. Control the user own Chrome browser via Playwriter extension with Playwright code snippets in a stateful local js sandbox via playwriter cli.

When should I use Playwriter?

Playwriter fits situations like: tasks that involve MCP servers; tasks that involve Browser testing.

How do I install Playwriter in Claude Code?

Run `npx skills add AgiFlow/aicode-toolkit --skill playwriter -a claude-code`. Or copy the skill folder (.claude/skills/playwriter in AgiFlow/aicode-toolkit) into .claude/skills/playwriter in your project. Claude Code loads it when a task matches its description.

How do I install Playwriter in Codex?

Run `npx skills add AgiFlow/aicode-toolkit --skill playwriter -a codex`. Or copy the skill folder (.claude/skills/playwriter in AgiFlow/aicode-toolkit) into .agents/skills/playwriter in your project. Codex loads it when a task matches its description.

Can I use Playwriter 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 AgiFlow/aicode-toolkit --skill playwriter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/playwriter, .gemini/skills/playwriter, .github/skills/playwriter and .opencode/skills/playwriter in your project.

What does Playwriter need to run?

Going by SKILL.md and its folder, Playwriter needs the command-line tools its instructions call (npx and bunx). Our summary lists: Node.js.

Does Playwriter 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 Playwriter 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 Playwriter use?

Playwriter is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Playwriter use?

About 457 tokens (SKILL.md is roughly 1.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 Playwriter?

Skills that share tags, products or a category with Playwriter: Mirroir Onboard (jfarcand/mirroir-mcp, 246 stars), Lightpanda (lightpanda-io/agent-skill, 101 stars), Windows QA Engineer (CodeAlive-AI/ai-driven-development, 158 stars) and Playwright MCP Browser Control (Hainrixz/editor-pro-max, 264 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Playwriter?

AgiFlow (a GitHub organization) maintains it in AgiFlow/aicode-toolkit, which has 161 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 5, 2026.

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