playwright

Automate real-browser tasks via Playwright CLI from the terminal.

1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/cdrguru/portable-agent-kit --skill playwright-cdrguru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/cdrguru/portable-agent-kit/tree/main/.codex/skills/playwright
Command: npx skills add https://github.com/cdrguru/portable-agent-kit --skill playwright-cdrguru

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Drive a real browser from the terminal using Playwright CLI and a portable wrapper script to run browser automation without requiring a global install.

Core Features & Use Cases

  • CLI-first browser automation for navigation, form filling, snapshots, screenshots, data extraction, and UI-flow debugging.
  • Wrapper script enables portable usage when Playwright CLI is not globally installed.
  • Optional: support open/close pages, interact with elements, and capture artifacts for debugging from the command line.

Quick Start

Run the wrapper script to open a URL, take a snapshot, interact with elements, and capture artifacts from the terminal.

Frequently Asked Questions about playwright

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

FAQPage Schema
How do I run browser automation from the terminal without installing Playwright globally?

Browser automation from the terminal is possible using a portable wrapper script that executes the Playwright CLI via npx, eliminating the need for a global installation. You can navigate, fill forms, and take screenshots directly from the command line.

Do I need Node.js to use npx for CLI-driven browser automation?

Yes, Node.js and npm are required to provide npx for CLI-driven browser automation. The wrapper script relies on npx to execute the Playwright CLI commands in your terminal environment for tasks like data extraction and navigation.

Can I take screenshots and capture snapshots using Playwright CLI in headless mode?

Yes, you can take screenshots and capture snapshots using Playwright CLI in headless mode. The wrapper script supports capturing artifacts for UI-flow debugging, allowing you to interact with elements and extract data without a visible browser interface.

What's the best way to debug UI flows from the command line using a real browser?

The best way to debug UI flows from the command line is using a wrapper script to drive the Playwright CLI. It enables you to open pages, interact with elements, and capture artifacts like snapshots directly in the terminal for debugging.

Does this approach to browser automation work for form filling and data extraction?

Yes, this approach to browser automation works for form filling and data extraction. By leveraging the Playwright CLI through a wrapper script, you can automate real-browser interactions such as navigation and data extraction directly from the terminal.

What are the limitations of using a wrapper script for browser automation via npx?

A limitation of using a wrapper script via npx is the dependency on a local Node.js and npm environment to execute the Playwright CLI. It is designed for CLI-driven automation scenarios and requires npx availability to run browser tasks portably without a global install.