oh-my-codex: Skill for Codex

.codex/skills/playwright/SKILL.md

playwright is a skill for Codex from junghwaYang/oh-my-codex. It costs 0 tokens per session (968 once invoked), scanned A, original, MIT.

A browser automation and end-to-end testing toolkit built around Playwright. End-to-end tests check a feature through the application as a user would use it.

In plain words
What is it for?
Use it for browser scripts, web scraping, visual checks, cross-browser testing, and tests involving actions such as filling forms and clicking buttons.
Why use it?
It helps test real browser interactions and verify that complete user flows work across browsers.

Skill for Codex

Written for Codex: installed under .codex/.

This is junghwaYang/oh-my-codex's own configuration. It tells Codex how to work on oh-my-codex itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything oh-my-codex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to junghwaYang/oh-my-codex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/junghwaYang/oh-my-codex/main/.codex/skills/playwright/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/junghwaYang/oh-my-codex

Made for: 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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/junghwayang/oh-my-codex/playwright"><img src="https://agentmods.dev/badge/skills/junghwayang/oh-my-codex/playwright.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 968 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.00000 $0.00968
Opus 5.5 $0.00000 $0.00387
Sonnet 5.5 $0.00000 $0.00194
Haiku 4.5 $0.00000 $0.00097

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

Security

Grade A, and why

playwright 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 2mo 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.

.codex/skills/playwright/SKILL.md · 192 lines

How it starts

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

Playwright Skill

Browser automation and E2E testing with Playwright.

When to Use

  • Writing E2E tests
  • Browser automation scripts
  • Web scraping
  • Visual regression testing
  • Cross-browser testing

When NOT to Use

  • Unit tests (use Jest/Vitest)
  • API-only tests (use direct HTTP)
  • Simple DOM testing (use Testing Library)

Setup

# Install
npm init playwright@latest

# Or add to existing project
npm install -D @playwright/test
npx playwright install

Test Structure

import { test, expect } from '@playwright/test';

test.describe('Feature Name', () => {
  test.beforeEach(async ({ page }) => {
    await page.goto('/');
  });

  test('should do something', async ({ page }) => {
    // Arrange
    await page.fill('[data-testid="email"]', '[email protected]');
    
    // Act
    await page.click('button[type="submit"]');
    
    // Assert
    await expect(page.locator('.success')).toBeVisible();
  });
});

Common Patterns

Locators (Preferred Order)

// 1. Role (best for accessibility)
page.getByRole('button', { name: 'Submit' })

// 2. Test ID (explicit)
page.getByTestId('submit-button')

// 3. Text
page.getByText('Submit')

// 4. Label
page.getByLabel('Email')

// 5. CSS (last resort)
page.locator('.submit-btn')

Waiting

// Auto-wait (built-in)
await page.click('button'); // waits for button to be actionable

// Explicit wait
await page.waitForSelector('.loaded');
await page.waitForLoadState('networkidle');
await page.waitForResponse(resp => resp.url().includes('/api/data'));

// Wait for condition
await expect(page.locator('.item')).toHaveCount(5);

Forms

// Fill form
await page.fill('#email', '[email protected]');
await page.fill('#password', 'secret');

// Select dropdown
await page.selectOption('#country', 'US');

// Checkbox/Radio
await page.check('#agree');
await page.uncheck('#newsletter');

// File upload
await page.setInputFiles('#avatar', 'path/to/file.png');

Read the full file on GitHub · 192 lines

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. 2mo ago First seen · 192 lines · 0 tokens per session scan A ece0b1217bdf

Subscribe to this mod's changes

playwright is a skill published in the GitHub repository junghwaYang/oh-my-codex (5 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 968 tokens. 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

playwright compared with skills from other repositories

playwright next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwrightjunghwaYang/oh-my-codexSkill58mo agoMITA0Codex
browsegarrytan/gstackSkill141ktodayMITB32Claude Code
cua-driverdavidondrej/skillsSkill4.3kyesterdayMITA68Claude Code, Codex
create-verification-skillget-bb/bbSkill5.0ktodayMITA57Claude Code, Codex
browser-qahashgraph-online/awesome-codex-pluginsSkill1.5ktodayApache-2.0A58Claude Code, Codex
webapp-testinganthropics/skillsSkill188ktodaynoneA35Claude Code
test-electron-appPostHog/posthog-fossSkill728todayMITA112Claude Code