page-objects

page-objects is a skill for Claude Code, Codex from idavidov13/agentic-playwright. It costs 56 tokens per session (733 once invoked), scanned A, original, MIT.

A set of rules for structuring Playwright page objects, which are classes that keep page locators and user actions together. It also covers reusable components, fixture registration, and exploring the application before writing code.

In plain words
What is it for?
Use it when creating or updating Playwright page objects, locators, component fields, or action and verification methods.
Why use it?
It removes uncertainty about how page objects should be written and keeps tests consistent and readable. It also requires validation and feedback locators to be handled in a defined way.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when creating or updating Playwright page objects, locators, component fields, or action and verification methods.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/idavidov13/agentic-playwright/page-objects"><img src="https://agentmods.dev/badge/skills/idavidov13/agentic-playwright/page-objects.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 733 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 205
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00056 $0.00733
Opus 5.5 $0.00022 $0.00293
Sonnet 5.5 $0.00011 $0.00147
Haiku 4.5 $0.00006 $0.00073

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

Security

Grade A, and why

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 27d 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/page-objects/SKILL.md · 46 lines

How it starts

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

Page Objects

Critical

  • Explore the live page with playwright-cli before writing any locator (selectors). If the app is unreachable, stop and say so; never ship placeholder locators.

  • Locators are get accessors returning Locator. The constructor is constructor(private readonly page: Page). Imports come from @playwright/test, never from fixtures/pom/test-options.ts.

  • JSDoc is Forbidden on locator getters and on any method returning a Locator. JSDoc with @param and @returns is required on every action and verification method.

    // CORRECT
    get submitButton(): Locator {
        return this.page.getByRole('button', { name: 'Submit' });
    }
    // WRONG
    /** The submit button. */
    get submitButton(): Locator {
        return this.page.getByRole('button', { name: 'Submit' });
    }
    
  • A page object for a form or CRUD screen has three groups: interactive locators, feedback locators (success, error, field validation), action methods. Feedback locators are not optional; selectors lists what to capture.

  • Strings inside getByText(...) come from enums/{area}/* (Messages.LOGIN_ERROR), never literals.

  • Action methods do not assert; a verification method named xxxAndVerify() may call expect. Waits are page.waitForResponse(...) or web-first assertions, never page.waitForTimeout(...).

  • A fragment shared by several pages (header, modal, sidebar) is a component in pages/components/, held as readonly nav: NavigationComponent and created in the constructor.

  • Every new page object is registered in fixtures/pom/page-object-fixture.ts; tests receive it from the fixture (fixtures).

Procedure

  1. Run ls pages/ to resolve {area}. File: pages/{area}/<name>.page.ts, or pages/components/<name>.component.ts for a fragment.
  2. Explore the page with playwright-cli per selectors; record each element's role, accessible name, label or test id, and the exact text of every feedback message.
  3. A message or route that has no enum member yet is added per enums before the class is written.
  4. Write the class from references/class-pattern.md: locators in priority order (selectors), feedback locators, action methods with explicit return types and JSDoc.
  5. A fragment used by more than one page becomes a component per references/components.md.
  6. Register: import the class, add it to FrameworkFixtures, add the fixture body, each shaped like the appPage entries in fixtures/pom/page-object-fixture.ts. No mergeTests change.
  7. Run npm run lint; write or update the spec per test-standards and run it.

Read the full file on GitHub · 46 lines

Files

What ships with it

2 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. 27d ago Changed · -247 lines · -73 tokens per session 95757f0d177c
  2. 3mo ago First seen · 293 lines · 129 tokens per session scan A 28e50e48881d

Subscribe to this mod's changes

page-objects is a skill published in the GitHub repository idavidov13/agentic-playwright (313 stars, last pushed 13d ago), licensed MIT. It adds 56 tokens to every session and 733 once invoked, about $0.0002 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

page-objects compared with skills from other repositories

page-objects next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
page-objectsidavidov13/agentic-playwrightSkill31313d agoMITA56Claude Code, Codex
vindicateOpenEvident/vindicateSkill452mo agoApache-2.0A77Claude Code, Codex
E2E Testing PatternsPramodDutta/qaskillsSkill25328d agoMITA35Claude Code, Codex
Laravel Dusk TestingPramodDutta/qaskillsSkill25328d agoMITA44Claude Code, Codex
JMeter Load TestingPramodDutta/qaskillsSkill25328d agoMITA32Claude Code, Codex
k6-load-testingtmolavi/mcp-agent-skills-hubSkill114d agoMITB35Claude Code, Codex
aif-testainative-build/skillsSkill101mo agoMITA28Claude Code