Nov 18, 2026
Load 79 Production-Tested Playwright Guides Into Your Agent
TestDino's playwright-skill ships 79 Playwright guides as seven installable agent-skill packs — E2E, API, CI/CD, page objects, and migration included — with Playwright 1.64 coverage and five Golden Rules every guide assumes.
Agents write Playwright tests all the time, and the tests fail for the same handful of reasons every time: a selector that breaks on markup changes, a page.waitForTimeout() papering over a race, state leaking between tests. TestDino's playwright-skill — an MIT-licensed repository built for debugging, managing, and improving Playwright tests with AI — ships the fixes as knowledge your agent loads on demand: 79 guides packaged as agent skills, with the patterns each guide assumes written down as five Golden Rules.
Why This Skill Matters
These are Agent Skills — Markdown guides a coding agent loads when you ask it to write, debug, or scale Playwright tests. The root SKILL.md is the canonical index the agent reads, including the Golden Rules and architecture-decision guides. The guides target Playwright 1.64+ and carry TypeScript examples throughout, with JavaScript in most core guides.
One naming note before you install: this is not the only playwright-skill on GitHub. SkillMap's separate tutorial covers lackeyjb's playwright-skill, which executes agent-written Playwright code through a portable runner. TestDino's repository is the guide-pack shape — 79 Markdown guides your agent reads — and the two complement each other rather than compete.
The seven packs, with the README's own counts (they sum to the advertised 79):
| Pack | Guides | What's covered |
|---|---|---|
| core | 50 | Locators, assertions, fixtures, auth, API testing, network mocking, visual regression, accessibility, debugging, trace-report analysis, framework recipes, architecture decisions |
| qa | 4 | Test case design from requirements, bug reports from failing tests, manual-to-automated conversion, test review |
| frontend | 2 | Adding valid, unique, stable data-testid attributes, with React/Vue/Angular/Svelte patterns |
| ci | 9 | GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, sharding, reporting, coverage |
| playwright-cli | 10 | CLI browser automation, screenshots, tracing, session management, device emulation |
| pom | 2 | Page Object Model patterns, POM vs fixtures vs helpers |
| migration | 2 | Migrating from Cypress, migrating from Selenium |
The coverage tracks recent Playwright releases. The README calls out 1.64 features like locator.within() for combining a target and a container locator, WebMCP testing via page.webmcp.tools() and callTool(), and --shuffle for exposing order-dependent tests, and it flags breaking changes where they bite — for example, --update-snapshots=missing now passing and elements in hidden iframes counting as hidden.
Installation
Add every pack with one command:
npx skills add testdino-hq/playwright-skill
Or install packs individually as you need them:
npx skills add testdino-hq/playwright-skill/core
npx skills add testdino-hq/playwright-skill/frontend
npx skills add testdino-hq/playwright-skill/qa
npx skills add testdino-hq/playwright-skill/ci
npx skills add testdino-hq/playwright-skill/pom
npx skills add testdino-hq/playwright-skill/migration
npx skills add testdino-hq/playwright-skill/playwright-cli
Real Workflow: Debug a Flaky Checkout Test
-
Ask your agent to fix the test: "this checkout test fails once every ten runs in CI — find the root cause." The agent pulls the relevant guides from the
corepack instead of guessing:flaky-tests.mdfor root causes, retry strategies, and stabilization patterns, anddebugging.mdfor trace viewer and UI-mode work. -
The Golden Rules shape what a fix should look like. The README lists five that every guide assumes:
getByRole()over CSS/XPath — resilient to markup changes.- Never
page.waitForTimeout()— use web-first assertions orpage.waitForURL(). - Isolate every test — no shared state, no order dependencies.
baseURLin config — zero hardcoded URLs in tests.- Mock external services only — never mock your own app.
-
For a failure that only shows up in CI, the agent can work from the recorded trace:
trace-analysis.mddocuments debugging atrace.zipfrom the terminal with thenpx playwright traceCLI, with decision trees and failure playbooks aimed at agents. -
If the flake is a test-queue problem rather than a test bug,
dynamic-test-selection.mdcovers selecting or quarantining tests at runtime withreporter.preprocess()and an external flakiness API. -
When the fix touches the app itself — a missing or unstable selector target — the
frontendpack is the counterpart:data-testid-conventions.mdcovers naming, uniqueness in lists, and stability rules so components stay reliably locatable.
Tips
- New to Playwright? The README names the starting guides:
locators.md,assertions-and-waiting.md, andfixtures-and-hooks.md. - Install packs individually if you want the agent's index short — the seven-pack install is convenient, but each pack adds entries the agent can load.
- The
qapack handles the work around the test code: turning requirements into test designs, writing reproducible bug reports, and converting manual cases with case-ID traceability. - Migrating from Cypress or from Selenium is one guide each in the
migrationpack.
When Not to Use This
- The repo ships Markdown guides your agent reads — if you want a skill that executes agent-written Playwright code through a portable runner, that is what lackeyjb's playwright-skill does.
- Some documented features need a recent Playwright: the repo targets 1.64+, and each 1.62–1.64 item above requires at least the release that introduced it — older installs will not have them.
- Examples are TypeScript-first; the README says JavaScript appears in most core guides, so a JavaScript-only codebase will find some guides written in TypeScript.
See the leaderboard for more skills.