Kipt

Playwright best practices skill: a testing reference for your coding agent

The Playwright best practices skill from Currents.dev gives coding agents 58 reference guides for writing, debugging and fixing Playwright tests. How to install it.

By the Kipt team · Updated 23 October 2026

Source: currents-dev/playwright-best-practices-skill · Maintainer: community: Currents.dev · License: MIT · Checked: 23 October 2026

What is the Playwright best practices skill?

The Playwright best practices skill gives a coding agent a large, organized reference for writing, debugging and maintaining Playwright tests in TypeScript, so the tests it writes use stable locators, proper waits and sound structure instead of guesswork. It is for teams that already use Playwright Test, or are starting to, and want an agent like Claude Code, Codex or Cursor to follow good testing habits.

It comes from Currents.dev, which makes a dashboard for Playwright test results, and lives in currents-dev/playwright-best-practices-skill. The skill's description is a long list of triggers. It begins "Use when writing Playwright tests, fixing flaky tests, debugging failures, implementing Page Object Model, configuring CI/CD" and continues through authentication, accessibility, file uploads, time mocking, WebSockets, mobile layouts, GraphQL, security testing, Electron apps and browser extensions, ending: "Covers E2E, component, API, visual, accessibility, security, Electron, and extension testing."

As of 23 October 2026 the repo had about 400 GitHub stars and was last pushed on 21 July 2026, but its skills.sh page listed about 97,700 installs, so far more people install it than star it.

What does the Playwright best practices skill do?

It routes, then reads. The SKILL.md itself holds little test advice. It is a map: tables grouped by activity (writing new tests, mobile, browser APIs, debugging, error cases, multi-user, architecture, frameworks, refactoring, infrastructure) that name which reference file to open, followed by a decision tree. The README explains the idea: "the AI is directed to the right reference depending on what you're doing, so you get focused advice without loading everything at once." That matters, because the references add up to roughly 80,000 words.

It ends with a validation loop. After writing or changing tests, the agent should run npx playwright test --reporter=list, read failures and traces (npx playwright show-trace), fix and re-run, only move on when everything passes, and run critical tests several times with --repeat-each=5.

The advice is concrete. For example, core/locators.md sets a priority order: role-based getByRole first, then label and placeholder, then text, then test IDs, with CSS and XPath as a last resort. debugging/flaky-tests.md sorts flakiness by type and walks through reproducing it, finding the root cause and fixing it.

What's in the folder: one SKILL.md plus 58 Markdown references in eight folders (the README says 57):

  • core/ (11): test structure, locators, assertions and waiting, Page Object Model, fixtures and hooks, test data, annotations, configuration, global setup, projects, test tags.
  • testing-patterns/ (15): accessibility with axe-core, API, component, visual regression, forms, drag and drop, file operations, file uploads and downloads, GraphQL, canvas and WebGL, i18n, Electron, browser extensions, security, performance.
  • advanced/ (8): authentication and complex auth flows, mobile, clock mocking, multi-tab and popups, multi-user, advanced networking, third-party services.
  • infrastructure-ci-cd/ (9): CI basics, GitHub Actions, GitLab, other providers, Docker, sharding, performance, reporting, coverage.
  • debugging/ (4), browser-apis/ (4), frameworks/ (4: React, Angular, Vue, Next.js) and architecture/ (3: POM vs fixtures, test types, when to mock).

There are no scripts.

How do you install the Playwright best practices skill?

With the skills CLI. The README's only install command uses the skills CLI:

npx skills add https://github.com/currents-dev/playwright-best-practices-skill

The repo holds one skill, so there is nothing to pick. Add -g to install for every project, or -a claude-code to skip the agent prompt. For Claude Code the folder lands in .claude/skills/playwright-best-practices/, or ~/.claude/skills/playwright-best-practices/ with -g, the standard Claude Code skill locations. Install it per project if only some of your repos use Playwright.

Other agents. Codex and Cursor read the same SKILL.md format; see Codex skills and Cursor skills. The repo has no Claude Code plugin manifest.

