init-playwright

init-playwright is a skill for Claude Code, Codex from X-School-Academy/skill-pilot. It costs 19 tokens per session (1,452 once invoked), scanned A, original, MIT.

A setup and verification procedure for browser automation with Playwright, Chrome, and a browser connection extension. It checks that the required pieces are installed and working together.

In plain words
What is it for?
Use it before running Playwright browser automation to check the command-line tool, Chrome, and the extension bridge.
Why use it?
It prevents browser tasks from starting with a missing program, browser, or connection, and reports any issue that blocks the work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before running Playwright browser automation to check the command-line tool, Chrome, and the extension bridge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/x-school-academy/skill-pilot/init-playwright
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 X-School-Academy/skill-pilot --skill init-playwright
Clone the repo
git clone --depth 1 https://github.com/X-School-Academy/skill-pilot

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/x-school-academy/skill-pilot/init-playwright/github.svg)](https://agentmods.dev/skills/x-school-academy/skill-pilot/init-playwright)
Your own site
<a href="https://agentmods.dev/skills/x-school-academy/skill-pilot/init-playwright"><img src="https://agentmods.dev/badge/skills/x-school-academy/skill-pilot/init-playwright/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 init-playwright

Your own site · 80×15
<a href="https://agentmods.dev/skills/x-school-academy/skill-pilot/init-playwright"><img src="https://agentmods.dev/badge/skills/x-school-academy/skill-pilot/init-playwright.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,452 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.
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.00019 $0.01452
Opus 5.5 $0.00008 $0.00581
Sonnet 5.5 $0.00004 $0.00290
Haiku 4.5 $0.00002 $0.00145

Measured 2mo ago against content hash 7ed4a3c4bbc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

init-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 2mo 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.

core/skills/alternatives/init-playwright/SKILL.md · 178 lines

How it starts

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

Init Playwright CLI

Verify that playwright-cli, Chrome, and the Playwright MCP Bridge extension are ready before any browser automation is attempted.

When to Use This Skill

  • Any task that requires browser automation via playwright-cli
  • playwright-cli may not be installed or Chrome may be missing
  • The MCP Bridge extension may not be active

Your Roles in This Skill

  • SysOps Engineer: Install and validate playwright-cli and Chrome
  • QA Engineer: Confirm the browser extension bridge is active end-to-end

Role Communication

As an expert in your assigned roles, you must announce your actions before performing them using the following format:

As a {Role, and Role-XYZ if you have more roles}, I will {action description}

Other Agent Skills Required

  • keys-safe-guard
  • playwright-cli

Workflow Usage Requirement

When this skill is used in a workflow agent node:

  • Output result as plain text. If the user asked to save it to a file, write it there.
  • Include concise context in the output (what was checked, what is ready, and any blocking issue) so downstream agents can safely continue.

Instructions

Step 1: Check if playwright-cli is installed

playwright-cli --version

If the command is not found:

pnpm install -g @playwright/cli@latest
playwright-cli --version

Step 2: Test browser + extension bridge

playwright-cli open --extension --headed

Treat this as an initialization flow, not a blocking foreground command:

  • Start it in a background process.
  • Do not wait for the command to sit there until timeout.
  • This init command is only for extension setup. Once setup is complete, normal browser automation should use direct commands such as playwright-cli open --extension --headed.

Interpret the result as follows:

  • If it returns quickly with Browser \default` opened with pid ...`, the browser bridge is ready.
  • If it returns within about 10 seconds with Extension connection timeout. Make sure the "Playwright MCP Bridge" extension is installed., go to Step 3 and instruct the user to install the Chrome extension.
  • If it stays open for more than about 10 seconds with no return, assume the browser is waiting for permission and is showing the extension token page. Go to Step 3 and instruct the user to copy-paste the PLAYWRIGHT_MCP_EXTENSION_TOKEN value.
  • If you get an error that Chrome is not installed, then go to Step 3 to install Google Chrome.

Read the full file on GitHub · 178 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. 2mo ago First seen · 178 lines · 19 tokens per session scan A 7ed4a3c4bbc3

Subscribe to this mod's changes

init-playwright is a skill published in the GitHub repository X-School-Academy/skill-pilot (20 stars, last pushed 5mo ago), licensed MIT. It adds 19 tokens to every session and 1,452 once invoked, about $0.0001 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-10-02.

Related

init-playwright compared with skills from other repositories

init-playwright next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
init-playwrightX-School-Academy/skill-pilotSkill205mo agoMITA19Claude Code, Codex
gold-triagechromium/chromiumSkill26ktodayBSD-3-ClauseA104Claude Code, Codex
android-multiprofilechromium/chromiumSkill26ktodayBSD-3-ClauseA73Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k11d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.3kyesterdayMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.4ktodayMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.9ktodayMITA56Claude Code, Codex