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 skills add Cratis/AI --skill playwrightgit clone --depth 1 https://github.com/Cratis/AIWrote 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/cratis/ai/playwright)<a href="https://agentmods.dev/skills/cratis/ai/playwright"><img src="https://agentmods.dev/badge/skills/cratis/ai/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.
<a href="https://agentmods.dev/skills/cratis/ai/playwright"><img src="https://agentmods.dev/badge/skills/cratis/ai/playwright.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00037 | $0.01516 |
| Opus 5.5 | $0.00015 | $0.00606 |
| Sonnet 5.5 | $0.00007 | $0.00303 |
| Haiku 4.5 | $0.00004 | $0.00152 |
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 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.
This is a copy
100% identical to playwright — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Playwright + Next.js Testing Best Practices
Comprehensive testing optimization guide for Playwright with Next.js applications. Contains 43 rules across 8 categories, prioritized by impact to guide reliable, fast, and maintainable E2E tests.
When to Apply
Reference these guidelines when:
- Writing new Playwright tests for Next.js apps
- Debugging flaky or failing tests
- Optimizing test execution speed
- Setting up authentication state reuse
- Configuring CI/CD pipelines for testing
- Testing Server Components and App Router features
- Reviewing test code for reliability issues
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Test Architecture | CRITICAL | arch- |
| 2 | Selectors & Locators | CRITICAL | loc- |
| 3 | Waiting & Assertions | HIGH | wait- |
| 4 | Authentication & State | HIGH | auth- |
| 5 | Mocking & Network | MEDIUM-HIGH | mock- |
| 6 | Next.js Integration | MEDIUM | next- |
| 7 | Performance & Speed | MEDIUM | perf- |
| 8 | Debugging & CI | LOW-MEDIUM | debug- |
Quick Reference
1. Test Architecture (CRITICAL)
arch-test-isolation- Use fresh browser context for each testarch-parallel-execution- Enable parallel test executionarch-page-object-model- Use Page Object Model for complex pagesarch-fixtures- Use fixtures for shared setuparch-test-production- Test against production buildsarch-cleanup-state- Clean up test state after each test
2. Selectors & Locators (CRITICAL)
loc-role-selectors- Use role-based selectors over CSSloc-data-testid- Use data-testid for dynamic elementsloc-label-selectors- Use getByLabel for form inputsloc-text-selectors- Use getByText for static contentloc-avoid-xpath- Avoid XPath selectorsloc-chained-locators- Chain locators for specificityloc-placeholder-selector- Use getByPlaceholder sparingly
What ships with it
47 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.
- AGENTS.md 8.2 KB
- assets/templates/_template.md 1.0 KB
- metadata.json 961 B
- references/_sections.md 1.8 KB
- references/arch-cleanup-state.md 2.5 KB
- references/arch-fixtures.md 2.5 KB
- references/arch-page-object-model.md 2.4 KB
- references/arch-parallel-execution.md 1.6 KB
- references/arch-test-isolation.md 1.7 KB
- references/arch-test-production.md 1.9 KB
- references/auth-api-login.md 2.6 KB
- references/auth-multiple-roles.md 3.2 KB
- references/auth-parallel-workers.md 3.0 KB
- references/auth-session-storage.md 3.2 KB
- references/auth-storage-state.md 2.7 KB
- references/debug-ci-reporters.md 1.9 KB
- references/debug-inspector.md 2.1 KB
- references/debug-screenshots-videos.md 2.0 KB
- references/debug-trace-viewer.md 1.8 KB
- references/loc-avoid-xpath.md 2.1 KB
- references/loc-chained-locators.md 2.2 KB
- references/loc-data-testid.md 2.3 KB
- references/loc-label-selectors.md 2.3 KB
- references/loc-placeholder-selector.md 2.3 KB
- references/loc-role-selectors.md 1.9 KB
- references/loc-text-selectors.md 2.1 KB
- references/mock-abort-requests.md 2.6 KB
- references/mock-api-responses.md 2.5 KB
- references/mock-har-files.md 2.9 KB
- references/mock-intercept-modify.md 2.6 KB
- references/mock-network-conditions.md 2.7 KB
- references/next-app-router-navigation.md 2.7 KB
- references/next-baseurl-config.md 2.6 KB
- references/next-server-actions.md 2.8 KB
- references/next-server-components.md 2.7 KB
- references/next-wait-hydration.md 2.7 KB
- references/perf-browser-selection.md 2.6 KB
- references/perf-headless-ci.md 2.1 KB
- references/perf-retries.md 2.5 KB
- references/perf-reuse-server.md 2.2 KB
- references/perf-sharding.md 2.5 KB
- references/wait-action-retries.md 2.5 KB
- references/wait-avoid-hard-waits.md 2.6 KB
- references/wait-custom-timeout.md 2.4 KB
- references/wait-network-idle.md 2.7 KB
- references/wait-soft-assertions.md 2.8 KB
- references/wait-web-first-assertions.md 2.4 KB
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.
- 1mo ago Changed · -32 tokens per session ad2a744bcd55
- 2mo ago First seen · 118 lines · 69 tokens per session scan A 099d77dba430
playwright is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 1,516 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to playwright, differing in 2 lines, and is treated as a copy.
playwright compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| playwrightCratis/AI | Skill | 4 | today | MIT | A | 37 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 330k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |