Generates Playwright tests from a user story, URL, component, or feature with project-aware conventions.

CCM score
72 of 100
skills.sh installs
1.6K
GitHub stars
30.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers test generation from a user story, component path, route, or feature name, with codebase exploration first
  • Includes 10 template categories for auth, CRUD, checkout, search, forms, dashboards, settings, onboarding, API, and accessibility
  • Enforces web-first assertions and locator priority, banning waitForTimeout, $ selectors, and unnecessary evaluate calls
  • Designed for teams using Playwright that want generated specs to match existing page objects, fixtures, and TypeScript or JavaScript conventions

Install

$ npx -y skills add alirezarezvani/claude-skills --skill generate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Generate Playwright Tests

Generate production-ready Playwright tests from a user story, URL, component name, or feature description.

Input

$ARGUMENTS contains what to test. Examples:

  • "user can log in with email and password"
  • "the checkout flow"
  • "src/components/UserProfile.tsx"
  • "the search page with filters"

Steps

1. Understand the Target

Parse $ARGUMENTS to determine:

  • User story: Extract the behavior to verify
  • Component path: Read the component source code
  • Page/URL: Identify the route and its elements
  • Feature name: Map to relevant app areas

2. Explore the Codebase

Use the Explore subagent to gather context:

  • Read playwright.config.ts for testDir, baseURL, projects
  • Check existing tests in testDir for patterns, fixtures, and conventions
  • If a component path is given, read the component to understand its props, states, and interactions
  • Check for existing page objects in pages/
  • Check for existing fixtures in fixtures/
  • Check for auth setup (auth.setup.ts or storageState config)

3. Select Templates

Check templates/ in this plugin for matching patterns:

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Testing & QA, Browser Automation & Scraping
First seen
Apr 16, 2026

More from alirezarezvani/claude-skills

All 259

Similar to Generate

More Testing & QA