playwright-recording-processor

playwright-recording-processor is a skill for Claude Code from Jeffallan/claude-skills. It costs 94 tokens per session (1,680 once invoked), scanned A, original, MIT.

A Playwright test-cleanup workflow that turns browser recordings from Playwright Codegen into maintainable end-to-end tests. It trims unwanted steps, identifies the flow, replaces fixtures and selectors, and adds checks.

In plain words
What is it for?
Use it to process recorded browser sessions, keep steps after a marker URL, distinguish normal feature tests from bug reproductions, and add suitable assertions and diagnostic screenshots.
Why use it?
Raw recordings often include setup actions, fragile selectors, and no checks that the expected result occurred. This prepares them for use as real tests.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fullstack-dev-skills plugin — 72 skills, 2 commands, 8 agents, 4 hooks shipped together

Good fit Use it to process recorded browser sessions, keep steps after a marker URL, distinguish normal feature tests from bug reproductions, and add suitable assertions and diagnostic screenshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jeffallan/claude-skills/playwright-recording-processor
About the project

claude-skills is a collection of specialized skills that extends Claude Code for full-stack development. Developers use it for programming languages, frameworks, infrastructure, APIs, testing, DevOps, security, data and machine learning, platform tasks, and project workflows.

Jeffallan/claude-skills · 12,592 stars · on GitHub

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 Jeffallan/claude-skills --skill playwright-recording-processor
Clone the repo
git clone --depth 1 https://github.com/Jeffallan/claude-skills

Made for: Claude Code.

Or install fullstack-dev-skills, the plugin that ships this one along with the rest of its 72 skills, 2 commands, 8 agents, 4 hooks.

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-recording-processor

README.md
[![agentmods](https://agentmods.dev/badge/skills/jeffallan/claude-skills/playwright-recording-processor/github.svg)](https://agentmods.dev/skills/jeffallan/claude-skills/playwright-recording-processor)
Your own site
<a href="https://agentmods.dev/skills/jeffallan/claude-skills/playwright-recording-processor"><img src="https://agentmods.dev/badge/skills/jeffallan/claude-skills/playwright-recording-processor/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 playwright-recording-processor

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeffallan/claude-skills/playwright-recording-processor"><img src="https://agentmods.dev/badge/skills/jeffallan/claude-skills/playwright-recording-processor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,680 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.00094 $0.01680
Opus 5.5 $0.00038 $0.00672
Sonnet 5.5 $0.00019 $0.00336
Haiku 4.5 $0.00009 $0.00168

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

Security

Grade A, and why

playwright-recording-processor 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.

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.

plugin/skills/playwright-recording-processor/SKILL.md · 133 lines

How it starts

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

Playwright Recording Processor

Recording processing specialist that converts raw Playwright codegen output into structured, maintainable E2E tests.

Core Workflow

  1. Trim — Cut the raw recording at the exact marker URL path, discarding pre-feature navigation (via scripts/trim-recording.ts saved from references/trim-recording.md or manual inline steps)
  2. Classify — Determine flow type: happy path (feature coverage) or bug reproduction (diagnostic capture)
  3. Swap fixtures — Replace raw page references with custom fixtures (e.g. authenticatedPage from e2e/fixtures.ts); update imports to load test from the project's fixture file
  4. Harden — Replace brittle selectors with role-based locators (cross-ref playwright-expert)
  5. Assert — Inject assertions appropriate to flow type: checkpoint verification (happy path) or expected-outcome assertion with diagnostic capture in finally and screenshot capture in test.afterEach (bug repro)

Quick-Start Example

Transform raw recorded actions into an assertion-rich test using the auth fixture (assumes baseURL in playwright.config.ts):

// ❌ Raw recording (untrimmed with manual auth, hardcoded URL, no assertions)
// await page.goto('https://app.example.com/login');
// await page.getByLabel('Email').fill('[email protected]');
// await page.getByRole('button', { name: 'Sign in' }).click();
// await page.goto('https://app.example.com/invoices/export');
// await page.getByRole('button', { name: 'Download' }).click();

// ✅ Processed test (trimmed to marker URL, custom fixture, assertions added)
import { test, expect } from './fixtures';

// Source recording: recordings/raw-session-20240315.spec.ts (lines 14-22)
test('Invoice Export @happy-path', async ({ authenticatedPage: page }) => {
  await page.goto('/invoices/export');
  await expect(page.getByRole('heading', { name: 'Export' })).toBeVisible();
  const downloadPromise = page.waitForEvent('download');
  await page.getByRole('button', { name: 'Download' }).click();
  const download = await downloadPromise;
  expect(download.suggestedFilename()).toMatch(/\.csv$/);
});

Read the full file on GitHub · 133 lines

Files

What ships with it

3 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 · 133 lines · 94 tokens per session scan A 980c906e2bf9

Subscribe to this mod's changes

playwright-recording-processor is a skill published in the GitHub repository Jeffallan/claude-skills (12,592 stars, last pushed 2d ago), licensed MIT. It adds 94 tokens to every session and 1,680 once invoked, about $0.0004 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-12-01.

Related

playwright-recording-processor compared with skills from other repositories

playwright-recording-processor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwright-recording-processorJeffallan/claude-skillsSkill13k2d agoMITA94Claude Code
dotnet-test-apilandim32/awesome-ai-skillsSkill15d agoMITA126Claude Code
design-postgis-tablestimescale/pg-aiguideSkill1.9kyesterdayApache-2.0A31Cursor
timescaledb-hyperfunctionstimescale/pg-aiguideSkill1.9kyesterdayApache-2.0A298Cursor
pgvector-semantic-searchtimescale/pg-aiguideSkill1.9kyesterdayApache-2.0A190Cursor
postgres-hybrid-text-searchtimescale/pg-aiguideSkill1.9kyesterdayApache-2.0A162Cursor
find-hypertable-candidatestimescale/pg-aiguideSkill1.9kyesterdayApache-2.0A184Cursor