playwright

Automate real browser tasks from the terminal using Playwright CLI.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/ccstudentcc/agent-prompts --skill playwright-ccstudentcc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/ccstudentcc/agent-prompts/tree/main/.codex/skills/playwright
Command: npx skills add https://github.com/ccstudentcc/agent-prompts --skill playwright-ccstudentcc

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Drive real browser automation from the command line using Playwright CLI, with a bundled wrapper to work even when the CLI is not globally installed.

Core Features & Use Cases

  • CLI-first browser automation: open pages, take snapshots, interact with elements, and collect artifacts (screenshots, traces) from the terminal.
  • Safe, guided workflow: prerequisites check for npx, optional global install, and a wrapper that preserves local environments.
  • Debugging and multi-tab flows: run scripted interactions across pages and use snapshots to stabilize element references during automation.

Quick Start

Execute the wrapper script against a URL to start a first browser session and perform initial interactions.

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?

To automate browser tasks from the terminal, this Skill uses a wrapper script with Playwright CLI to handle navigation, form filling, and UI debugging. It enforces prerequisite checks and guardrails for safe, CLI-first automation.

Do I need Playwright CLI globally installed to run browser automation scripts?

You do not need Playwright CLI globally installed to run browser automation scripts. The Skill includes a bundled wrapper script that preserves local environments and executes automation workflows even when the CLI is not globally available.

Can I take screenshots and collect traces during web testing via command line?

Yes, you can take screenshots and collect traces during web testing via command line. The Skill supports CLI-first browser automation to open pages, take snapshots, interact with elements, and collect artifacts like screenshots and traces.

How do I stabilize element references when debugging multi-tab browser automation workflows?

To stabilize element references when debugging multi-tab browser automation workflows, the Skill uses snapshots. This allows you to run scripted interactions across multiple pages and maintain stable element references during execution.

What are the limitations of using a wrapper script for CLI-first browser automation?

The limitations of using a wrapper script for CLI-first browser automation include dependency on npx for prerequisite checks and local environment constraints. The wrapper preserves local environments but requires guardrails to ensure safe execution without global installs.

Is Playwright CLI suitable for UI debugging and form filling automation?

Yes, Playwright CLI is suitable for UI debugging and form filling automation. The Skill targets software engineering scenarios involving navigation, form filling, and UI debugging, enforcing prerequisite checks and wrapper-based execution for safe automation.