playwright-test-bootstrap

playwright-test-bootstrap is a skill for Claude Code, Codex from oumaimah-QA/QIOS. It costs 146 tokens per session (791 once invoked), scanned A, original, MIT.

A setup and code-generation guide for Playwright, a tool that automates browsers to test web applications.

In plain words
What is it for?
Start a new Playwright end-to-end testing project, or add organized tests for features, user stories, and API-backed web flows to an existing suite.
Why use it?
It avoids manually creating the project files, test structure, login setup, and shared helpers needed for browser tests.

Skill for Claude CodeCodex

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

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/oumaimah-qa/qios/playwright-test-bootstrap
Any agent
npx skills add oumaimah-QA/QIOS --skill playwright-test-bootstrap
Clone the repo
git clone --depth 1 https://github.com/oumaimah-QA/QIOS

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 playwright-test-bootstrap

README.md
[![agentmods](https://agentmods.dev/badge/skills/oumaimah-qa/qios/playwright-test-bootstrap.svg)](https://agentmods.dev/skills/oumaimah-qa/qios/playwright-test-bootstrap)
Your own site
<a href="https://agentmods.dev/skills/oumaimah-qa/qios/playwright-test-bootstrap"><img src="https://agentmods.dev/badge/skills/oumaimah-qa/qios/playwright-test-bootstrap.svg" alt="Measured on agentmods" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 791 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.1 $0.00146 $0.00791
Opus 5 $0.00073 $0.00396
Sonnet 5 $0.00029 $0.00158
Haiku 4.5 $0.00015 $0.00079

Measured 6d ago against content hash 9e9cd74371c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

playwright-test-bootstrap 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 6d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (examples/auth.setup.ts, examples/playwright.config.ts, examples/transfer.spec.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-test-bootstrap/SKILL.md · 100 lines

How it starts

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

Playwright Test Bootstrap

Purpose

Scaffold a production-ready Playwright project or generate structured test files following best practices — organized for maintainability, reliability, and QA team reuse.


Input Accepted

  • Request to init a new Playwright project from scratch
  • Feature name or module to add tests for
  • User Story or Gherkin scenarios to automate
  • API endpoint to validate through UI + API setup
  • Existing Playwright suite to extend

Project Structure (Full Bootstrap)

[project-name]/
├── playwright.config.ts
├── package.json
├── tsconfig.json
├── .env.example
├── .gitignore
├── tests/
│   ├── auth.setup.ts              ← API login + storage state setup
│   └── [module]/
│       └── [feature].spec.ts
├── pages/
│   └── [FeatureName]Page.ts       ← Page Object Model
└── utils/
    └── api-client.ts              ← API helper functions

Generation Process

Full Project Bootstrap — generates:

  1. playwright.config.ts — config with projects, artifacts, retries, base URL
  2. package.json — dependencies and run scripts
  3. tsconfig.json — TypeScript configuration
  4. .env.example — environment variable template
  5. .gitignore — excludes artifacts, credentials, node_modules
  6. tests/auth.setup.ts — API login + storage state bootstrap
  7. utils/api-client.ts — reusable API helper functions
  8. pages/TransferPage.ts — sample page object
  9. Sample transfer spec ready to adapt to the target feature

Single Spec File — generates:

  • test.describe() block for the feature
  • beforeEach with navigation and stable setup
  • test() blocks for Happy Path / Negative / Boundary cases
  • Assertions with await expect(...) — never waitForTimeout()
  • Stable locators with getByTestId() when available

Key Conventions

✅ For authenticated features, create auth state via API in setup — not via UI in every test
✅ Use getByTestId() or equally stable locators
✅ Use await expect(...) for web-first assertions
✅ Use test.describe() and test.step() for readable structure
✅ Avoid waitForTimeout() and brittle sleeps
✅ Keep each test independent and cleanup-friendly
✅ Store credentials and URLs in environment variables only

Read the full file on GitHub · 100 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 100 lines · 146 tokens per session scan A 9e9cd74371c8

Subscribe to this mod's changes

playwright-test-bootstrap is a skill published in the GitHub repository oumaimah-QA/QIOS (3 stars, last pushed 1mo ago), licensed MIT. It adds 146 tokens to every session and 791 once invoked, about $0.0007 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-31.

Related

Other skills, from other repositories

Console Error Hunter

Systematically detect, capture, and categorize browser console errors, warnings, and unhandled exceptions during automated test execution.

PramodDutta/qaskills · 26 tokens

playwright-e2e

Comprehensive end-to-end testing skill using Playwright for web applications, covering page objects, selectors, assertions, waits, fixtures, and test organization.

PramodDutta/qaskills · 36 tokens

JMeter Load Testing

Load and performance testing skill using Apache JMeter, covering test plans, thread groups, assertions, listeners, timers, and distributed testing.

PramodDutta/qaskills · 32 tokens

e2e-testing-claude-code

Make Claude Code write and maintain end-to-end tests like a senior SDET — Playwright and Cypress flows with stable locators, the Page Object Model, fixtures, reused auth state, network mocking, and flake-free CI. Claude Code E2E testing, done right.

PramodDutta/qaskills · 65 tokens

selectors

Selector strategy, exploration-first workflow, locator priority order (getByRole then getByLabel then getByPlaceholder then getByText then getByTestId), and feedback/validation-message selector rules for Playwright page objects. Use when creating page objects, writing or updating locators, generating UI tests, or…

idavidov13/agentic-playwright · 136 tokens

Browser Agent QA Testing

Teach agents to use AI browser agents for exploratory and smoke QA with step budgets, evidence-based assertions, guardrails, and Playwright conversion.

PramodDutta/qaskills · 33 tokens