neonwatty/qa-skills/playwright-runner
Claude Code and agent skill by neonwatty/qa-skills
- community
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-runnerSKILL.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.
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.
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:
| Argument | Workflow File | Viewport | |
|---|---|---|---|
desktop | /workflows/desktop-workflows.md | Default (1280x720) | |
mobile | /workflows/mobile-workflows.md | 393x852 (iPhone 14 Pro) | |
multi-user | /workflows/multi-user-workflows.md | Default (1280x720) | |
| _(none)_ | Auto-detect from available files | Depends 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.
| Flag | Behavior | |
|---|---|---|
| _(none)_ | Thorough — full DOM assertions + wait-for-element polling + viewport checks on every Verify step | |
--fail-fast | Fail-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:
- Use Glob to scan for
/workflows/*-workflows.md. - If exactly one file exists, use it automatically.
- If multiple files exist, ask the user via
AskUserQuestion:
Example Invocations
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.
If the target file does not exist, stop and inform the user:
Step 2: Parse Workflows
Read the entire workflow file. For each workflow, extract:
- Workflow number -- from the
## Workflow [N]:heading - Workflow name -- the descriptive name after the number
- Auth requirement -- from
<!-- auth: required -->or<!-- auth: no --> - Priority -- from
<!-- priority: core -->,<!-- priority: feature -->, or<!-- priority: edge --> - Deprecated flag -- from
<!-- deprecated: true -->(skip deprecated workflows) - Personas -- from
<!-- personas: admin, user, guest -->(multi-user only) - Preconditions -- the bullet list under
**Preconditions:** - Steps -- each numbered step and its verification sub-steps
- Postconditions -- the bullet list under
**Postconditions:**
Skip any workflow marked <!-- deprecated: true -->. Log skipped workflows:
Step 3: Determine Base URL
If --url was provided, use it. Otherwise, ask the user via AskUserQuestion:
Step 4: Create the Main Task
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.
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:
Once a profile is selected, load it into the current named session:
If the profile JSON contains a sessionStorage field, restore those entries after navigating to the origin:
After loading, navigate to the base URL and verify the session is still valid:
- If the browser is redirected to the profile's
loginUrl(check thePage URLin the snapshot output), the session has expired. - If the final URL is on a different domain (e.g., an OAuth provider), the session has expired.
- 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:
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:
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:
Then perform the login via Playwright CLI:
Strategy 3: Existing storageState
Ask the user for the JSON file path, then load it directly:
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
- SKILL.md in the repositoryCheckingskills/playwright-runner/SKILL.md
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
[](https://verified-skill.com/skills/neonwatty/qa-skills/playwright-runner)