playwrightcli

Use Playwright CLI when you need concise shell commands to open pages, check snapshots, click, type, capture screenshots, and manage browser sessions without preloading a full browser automation server or writing Playwright scripts manually.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "playwrightcli" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-80b8e33fba8951032df1356302967a27e4c066846cadac528c7ecd0f9d3f99bc. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/drive-token-efficient-browser-testing-from-coding-agents-with-playwright-cli before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use Playwright CLI when you need concise shell commands to open pages, check snapshots, click, type, capture screenshots, and manage browser sessions without preloading a full browser automation server or writing Playwright scripts manually.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Node.js 18+, npm, @playwright/cli, Playwright browsers, shell access from a coding agent
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "使用 Playwright CLI 从编码代理驱动高效的浏览器测试"
slug: "drive-token-efficient-browser-testing-from-coding-agents-with-playwright-cli"
version: "1.0.0"
displayName: "使用 Playwright CLI 从编码代理驱动高效的浏览器测试"
summary: "当编码代理需要通过简洁的shell命令打开页面、检查快照、点击、输入、捕获屏幕截图和管理浏览器会话时,请使用Playwright CLI,而无需先加载完整的浏览器自动化服务器或手动编写Playwright脚本。"
license: "MIT"
description: "当编码代理需要通过简洁的shell命令打开页面、检查快照、点击、输入、捕获屏幕截图和管理浏览器会话时,请使用Playwright CLI,而无需先加载完整的浏览器自动化服务器或手动编写Playwright脚本。"
github_stars: 9956
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Browser Automation"
framework: "Claude Code"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 9956
  npm_package: "@playwright/cli"
  npm_weekly_downloads: 596242

使用 Playwright CLI 从编码代理驱动高效的浏览器测试

Use Playwright CLI when a coding agent needs to open pages, inspect snapshots, click, type, capture screenshots, and manage browser sessions through concise shell commands instead of loading a full browser automation server or hand-writing Playwright scripts first.

Prerequisites

Node.js 18+, npm, @playwright/cli, Playwright browsers, shell access from a coding agent

Installation

Use the upstream install or setup path that matches your environment:

  • npm install -g @playwright/cli@latest
  • npx --no-install playwright-cli --version
  • When local version is available, use npx playwright-cli in all commands. Otherwise, install playwright-cli as a global command:

Requirements and caveats from upstream:

  • Node.js 18 or newer
  • | PLAYWRIGHT_MCP_EXTENSION Connect to a running browser instance (Edge/Chrome only). Requires the "Playwright MCP Bridge" browser extension to be installed. |

Basic usage or getting-started notes:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供 Playwright CLI 的浏览器自动化能力,显著提升编码代理在页面操作、截图、会话管理等方面的效率
  • 面向开发测试高频刚需场景,具有高实用价值
Trigger Precision95/100

Highlights

  • 触发描述精准完整,明确针对编码代理通过 shell 命令操作浏览器的场景
  • 功能边界清晰,覆盖核心使用需求
Structure and Standards75/100

Areas to improve

  • 缺少端到端示例 Reported severity: Minor

    文档缺少完整的端到端使用示例,用户可能需要额外查阅外部文档

    Recommendation: 添加一个完整的使用示例,展示从安装到实际操作的完整流程

  • 缺少步骤划分 Reported severity: Minor

    文档未明确划分 Phase 或步骤,执行流程不够清晰

    Recommendation: 将操作流程划分为明确的步骤或阶段,提高可读性

Highlights

  • 文档结构基本完整,包含前置条件、安装说明和基础用法
  • frontmatter 信息完整,包含必要的元数据
Execution Reliability70/100

Areas to improve

  • 异常处理覆盖不足 Reported severity: Minor

    未覆盖主要异常场景的处理方案,如浏览器启动失败、网络错误等

    Recommendation: 添加常见异常的处理建议和错误排查指南

  • 缺少操作确认机制 Reported severity: Minor

    对于可能产生副作用的操作(如关闭浏览器会话)缺少确认机制说明

    Recommendation: 说明如何安全地执行不可逆操作,或添加确认提示

Highlights

  • 工具来源明确,使用官方 @playwright/cli 包
  • 参数说明清晰,提供了多种安装和使用方式
Evidence Verifiability (mean of the first four)83/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 34, 35, 36
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Node.js 18+, npm, @playwright/cli, Playwright browsers, shell access from a coding agent

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.