dev-browser
Skill9 starsChanged 3 months agoMITView on GitHub
Control a local or remote browser with sandboxed JavaScript scripts. Uses a QuickJS WASM sandbox (not Node.js) with a pre-connected `browser` global and full Playwright Page API. Backed by a persistent daemon that manages named browser instances between script runs. Use for UI testing, web scraping, and automation where you have local browser access.
- Installs packages
9 other projects use a version of this.
Adopted by
Most recently taken up by
- SawyerHood/dev-browsertheir own version, first seen Sep 4, 2026
- ivanrvpereira/.agentstheir own version, first seen Aug 27, 2026
- verygoodplugins/browser-handtheir own version, first seen Jul 30, 2026
- Naoray/skillstheir own version, first seen May 22, 2026
- juliajakubowskabiznes/claude-skillstheir own version, first seen Apr 16, 2026
- jorucker/claude-skillstheir own version, first seen Mar 12, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- SawyerHood/dev-browser★ 6.6ksame name
- ivanrvpereira/.agents★ 18same name
- ajbmachon/ajbm-skills★ 7same name
- juliajakubowskabiznes/claude-skills★ 3same name
- wrsmith108/dev-browser-claude-skill★ 3same name
- manke001-zhy/claude-code-skills★ 2same name
- verygoodplugins/browser-hand★ 2same name
- Naoray/skills★ 1same name
- jorucker/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- debug-tracerSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- duplicate-threadSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- git-hygieneSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- parallel-worktreesSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repo-memory-updaterSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- smart-commitSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- system-prompt-auditSkill
- task-alive-updatesSkill
- task-scoperSkill
- design-taste-frontendSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Add to .claude/settings.json to pre-approve all commands:
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: dev-browser — Browser Automation via Sandboxed JS
Installation
npm install -g dev-browser
dev-browser install # Downloads Playwright + ChromiumAdd to .claude/settings.json to pre-approve all commands:
{"permissions": {"allow": ["Bash(dev-browser *)"]}}Primary invocation styles
# Inline heredoc (most common)
dev-browser <<'EOF'
const page = await browser.getPage("main");
await page.goto("https://example.com");
console.log(await page.title());
EOF
# Run a .js file
dev-browser run script.js
# Named browser instance (persists across runs)
dev-browser --browser my-project < script.js
# Connect to existing Chrome (local debugging port)
dev-browser --connect http://localhost:9222 <<'EOF'
const page = await browser.getPage("main");
await page.goto("https://example.com");
EOF
# Auto-discover Chrome with remote debugging enabled
dev-browser --connect <<'EOF'
const page = await browser.getPage("main");
console.log(await page.title());
EOFCLI flags
| Flag | Default | Description |
--browser NAME | "default" | Named daemon-managed browser instance |
--connect [URL] | — | Connect to running Chrome (no URL = auto-discover) |
--headless | — | Launch without visible window |
--ignore-https-errors | — | Ignore self-signed TLS certificate errors |
--timeout SECONDS | 30 | Max script execution time |
Subcommands
dev-browser run FILE # Run a JS file
dev-browser install # Install Playwright browsers (Chromium)
dev-browser browsers # List all managed browser instances
dev-browser status # Show daemon status
dev-browser stop # Stop daemon and all browsersSandbox environment
Scripts run in QuickJS WASM, NOT Node.js. These are NOT available:
require()/import()— no module loadingprocess— no process accessfs/path/os— no direct filesystem accessfetch/WebSocket— no direct network access__dirname/__filename— no path globals
Available globals:
browser // Pre-connected browser handle
console.log/info/warn/error(...) // log/info → stdout; warn/error → stderr
setTimeout / clearTimeout // Basic timers
await saveScreenshot(buf, name) // Save to ~/.dev-browser/tmp/<name>
await writeFile(name, data) // Write to ~/.dev-browser/tmp/<name>
await readFile(name) // Read from ~/.dev-browser/tmp/<name>Top-level await is available. Memory and CPU limits are enforced.
Browser API
browser.getPage(nameOrId) // Get named page (creates if new); or connect by targetId
browser.newPage() // Anonymous page (cleaned up when script exits)
browser.listPages() // [{id, url, title, name}]
browser.closePage(name) // Close and remove a named pageFull script example (Playwright Page API)
const page = await browser.getPage("main");
// Navigation
await page.goto("https://example.com", { waitUntil: "domcontentloaded" });
// Interaction
await page.click("button");
await page.fill("input[name='email']", "test@example.com");
await page.select("select", "option-value");
// AI-friendly snapshot (use before interacting with unknown UIs)
const snapshot = await page.snapshotForAI();
console.log(snapshot);
// Screenshots
const buf = await page.screenshot();
const path = await saveScreenshot(buf, "home.png");
console.log("saved to", path);
// Evaluation
const title = await page.title();
const url = page.url();
const content = await page.content();
const text = await page.textContent("h1");
// Waiting
await page.waitForTimeout(1000);
await page.waitForSelector(".loaded");
await page.waitForNavigation();
await page.waitForFunction(() => document.readyState === "complete");LLM usage patterns
Discovery → action (for unfamiliar UIs):
// Step 1: snapshot to discover selectors
const page = await browser.getPage("app");
await page.goto("http://localhost:3000", { waitUntil: "domcontentloaded" });
const snapshot = await page.snapshotForAI();
console.log(snapshot);
EOF
# Step 2: use selectors from snapshot in next script
dev-browser <<'EOF'
const page = await browser.getPage("app");
await page.click(".btn-submit"); // use real selector from snapshot
const buf = await page.screenshot();
await saveScreenshot(buf, "after-click.png");
EOFDev server navigation (avoid HMR hangs):
await page.goto("http://localhost:3000", { waitUntil: "domcontentloaded" });Cross-script state (named pages persist between runs):
// Script A: login
const page = await browser.getPage("session");
await page.goto("https://app.example.com/login");
await page.fill("#email", "user@example.com");
await page.fill("#password", "secret");
await page.click("#submit");
// Page stays open — named "session"
// Script B: use logged-in session
const page = await browser.getPage("session");
await page.goto("https://app.example.com/dashboard");Connect to existing Chrome
# Launch Chrome with debugging enabled
google-chrome --remote-debugging-port=9222
# or on macOS:
open -a "Google Chrome" --args --remote-debugging-port=9222
# Then connect
dev-browser --connect http://localhost:9222 <<'EOF'
const page = await browser.getPage("main");
console.log(await page.title());
EOFPerformance
- Time: ~3m 53s for complex tasks
- Cost: $0.88/run
- Success rate: 100% in benchmarks
- Outperforms Playwright MCP (4m 31s) and Playwright Skill (8m 7s)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

