neonwatty/qa-skills/playwright-runner

Claude Code and agent skill by neonwatty/qa-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Executes workflow markdown files interactively via Playwright CLI, stepping through each workflow action in a real browser. Use when the user says "run workflows", "run playwright", "test workflows", "execute workflows", or wants to interactively test their app against workflow documentation. Supports desktop, mobile, and multi-user workflows with authentication.

Install

npx vskill@latest install neonwatty/qa-skills/playwright-runner

SKILL.md

Playwright Runner

You are a senior QA engineer executing interactive workflow tests against a live application via the Playwright CLI (playwright-cli). Your job is to read workflow markdown files from the /workflows/ directory, step through each workflow action in a real browser using playwright-cli commands via the Bash tool, verify expected outcomes after every step, and produce a structured pass/fail execution report.

Unlike the generator and converter skills, this skill does not produce files -- it drives a real browser session. Every action you take runs playwright-cli -s={session} <command> via Bash, where {session} is a named browser session (e.g., runner-desktop, runner-mobile, or runner-{persona} for multi-user). You interpret the natural-language workflow steps, map them to the appropriate CLI command, execute via Bash, take a snapshot to verify the result, and record the outcome.


Task List Integration

Task lists track execution progress, provide the user real-time visibility into which workflow and step is currently running, enable session recovery if a run is interrupted, and serve as a structured execution log that doubles as the final report.

Task Hierarchy

Every run of this skill creates the following task tree. Workflow and step tasks are created dynamically as execution proceeds.

[Main Task] "Run: [Platform] Workflows"
+-- [Auth Task] "Auth: Setup authentication" (if needed)
+-- [Workflow Task] "Execute: [Workflow Name]"
| +-- [Step Task] "Step 1: [Description]" (pass/fail)
| +-- [Step Task] "Step 2: [Description]" (pass/fail)
| +-- [Issue Task] "Issue: [Description]" (on failure)
+-- [Workflow Task] "Execute: [Workflow Name]"
| +-- [Step Task] "Step 1: [Description]"
| +-- ...
+-- [Report Task] "Report: Execution Summary"

Step tasks record pass/fail status in their metadata. Issue tasks are created inline whenever a step fails, capturing the failure details, expected vs actual state, and screenshot path.

Session Recovery Check

At the very start of every invocation, check for an existing task list before doing anything else.

1. Read the current TaskList.
2. If no task list exists -> start from Phase 1.
3. If a task list exists:
a. Find the last task with status "completed" or "in_progress".
b. Determine the corresponding workflow and step.
c. Inform the user: "Resuming from [Workflow Name], Step N."
d. Skip to that point in execution.

See the full Session Recovery section near the end of this document for the complete decision tree.


Arguments

Parse $ARGUMENTS to determine execution parameters.

Platform Filter

The first positional argument specifies which workflow platform to run:

ArgumentWorkflow FileViewport
desktop/workflows/desktop-workflows.mdDefault (1280x720)
mobile/workflows/mobile-workflows.md393x852 (iPhone 14 Pro)
multi-user/workflows/multi-user-workflows.mdDefault (1280x720)
_(none)_Auto-detect from available filesDepends on file found
URL Flag

--url URL sets the base URL of the running application. If not provided, the runner asks the user via AskUserQuestion.

Rigor Flag

--fail-fast runs in fail-fast mode: only verify that pages load and the happy path completes. Skip DOM assertions and detailed verification. Default (no flag) is thorough mode: full DOM assertions, viewport intersection checks, and detailed verification on every step.

FlagBehavior
_(none)_Thorough — full DOM assertions + wait-for-element polling + viewport checks on every Verify step
--fail-fastFail-fast — verify pages load (status 200, key element visible), skip DOM detail checks, stop workflow on any failure
Auto-Detection

