af-write-playwright-tests

Generate Playwright end-to-end tests from Markdown scenario specifications.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/GainInsightDev/websites --skill af-write-playwright-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: af-write-playwright-tests
Source: https://github.com/GainInsightDev/websites/tree/main/.claude/skills/af-write-playwright-tests
Command: npx skills add https://github.com/GainInsightDev/websites --skill af-write-playwright-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of Playwright end-to-end tests by translating human-readable Markdown scenario specifications into executable test code.

Core Features & Use Cases

  • Scenario-to-Test Conversion: Writes Playwright tests directly from defined user workflows in Markdown.
  • Multi-Page Flow Testing: Capable of generating tests that cover complex, multi-step user journeys.
  • Debugging Assistance: Helps in generating tests for debugging existing end-to-end test failures.
  • Use Case: You have a user story documented in Markdown detailing the steps to sign up for a new account. This Skill can generate the corresponding Playwright test to ensure the signup flow works as expected.

Quick Start

Use the af-write-playwright-tests skill to generate Playwright tests from the scenarios in the file 'user-signup-scenarios.md'.

Frequently Asked Questions about af-write-playwright-tests

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

FAQPage Schema
How do I generate Playwright tests from Markdown scenario files?

To generate Playwright tests from Markdown, provide a scenario specification file detailing user workflows. The Skill translates these human-readable steps into executable end-to-end test code automatically.

Can I automate end-to-end testing for multi-page user flows in Playwright?

Yes, you can automate end-to-end testing for multi-page user flows. The Skill generates Playwright tests capable of covering complex, multi-step user journeys directly from your defined scenarios.

How do I create automated tests for debugging existing Playwright E2E test failures?

To debug existing Playwright E2E test failures, use your scenario specifications to generate targeted automated tests. This Skill helps replicate user workflows to isolate and resolve end-to-end testing issues.

What format do scenario specifications need to be in to generate Playwright tests?

Scenario specifications must be written in Markdown format. The Skill requires these human-readable Markdown files to translate defined user workflows and steps into executable Playwright test code.

Do I need to define a selector contract to generate Playwright tests from scenarios?

Yes, you need to adhere to a defined selector contract. The Skill uses this contract to correctly map Markdown scenario steps to Playwright actions, and optionally utilizes seed data for test preconditions.

What is the best way to convert user stories into Playwright automated tests?

The best way to convert user stories into automated tests is documenting the user workflow in a Markdown scenario file. The Skill then translates that specification into executable Playwright end-to-end tests.