generate

Generate Playwright end-to-end tests from user stories or feature descriptions.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Fantasia1999/claude-skills-zh --skill generate-fantasia1999
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate
Source: https://github.com/Fantasia1999/claude-skills-zh/tree/main/translations/engineering-team/playwright-pro/skills/generate
Command: npx skills add https://github.com/Fantasia1999/claude-skills-zh --skill generate-fantasia1999

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of Playwright tests, reducing the manual effort and time required for writing end-to-end tests.

Core Features & Use Cases

  • Automated Test Generation: Creates production-ready Playwright tests based on user stories, component paths, or feature descriptions.
  • Contextual Exploration: Explores the codebase to understand project structure, fixtures, and existing patterns.
  • Template-Driven Approach: Utilizes predefined templates for common testing scenarios like authentication, CRUD operations, and form submissions.
  • Use Case: When a new feature is developed, use this Skill to quickly generate the necessary Playwright tests to ensure its functionality and stability.

Quick Start

Use the generate skill to write a Playwright test for the user login flow.

Frequently Asked Questions about generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Playwright tests from user stories?

Generate Playwright tests by providing user stories, component paths, or feature descriptions. The Skill explores your codebase for context, selects appropriate templates, and produces end-to-end tests adhering to Playwright best practices for locators and assertions.

Can I use this to generate Playwright tests for TypeScript projects?

Yes, you can generate Playwright tests for TypeScript and JavaScript projects. The Skill analyzes your project structure and existing patterns to create production-ready tests that match your coding environment.

What's the best way to automate e2e test creation for new features?

Automate e2e test creation by leveraging a template-driven approach for common scenarios like authentication, CRUD operations, and form submissions. This reduces manual effort and quickly generates necessary Playwright tests to ensure feature stability.

Does the generated Playwright test code include page objects and fixtures?

Yes, the generated Playwright test code includes supporting files like page objects and fixtures. It explores the codebase to understand existing fixtures and project structure before generating these complementary files.

Why does codebase exploration matter for Playwright code generation?

Codebase exploration matters because it allows the Playwright code generation to understand your project structure, fixtures, and existing patterns. This contextual awareness ensures the output tests fit seamlessly into your current testing framework.

Are there limitations to automating Playwright test generation for complex flows?

Automating Playwright test generation relies on predefined templates for common scenarios like authentication and CRUD operations. Highly custom or complex flows may require manual adjustments after the initial test scaffolding is generated.