Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

Playwright

  • 471 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

Playwright is a Claude agent skill from pproenca/dot-skills that applies Playwright browser automation patterns to development and end-to-end testing tasks.

About

Playwright is an agent skill in pproenca/dot-skills described for Playwright-driven development tasks. It equips coding agents to write, run, and debug browser automation using Playwright selectors, page objects, and test runners when validating web UI behavior. Developers reach for it when they need agent assistance generating or fixing Playwright specs, tracing flaky interactions, or automating repeatable browser checks. The repository entry is minimal, so expect convention-following Playwright guidance rather than a large bundled script library.

  • playwright

Playwright by the numbers

  • 471 all-time installs (skills.sh)
  • +5 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #866 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill playwright

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs471
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do you automate browser tests with Playwright?

Use playwright for development tasks

Who is it for?

Web developers who want agent help writing or repairing Playwright E2E tests during feature delivery.

Skip if: Native mobile UI testing or backend-only API suites that do not require browser automation.

When should I use this skill?

Task mentions Playwright, browser E2E tests, page automation, or flaky UI interaction debugging.

What you get

Playwright test specs, browser automation scripts, and debug notes for failing UI interactions.

  • playwright spec files
  • browser test scripts

Files

SKILL.mdMarkdownGitHub ↗

Playwright + Next.js Testing Best Practices

Comprehensive testing optimization guide for Playwright with Next.js applications. Contains 43 rules across 8 categories, prioritized by impact to guide reliable, fast, and maintainable E2E tests.

When to Apply

Reference these guidelines when:

  • Writing new Playwright tests for Next.js apps
  • Debugging flaky or failing tests
  • Optimizing test execution speed
  • Setting up authentication state reuse
  • Configuring CI/CD pipelines for testing
  • Testing Server Components and App Router features
  • Reviewing test code for reliability issues

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Test ArchitectureCRITICALarch-
2Selectors & LocatorsCRITICALloc-
3Waiting & AssertionsHIGHwait-
4Authentication & StateHIGHauth-
5Mocking & NetworkMEDIUM-HIGHmock-
6Next.js IntegrationMEDIUMnext-
7Performance & SpeedMEDIUMperf-
8Debugging & CILOW-MEDIUMdebug-

Quick Reference

1. Test Architecture (CRITICAL)

  • `arch-test-isolation` - Use fresh browser context for each test
  • `arch-parallel-execution` - Enable parallel test execution
  • `arch-page-object-model` - Use Page Object Model for complex pages
  • `arch-fixtures` - Use fixtures for shared setup
  • `arch-test-production` - Test against production builds
  • `arch-cleanup-state` - Clean up test state after each test

2. Selectors & Locators (CRITICAL)

  • `loc-role-selectors` - Use role-based selectors over CSS
  • `loc-data-testid` - Use data-testid for dynamic elements
  • `loc-label-selectors` - Use getByLabel for form inputs
  • `loc-text-selectors` - Use getByText for static content
  • `loc-avoid-xpath` - Avoid XPath selectors
  • `loc-chained-locators` - Chain locators for specificity
  • `loc-placeholder-selector` - Use getByPlaceholder sparingly

3. Waiting & Assertions (HIGH)

  • `wait-web-first-assertions` - Use web-first assertions
  • `wait-avoid-hard-waits` - Avoid hard waits
  • `wait-network-idle` - Use network idle for complex pages
  • `wait-action-retries` - Let actions auto-wait before interacting
  • `wait-soft-assertions` - Use soft assertions for non-critical checks
  • `wait-custom-timeout` - Configure timeouts appropriately

4. Authentication & State (HIGH)

  • `auth-storage-state` - Reuse authentication with storage state
  • `auth-multiple-roles` - Use separate storage states for different roles
  • `auth-session-storage` - Handle session storage for auth
  • `auth-api-login` - Use API login for faster auth setup
  • `auth-parallel-workers` - Use worker-scoped auth for parallel tests

5. Mocking & Network (MEDIUM-HIGH)

  • `mock-api-responses` - Mock API responses for deterministic tests
  • `mock-intercept-modify` - Intercept and modify real responses
  • `mock-har-files` - Use HAR files for complex mock scenarios
  • `mock-abort-requests` - Abort unnecessary requests
  • `mock-network-conditions` - Simulate network conditions

6. Next.js Integration (MEDIUM)

  • `next-wait-hydration` - Wait for hydration before interacting
  • `next-server-components` - Test server components correctly
  • `next-app-router-navigation` - Test App Router navigation patterns
  • `next-server-actions` - Test server actions end-to-end
  • `next-baseurl-config` - Configure baseURL for clean navigation

7. Performance & Speed (MEDIUM)

  • `perf-sharding` - Use sharding for large test suites
  • `perf-headless-ci` - Use headless mode in CI
  • `perf-browser-selection` - Select browsers strategically
  • `perf-reuse-server` - Reuse development server when possible
  • `perf-retries` - Configure retries for flaky test recovery

8. Debugging & CI (LOW-MEDIUM)

  • `debug-trace-viewer` - Use trace viewer for failed tests
  • `debug-screenshots-videos` - Capture screenshots and videos on failure
  • `debug-inspector` - Use Playwright Inspector for interactive debugging
  • `debug-ci-reporters` - Configure reporters for CI integration

How to Use

Read individual reference files for detailed explanations and code examples:

  • Section definitions - Category structure and impact levels
  • Rule template - Template for adding new rules

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Related skills

How it compares

Pick Playwright for cross-browser E2E UI automation; use unit-test skills when logic can be verified without a browser.

FAQ

What does the Playwright skill help developers do?

The Playwright skill from pproenca/dot-skills guides agents to use Playwright for browser automation during development, including writing E2E specs, running tests, and debugging UI interaction failures.

Is Playwright limited to web applications?

Playwright targets browser-based UI automation, so the skill fits web apps and extensions. It is not aimed at native iOS, Android, or pure API test suites without a browser surface.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.