用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rcarmo/piclaw --skill playwright命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | playwright |
| description | Use Playwright for browser automation in this workspace. Install locally and run scripts as needed. |
| distribution | public |
Use Playwright for browser automation and web scraping.
Ensure the project has a package.json (create if missing):
bun init -y
If the project already has dependencies, install them:
bun install
Install Playwright locally (per-project):
bun add -d playwright
Install the browsers and OS deps (recommended in this container):
bunx playwright install --with-deps
# or just chromium if you want lighter installs
bunx playwright install chromium --with-deps
Create a script (example):
import { chromium } from "playwright";
const browser = await chromium.launch({ headless: true });
const page = await browser.newPage();
await page.goto("https://example.com", { waitUntil: "domcontentloaded" });
const title = await page.title();
console.log(title);
await browser.close();
Run the script with Bun:
bun run scripts/playwright/example.ts
headless: false and add slowMo: 50.bunx playwright install --with-deps
export PLAYWRIGHT_BROWSERS_PATH=/workspace/.cache/ms-playwright
基于 SOC 职业分类