web-fetch-fallback

Route web content retrieval to alternative fetch methods based on URL type.

4|1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/rongarede/skill-snapshots --skill web-fetch-fallback
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-fetch-fallback
Source: https://github.com/rongarede/skill-snapshots/tree/main/utilities/web-fetch-fallback
Command: npx skills add https://github.com/rongarede/skill-snapshots --skill web-fetch-fallback

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of fetching web content when the primary WebFetch method fails, by automatically routing requests to alternative, reliable fetch methods based on URL type.

Core Features & Use Cases

  • Auto URL-type routing: classifies URLs into categories (GitHub, docs sites, blogs, and JS-rendered pages) and selects the best available fetch path.
  • Multi-method fetch: uses gh CLI for GitHub content, curl-based parsing with pandoc/html2text/lynx, and agent-browser for JS-rendered pages.
  • Proxies and headers: supports https_proxy, custom user-agent, and timeout, with colored logs for easy monitoring.
  • Use Case: Retrieve a GitHub README, render a docs site to plain text, or fetch a JS-heavy page when standard fetch is blocked.

Quick Start

Use the fetch.sh script to retrieve a URL: bash ~/.claude/skills/web-fetch-fallback/scripts/fetch.sh <url> [method]

Frequently Asked Questions about web-fetch-fallback

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch web content when the standard WebFetch method fails?

To fetch web content when WebFetch fails, you can use an automated routing script that classifies URLs and switches to alternative fetch methods like gh CLI, curl with pandoc, or agent-browser. This ensures reliable retrieval of GitHub files, documentation sites, and JS-rendered pages.

What is the best way to scrape JavaScript-rendered pages as plain text?

The best way to scrape JS-rendered pages as plain text is using agent-browser to execute page scripts and extract rendered content. This method bypasses static HTML parsing limits when fetching dynamic documentation or web applications.

How do I route curl requests through an https proxy with a custom user-agent?

Routing curl requests through an https proxy with a custom user-agent is supported by configuring the https_proxy environment variable and setting a custom user-agent string. This approach increases fetch reliability for static documentation sites and blogs.

Does the web-fetch-fallback script require pandoc or lynx to convert HTML?

The web-fetch-fallback script does not strictly require pandoc or lynx, but supports them as curl-based parsing alternatives to convert HTML to plain text. It uses URL-type detection to select the best available fetch path for static documentation sites.

Why does fetching a static docs site return incomplete content?

Fetching a static docs site returns incomplete content when the primary WebFetch method is blocked or times out. Using a multi-method fallback approach with curl-based parsers like html2text or pandoc retrieves the full plain text accurately.