通过终端自动控制真实浏览器,执行测试、抓取数据与界面调试。
该技能材料显示其为开源、社区广泛采用的浏览器自动化 Skill,且不要求密钥、未声明固定远程端点,整体风险偏低。需注意其固有能力包括驱动真实浏览器访问网站、可能下载运行 CLI 依赖,并可读取页面内容与生成截图,因此更适合评为以常规使用注意事项为主的低到中低风险。
材料明确标注“无”密钥/环境变量要求;未见要求用户提供 API token、账号凭证或将凭证写入配置的说明,凭证暴露面较小。
该技能用于驱动真实浏览器访问用户指定网页,并通过 npx/package 机制运行 @playwright/cli,常规情况下会产生到目标网站及相关包源的网络连接。材料未声明额外第三方数据收集端点,但页面内容、表单输入、截图等可能随用户操作进入外部网站。
README 明确包含终端命令、wrapper 脚本与 npx/npm 调用,说明其会在本机启动 CLI/浏览器进程并执行自动化操作。这属于该类浏览器自动化工具的固有能力,未见申请超出声明用途的系统高权限。
按描述可打开页面、抓取快照、提取数据、生成截图/trace/pdf,意味着可读取浏览器会话中的页面内容并在本地保存工件。材料未显示其申请广泛文件系统访问或无关数据权限,但用户应假设其可接触自动化流程中呈现的数据。
来源为 GitHub 上的 openai/skills 开源仓库,社区采用度高(约 22k stars),可审计性和来源可信度较强,明显降低供应链风险。虽许可证与维护状态未明确,且 npx/npm 依赖链仍需常规留意,但材料中未见闭源、不明分发源或明显注入红旗。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "playwright" 技能: 1. 下载 https://raw.githubusercontent.com/openai/skills/main/skills/.curated/playwright/SKILL.md 2. 保存为 ~/.claude/skills/playwright/SKILL.md 3. 装好后重载技能,告诉我可以用了
Drive a real browser from the terminal using playwright-cli. Prefer the bundled wrapper script so the CLI works even when it is not globally installed.
Treat this skill as CLI-first automation. Do not pivot to @playwright/test unless the user explicitly asks for test files.
Before proposing commands, check whether npx is available (the wrapper depends on it):
command -v npx >/dev/null 2>&1
If it is not available, pause and ask the user to install Node.js/npm (which provides npx). Provide these steps verbatim:
# Verify Node/npm are installed
node --version
npm --version
# If missing, install Node.js/npm, then:
npm install -g @playwright/cli@latest
playwright-cli --help
Once npx is present, proceed with the wrapper script. A global install of playwright-cli is optional.
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh"
User-scoped skills install under $CODEX_HOME/skills (default: ~/.codex/skills).
Use the wrapper script:
"$PWCLI" open https://playwright.dev --headed
"$PWCLI" snapshot
"$PWCLI" click e15
"$PWCLI" type "Playwright"
"$PWCLI" press Enter
"$PWCLI" screenshot
If the user prefers a global install, this is also valid:
npm install -g @playwright/cli@latest
playwright-cli --help
Minimal loop:
"$PWCLI" open https://example.com
"$PWCLI" snapshot
"$PWCLI" click e3
"$PWCLI" snapshot
Snapshot again after:
Refs can go stale. When a command fails due to a missing ref, snapshot again.
"$PWCLI" open https://example.com/form
"$PWCLI" snapshot
"$PWCLI" fill e1 "[email protected]"
"$PWCLI" fill e2 "password123"
"$PWCLI" click e3
"$PWCLI" snapshot
"$PWCLI" open https://example.com --headed
"$PWCLI" tracing-start
# ...interactions...
"$PWCLI" tracing-stop
"$PWCLI" tab-new https://example.com
"$PWCLI" tab-list
"$PWCLI" tab-select 0
"$PWCLI" snapshot
The wrapper script uses npx --package @playwright/cli playwright-cli so the CLI can run without a global install:
"$PWCLI" --help
Prefer the wrapper unless the repository already standardizes on a global install.
Open only what you need:
references/cli.mdreferences/workflows.mde12.eval and run-code unless needed.eX and say why; do not bypass refs with run-code.--headed when a visual check will help.output/playwright/ and avoid introducing new top-level artifact folders.用于构建、脚手架生成、重构并排查 ChatGPT Apps SDK 应用问题。
帮助你基于接口文档或脚本快速生成可组合的命令行工具
为项目代码库生成定制化设计系统规则,统一 Figma 到代码协作规范。
一键创建新的 Figma 设计或 FigJam 空白文件,便于快速开始协作创作。
将代码或页面描述转成Figma完整界面,并按设计系统逐段搭建设计稿
帮助你构建、评审与重构 ASP.NET Core Web 应用及架构方案
用于自动操作浏览器、截图并执行端到端测试流程
帮助你自动控制网页流程,处理多步骤操作、登录检查与标签页管理。
通过 Playwright 自动化浏览器操作与冒烟测试,支持截图、抓包和页面交互。
通过 Playwright 沙箱控制浏览器,自动执行网页操作与测试流程。
通过 Playwright 驱动真实浏览器,帮助用户浏览网页、点击交互并执行自动化测试。
通过 Playwright 自动控制浏览器,完成网页操作、截图与会话管理。