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.
npx agentmods add skills/junghwayang/oh-my-codex/playwrightnpx skills add junghwaYang/oh-my-codex --skill playwrightgit clone --depth 1 https://github.com/junghwaYang/oh-my-codexWrote 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.
[](https://agentmods.dev/skills/junghwayang/oh-my-codex/playwright)<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="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00968 |
| Opus 5 | $0.00000 | $0.00484 |
| Sonnet 5 | $0.00000 | $0.00194 |
| Haiku 4.5 | $0.00000 | $0.00097 |
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 4d 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.
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');
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.
- 4d ago First seen · 192 lines · 0 tokens per session scan A ece0b1217bdf
playwright is a skill published in the GitHub repository junghwaYang/oh-my-codex (5 stars, last pushed 6mo 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.
Other skills, from other repositories
playwright-cli
Automate browser interactions, test web pages and work with Playwright tests.
playwright-dev
Explains how to develop Playwright - add APIs, MCP tools, CLI commands, and vendor dependencies.
use-agent-browser-for-airi
Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…
playwright-screen-recording
Record browser test videos with Playwright for PR review and bug fix verification.
web-preview
Flutter Web版をビルド → サーバー起動 → Playwright でアクセス確認 → URLをユーザーに案内する。.
login-flows
Common login automation patterns for web apps using Playwright.