playwright

Automate real browser tasks from the terminal using Playwright CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Kevin-Mok/ai-cli-dotfiles --skill playwright-kevin-mok
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/Kevin-Mok/ai-cli-dotfiles/tree/main/dot_agents/skills/playwright
Command: npx skills add https://github.com/Kevin-Mok/ai-cli-dotfiles --skill playwright-kevin-mok

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @playwright/cli, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Automate real browser tasks from the terminal using Playwright CLI and a bundled wrapper script, enabling repeatable browser automation without requiring a global install.

Core Features & Use Cases

  • CLI-first automation: drive a real browser from the terminal with a wrapper script that uses npx to invoke @playwright/cli.
  • Snapshot, interact, and capture artifacts: take page snapshots, interact with elements, and save screenshots or traces for debugging.
  • Flexible deployment: can run with or without a global playwright-cli installation, with session management and multi-tab workflows.

Quick Start

Open a page with the wrapper script, perform a quick interaction, and capture a screenshot.

Frequently Asked Questions about playwright

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

FAQPage Schema
How do I automate browser tasks from the terminal using Playwright?

You can automate browser tasks from the terminal by using a wrapper script that invokes the Playwright CLI via npx. This enables repeatable web navigation, form interactions, and data extraction without requiring a global installation.

Do I need a global Playwright CLI installation to run terminal automation?

No, you do not need a global Playwright CLI installation to run terminal automation. The bundled wrapper script uses npx to invoke the @playwright/cli package directly, allowing flexible deployment with or without global installs.

Can I capture screenshots and traces during web automation sessions?

Yes, you can capture screenshots and save traces during web automation sessions. The wrapper script supports taking page snapshots, interacting with elements, and capturing artifacts for debugging visual verifications.

How does the wrapper script handle multi-tab browser automation workflows?

The wrapper script handles multi-tab browser automation workflows through built-in session management. This allows you to drive complex web navigation and form interactions across multiple tabs within a single terminal session.

What do I need to set up before starting browser automation with this script?

Before starting browser automation, you need Node.js and npm installed on your system. The wrapper script located in the skill's scripts/ directory uses these to invoke the @playwright/cli package for terminal-driven browser control.

What is the best way to debug web automation scripts when visual verifications fail?

The best way to debug web automation scripts when visual verifications fail is to use optional tracing and artifact capture. You can save screenshots and traces directly from your terminal session to inspect page states and interactions.