claude.ai. Zip the playwright-best-practices folder and upload it under Customize, then Skills, as the Claude Help Center describes. Keep the subfolders, since the SKILL.md links to them by relative path.

How do you use it?

You don't need to name the skill. The README says to describe the task, "fix this flaky login test" or "add accessibility tests", and the agent will use it when relevant. Example prompts (suggestions, not quotes from the repo):

  • This login test passes locally and fails in CI about one run in five. Find out why and fix it.
  • Refactor tests/e2e to use fixtures instead of page objects where it makes sense, and explain the choice.
  • Add Playwright tests for the password reset flow, including the email step, without hitting a real inbox.
  • Set up sharded Playwright runs in GitHub Actions with an HTML report as an artifact.
  • Write a test that freezes time to 31 December and checks the year-end banner.

Requirements. A project with Playwright Test, which Playwright's installation docs set up. The skill needs no API keys or extra packages; some references show optional libraries such as @axe-core/playwright for accessibility checks.

Tips and limits

From the files, not from testing:

  • It is advice, not hands. The skill can't open a browser. Pair it with playwright-cli, whose test-generation workflow writes and heals tests, while this skill keeps them well structured.
  • TypeScript only. The README targets Playwright in TypeScript. Python and Java teams will get the principles but not usable code.
  • Check it against Playwright's docs. The guidance is Currents' own. Where it touches core rules, compare with Playwright's best practices page, which is the official word and updates with each release.
  • Repeat runs cost time. The loop's --repeat-each=5 is meant for critical tests. Don't let the agent apply it to a whole suite on every change.
  • Long trigger list. The description matches many testing phrases, so in a repo with other testing skills the agent may load this one more often than you expect. Install it only where you use Playwright.

Security audits. On 23 October 2026, its skills.sh page showed Pass from all three listed audits (Gen Agent Trust Hub, Socket and Snyk). The skill is Markdown only, but still read the files before installing. The MIT License lets you copy and edit it freely as long as you keep the notice.

Save it in your Kipt library

In Kipt, open Skills and paste the skill's GitHub folder link into the import box. Kipt reads the SKILL.md and its reference folders. You can also drop the folder or a .zip. Your skills live in your own private GitHub repo and install into Claude Code or Codex with one command:

npx skills add https://github.com/<you>/<repo>.git --all -g

Kipt is not affiliated with Currents.dev.

Similar skills

Questions

What is the Playwright best practices skill?

It is an Agent Skill from Currents.dev that gives a coding agent guidance for writing, debugging and maintaining Playwright tests in TypeScript. A routing SKILL.md points the agent to one of 58 reference files depending on the task, such as locators, flaky tests, authentication or CI setup.

Does the Playwright best practices skill run my tests or control a browser?

No. It is a reference made of Markdown files with no scripts. It tells the agent to run npx playwright test after writing or changing tests, but the agent uses its own shell for that. To drive a browser, pair it with a tool such as Microsoft's playwright-cli.

How do I install the Playwright best practices skill?

The README gives one command: npx skills add https://github.com/currents-dev/playwright-best-practices-skill. For Claude Code the skill lands in .claude/skills/playwright-best-practices, or in ~/.claude/skills with -g for all projects.

Is it only for Currents users?

No. Currents.dev makes a dashboard for Playwright test results, but the skill's reference files don't promote it; the company name appears only in the README header and the SKILL.md author field. It works in any Playwright project and is MIT licensed.

Does it cover Python or Java Playwright?

The README says it targets Playwright tests in TypeScript, and the examples are TypeScript. Many ideas, such as locator priority and avoiding fixed waits, carry over, but the code will not.

More in Skill directory

All guides

Keep your prompts and skills in one place, in your own GitHub. Install every skill with one command.

Get started

Kipt is an independent product, not affiliated with or endorsed by Anthropic, OpenAI, Cursor or GitHub. Claude, ChatGPT, Codex, Cursor and GitHub are trademarks of their owners.