browser-automation
Skill8 starsChanged 4 months agoApache-2.0View on GitHub
Use this skill when the user asks to interact with a browser, take screenshots, inspect a page, capture network traffic, detect frameworks, click elements, fill forms, record browser sessions, or automate any browser task. Orchestrates Crawlio Browser's 150 browser tools via the search + execute + connect_tab interface.
61 other projects use a version of this.
Adopted by
Most recently taken up by
- phant0um/claude-skillstheir own version, first seen Nov 29, 2026
- brookite/skillstheir own version, first seen Nov 29, 2026
- NorkzYT/claude-code-autopilottheir own version, first seen Nov 29, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- hybridlabor-api/aostheir own version, first seen Nov 29, 2026
- martinholovsky/claude-skills-generatortheir own version, first seen Nov 29, 2026
Used with
Projects with it also use karpathy-coder, api-test-suite-builder and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
csiddhant796-blipSkillkarpathy-coder
Use when writing, reviewing, or committing code to enforce Karpathy's 4 coding principles — surface assumptions before coding, keep it simple, make surgical changes, define verifiable goals. Triggers on "review my diff", "check complexity", "am I overcomplicating this", "karpathy check", "before I commit", or any code quality concern where the LLM might be overcoding.
Also in 5 projects that use this
Arnav-0Skillapi-test-suite-builder
Use when the user asks to generate API tests, create integration test suites, test REST endpoints, or build contract tests.
Also in 6 projects that use this
Hussain-ElfalahSkillandreessen
Also in 4 projects that use this
zhaoxuya520Skillbrowser-extension-reverse
Use for authorized reverse engineering of browser extensions (Chrome/Firefox) including manifest analysis, background workers, and extension-based credential or traffic logic recovery.
Also in 4 projects that use this
Hussain-ElfalahSkillbusiness-investment-advisor
Also in 4 projects that use this
zhaoxuya520Skillcloud-k8s
Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.
Also in 4 projects that use this
- +5 more from zhaoxuya520
- +1 more from Hussain-Elfalah
Other versions61 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 61
- zhaoxuya520/reverse-skill-private★ 45ksame name
- zhaoxuya520/reverse-skill★ 45ksame name
- civitai/civitai★ 7.3ksame name
- pierrecomputer/pierre★ 6.7ksame name
- SHAdd0WTAka/Zen-Ai-Pentest★ 470same name
- coco-research/coco★ 324same name
- web-infra-dev/midscene-skills★ 319same name
- irahardianto/awesome-agv★ 157same name
- galiprandi/job-seeker★ 149same name
- cigery-useio/useio-skills★ 103same name
51 more not listed
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 repository10 other files it gives its agents.
- canonical-recordingSkill
- cloneSkill
- compareSkill
- dossierSkill
- extractSkill
- investigateSkill
- monitorSkill
- robot-trainingSkill
- testSkill
- web-researchSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 40 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use this skill when the user wants to:
- Distinctive: line 17
Read cookies, localStorage, sessionStorage, or IndexedDB
- Distinctive: line 26
Before any browser operation, connect to a tab:
- Distinctive: line 37
Check connection status anytime:
- Very specific: line 44
ALWAYS
searchbeforeexecute: when you're unsure of a command name or its parameters. - Very specific: line 77
All browser commands run inside the execute tool.
- Very specific: line 199
After connecting to a page, smart auto-detects the framework and exposes typed accessors:
- Distinctive: line 336
When you don't know the exact command, search first:
- Distinctive: line 346
If the Crawlio desktop app is running, use the HTTP client:
“Common” is measured: kept by at least 6 in 10 of the 40 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
Browser Automation with Crawlio Browser
When to Use
Use this skill when the user wants to:
- Inspect, test, or interact with a live web page
- Take screenshots or capture accessibility snapshots
- Monitor network traffic, console logs, or errors
- Detect frameworks (React, Vue, Angular, Next.js, etc.)
- Click buttons, fill forms, type text, or navigate
- Read cookies, localStorage, sessionStorage, or IndexedDB
- Capture performance metrics, security state, or service workers
- Record browser sessions to capture interactions, navigation, network, and console as structured data
- Capture canonical RecordingBundle v1 training artifacts with
observe({ action: "recording_start" | "recording_stop" }) - Train replayable robots from human-guided demonstrations with the extension-resident
observelifecycle - Automate multi-step browser workflows
Connection (Always First)
Before any browser operation, connect to a tab:
connect_tab({ url: "https://example.com", background: true })- Opens or reuses an owned background tab without moving the user's foreground or keyboard focus
- Attaches CDP debugger automatically
- Omit
background: trueonly when the user explicitly asks to see the automation in front - Omit
urlonly when the user explicitly asks to adopt the currently active tab
Check connection status anytime:
return await bridge.send({ type: "get_connection_status" })Critical Rules
- ALWAYS
searchbeforeexecutewhen you're unsure of a command name or its parameters. Never guess command names — they will fail. - Return values are objects, not primitives. Always destructure or access properties (see Return Value Shapes below).
close_tabrequirestabId— it will error without one. Get tabId fromlist_tabsorconnect_tab.connect_tabbefore any interaction — most commands require an active tab connection.smart.evaluatereturns{ result, type }— NOT the raw value. Access.resultto get the value. NeverJSON.parse()the return directly.- Keep scripts fast — each
executecall should complete in <15s. Split loops over many elements into separateexecutecalls. Never loop 5+smart.clickcalls in one script. - Canonical recording order matters — start network before recording, dump state before stop, fetch bodies before
stop_network_capture, and keep the monitor event-driven. - Autonomous work stays in the background — URL connections must pass
background: true; foreground adoption is only for an explicit human-visible/manual flow.
Evidence Protocol
For research tasks (page analysis, comparison, auditing), follow Acquire → Normalize → Analyze:
- Acquire — use
smart.extractPage()for structured evidence (7 parallel ops: capture + perf + security + fonts + meta + accessibility + mobile-readiness, with typed gaps). Usesmart.scrollCapture()for visual evidence. Usesmart.waitForIdle()instead ofsleep(). - Normalize —
extractPagereturns{ capture, performance, security, fonts, meta, accessibility, mobileReadiness, gaps }. Checkgaps[]before trusting supplementary data — failed calls producenull+ a gap record. - Analyze — use
smart.finding({ claim, evidence, sourceUrl, confidence, method, dimension? })to create validated findings. Confidence auto-caps when dimension has active gap withreducesConfidence.
For comparisons, use smart.comparePages(urlA, urlB) — returns { siteA, siteB, scaffold } with 11 fixed comparison dimensions.
Retrieve all findings with smart.findings(). Reset with smart.clearFindings().
Anti-Patterns
- No
smart.screenshot()— it does not exist. Usebridge.send({ type: 'take_screenshot' })orsmart.scrollCapture()for multi-section visual evidence. - No blind
sleep()loops — usesmart.waitForIdle()(MutationObserver-based, 15s cap) orsmart.waitFor(selector). - No manual scroll+screenshot loops — use
smart.scrollCapture({ maxSections: 10 }). It handles bottom detection, stuck scroll, and scroll reset. - No raw
capture_page+detect_frameworkcombo —smart.extractPage()does both plus 5 more operations in one call with graceful failure. capture_pagereturns ~1KB shaped summary — counts and top errors, not raw arrays. For raw network data usestop_network_capture. For raw console logs useget_console_logs.- Snapshot options are supported — use
smart.snapshot({ interactive: true, compact: true, maxDepth: 8, selector: "#main" })to reduce or scope output. Re-snapshot after navigation because refs become stale. - No
location.href = "..."for navigation — usesmart.navigate(url). Direct location assignment breaks CDP debugger attachment.
Core Patterns via execute
All browser commands run inside the execute tool. The code has access to:
bridge— WebSocket bridge to the Chrome extensioncrawlio— HTTP client for Crawlio desktop appsmart— auto-waiting wrappers with framework-aware data accessorssleep(ms)— async wait (max 30s)TIMEOUTS— per-command timeout constants
Navigation
return await smart.navigate("https://example.com")Screenshots
return await bridge.send({ type: 'take_screenshot' })Returns { data, mimeType, format } with base64 image bytes. JPEG is the bounded default; request
lossless output with { format: "png" }. For a full page use { fullPage: true }; for one element
use { selector: "#target" }. An oversized PNG may fall back to JPEG, so trust mimeType.
OCR Text Extraction (macOS only)
return await ocrScreenshot({ fullPage: true })Takes a CDP screenshot, runs it through macOS Vision.framework (VNRecognizeTextRequest), and returns recognized text with confidence scores and bounding regions. Works on canvas elements, images rendered as pixels, anti-scraping sites, and any visual content invisible to DOM extraction.
Parameters:
fullPage(bool, opt): Capture full scrollable page instead of viewport.selector(string, opt): CSS selector to screenshot a specific element.
Returns up to 20 regions (sorted by confidence), each with text, confidence (0-1), and bounds (x, y, width, height in normalized coordinates).
Click an Element
return await smart.click("button.submit")Auto-waits for the element to be visible and actionable before clicking.
Type Text
await smart.type("input[name='email']", "user@example.com")
return await smart.snapshot()Fill a Form
await bridge.send({
type: "browser_fill_form",
selector: "form#login",
values: { username: "admin", password: "secret" }
})
return await smart.snapshot()Accessibility Snapshot
return await smart.snapshot()Returns { snapshot: string } — the a11y tree text with [ref=X] labels on interactive elements. Use this to discover available elements when selectors fail.
Snapshot refs like [ref=e3] work directly with smart.click, smart.type, and smart.waitFor:
const snap = await smart.snapshot()
// snap.snapshot contains: [ref=e3] button "Platform" ...
await smart.click('[ref=e3]') // clicks via the snapshot ref system (not CSS)These refs are resolved from the cached snapshot — they are NOT CSS selectors. They bypass document.querySelector and use CDP node resolution instead.
Evaluate JavaScript
const res = await smart.evaluate("document.title")
return res.result // "My Page Title" — always access .result!smart.evaluate returns { result: <value>, type: <string> }, NOT the raw value. You must access .result to get the actual value.
For multi-statement evaluation, just use return — it auto-wraps in an IIFE:
const res = await smart.evaluate(`
const links = Array.from(document.querySelectorAll('a[href]'));
return links.map(a => ({ text: a.textContent.trim(), href: a.href }));
`)
return res.result // [{text: "Home", href: "..."}, ...]WRONG — do NOT JSON.stringify inside evaluate then JSON.parse outside:
// BAD — will cause "[object Object]" is not valid JSON
const res = await smart.evaluate(`return JSON.stringify(data)`)
return JSON.parse(res) // WRONG: res is {result: "...", type: "string"}, not a string
// GOOD — return objects directly, CDP serializes them for you
const res = await smart.evaluate(`return data`)
return res.result // the actual JS object/arrayFramework Detection
return await bridge.send({ type: "detect_framework" })Returns detected framework name, version, and metadata.
Framework-Specific Data
After connecting to a page, smart auto-detects the framework and exposes typed accessors:
// React
const version = await smart.react?.getVersion()
// Next.js
const nextData = await smart.nextjs?.getData()
return { page: nextData?.page, buildId: nextData?.buildId }
// Vue
const config = await smart.vue?.getConfig()
// Redux store
const state = await smart.redux?.getStoreState()Available framework namespaces: react, vue, angular, svelte, nextjs, nuxt, remix, gatsby, shopify, wordpress, woocommerce, laravel, django, drupal, alpine, redux, jquery.
Cookies
return await bridge.send({ type: "get_cookies" })Storage (localStorage / sessionStorage)
return await bridge.send({ type: "get_storage", storageType: "local" })Network Capture Pattern
Capture network traffic during interactions:
await bridge.send({ type: "start_network_capture" })
// ... perform interactions ...
await smart.click("button.load-data")
await sleep(2000)
return await bridge.send({ type: "stop_network_capture" })Console Logs
return await bridge.send({ type: "get_console_logs" })Page Capture (All-in-One)
Capture framework, network, console, DOM, and cookies in one call:
return await bridge.send({ type: "capture_page" })Returns a shaped summary (~1KB) instead of raw arrays (~50KB+):
{
"url": "...", "title": "...", "framework": {...}, "capturedAt": "...",
"network": { "total": 47, "failed": 2, "byType": {...}, "errors": [...] },
"console": { "total": 23, "errors": [...], "warnings": 5, "info": 10, "debug": 8 },
"cookies": { "total": 12, "names": ["session", "_ga", ...] },
"dom": { "nodeCount": 342, "forms": 1, "links": 15, "images": 8, "inputs": 4 }
}To drill down, call individual tools: get_console_logs, get_dom_snapshot, get_cookies, or stop_network_capture.
Session Recording
Record a full browser session — every interaction, navigation, network request, and console log — as structured JSON.
For full resident captures that retain monitor snapshots, response bodies, and flows.jsonl, use the robot-training skill and the default-mode observe tool. Collection continues if MCP disconnects; training_stop materializes files after reconnection.
Start Recording
start_recording({ maxDurationSec: 300, maxInteractions: 100 })Returns { sessionId, startedAt, tabId, url }. Both params optional (defaults: 300s / 200 interactions).
maxDurationSec: 10–600 (validated by Zod)maxInteractions: 1–500 (validated by Zod)
Check Status
get_recording_status({})Returns { active, sessionId, durationSec, pageCount, interactionCount, currentPageUrl }. Permission-exempt (safe to poll).
Stop and Get Session
stop_recording({})Returns the full session:
pages[]— one per URL visited, each withinteractions[],console[],network[]metadata— tabId, initialUrl, stopReason (manual|max_duration|max_interactions|tab_closed|tab_disconnected)duration— total seconds
Workflow via Execute
// Start recording
const session = await bridge.send({ type: "start_recording", maxDurationSec: 120 })
// ... user interacts with the page ...
const status = await bridge.send({ type: "get_recording_status" })
// Stop and get full session
const result = await bridge.send({ type: "stop_recording" })
return resultTab Management
// List all tabs
return await bridge.send({ type: "list_tabs" })
// Create a new tab
return await bridge.send({ type: "create_tab", url: "https://example.com" })
// Switch to a tab
return await bridge.send({ type: "switch_tab", tabId: 123 })
// Close a tab
return await bridge.send({ type: "close_tab", tabId: 123 })Discovery via Search
When you don't know the exact command, search first:
search({ query: "cookies" })This returns matching command names, descriptions, and parameter schemas from the full catalog of 182 commands (150 browser + 32 Crawlio HTTP).
Desktop Integration (Crawlio App)
If the Crawlio desktop app is running, use the HTTP client:
// Check status
return await crawlio.api("GET", "/status")
// Start a crawl
return await crawlio.api("POST", "/start", { url: "https://example.com" })
// Get settings
return await crawlio.api("GET", "/settings")
// Export site
return await crawlio.api("POST", "/export", { format: "zip", destinationPath: "/tmp/site.zip" })Return Value Shapes
Commands return objects, not primitives. Always access the correct property.
smart methods
// smart.snapshot() → { snapshot: string }
const snap = await smart.snapshot();
const tree = snap.snapshot; // the a11y tree text
// WRONG: snap.split('\n') — snap is an object, not a string
// smart.evaluate(expr) → { result: any, type: string }
const res = await smart.evaluate("document.title");
const title = res.result; // the actual value — "My Page"
const type = res.type; // "string", "number", "object", etc.
// WRONG: res.substring() — res is {result, type}, not the raw value
// WRONG: JSON.parse(res) — will get "[object Object]" is not valid JSON
// WRONG: JSON.stringify inside + JSON.parse outside — just return objects directlybridge.send commands
// list_tabs → { tabs: Tab[], connectedTabId: number|null }
const result = await bridge.send({ type: 'list_tabs' });
const tabs = result.tabs; // array of tab objects
const connected = result.connectedTabId;
// connect_tab → { action, tabId, url, title, windowId, capturing, domainState }
const tab = await bridge.send({ type: 'connect_tab', tabId: 123, background: true });
// Raw bridge capture_page → { url, title, framework, networkRequests, consoleLogs,
// domSnapshot, cookies, capturedAt }
// Prefer smart.extractPage() when you need the compact network/console/dom summaries.
const page = await bridge.send({ type: 'capture_page' });
// take_screenshot → { data: string, mimeType: string, format: 'png'|'jpeg' }
const ss = await bridge.send({ type: 'take_screenshot' });
// get_cookies → { cookies: Cookie[] }
const result = await bridge.send({ type: 'get_cookies' });
const cookies = result.cookies;
// get_console_logs → LogEntry[]
const logs = await bridge.send({ type: 'get_console_logs' });
// close_tab → requires tabId!
await bridge.send({ type: 'close_tab', tabId: 123 }); // REQUIRED
// WRONG: bridge.send({ type: 'close_tab' }) — will errorNetwork capture (start/stop pattern — no get_network_entries)
await bridge.send({ type: 'start_network_capture' });
// ... interactions ...
const entries = await bridge.send({ type: 'stop_network_capture' });
// WRONG: bridge.send({ type: 'get_network_entries' }) — does NOT existError Handling
| Error | Solution |
| "No tab connected" | Call connect_tab first |
| "Element not found" | Use smart.snapshot() to see available elements, then adjust selector |
| "Extension disconnected" | Check that the Chrome extension is installed and the popup shows "Connected" |
| "timed out after 30000ms" | Script too slow — reduce interactions per call, use evaluate instead of click loops |
| "[object Object]" not valid JSON | You called JSON.parse on a {result, type} object — use .result first |
| "Permission required" | Open Crawlio's dedicated onboarding page, grant the requested browser access there, then retry |
Script Performance Rules
Each execute call has a 120s internal timeout, but MCP clients may impose shorter timeouts (30s is common). Keep scripts fast:
- Max 3-4 interactions per script — each
smart.click/smart.typecosts ~1-2s (actionability polling + settle time) - Never loop 5+ clicks — split into multiple
executecalls instead - Minimize
sleep()calls — usesmart.waitFor(selector)instead ofsleep(2000) - Avoid
JSON.stringifyin evaluate — return objects directly, CDP serializes automatically
BAD — will timeout (8 clicks × ~1.5s + sleeps = ~16s minimum)
for (let i = 18; i <= 25; i++) {
await smart.click(`[ref=e${i}]`)
await sleep(300)
}GOOD — one evaluate call reads all the data at once
const res = await smart.evaluate(`
const items = document.querySelectorAll('.faq-item');
return Array.from(items).map(el => ({
question: el.querySelector('h3')?.textContent?.trim(),
answer: el.querySelector('.answer')?.textContent?.trim()
}));
`)
return res.resultMulti-Step Workflow Example
// 1. Navigate to login page
await smart.navigate("https://app.example.com/login")
// 2. Fill credentials
await smart.type("#email", "user@example.com")
await smart.type("#password", "secret123")
// 3. Click login
await smart.click("button[type='submit']")
await smart.waitFor(".dashboard") // prefer waitFor over sleep
// 4. Verify navigation
const title = (await smart.evaluate("document.title")).result
return { title, url: (await smart.evaluate("location.href")).result }Higher-Order Methods (18)
These methods compose existing bridge commands into common workflows. The smart object exposes 7 core methods + 18 higher-order methods + up to 17 framework namespaces.
Evidence Extraction
// Full page extraction — 7 parallel ops: capture + perf + security + fonts + meta + a11y + mobile
// Returns PageEvidence with gaps[] tracking what failed
const page = await smart.extractPage()
// Compare two pages — navigates to each, runs extractPage(), returns ComparisonEvidence + scaffold
const diff = await smart.comparePages("https://a.com", "https://b.com")
// Scroll through page with screenshots — stops at page bottom, handles stuck scroll
const result = await smart.scrollCapture({ maxSections: 10, pixelsPerScroll: 800, settleMs: 1000 })
// Wait for DOM to settle (500ms quiet window) — use instead of sleep()
const idle = await smart.waitForIdle(5000) // returns { status: 'idle' | 'timeout' }
// Diff accessibility snapshots before/after an interaction
const diff = await smart.diffSnapshots(beforeSnapshot)Findings (Evidence Mode)
// Create a validated finding — confidence auto-caps if dimension has active gap
smart.finding({
claim: "Site loads 2x faster",
evidence: ["LCP: 1200ms vs 2400ms"],
sourceUrl: "https://example.com",
confidence: "high",
method: "extractPage",
dimension: "performance" // optional — triggers confidence propagation
})
// Get all accumulated findings from this session
const allFindings = smart.findings()
// Reset session findings and gaps
smart.clearFindings()Data Extraction
// Detect table-like structures in the DOM — returns scored candidates
const tables = await smart.detectTables()
// Extract data from a specific table element
const data = await smart.extractTable("table.pricing")
// Wait for network to become idle (no pending requests)
const idle = await smart.waitForNetworkIdle({ timeout: 5000, idleTime: 500 })
// Compound extraction — detect tables + extract + network idle
const extracted = await smart.extractData()Tracking & Technology Detection
// Parse tracking pixels from captured network requests (GA, FB, etc.)
const pixels = await smart.parseTrackingPixels()
// Schema-validate tracking parameters, detect typos
const issues = await smart.validateTracking()
// Read runtime tracker state (GTM dataLayer, etc.)
const dataLayer = await smart.inspectDataLayer()
// Find duplicate tracking events
const dupes = await smart.detectDuplicates()
// Fingerprint-based technology detection
const tech = await smart.detectTechnologies()For multi-page research protocols (competitive analysis, site audits), see the web-research skill.
Reference
See references/reference.md for a curated reference with parameters. For the complete, current surface run crawlio-browser tools --full, or search it from inside execute — both read the live builders, so neither can go stale.
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.

