AGENT SKILL

playwriter

Chrome automation via Playwriter/Playwright for JS-heavy sites; run `playwriter skill`.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 2
Forks
0

01 前言 Front Matter

name
playwriter
description
Chrome automation via Playwriter/Playwright for JS-heavy sites; run `playwriter skill`.

02 资源文件 1

03 SKILL.md 正文

Playwriter

REQUIRED: Read full docs first:

playwriter skill # IMPORTANT! do not use | head. read in full!

Outputs complete docs: session management, timeout config, selector strategies (which to AVOID), timeout/failure prevention rules, slow pages, SPAs, context variables, utility functions.

Read ENTIRE output. Do NOT pipe through head, tail, or truncation. Critical rules about timeouts, selectors, pitfalls are spread throughout, not just at top.

Minimal Example (after reading full docs)

playwriter session new
playwriter -s 1 -e 'await page.goto("https://example.com")'

Always use single quotes for -e. Prevents bash interpreting $, backticks, backslashes in JS. Use double quotes or backtick template literals for JS strings.

If playwriter not found: npx playwriter@latest or bunx playwriter@latest.

04 同仓库更多 Skills