
Playwright generate test
Has the agent drive a browser via Playwright MCP and write a passing Playwright test
Playwright generate test is an open-source agent skill for browser automation. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 41.7K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Playwright generate test
This skill guides the agent through turning a plain-language test scenario into a Playwright test in TypeScript. Rather than writing code straight from the scenario, the agent is told to first run each step in a live browser using the tools exposed by the Playwright MCP server, then emit a test built from what it observed.
Once the steps are completed, the agent saves the generated spec into a tests directory, runs it, and keeps iterating until the test passes. The output targets the @playwright/test package. If no scenario is given, the agent asks the user to supply one before starting.
The skill is a single instruction file with no bundled scripts or reference files. It expects a Playwright MCP server to be available to the agent, a project where a tests directory can be used, and the ability to execute the test file.
When your agent uses it
Generate a Playwright test based on a scenario using Playwright MCP
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (877 bytes) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/playwright-generate-test to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/playwright-generate-test &&
cp -R "$tmp/skills/playwright-generate-test" ~/.claude/skills/playwright-generate-test &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/playwright-generate-test inside it instead.
Copy the skill folder to ~/.agents/skills/playwright-generate-test to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/playwright-generate-test &&
cp -R "$tmp/skills/playwright-generate-test" ~/.agents/skills/playwright-generate-test &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/playwright-generate-test inside it instead.
Copy the skill folder to ~/.cursor/skills/playwright-generate-test to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/playwright-generate-test &&
cp -R "$tmp/skills/playwright-generate-test" ~/.cursor/skills/playwright-generate-test &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/playwright-generate-test inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/github/awesome-copilot.git --path skills/playwright-generate-testOr copy the folder to ~/.gemini/skills/playwright-generate-test yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/playwright-generate-test:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/playwright-generate-test &&
cp -R "$tmp/skills/playwright-generate-test" ~/.copilot/skills/playwright-generate-test &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/playwright-generate-test inside it instead.
Get the folder:
git clone --depth 1 https://github.com/github/awesome-copilot.gitThen copy awesome-copilot/skills/playwright-generate-test into your agent's skills folder as playwright-generate-test. Agents that support SKILL.md read one folder per skill.
What it does
- Scenario-driven test generation
- Turns a described user scenario into a Playwright TypeScript test file.
- Step-by-step browser exploration
- Has the agent perform each step in a browser through Playwright MCP before writing any code.
- Test file placement
- Saves the generated spec into a tests directory of the project.
- Run and fix loop
- Executes the test and iterates until it passes.
- Uses @playwright/test
- Produces tests written against the official @playwright/test package.
Good for
- Generate an end-to-end test for a login flow
- Turn a checkout scenario into a Playwright test
- Create a regression test for a form submission
- Write a browser test for a navigation path and run it until it passes
Playwright generate test FAQ
What does Playwright generate test need to work?
It relies on the Playwright MCP tools to drive a browser, a project with a tests directory, and the ability to execute the generated test file.
Does Playwright generate test generate test code right away?
No. The instructions tell the agent to complete all prescribed browser steps one by one first, and only then emit the Playwright TypeScript test.
What language and framework is the output?
The output is a Playwright test in TypeScript that uses @playwright/test.
What happens if I don't give a scenario?
The agent is instructed to ask you to provide a scenario before generating anything.
How do I install Playwright generate test in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/playwright-generate-test to use it in all your projects, or to .claude/skills/playwright-generate-test in one project.
Does Playwright generate test run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Playwright generate test?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Playwright generate test?
The closest alternatives to Playwright generate test are Playwright skill, Webapp testing, Playwright explore website, Webapp testing and Azure microsoft playwright testing ts.
Where this comes from
- Description: from the skill's own SKILL.md.
More from github/awesome-copilot

A DevOps checklist for deploys, Docker, Kubernetes, CI/CD, rollback and mobile releases
- Open source
- 41.7K GitHub stars
- Cloud and infrastructure

Guides Qdrant scaling when data outgrows a node: tenants, time windows or sharding
- Open source
- 41.7K GitHub stars
- Knowledge and memory

Explains Qdrant's per-shard query subsampling for large limits across many auto-shards
- Open source
- 41.7K GitHub stars
- Knowledge and memory

Lets an agent build and edit Power Apps canvas apps through FlowStudio MCP
- Open source
- 41.7K GitHub stars
- Developer tools

Ground rules for an agent editing Power Apps canvas apps through FlowStudio MCP
- Open source
- 41.7K GitHub stars
- Developer tools

Lets an agent inspect, audit and diagnose Power Apps canvas apps via FlowStudio MCP
- Open source
- 41.7K GitHub stars
- Developer tools



