agentleFS
titouannwtttitouannwtt/claude-tools/skills/web-fetch/SKILL.md

web-fetch

Skill1 starsChanged 12 days agoMITView on GitHub

Fetch the content of a URL (HTML page, text, JSON) when direct access is blocked or unstable, with automatic fallback to a residential proxy. Use when WebFetch fails (403, 429, 503, timeout), or to save a page's text to a file without going through the model.

  • Reads credentials

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use github and skill-creator.

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.
  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 3 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 4 projects that use this

The file

Files
SKILL.md

web-fetch

A script fetches the page: direct attempt, then the residential proxy only if direct access is blocked. Your role: run it, read the JSON, decide what follows. The script bypasses neither a login nor a subscription.

Command

python3 ~/.claude/skills/web-fetch/scripts/fetch_url.py "<url>" [--text] [--out file]

  • --text: readable text of the page (without script or style); without it, raw HTML.
  • --out: writes the body to a file; the JSON then contains only the path (useful for a large page).
  • --no-proxy: never a proxy. --force-proxy: directly through the proxy (rare, see budget).
  • JSON output: url, status, via (direct or proxy), content_type, bytes, text or file.

Exit codes

CodeMeaningAction
0SuccessRead text or file. If via is proxy, tell the user.
4Blocked, even with the proxy or no proxy configuredSay that the site refuses access. Do not insist; offer the driven browser (skill mac-control) if the user agrees.
6HTTP error other than a block (404, 500...)Check the URL; the proxy would not change anything.
7Network unreachableCheck the connection or the domain name.
2Invalid URLAsk for an http(s) URL.
1Unexpected errorRepair the script (see below).

Proxy

Address in local.env at the root of claude-tools (key IPROYAL_RESIDENTIAL_URL, ignored by git). Limited budget (2 GB): do not download large files through this channel. Never display the proxy value.

Repair

Fix <claude-tools>/skills/web-fetch/scripts/fetch_url.py, then run python3 -m unittest discover -s tests in the skill's folder. Two attempts at most, then report the exact message to the user.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.