一键导入
playwright
Use when you need to scrape pages, extract structured data or interact with web interfaces via headless browser automation without using screenshots.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need to scrape pages, extract structured data or interact with web interfaces via headless browser automation without using screenshots.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when a long-form manuscript (book chapter, ebook, multi-chapter playbook, long-form digital product) needs an editing pass to identify and remove AI writing tells. Sweeps across 8 pattern categories, assembles a structured edit packet for operator review, and applies approved edits.
Use when you have spare capacity and want to set your system improving without active attention. Operator-invoked only, never scheduled. Safe, additive, reversible hygiene work runs under a threshold model with a permanent floor of actions the agent never takes on its own.
Use when archiving several workspace artifacts at once with per-artifact approval gates before any archive move executes.
Use when deciding whether a piece of deterministic, no-judgment work should route to a secondary AI provider instead of your primary interface. Covers the provider catalog, the five-condition eligibility test and the dispatch script.
Retire a stalled or indefinitely-deferred plan without losing its value. Candidate scan, harvest, distribute, sweep, archive and codify.
Automated pull request review for your repos. Five parallel agents, confidence scoring, convention-file compliance, and GitHub comment posting.
| name | playwright |
| description | Use when you need to scrape pages, extract structured data or interact with web interfaces via headless browser automation without using screenshots. |
| status | active |
| version | 1.1 |
This skill also ships inside the Sovereign Ecosystem template.
Purpose: Browser automation via headless Chromium. Scrape pages, extract structured data, and interact with web interfaces. Returns clean JSON, not screenshots.
Token efficiency: approximately 200-500 tokens per page vs 20,000-30,000 for screenshot-based approaches.
The run.js script ships inside this plugin's scripts/ directory. Pass a URL argument and it returns JSON.
node "<path-to-plugin>/scripts/run.js" https://example.com
Replace <path-to-plugin> with the path where this plugin is installed in your environment. For plugin-based runtimes (Claude Code with IGOS), the script lives at:
plugins/playwright/scripts/run.js
Output format:
{
"url": "https://example.com",
"title": "Page title",
"text": "Cleaned body text...",
"links": [
{ "text": "Link text", "href": "https://..." }
]
}
Playwright must be installed before first use. Run these once from the plugin's scripts/ directory:
npm install playwright --prefix "<path-to-plugin>/scripts"
npx playwright install chromium
Chromium binary installs to the node_modules/ directory inside scripts/. Add this path to your AI interface's ignore configuration so it does not appear in context reads.
waitUntil to networkidle and retry.npx playwright install chromium from the scripts directory.playwright-extra and puppeteer-extra-plugin-stealth if a site blocks the script.networkidle for slow pages.finally block. This is already handled in run.js.Tell your AI interface what you need in plain English. Example prompts:
Your AI reads this SKILL.md, runs the script, and returns the data.
Researcher pairs naturally. Use Playwright for structured page extraction when web search tools return incomplete or truncated content.
Source Harvest often needs deep reads of external repos or documentation. Playwright handles pages that block standard fetch tools.
If Researcher isn't installed yet: Install Researcher via Infinite Game OS. If Source Harvest isn't installed yet: Install Source Harvest via Infinite Game OS.
Dispatch the cheapest model that does the job well. Before each delegated step, ask whether a smaller model would produce equivalent output.
| Task type | Model |
|---|---|
| Script invocation, URL scrape, structured data extraction from clean JSON output | Haiku |
| Changelog or release-note summarization, multi-item synthesis with temporal filtering | Sonnet |
| Troubleshooting blocked or failed scrapes, multi-step diagnosis and option selection | Sonnet |
| Interpreting extracted data for a strategic decision | Opus |
Set the model explicitly on every subagent dispatch. Never silently inherit the top tier.
(Empty. Populated when execution mistakes occur during sessions.)