platforms/hermes/skills/software-development/playwright/SKILL.md
Use when the task requires automating a real browser. This skill is MCP-only and uses `playwright-ext` (`@playwright/mcp --extension`) to attach to the browser extension session.
npx skillsauth add codingsamss/ai-dotfiles playwrightInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use Playwright as the reliable browser execution layer in a three-layer stack:
playwright-ext: reliable browser executionUse a single channel only:
playwright-ext MCP.playwright-cli wrapper in this skill.@playwright/test unless the user explicitly asks for test files.Prefer Scrapling when:
Prefer PinchTab when:
Choose Playwright when:
Before proposing browser actions, verify MCP and runtime dependency:
codex mcp get playwright-ext
command -v npx >/dev/null 2>&1
If playwright-ext is missing, configure it with extension token:
codex mcp add playwright-ext \
--env PLAYWRIGHT_MCP_EXTENSION_TOKEN=<token> \
-- npx @playwright/mcp@latest --extension
If npx is missing, ask the user to install Node.js/npm:
node --version
npm --version
brew install node
Take over from Scrapling or PinchTab when:
When Playwright takes over, say why it is now required and keep the flow inside Playwright until the critical interaction is verified.
If taking over from PinchTab failure, require brief triage evidence before takeover:
pinchtab health, pinchtab instances, and one smoke test result (or equivalent evidence)service-down, auth-blocked, capability-gap, higher-repair-costSnapshot again after:
Refs can go stale. When a command fails due to a missing ref, snapshot again.
If playwright-ext fails with Extension connection timeout:
chrome-extension://.../connect.html.Invalid token provided, the extension token in config does not match the installed extension session token (or has expired/rotated).PLAYWRIGHT_MCP_EXTENSION_TOKEN.hermes mcp test playwright-ext verifies server startup and tool discovery only.mcp_playwright_ext_browser_tabs in a fresh session) to verify extension handshake actually works.git clone + README/metadata inspection). Only escalate to Playwright if page interaction is actually required.e12.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.tools
Apifox 接口测试用例:test-case 与 test-data 的查询、创建、更新、删除、分类和运行;处理测试步骤、断言、提取变量、前后置处理器、数据集,以及“CLI 创建后前端测试步骤无法展示”等问题。
tools
通过 Apifox CLI 管理 Apifox 项目资源。触发场景:运行接口自动化测试/测试套件,查询/创建/更新/删除接口、环境、Schema、Mock、分支等项目资源,导入导出 API 文档,查看测试报告,管理 Runner、定时任务、通知等 CI/CD 配置。CLI 输出为结构化 JSON,常含 agentHints.nextSteps;所有命令支持 --help。
tools
Apifox 接口测试用例:test-case 与 test-data 的查询、创建、更新、删除、分类和运行;处理测试步骤、断言、提取变量、前后置处理器、数据集,以及“CLI 创建后前端测试步骤无法展示”等问题。
tools
通过 Apifox CLI 管理 Apifox 项目资源。触发场景:运行接口自动化测试/测试套件,查询/创建/更新/删除接口、环境、Schema、Mock、分支等项目资源,导入导出 API 文档,查看测试报告,管理 Runner、定时任务、通知等 CI/CD 配置。CLI 输出为结构化 JSON,常含 agentHints.nextSteps;所有命令支持 --help。