playwright-generate-test
- Use it when:
- You have a scenario to test in a web app and want a Playwright test written for it.
- It does:
- Carries out the scenario's steps one by one in the browser with the Playwright MCP tools before writing any test code.
- You get:
- A TypeScript test using @playwright/test, saved in the tests directory, run and reworked until it passes.
- Needs:
- The Playwright MCP server connected, and Playwright in the project to run the test.
- Unlike playwright-explore-website:
- That one explores a site to find what's worth testing; this one turns one scenario you give into a passing test.
TL;DR
Test code written from a scenario's description alone is a guess about the page. This skill forbids that: the agent may not generate test code prematurely or from the scenario alone. It first performs every step of the scenario itself, one at a time, with the tools of the Playwright MCP server. Only once all steps are done does it write a Playwright test in TypeScript with @playwright/test, based on the session's history of those steps. It saves the file in the tests directory, runs it, and keeps iterating until the test passes. If you don't give a scenario, it asks for one first.
Summarizes the skill at 797337f.
npx skills add https://github.com/github/awesome-copilot --skill playwright-generate-test skills.sh pageSource on GitHubAll skills from github/awesome-copilot
- Total Downloads
- 18,200 on skills.sh, Nov 9, 2026
- Repo stars
- 40,943 github/awesome-copilot
- First seen
- Feb 25, 2026 on skills.sh
Weekly values
| Week to | Installs |
|---|---|
| Sep 21 | 59 |
| Sep 28 | 60 |
| Oct 5 | 68 |
| Oct 12 | 41 |
| Oct 19 | 30 |
| Oct 26 | 33 |
| Nov 2 | 22 |
| Nov 9 | 29 |
| Category |
Find root causes, review code and test what you built. Drive browsers, scrape pages and search the web. Everything for building software: planning, coding, debugging, design, frameworks, cloud, agents and skills. |
|---|---|
| Type |
A multi-step process the agent follows: interview, debug, run a TDD loop, review. |
| Effect |
Its own steps change something outside your machine: post, send, deploy, provision, file issues, drive a website, or upload data to a service. |
| Needs |
Needs an MCP server connected. Drives a real Chromium or Chrome browser. A specific command-line tool or desktop app must be installed, such as gh, agent-browser, LibreOffice, Obsidian or a vendor CLI. |
| Publisher |
A verified publisher on skills.sh, or the company or maintainer behind the product the skill operates. |
| Topics | |
| Stack |
SKILL.md
From github/awesome-copilot at 797337f. Checked daily, last changed Nov 6, 2026.
Frontmatter
name: playwright-generate-test
description: 'Generate a Playwright test based on a scenario using Playwright MCP'Test Generation with Playwright MCP
Your goal is to generate a Playwright test based on the provided scenario after completing all prescribed steps.
Specific Instructions
- You are given a scenario, and you need to generate a playwright test for it. If the user does not provide a scenario, you will ask them to provide one.
- DO NOT generate test code prematurely or based solely on the scenario without completing all prescribed steps.
- DO run steps one by one using the tools provided by the Playwright MCP.
- Only after all steps are completed, emit a Playwright TypeScript test that uses
@playwright/testbased on message history - Save generated test file in the tests directory
- Execute the test file and iterate until the test passes