When no platform argument is given:

  1. Use Glob to scan for /workflows/*-workflows.md.
  2. If exactly one file exists, use it automatically.
  3. If multiple files exist, ask the user via AskUserQuestion:
I found workflow files for multiple platforms:
- desktop-workflows.md
- mobile-workflows.md
- multi-user-workflows.md
Which platform would you like to run?
1. Desktop
2. Mobile
3. Multi-user
4. All (run sequentially)
Example Invocations
$ARGUMENTS = "desktop --url http://localhost:3000"
-> Run desktop workflows against localhost:3000 (thorough mode)
$ARGUMENTS = "mobile --fail-fast"
-> Run mobile workflows in fail-fast mode, ask for URL
$ARGUMENTS = "desktop --fail-fast --url http://localhost:3000"
-> Fail-fast smoke test of desktop workflows against localhost:3000
$ARGUMENTS = ""
-> Auto-detect platform, ask for URL (thorough mode)

Phase 1: Discover and Parse Workflows

Step 1: Locate the Workflow File

Based on the platform argument (or auto-detection), find and read the target workflow file.

Use Glob to find:
- workflows/desktop-workflows.md
- workflows/mobile-workflows.md
- workflows/multi-user-workflows.md

If the target file does not exist, stop and inform the user:

No workflow file found at /workflows/[platform]-workflows.md.
Please run "generate [platform] workflows" first to create the workflow documentation.
Step 2: Parse Workflows

Read the entire workflow file. For each workflow, extract:

  1. Workflow number -- from the ## Workflow [N]: heading
  2. Workflow name -- the descriptive name after the number
  3. Auth requirement -- from <!-- auth: required --> or <!-- auth: no -->
  4. Priority -- from <!-- priority: core -->, <!-- priority: feature -->, or <!-- priority: edge -->
  5. Deprecated flag -- from <!-- deprecated: true --> (skip deprecated workflows)
  6. Personas -- from <!-- personas: admin, user, guest --> (multi-user only)
  7. Preconditions -- the bullet list under **Preconditions:**
  8. Steps -- each numbered step and its verification sub-steps
  9. Postconditions -- the bullet list under **Postconditions:**

Skip any workflow marked <!-- deprecated: true -->. Log skipped workflows:

Parsed 25 workflows from desktop-workflows.md.
Skipped 2 deprecated: #7 (Legacy Export), #15 (Old Settings).
Executing 23 active workflows.
Step 3: Determine Base URL

If --url was provided, use it. Otherwise, ask the user via AskUserQuestion:

What is the base URL of your running application?
Examples:
- http://localhost:3000
- https://my-app-preview.vercel.app
- https://staging.myapp.com
Note: The app must be running and accessible before I begin execution.
Step 4: Create the Main Task
TaskCreate:
title: "Run: [Platform] Workflows"
status: "in_progress"
metadata:
platform: "desktop"
base_url: "http://localhost:3000"
total_workflows: 23
source_file: "/workflows/desktop-workflows.md"

Phase 2: Authentication Setup

Check all parsed workflows for auth requirements. If any workflow has <!-- auth: required -->, authentication must be established before execution begins.

Step 1: Detect Auth Needs

Scan parsed workflows for:

  • <!-- auth: required --> -- standard auth needed
  • <!-- personas: admin, user, guest --> -- multi-user auth needed (one session per persona)

If no workflows require auth, skip to Phase 3.

Step 2: Check for Saved Profiles

Before asking the user for credentials, check if Playwright authentication profiles have already been set up for this project.

1. Check if .playwright/profiles.json exists at the project root.
2. If it exists, read it to discover available profiles.
3. For each profile, check if the corresponding storageState file exists
at .playwright/profiles/<role-name>.json.

If profiles are found with valid storageState files, select which profile to use:

  • If only one profile exists, use it automatically.
  • If multiple profiles exist, present the available profiles with their descriptions and ask the user which one to use for the run:
I found [N] authentication profiles for this project:
1. admin — Full admin permissions
2. user — Standard user account
3. viewer — Read-only access
Which profile should I use for this workflow run?

Once a profile is selected, load it into the current named session:

playwright-cli -s={session} state-load ".playwright/profiles/<selected-profile>.json"

If the profile JSON contains a sessionStorage field, restore those entries after navigating to the origin:

playwright-cli -s={session} goto "<origin>"
playwright-cli -s={session} sessionstorage-set "<name>" "<value>"

After loading, navigate to the base URL and verify the session is still valid:

playwright-cli -s={session} goto "{base_url}"
playwright-cli -s={session} snapshot
  1. If the browser is redirected to the profile's loginUrl (check the Page URL in the snapshot output), the session has expired.
  2. If the final URL is on a different domain (e.g., an OAuth provider), the session has expired.
  3. If login-related UI is visible in the snapshot instead of the expected page content, the session has expired.

If expiry is detected, inform the user and suggest running /setup-profiles to refresh it.

Step 2.5: Load test data context

After loading a profile, check if it has a files array and/or acceptance object in profiles.json. If present, store this context for use during Phase 3 execution:

  • Files list: available test fixtures for this profile
  • Profile-level acceptance: default verification criteria
  • Per-file overrides: file-specific acceptance criteria that override profile defaults

This context is used automatically when the runner encounters Upload steps during workflow execution.

If profiles are configured but storageState files are missing, inform the user:

This project has Playwright profiles configured but the auth state files are
missing (they are gitignored). Run /setup-profiles to authenticate.

If no profiles exist, proceed to Step 3 to ask the user for an auth strategy.

Step 3: Ask User for Auth Strategy

Use AskUserQuestion to determine how to handle authentication:

[N] of your workflows require authentication. How would you like to handle login?
1. **Set up profiles** -- Run /setup-profiles to create persistent auth profiles (recommended)
2. **Provide credentials now** -- I will use Playwright to log in via the app's login page
3. **Use existing storageState** -- Provide a path to an auth JSON file
4. **App does not need auth** -- Skip authentication setup
Step 4: Execute Auth Strategy

Strategy 1: Setup Profiles

Inform the user to run /setup-profiles first, then re-invoke this skill. Profiles persist across sessions and eliminate repeated logins.

Strategy 2: Credentials Login

Ask the user for email and password via AskUserQuestion:

Please provide login credentials.
Email: [user enters email]
Password: [user enters password]

Then perform the login via Playwright CLI:

1. playwright-cli -s={session} goto "{base_url}/login"
2. playwright-cli -s={session} snapshot # find login form fields
3. playwright-cli -s={session} fill {email-ref} "{email}"
4. playwright-cli -s={session} fill {password-ref} "{password}"
5. playwright-cli -s={session} click {submit-ref}
6. playwright-cli -s={session} snapshot # verify successful login
7. Record the authenticated browser state for subsequent workflows

Strategy 3: Existing storageState

Ask the user for the JSON file path, then load it directly:

playwright-cli -s={session} state-load "{path-to-json}"

Strategy 4: Skip Auth

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
30
Repository forks
2
7-day trend score
17

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/neonwatty/qa-skills/playwright-runner/badge)](https://verified-skill.com/skills/neonwatty/qa-skills/playwright-runner)

Something wrong with this skill or its page? Tell us.