playwright-page-objects

playwright-page-objects is a skill for Claude Code from bartstc/vite-ts-react-template. It costs 30 tokens per session (869 once invoked), scanned A, original, MIT.

A set of patterns for organising Playwright end-to-end tests, which check a complete user journey in a browser, with reusable page and component helpers.

In plain words
What is it for?
Use it when creating or refactoring Playwright page objects, test fixtures, workflow-specific pages, or reusable component test helpers.
Why use it?
It keeps repeated selectors and page actions in one place, so UI changes require fewer test edits and tests stay easier to understand.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when creating or refactoring Playwright page objects, test fixtures, workflow-specific pages, or reusable component test helpers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bartstc/vite-ts-react-template/playwright-page-objects
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 bartstc/vite-ts-react-template --skill playwright-page-objects
Clone the repo
git clone --depth 1 https://github.com/bartstc/vite-ts-react-template

Made for: Claude Code.

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-page-objects

README.md
[![agentmods](https://agentmods.dev/badge/skills/bartstc/vite-ts-react-template/playwright-page-objects/github.svg)](https://agentmods.dev/skills/bartstc/vite-ts-react-template/playwright-page-objects)
Your own site
<a href="https://agentmods.dev/skills/bartstc/vite-ts-react-template/playwright-page-objects"><img src="https://agentmods.dev/badge/skills/bartstc/vite-ts-react-template/playwright-page-objects/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-page-objects

Your own site · 80×15
<a href="https://agentmods.dev/skills/bartstc/vite-ts-react-template/playwright-page-objects"><img src="https://agentmods.dev/badge/skills/bartstc/vite-ts-react-template/playwright-page-objects.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 869 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00030 $0.00869
Opus 5.5 $0.00012 $0.00348
Sonnet 5.5 $0.00006 $0.00174
Haiku 4.5 $0.00003 $0.00087

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

Security

Grade A, and why

playwright-page-objects 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 1mo 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.

.agents/skills/playwright-page-objects/SKILL.md · 74 lines

How it starts

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

Playwright Page Objects

Modern POM architecture using Playwright's fixtures pattern, composition over inheritance, and role-based locators.

When to Apply

  • Setting up E2E test architecture from scratch
  • Creating new page objects or component helpers
  • Implementing test fixtures for dependency injection
  • Refactoring existing page objects for maintainability
  • Writing reusable component-level test abstractions

Core Principles

  1. Fixtures over PageManager — On-demand instantiation, automatic setup/teardown, native TypeScript inference
  2. Composition over inheritance — Compose from focused components, avoid deep class hierarchies
  3. Role-based selectors first — getByRole() > getByLabel() > getByText() > getByTestId()
  4. Tests own assertions — Page objects expose state via getters, tests make assertions
  5. Separate pages by workflow — ProductListPage ≠ ProductDetailsPage (different user interactions)
  6. Readonly locators — All page object locator properties should be readonly
  7. Fluent interfaces — Methods return this for chaining; navigation methods return target page object
  8. Private internals — Mark implementation details (spinners, retry logic, helpers) as private
  9. Wait for stability — Use waitForPageLoad(), waitForResponse() before assertions
  10. High-level actions — Create AppActions class for complex multi-page user flows

Quick Reference

Pattern When to Use Reference
Fixtures Always for page object instantiation fixtures-pattern.md
Basic POM All page objects core-patterns.md
Composition Shared UI elements (header, cards, modals) core-patterns.md
Waiting strategies Loading states, API responses core-patterns.md
High-level actions Multi-page flows (checkout, onboarding) core-patterns.md
Form handling Multi-step forms, validation form-handling.md

Read the full file on GitHub · 74 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. 1mo ago First seen · 74 lines · 30 tokens per session scan A 2888fa67b552

Subscribe to this mod's changes

playwright-page-objects is a skill published in the GitHub repository bartstc/vite-ts-react-template (122 stars, last pushed 9d ago), licensed MIT. It adds 30 tokens to every session and 869 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-08-30.

Related

Other skills, from other repositories

webapp-testing

Web application testing principles. E2E, Playwright, deep audit strategies.

DDS-Solutions/AI-TadPole-OS · 20 tokens

next-cache-components-optimizer

Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route and entry point at a time; the shipped test then guards…

vercel/next.js · 123 tokens

next-partial-prefetching-optimizer

Optimize what selected Next.js client navigations include before the click under Partial Prefetching. Use after Cache Components and Partial Prefetching are adopted when the user wants selected URL-specific UI to be instant, wants reusable content to wait for navigation, or needs to choose between default, viewport…

vercel/next.js · 82 tokens

ux-acceptance-coordinator

Coordinate black-box, agent-driven UX acceptance journeys against a disposable EmDash admin site. Use when preparing, dispatching, verifying, or reporting a manual browser journey performed by a separate tester agent. Do not use for deterministic Playwright tests or ordinary code review.

emdash-cms/emdash · 59 tokens

ux-acceptance-tester

Perform a goal-driven, black-box UX acceptance journey in a browser and report the path, friction, and observable outcome. Use only in an isolated tester context with a supplied start URL and brief.

emdash-cms/emdash · 46 tokens

verify

Build/launch/drive recipe for verifying apps/docs changes at runtime (demos, docs pages, llms.txt).

meursyphus/ssgoi · 26 tokens