webfetch-empty-use-agent-browser
БесплатноБез исполняемых скриптовНе проверенWhen webfetch returns garbled binary from a .pdf/.docx/.xlsx URL (PDF magic bytes, mojibake), do NOT pivot to agent-browser: download with curl and extract…
от ericmjl★ 45 звёзд на GitHubОб этом скилле
Webfetch empty → use agent-browser
When webfetch comes back empty, near-empty, too large (response exceeds the size limit — the page is JS-rendered with heavy bundled content), or as a generic JS-rendered shell (nav/header chrome but no real body content), do NOT keep retrying webfetch with URL variations, and do NOT reason about or guess the page's content from its title/URL alone. Switch to agent-browser, which actually executes the page's JavaScript and returns the rendered content.
Script-download-blocking portals are the same signal. Some government form sites (e.g. Mass.gov, seen 2026-08-31 fetching a MassHealth SACA-2 renewal PDF) serve nothing useful to scripted downloads (curl, webfetch). One blocked attempt is enough to diagnose: pull the file through a real browser session (agent-browser) and save from there. (Exception, unchanged: garbled BINARY from a downloadable file URL is a successful download, see the Binary files section.)
This is the single most reliable fallback for any client-side-rendered page. One failed webfetch attempt is sufficient signal to pivot — don't burn 3–5 turns retrying.
Pre-flight: verify agent-browser is installed BEFORE relying on the fallback
The entire fallback chain below assumes agent-browser is on PATH. It is NOT auto-installed with the skill — the skill documents the command surface, but the binary is a separate install. On Eric's machines as of 2026-07-18, agent-browser is NOT installed (which agent-browser returns empty, no binary in ~/.local/bin/, no global npm package, npx itself absent). Memory #46 (2026-06-29) already flagged it as "recommended but NOT yet confirmed working by the user."
Before committing to the agent-browser pivot, run the one-command pre-flight:
command -v agent-browser >/dev/null 2>&1 && echo "available" || echo "MISSING"
If MISSING, do NOT burn turns discovering this mid-fallback. Pick one of:
- Tell the user agent-browser is not installed and ask whether to install it (do NOT silently install — system changes need user consent). This is the right move when agent-browser is genuinely necessary for the task (Workday job postings, JS-rendered auth-walled content, recursive site crawl) and the alternates below won't suffice.
- Fall back to the documented no-browser pivots (these are the SAME pivots recommended for CAPTCHA'd search engines — see the "Search engines" section below):
- Direct GET fetches of known authoritative JSON/HTML endpoints: SEC EDGAR, PyPI JSON API (
pypi-package-metadata-json-apiskill), Wikipedia wikitext, official docs sites, arXiv, university press releases, government databases. See the*-research-fallbackskill family. - German/EU company registry facts: the legally-mandatory Impressum on the company's own website matches the Handelsregister entry (same registered name, same HRB number, same Amtsgericht) — this is primary-source-equivalent verification without needing the Handelsregister direct URL (which is often JS-gated). Verified 2026-07-18 confirming
prefix.dev GmbHvia prefix.dev's own imprint. - Report the claim as UNVERIFIABLE this session rather than fabricating (per memory #75 / epistemic-honesty discipline). State what you verified, what you couldn't, and what would be needed.
- Direct GET fetches of known authoritative JSON/HTML endpoints: SEC EDGAR, PyPI JSON API (
- Do NOT cycle through webfetch URL-pattern guesses as a substitute — that is its own wasted-turn cascade documented in the "Variant: URL-pattern guessing" section below.
The cost of skipping the pre-flight: in the 2026-07-18 EOSS session, the assistant burned multiple turns cycling webfetch 404 → search-engine CAPTCHA → load agent-browser skill → discover binary missing → try Google via webfetch → ... before converging. The pre-flight check is one command and short-circuits all of that.
Recognition — when to pivot
Pivot to agent-browser immediately when webfetch returns any of:
- an empty result /
Emptyoutput, - a TOO-LARGE response (exceeds the size limit, e.g. >5MB) — this is just as decisive a signal as "empty"; a page whose raw HTML is 5MB+ is almost certainly JS-rendered with bundled content, and retrying webfetch will yield the same result every time,
- a homepage shell or nav menu with none of the target content (e.g. just "Skip to main content / Sign In / footer"),
- a login/redirect stub instead of content,
- a reCAPTCHA / challenge page.
Typical culprits: Workday job boards (*.myworkdayjobs.com), Greenhouse/Lever/Ashby job pages, single-page apps (React/Vue/Angular/Svelte), dashboards, analytics portals, many docs sites (material.io, GitHub Pages sites like schema-harness.github.io, Docusaurus, some ReadTheDashboards), and any URL whose content is built by client-side JS.
Binary files (PDFs, Office docs, images) — do NOT pivot to agent-browser
A DISTINCT failure mode from all the JS-rendered cases above: webfetch on a binary file URL (a .pdf, .docx, .xlsx, .pptx, or image) returns GARBLED binary c
Установить webfetch-empty-use-agent-browser в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл webfetch-empty-use-agent-browser?
When webfetch returns garbled binary from a .pdf/.docx/.xlsx URL (PDF magic bytes, mojibake), do NOT pivot to agent-browser: download with curl and extract via pdftotext or pypdf/pdfplumber (see the Binary files section). Otherwise, when webfetch yields an empty body, a TOO-LARGE response, a near-empty JS-rendered shell, or fails on a dynamic page, SWITCH to agent-browser instead of retrying — 'too large' is the same signal as 'empty'. Targets: single-page apps, job boards (Workday, Greenhouse, Lever, Ashby), dashboards, docs portals, anything client-side rendered. Covers the browser fallback recipe, DOM-eval cleanup when get-text-body returns noise, recursive docs-site extraction, search-engine cancellation and CAPTCHA handling (do not cascade to a second engine; pivot to Exa or direct fetches), the enrichment tier (one cheap sibling fetch, never invent specifics), verified Unsplash stock imagery, citation-link verification, and the HTML-format fix for stripped <head> content. Details in the body.
Как установить скилл webfetch-empty-use-agent-browser?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл webfetch-empty-use-agent-browser запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic