playwright-skill

A guide for automating and testing websites with Playwright, a tool that controls a real web browser through code.

In plain words
What is it for?
It is for browser-based tests, form automation, screenshots, responsive-layout checks, login or checkout testing, and finding broken links or page content.
Why use it?
It helps check whether pages and user flows work in practice across navigation, forms, logins, links, and different screen sizes.

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/luizedupp/rememb/playwright-skill
Any agent
npx skills add LuizEduPP/Rememb --skill playwright-skill
Clone the repo
git clone --depth 1 https://github.com/LuizEduPP/Rememb

Made for: Claude Code, Codex.

Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,012 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.00053 $0.01012
Opus 5 $0.00026 $0.00506
Sonnet 5 $0.00011 $0.00202
Haiku 4.5 $0.00005 $0.00101

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

Security

Grade A, and why

playwright-skill 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (lib/helpers.js, run.js), 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.

src/rememb_skills/playwright-skill/SKILL.md · 131 lines

How it starts

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

Playwright Browser Automation

Overview

Use this skill to write and run focused Playwright scripts for testing or automating websites. Keep the main flow independent of any specific host or launcher. Choose the execution surface that already exists in the current environment.

When to Use

Use this skill when the user wants to:

  • test a web page or flow in a real browser
  • take screenshots or verify responsive layouts
  • automate form filling or navigation
  • validate login, checkout, or dashboard behavior
  • inspect broken links or page content with scripted checks

Core Workflow

  1. Identify the target URL.
  2. If the target is local, check whether a development server is already running.
  3. Write a temporary Playwright script outside the repository or in another disposable location.
  4. Parameterize the target URL and any secrets instead of hardcoding them.
  5. Run the script using the available Playwright runtime in the current environment.
  6. Collect artifacts such as screenshots, logs, and assertion results.
  7. Clean up temporary files when they are no longer needed.

Use a visible browser by default unless the user explicitly asks for headless execution.

Inputs / Assumptions

  • A reachable URL is required before the script runs.
  • Localhost testing should confirm the correct port first.
  • Credentials and secrets should come from environment variables or explicit user input, never from hardcoded literals.
  • Temporary scripts should not clutter the project unless the user asks to keep them.

Examples

Basic page check

const { chromium } = require('playwright');

const TARGET_URL = process.env.TARGET_URL ?? 'http://localhost:3000';

(async () => {
  const browser = await chromium.launch({ headless: false });
  const page = await browser.newPage();

  await page.goto(TARGET_URL, { waitUntil: 'domcontentloaded' });
  console.log('Title:', await page.title());
  await page.screenshot({ path: '/tmp/page-check.png', fullPage: true });

  await browser.close();
})();

Read the full file on GitHub · 131 lines

Files

What ships with it

4 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. 2d ago First seen · 131 lines · 53 tokens per session scan A 98bdd5b80d2b

Subscribe to this mod's changes

playwright-skill is a skill published in the GitHub repository LuizEduPP/Rememb (4 stars, last pushed 1mo ago), licensed MIT. It adds 53 tokens to every session and 1,012 once invoked, about $0.0003 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

ebay-sold-listings-search

All process output to user (progress updates, process notifications) follows the user's language.

browser-act/skills · 221 tokens

1688-product-detail

Extracts comprehensive wholesale product data from 1688.com product detail pages: title, tiered pricing, SKU variants with dimensions/weight, product images, seller info, shop scores, buyer protection, cross-border flags, product attributes, coupon/promotion data, and review stats. Use when user mentions 1688…

browser-act/skills · 212 tokens

amazon-bestseller-listing

Amazon Best Sellers listing scraper: extract product cards from any Amazon Best Sellers (zgbs) or /gp/bestsellers/ category page — returns rank (position on chart), asin, title, url, image, imageAlt, price, stars, reviewCount, ratingRaw per item, plus category metadata (categoryName, categoryFullName, categoryUrl) and…

browser-act/skills · 300 tokens

amazon-search-listing

Amazon search and category listing scraper: extract product listings from any Amazon search results page, keyword search URL, or category browse page and return per-item cards (asin, title, url, image, price, listPrice, stars, reviewCount, badges, isAmazonChoice, isBestSeller, isSponsored, delivery, boughtInPast…

browser-act/skills · 341 tokens

etsy-product-detail

Etsy product detail scraper: given an Etsy listing URL, returns full product detail including listingId, title, priceCurrent, priceOriginal, currency, images (all), description, shopName, shopUrl, rating, reviewCount, favorites, inCartCount, variations (with per-option price ranges), highlights, listedDate…

browser-act/skills · 187 tokens

walmart-product-detail

Walmart product detail page extractor: given a walmart.com product URL (walmart.com/ip/...), extract full product data including itemId, title, brand, model, UPC, price, wasPrice, currency, availability, category path, seller info, all images, shortDescription, longDescription, product highlights, full specifications…

browser-act/skills · 252 tokens