Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

playwright

Skill by prowler-cloud

Playwright E2E testing patterns for writing tests in Prowler's UI. It sets out the Page Object Model, selector priority, file layout, tagging and test commands. Aimed at developers writing end-to-end tests with Playwright.

  • Score 90
  • 15k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install playwright

Built from the published package, never by AI.

git clone --depth 1 https://github.com/prowler-cloud/prowler /tmp/prowler && mkdir -p ~/.claude/skills && cp -r /tmp/prowler/skills/playwright ~/.claude/skills/playwright

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install playwright in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The playwright skill gives an AI assistant conventions for writing Playwright end-to-end tests. It covers the Page Object Model, a selector priority that favors getByRole and getByLabel, a file layout with one spec file per page, and tags for test cases. When Playwright MCP tools are available, the skill asks the assistant to explore the page with navigation and snapshots before writing test code.

It also covers reuse of existing page objects, moving shared code into BasePage or helpers.ts, a markdown format for test documentation, and commands that run tests with the project-pinned @playwright/test 1.56 binary. Prowler-specific UI details are in a separate reference file. It is for developers writing E2E tests in the Prowler ui directory.

Written from the project's SKILL.md and checked against it.

What it can do

  • MCP exploration workflowNavigate, snapshot and screenshot the page before writing a test, when Playwright MCP tools are available.
  • Selector priorityPrefers getByRole and getByLabel, uses getByText for static content and getByTestId as a last resort.
  • Page Object ModelProvides a BasePage class and page classes that extend it for each tested page.
  • Page object reuseChecks existing page objects in tests/ before creating new ones.
  • Scope detectionCreates one test or a full suite depending on how the request is worded.
  • Test taggingAdds priority, type, feature and test ID tags to each test.
  • Test documentationProvides a markdown template for documenting each test case.
  • Test commandsRuns tests by project, by tag, in list mode, in UI mode or in debug mode.

What you need

  • pnpm, used to run the project-pinned Playwright binary
  • @playwright/test 1.56 in the Prowler ui project
  • Prowler repository with the ui/tests directory
  • Playwright MCP tools (optional, for the exploration workflow)

Try asking

  • Write a Playwright test for the sign-up form in ui/tests
  • Add one test to the login spec that checks the error message
  • Generate a full E2E test suite for the providers page

Good to know

  • Written for Prowler's ui/tests layout and conventions.
  • The MCP exploration step applies only when Playwright MCP tools are available.
  • Tests go in one spec file per page, except the ui/tests/auth folder.

Security check

B
  • Allowed to use Edit, Write, Bash without limitsIn SKILL.md

Checked automatically: skills/playwright/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadEditWriteGlobGrepBashWebFetchWebSearchTask

  • SKILL.md10 KB
  • references/prowler-e2e.md565 B

Alternatives to playwright

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

playwright: common questions

Does this skill require Playwright MCP?

No. If MCP is not available, the skill says to write tests from docs and code analysis instead of exploring the page first.

Which selectors does it recommend?

It recommends getByRole and getByLabel first, getByText for static content and getByTestId as a last resort. It says to avoid CSS class and id selectors.

Where are the Prowler-specific details?

They are in references/prowler-e2e.md, which covers authentication setup, environment variables and test IDs.

How do I install playwright?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is playwright free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is playwright safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use edit, write, bash without limits). Review the code before you install. How grades work.

What are alternatives to playwright?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

playwright Install

Add to stack

Loading.