playwright-generate-test

Generate Playwright tests from user scenarios using Playwright MCP.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/tc9011/my-skills --skill playwright-generate-test-tc9011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-generate-test
Source: https://github.com/tc9011/my-skills/tree/main/skills/playwright-generate-test
Command: npx skills add https://github.com/tc9011/my-skills --skill playwright-generate-test-tc9011

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of Playwright tests by translating user-defined scenarios into executable TypeScript code, streamlining the testing process.

Core Features & Use Cases

  • Scenario-to-Test Generation: Converts natural language scenarios into Playwright tests.
  • Step-by-Step Execution: Utilizes Playwright MCP tools to execute defined steps.
  • Iterative Refinement: Runs generated tests and iterates until they pass.
  • Use Case: A developer needs to create a new Playwright test for a complex user flow. They provide a detailed scenario, and the Skill generates the test code, runs it, and refines it until it's stable.

Quick Start

Use the playwright-generate-test skill to generate a Playwright test for the scenario: "User logs in, navigates to the dashboard, and verifies the welcome message."

Frequently Asked Questions about playwright-generate-test

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

FAQPage Schema
How do I generate Playwright tests from natural language scenarios?

To generate Playwright tests from scenarios, you provide detailed user flow descriptions in natural language. The Skill translates these scenarios into executable TypeScript code using the Playwright MCP, automating the creation of web testing scripts.

Can I use this to create automated web tests for complex user flows?

Yes, you can create automated web tests for complex user flows. By defining a step-by-step scenario like logging in and verifying a dashboard, the Skill executes predefined steps and generates the corresponding TypeScript test code.

How does the test generation process handle failing Playwright scripts?

The test generation process handles failing scripts through iterative refinement. It runs the generated TypeScript tests and iterates on the code until the tests pass, ensuring you receive stable and executable web testing automation scripts.

Do I need TypeScript to use the playwright-generate-test Skill?

Yes, TypeScript is required because the Skill generates test scripts in TypeScript. It leverages the Playwright MCP to translate your natural language scenarios into executable TypeScript code for web application testing.

What is the best way to automate web testing script creation from step-by-step scenarios?

The best way to automate web testing script creation is by providing a detailed scenario for your user flow. The Skill uses Playwright MCP tools to execute defined steps and outputs refined TypeScript code, streamlining the test creation process.