Index of every page on this site: llms.txt
All skills
github avatar

/playwright-generate-test

@f10fdb8 official
by githubgithub/awesome-copilot41k stars
5,399
Run it yourself

Generate a Playwright test based on a scenario using Playwright MCP

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/playwright-generate-test

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈23 tokens for metadata: the name and description. ≈189 when used: this file.

Description uses 1.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈94 characters, or 1.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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/test based on message history
  • Save generated test file in the tests directory
  • Execute the test file and iterate until the test passes

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill generates and executes code based on user-provided scenarios. While this is its core function, it creates a potential surface for malicious input to influence the generated code's behavior.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    1/1 file flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 7 months ago

README badge

README badge for github/awesome-copilot/playwright-generate-test

Generates Playwright tests from user-provided scenarios by inspecting the application with Playwright MCP tools, then emitting and executing a TypeScript test file until it passes. Targets teams using Playwright with the Model Context Protocol integration.

Generated from the current SKILL.md.

Does this skill generate tests for any web application, or is it specific to certain frameworks?
The skill generates Playwright tests for any web application. It uses Playwright MCP to interact with and test web scenarios regardless of the target application's framework.
What format does the generated test use?
Generated tests use TypeScript with the @playwright/test framework and are saved to the tests directory.
Do I need to provide a scenario, or does the skill generate one automatically?
You must provide a scenario. The skill will ask you for one if you don't supply it upfront.
Does the skill iterate if the generated test fails?
Yes. The skill executes the generated test file and iterates until the test passes.

Generated from the current SKILL.md. These answers refresh after source changes.