Playwright Skill

VerifiedSafe

Skill to write, fix, scaffold, or review E2E tests using Playwright. Generates spec+POM pairs and checks for violations.

Sby Skills Guide Bot
TestingIntermediate
107/24/2026
Claude Code
#playwright#e2e-tests#test-automation#scaffolding

Recommended for

Our review

Generates, reviews, and fixes Playwright E2E tests using predefined conventions and patterns.

Strengths

  • Enforces consistent test structure with Page Object Model
  • Provides scaffolding for new tests and page objects
  • Includes guides for locators, assertions, and POM patterns
  • Automates code review of existing tests

Limitations

  • Requires existing Playwright setup and configuration
  • Only works within projects that have the Playwright skill configured
  • May not cover all custom testing scenarios
When to use it

Use when adding new E2E tests or refactoring existing ones to follow Playwright best practices.

When not to use it

Do not use for unit tests or integration tests, or when a custom testing framework is in place.

Security analysis

Safe
Quality score85/100

The skill only references local files and templates for Playwright testing conventions; it does not invoke any external tools, scripts, or dangerous commands.

No concerns found

Examples

Initialize Playwright test conventions
/playwrightskill
Scaffold a page object and test spec
/playwrightskill scaffold LoginPage
Review existing tests for violations
/playwrightskill review

/playwrightskill

Invoke the Playwright skill to write, fix, scaffold, or review E2E tests in this repository.

Usage:

  • /playwrightskill — apply all Playwright conventions to the current task
  • /playwrightskill scaffold <PageName> — generate a new spec + POM pair
  • /playwrightskill review — review open test files for violations

When this skill is invoked, load and follow all rules in .claude/commands/playwright-skill/SKILL.md. Reference locator patterns from references/locator-guide.md, assertion patterns from references/assertion-guide.md, and POM patterns from references/pom-guide.md. Use templates in assets/ as the starting point for any new files.

Related skills