playwright-generate-test
What it does
This tool creates automatic test code for a website. You describe what you want to test, and it generates the code to check if the website works as expected.
When to use it
- ✓When you want to verify if a new website feature is working.
- ✓When you need to ensure a website still works after an update.
- ✓When you need to test the same process across different browsers.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/playwright-generate-test/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Generate a test to verify that I can add an item to the shopping cart and complete the purchase.”
5 new skills a week. 1 minute to read.
How it works
The tool follows your instructions step-by-step using a system called Playwright MCP. It observes the website, simulates your actions, and only then writes the test code.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
FAQ
What is Playwright?
Playwright is a tool that allows you to create and run automated tests for websites.
What is an automated test?
It's a script that simulates a user interacting with a website to check if everything is working correctly, without a person needing to do it manually.
What happens if I don't provide a scenario?
The tool will ask you to describe what you want to test on the website.
Details
Original description by the author
Generate a Playwright test based on a scenario using Playwright MCP
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #7329
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
acreadiness-generate-instructions
40kHelps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.