davila7 avatar

Playwright E2e Builder

This walks you through building Playwright test suites the right way: it interviews you about critical flows, auth strategy, and test data before writing anything. You get Page Object Model setup, authentication state persistence across tests, custom fixtures for data seeding, and CI integration with sharding. The planning phase is smart about existing project structure, checking for your framework, routes, and any legacy Cypress tests. It pushes you toward storageState for auth reuse and API seeding over database scripts. If you're setting up E2E from scratch or migrating from another framework, this handles the architectural decisions so you don't end up with brittle login-on-every-test patterns.

skills.sh installs
245
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill playwright-e2e-builder --agent claude-code

Installs into .claude/skills of the current project.

Files

Playwright E2E Test Suite Builder

When to use

Use this skill when you need to:

  • Set up Playwright from scratch in an existing project
  • Build E2E tests for critical user flows (signup, checkout, dashboards)
  • Implement Page Object Model for maintainable test architecture
  • Configure authentication state persistence across tests
  • Set up visual regression testing with screenshots
  • Integrate Playwright into CI/CD with sharding and retries

Phase 1: Explore (Plan Mode)

Enter plan mode. Before writing any tests, explore the existing project:

Project structure

  • Find the tech stack: is this React, Next.js, Vue, SvelteKit, or another framework?
  • Check if Playwright is already installed (playwright.config.ts, @playwright/test in package.json)
  • Look for existing test directories (e2e/, tests/, __tests__/)
  • Check for existing E2E tests in Cypress, Selenium, or other frameworks (migration context)
  • Find the dev server command and port (npm run dev, next dev, etc.)

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Backend & APIs, Testing & QA, Security, DevOps & CI/CD, Documentation, Productivity & Planning, Design & UI/UX
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1julianobarbosa avatarobsidianjulianobarbosa/claude-code-skillsGuide for implementing Obsidian knowledge management - vault operations, plugin development, URI scheme automation, markdown extensions, and Local REST API inte243skills.sh installs
2cinience avataralicloud-platform-aliyun-cli-testcinience/alicloud-skillsMinimal smoke test for generic Alibaba Cloud aliyun CLI skill. Validate CLI install, auth profile, and one read-only API call.240skills.sh installs
3coollabsio avatartailwindcss-developmentcoollabsio/coolifyAlways invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids240skills.sh installs
4aliyun avataralibabacloud-dataworks-infra-managealiyun/alibabacloud-aiops-skillsDataWorks Infrastructure Management: Create and query operations for Data Sources (50 types), Compute Resources, and Serverless Resource Groups, plus connectivi238skills.sh installs
5dylanfeltus avatartrademark-searchdylanfeltus/skillsSearch the USPTO trademark database to check name availability and get registration details. Use when the user wants to check if a name is trademarked, research238skills.sh installs
6dylanfeltus avatarproducthuntdylanfeltus/skillsSearch Product Hunt launches, products, and makers via the GraphQL V2 API. Use when the user asks about Product Hunt launches, trending products, or wants to re232skills.sh installs