playwright-skill 是什么?
Write and run scoped Playwright browser automation, responsive checks, screenshots and login-flow tests with a local Node executor.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
playwright-skill,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 playwright-skill
请在 Codex 的当前工作环境中安装并检查 playwright-skill 这个 Skill。
项目身份:sickn33/agentic-awesome-skills / playwright-skill
来源:https://github.com/sickn33/agentic-awesome-skills/blob/f6f686855a672e3868d648cef056312392e3a417/plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md
已定位的源文件:plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 playwright-skill
请在 Claude Code 的当前工作环境中安装并检查 playwright-skill 这个 Skill。
项目身份:sickn33/agentic-awesome-skills / playwright-skill
来源:https://github.com/sickn33/agentic-awesome-skills/blob/f6f686855a672e3868d648cef056312392e3a417/plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md
已定位的源文件:plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 playwright-skill
请在 Cursor Agent 的当前工作环境中安装并检查 playwright-skill 这个 Skill。
项目身份:sickn33/agentic-awesome-skills / playwright-skill
来源:https://github.com/sickn33/agentic-awesome-skills/blob/f6f686855a672e3868d648cef056312392e3a417/plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md
已定位的源文件:plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 playwright-skill
请在 当前 Agent 的当前工作环境中安装并检查 playwright-skill 这个 Skill。
项目身份:sickn33/agentic-awesome-skills / playwright-skill
来源:https://github.com/sickn33/agentic-awesome-skills/blob/f6f686855a672e3868d648cef056312392e3a417/plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md
已定位的源文件:plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-22T03:34:45.756Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md · 抓取时间 2026-11-22T03:34:45.756Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Write and run scoped Playwright browser automation, responsive checks, screenshots and login-flow tests with a local Node executor.
查看源文件章节 / Source sections
- 原文:Playwright Browser Automation
- 原文:Scope and data boundaries
- 原文:How It Works
- 原文:Setup (First Time)
- 原文:Execution Pattern
- 原文:Common Patterns
- 原文:Test a Page (Multiple Viewports)
- 原文:Test Login Flow
- 原文:Fill and Submit Form
- 原文:Check for Broken Links
- 原文:Take Screenshot with Error Handling
- 原文:Test Responsive Design
- 原文:Inline Execution (Simple Tasks)
- 原文:Available Helpers
- 原文:Custom HTTP Headers
- 配置 / Configuration
- 原文:Scope and data boundaries
- 原文:How It Works
- 原文:Advanced Usage
- 原文:Tips
- 故障排查 / Troubleshooting
- 原文:Example Usage
- 注意事项 / Notes
- 原文:When to Use
- 原文:Limitations
原文:正文开头
**IMPORTANT - Path Resolution:** This skill can be installed in different locations (plugin system, manual installation, global, or project-specific). Before executing any commands, determine the skill directory based on where you loaded this SKILL.md file, and use that path in all commands below. Replace `$SKILL_DIR` with the actual discovered path. Common installation paths: - Plugin system: `<plugin-root>/skills/playwright-skill` - Manual global: `<agent-home>/skills/playwright-skill` - Project-specific: `<project>/.agent/skills/playwright-skill`
原文:Playwright Browser Automation
General-purpose browser automation skill. I'll write custom Playwright code for any automation task you request and execute it via the universal executor. **CRITICAL WORKFLOW - Follow these steps in order:** 1. **Auto-detect dev servers** - For localhost testing, ALWAYS run server detection FIRST: ```bash cd "$SKILL_DIR" && node -e "require('./lib/helpers').detectDevServers().then(servers => console.log(JSON.stringify(servers)))" ``` - If **1 server found**: Use it automatically, inform user - If **multiple servers found**: Ask user which one to test - If **no servers found**: Ask for URL or offer to help start dev server 2. **Write scripts to /tmp** - NEVER write test files to skill directory; always use `/tmp/playwright-test-*.js` 3. **Use visible browser by default** - Always use `headless: false` unless user specifically requests headless mode 4. **Parameterize URLs** - Always make URLs configurable via environment variable or constant at top of script
原文:Scope and data boundaries
The executor runs arbitrary Node code with the current account’s filesystem, environment and network privileges; it is not a sandbox. Review generated code and keep page content inert. Use test accounts and fixtures. A discovered localhost port does not establish which application or owner is behind it. Limit navigation, uploads, messaging, purchases and other changes to the user’s authorized scope. Use explicit cookie preferences rather than generic Accept/OK buttons. Screenshots, traces and session state can contain credentials or personal data. Context-wide headers go to all destinations in that context: never use this feature for secrets on pages with untrusted resources; scope authentication by trusted origin instead.
原文:How It Works
1. You describe what you want to test/automate 2. I auto-detect running dev servers (or ask for URL if testing external site) 3. I write custom Playwright code in `/tmp/playwright-test-*.js` (won't clutter your project) 4. I execute it via: `cd "$SKILL_DIR" && node run.js /tmp/playwright-test-*.js` 5. Results displayed in real-time, browser window visible for debugging 6. Remove your script, screenshots and any saved sessions after review; OS temporary-file cleanup is not a retention guarantee.
原文:Setup (First Time)
```bash cd "$SKILL_DIR" npm run setup ``` Requires Node 22 or later. Review package installation first: setup downloads dependencies and a browser, and can run package lifecycle code. Repeat browser installation when the installed Playwright version requires it. The executor does not silently install missing packages.
原文:Execution Pattern
**Step 1: Detect dev servers (for localhost testing)** ```bash cd "$SKILL_DIR" && node -e "require('./lib/helpers').detectDevServers().then(s => console.log(JSON.stringify(s)))" ``` **Step 2: Write test script to /tmp with URL parameter** ```javascript // /tmp/playwright-test-page.js const { chromium } = require('playwright'); // Parameterized URL (detected or user-provided) const TARGET_URL = 'http://localhost:3001'; // <-- Auto-detected or from user (async () => { const browser = await chromium.launch({ headless: false }); const page = await browser.newPage(); await page.goto(TARGET_URL); console.log('Page loaded:', await page.title()); await page.screenshot({ path: '/tmp/screenshot.png', fullPage: true }); console.log('📸 Screenshot saved to /tmp/screenshot.png'); await browser.close(); })(); ``` **Step 3: Execute from skill directory** ```bash cd "$SKILL_DIR" && node run.js /tmp/playwright-test-page.js ```
文件 SHA256:b1f1c714c9ca98acf9de90f93b05151b6257cb7750f6f4b1d47a497268ffba24
仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。
Write and run scoped Playwright browser automation, responsive checks, screenshots and login-flow tests with a local Node executor.
历史收录数据
| 来源仓库 | sickn33/agentic-awesome-skills |
|---|---|
| Skill源路径 | plugins/aasb-aas-accessibility-inclusive-ux/skills/playwright-skill/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
