Agent skill
playwright
Use Playwright for browser automation in this workspace. Install locally and run scripts as needed.
Install this agent skill to your Project
npx add-skill https://github.com/rcarmo/piclaw/tree/main/runtime/skills/integrations/playwright
SKILL.md
Playwright
Use Playwright for browser automation and web scraping.
Steps
-
Ensure the project has a
package.json(create if missing):bashbun init -y -
If the project already has dependencies, install them:
bashbun install -
Install Playwright locally (per-project):
bashbun add -d playwright -
Install the browsers and OS deps (recommended in this container):
bashbunx playwright install --with-deps # or just chromium if you want lighter installs bunx playwright install chromium --with-deps -
Create a script (example):
tsimport { 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:
bashbun run scripts/playwright/example.ts
Tips
- For debugging, run with
headless: falseand addslowMo: 50. - If Playwright complains about missing dependencies, re-run:
bash
bunx playwright install --with-deps - To keep browser binaries in the workspace, set:
bash
export PLAYWRIGHT_BROWSERS_PATH=/workspace/.cache/ms-playwright
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
autoresearch-create
Set up and run an autonomous experiment loop for any optimization target. Gathers what to optimize, then starts the loop immediately. Use when asked to "run autoresearch", "optimize X in a loop", "set up autoresearch for X", or "start experiments".
portainer-container-compare-chart
Compare two containers using native portainer tool data collection and render SVG/CSV outputs.
proxmox-guest-compare-chart
Compare two Proxmox guests using native proxmox tool data collection and render SVG/CSV outputs.
schedule
Schedule a task to run later or on a recurring basis. Prefer the schedule_task tool; fallback to IPC only if needed.
reload
Reinstall piclaw from workspace source and force-restart the running process. Use after making code changes to piclaw.
send-message
Send a message to the chat immediately without waiting for the current task to finish. Useful for acknowledging requests or sending progress updates while working.
Didn't find tool you were looking for?