owenleezy/agent-browser-skill/agent-browser-scrape

Claude Code and agent skill by owenleezy/agent-browser-skill

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

[INTERNAL TEMPLATE] Data extraction execution protocol. Called by agent-browser orchestrator.

Install

npx vskill@latest install owenleezy/agent-browser-skill/agent-browser-scrape

SKILL.md

The same SKILL.md was published earlier as owenleezy/agent-browser-skill/agent-browser-scrape.

Data Extraction — Execution Protocol

Internal template. Entry point: agent-browser skill.

NEVER

NEVER `eval` before `wait --load networkidle` — JS-rendered content won't exist yet
NEVER assume lightpanda handles JS-heavy pages — always have a --engine chrome fallback ready
NEVER scrape without checking `get count` first — validates that your selector found items

Execution Sequence

bash
# 1. Try lightpanda first (fastest, no JS overhead)
AGENT_BROWSER_ENGINE=lightpanda agent-browser open <url>
AGENT_BROWSER_ENGINE=lightpanda agent-browser wait --load networkidle
# 2. Understand structure
AGENT_BROWSER_ENGINE=lightpanda agent-browser snapshot -c
# 3. Verify selector finds items before extracting
AGENT_BROWSER_ENGINE=lightpanda agent-browser get count ".item"
# 4. Extract
AGENT_BROWSER_ENGINE=lightpanda agent-browser eval "[...document.querySelectorAll('.item')].map(el => ({
name: el.querySelector('h2')?.textContent?.trim(),
price: el.querySelector('.price')?.textContent?.trim()
}))"
# 5. If empty/wrong → fallback to chrome engine
agent-browser open <url>
agent-browser wait --load networkidle
agent-browser get count ".item" # verify selector still works
agent-browser eval "<same query>"
Note on `AGENT_BROWSER_NATIVE=1`: This env var was used in older workflows as a shorthand for the Rust daemon. In 0.22+, the daemon is always active — use AGENT_BROWSER_ENGINE=chrome (or just default) instead. AGENT_BROWSER_NATIVE=1 is still accepted but no longer documented.

Pagination Handling

bash
# Scroll-based infinite scroll
agent-browser scroll down
agent-browser wait --load networkidle
agent-browser get count ".item" # check if count increased
agent-browser eval "<extract again>"
# Repeat until count stops increasing
# Click-based pagination
agent-browser find role button click --name "Next"
agent-browser wait --load networkidle
# Wait for specific text to confirm page loaded
agent-browser wait --text "Page 2 of"

Output Parsing Tips

bash
# Add --content-boundaries to help parse output when using --max-output
AGENT_BROWSER_CONTENT_BOUNDARIES=1 agent-browser eval "<query>" --max-output 50000
# JSON output for structured parsing
agent-browser get text @e1 --json
agent-browser snapshot -i --json

Anti-Bot Bypass

bash
# Level 1: custom user-agent
agent-browser --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36" open <url>
# Level 2: disable automation detection (combine with level 1)
agent-browser \
--user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36" \
--args "--disable-blink-features=AutomationControlled" \
open <url>

Recovery Patterns

FailureRecovery
lightpanda returns emptySwitch to --engine chrome (or default)
Detected as botAdd --user-agent, then combine with --args
eval before content loadswait --load networkidle before every eval
Infinite scroll not handledscroll down + re-eval loop, check get count for progress
Output truncatedAdd --max-output 100000 or AGENT_BROWSER_MAX_OUTPUT env

Judgment Gates

Pause when:

  • Anti-bot measures block all approaches (CAPTCHA requires human)
  • get count returns 0 after fallback — show snapshot -c to user, ask how to identify items

Pitfalls

MistakeFix
lightpanda returns emptySwitch to --engine chrome
eval before loadwait --load networkidle first
Bot detected despite --user-agentAdd --args "--disable-blink-features=AutomationControlled"
Extracted 0 items silentlyAlways get count "<selector>" before eval
Output cut off mid-JSONIncrease --max-output or use --content-boundaries

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/owenleezy/agent-browser-skill/agent-browser-scrape/badge)](https://verified-skill.com/skills/owenleezy/agent-browser-skill/agent-browser-scrape)

Something wrong with this skill or its page? Tell us.