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.

#tutorial#testing#ai-agents

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):

PackGuidesWhat's covered
core50Locators, assertions, fixtures, auth, API testing, network mocking, visual regression, accessibility, debugging, trace-report analysis, framework recipes, architecture decisions
qa4Test case design from requirements, bug reports from failing tests, manual-to-automated conversion, test review
frontend2Adding valid, unique, stable data-testid attributes, with React/Vue/Angular/Svelte patterns
ci9GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, sharding, reporting, coverage
playwright-cli10CLI browser automation, screenshots, tracing, session management, device emulation
pom2Page Object Model patterns, POM vs fixtures vs helpers
migration2Migrating 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

  1. 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 core pack instead of guessing: flaky-tests.md for root causes, retry strategies, and stabilization patterns, and debugging.md for trace viewer and UI-mode work.

  2. The Golden Rules shape what a fix should look like. The README lists five that every guide assumes:

    1. getByRole() over CSS/XPath — resilient to markup changes.
    2. Never page.waitForTimeout() — use web-first assertions or page.waitForURL().
    3. Isolate every test — no shared state, no order dependencies.
    4. baseURL in config — zero hardcoded URLs in tests.
    5. Mock external services only — never mock your own app.
  3. For a failure that only shows up in CI, the agent can work from the recorded trace: trace-analysis.md documents debugging a trace.zip from the terminal with the npx playwright trace CLI, with decision trees and failure playbooks aimed at agents.

  4. If the flake is a test-queue problem rather than a test bug, dynamic-test-selection.md covers selecting or quarantining tests at runtime with reporter.preprocess() and an external flakiness API.

  5. When the fix touches the app itself — a missing or unstable selector target — the frontend pack is the counterpart: data-testid-conventions.md covers 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, and fixtures-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 qa pack 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 migration pack.

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.