技能
🌐 Skills
技能教会编码代理如何有效使用 playwright-cli,提供结构化的参考文档,代理可以发现并使用这些文档。
🌐 Skills teach coding agents how to use playwright-cli effectively, providing structured reference documentation that agents can discover and use.
安装技能
🌐 Installing skills
playwright-cli install --skills
此操作会在本地安装技能文件,以便你的编码代理可以引用它们来获取有关可用命令和工作流的上下文信息。
🌐 This installs skill files locally so your coding agent can reference them for context about available commands and workflows.
提供哪些技能
🌐 What skills provide
已安装的技能包含常见任务的详细参考指南:
🌐 The installed skill includes detailed reference guides for common tasks:
- 运行和调试 Playwright 测试 — 运行、调试和管理 Playwright 测试套件
- 请求模拟 — 拦截并模拟网络请求
- 运行 Playwright 代码 — 执行任意 Playwright 脚本
- 浏览器会话管理 — 管理多个浏览器会话
- 存储状态(Cookies,本地存储) — 持久化并恢复浏览器状态
- 测试生成 — 从交互中生成 Playwright 测试
- 追踪 — 记录并检查执行跟踪
- 视频录制 — 捕捉浏览器会话视频
- 检查元素属性 — 获取快照中不可见的元素属性
无需技能操作
🌐 Skills-less operation
你可以在不安装技能的情况下使用 playwright-cli。将你的代理指向 CLI,让它发现命令:
🌐 You can use playwright-cli without installing skills. Point your agent at the CLI and let it discover commands:
Test the "add todo" flow on https://demo.playwright.dev/todomvc using playwright-cli.
Check playwright-cli --help for available commands.
支持的代理
🌐 Supported agents
技能适用于:
🌐 Skills work with:
- 克劳德代码
- GitHub 助手
- 光标
- 支持本地安装技能的任何编码代理