playwright-cli

Run Playwright tests, generate code, capture screenshots or PDFs, and apply CI sharding from the terminal.

320|3|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/mizchi/skills --skill playwright-cli-mizchi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/mizchi/skills/tree/main/testing/playwright-cli
Command: npx skills add https://github.com/mizchi/skills --skill playwright-cli-mizchi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terminal-based Playwright workflows often require switching between GUI and CLI to execute tests, generate code, and capture artifacts; this skill consolidates those CLI tasks for faster, repeatable results.

Core Features & Use Cases

  • Run tests with npx playwright test to execute suites from the terminal.
  • Generate test code with npx playwright codegen to capture interactions for future maintenance.
  • Produce screenshots or PDFs from URLs using CLI commands for quick verification and reporting.
  • Support CI sharding to parallelize test runs and optimize CI pipelines.

Quick Start

Run all Playwright tests from the terminal with the Playwright CLI using npx playwright test

Frequently Asked Questions about playwright-cli

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

FAQPage Schema
How do I run Playwright tests from the command line?

Run Playwright tests from the command line using `npx playwright test` to execute suites directly in the terminal, ensuring deterministic and scriptable runs without GUI dependency.

Can I generate Playwright test code automatically from the CLI?

Yes, you can generate Playwright test code automatically from the CLI by running `npx playwright codegen` to capture user interactions and record them for future test maintenance.

How do I take screenshots or generate PDFs of web pages using Playwright?

Take screenshots or generate PDFs of web pages using Playwright by executing specific CLI commands with target URLs, producing quick verification artifacts and reports directly from the terminal.

Does Playwright CLI support CI sharding for parallel test execution?

Yes, Playwright CLI supports CI sharding to parallelize test runs across multiple machines, optimizing CI pipelines by distributing test execution for faster and deterministic command-line workflows.

What is the best way to automate terminal-based Playwright workflows?

The best way to automate terminal-based Playwright workflows is by using a CLI skill that consolidates test execution, code generation, and artifact capture into scriptable commands for faster, repeatable results.