web-fetch
Fetch page content as agent-readable markdown — articles, docs, READMEs, blogs, social posts, and academic papers. Use this skill WHENEVER you want to read text content from an URL or link. Also use when curl returns noisy, truncated, or refused results.
Install
npx skills add https://github.com/archibate/agent-skills/tree/master/skills/web-fetch
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install archibate-agent-skills@llmmart
git clone https://github.com/archibate/agent-skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole archibate/agent-skills collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Web Fetch
Work down this fallback ladder in order. Each step is only tried when prior steps don't apply or fail.
Fallback ladder
- Raw
.md/.txt/ plain-text URL →curl -sL <url>(already clean, no HTML to strip) - Route lookup → search
references/routes.mdwithrgfor the full hostname or its parent-domain suffixes. For an identifier, recognized platform, or requested extraction operation, search by route key (for exampleRFC,DOI,MediaWiki,Discourse,WordPress, orGitea/Forgejo). Use the matching route before falling through - Docs page → try
curl -sL <url>.md. Mintlify and other docs platforms serve clean markdown on the.mdroute — if the response istext/markdown, you're done; otherwise fall through - Blog / newsletter / multi-post index → try RSS first:
curl -sL <url>/feed(also/rss,/feed.xml,/atom.xml,/index.xml). Most static-site generators and CMS platforms expose one; RSS gives you clean<content:encoded>or<summary>bodies without chrome - Site that you know how to fetch elegently → try it → append to
references/routes.mdafter verified working - Generic site (articles, docs, tech blogs, unknown) →
npx defuddle parse <url> --markdown— seereferences/defuddle.md - JS-rendered page (defuddle returns empty / skeleton-only content) →
$agent-browserskill - Cloudflare / anti-bot protection (Turnstile, blocked responses, 403/503) → read
references/scrapling.md - Still blocked, or the page needs a headful browser → the private browser of the
$computer-useskill: a headful Chromium on a private desktop that needs no approval - Still blocked and genuinely need this page → ask the user to open it and paste the content, or offer the
$chrome-cdpskill (requires explicit user approval first). Otherwise, give up and report the failure.
Bulk discovery
For whole-site ingestion, probe <site>/llms.txt (URL index) and /llms-full.txt (full corpus). Convention adopted by Mintlify, Cloudflare, Stripe, Next.js, and others. On 404, fetch the index page <site>/ instead.
For search within site, search references/routes.md for the site; rows tagged search: expose a dedicated search API for when you have a topic, not a URL. Otherwise use the $web-search skill with a site: filter, then fetch the result URL via the fallback ladder.
Summarized fetch
The ladder retrieves full page content in markdown without an AI summarization step. Search keywords for headline facts if the result failed to read at once. Reach for references/summarize.md only when you need a quick AI summary on full content.
Files (agent-skills)
-
references
-
defuddle.md 763 B
Loading… -
github.md 2.3 KB
Loading… -
html-selector.md 1.3 KB
Loading… -
huggingface.md 1.9 KB
Loading… -
jina.md 2.2 KB
Loading… -
mediawiki.md 3.9 KB
Loading… -
routes.md 11.3 KB
Loading… -
scrapling-LICENSE.txt 1.5 KB
Loading… -
scrapling.md 2.5 KB
Loading… -
ssrn.md 1.4 KB
Loading… -
stackexchange.md 2.4 KB
Loading… -
summarize.md 901 B
Loading… -
zhihu.md 1.5 KB
Loading…
-
-
scripts
-
fetch_zhihu.py 5.8 KB
Loading… -
html-select.py 779 B
Loading… -
html-unescape.py 228 B
Loading… -
scrapling 933 B · in bundle
-
-
SKILL.md 2.9 KB
--- name: web-fetch description: > Fetch page content as agent-readable markdown — articles, docs, READMEs, blogs, social posts, and academic papers. Use this skill WHENEVER you want to read text content from an URL or link. Also use when curl returns noisy, truncated, or refused results. --- # Web Fetch Work down this fallback ladder in order. Each step is only tried when prior steps don't apply or fail. ## Fallback ladder 1. **Raw `.md` / `.txt` / plain-text URL** → `curl -sL <url>` (already clean, no HTML to strip) 2. **Route lookup** → search `references/routes.md` with `rg` for the full hostname or its parent-domain suffixes. For an identifier, recognized platform, or requested extraction operation, search by route key (for example `RFC`, `DOI`, `MediaWiki`, `Discourse`, `WordPress`, or `Gitea/Forgejo`). Use the matching route before falling through 3. **Docs page** → try `curl -sL <url>.md`. Mintlify and other docs platforms serve clean markdown on the `.md` route — if the response is `text/markdown`, you're done; otherwise fall through 4. **Blog / newsletter / multi-post index** → try RSS first: `curl -sL <url>/feed` (also `/rss`, `/feed.xml`, `/atom.xml`, `/index.xml`). Most static-site generators and CMS platforms expose one; RSS gives you clean `<content:encoded>` or `<summary>` bodies without chrome 5. **Site that you know how to fetch elegently** → try it → append to `references/routes.md` after verified working 6. **Generic site** (articles, docs, tech blogs, unknown) → `npx defuddle parse <url> --markdown` — see `references/defuddle.md` 7. **JS-rendered page** (defuddle returns empty / skeleton-only content) → `$agent-browser` skill 8. **Cloudflare / anti-bot protection** (Turnstile, blocked responses, 403/503) → read `references/scrapling.md` 9. **Still blocked, or the page needs a headful browser** → the private browser of the `$computer-use` skill: a headful Chromium on a private desktop that needs no approval 10. **Still blocked and genuinely need this page** → ask the user to open it and paste the content, or offer the `$chrome-cdp` skill (requires explicit user approval first). Otherwise, give up and report the failure. ## Bulk discovery For whole-site ingestion, probe `<site>/llms.txt` (URL index) and `/llms-full.txt` (full corpus). Convention adopted by Mintlify, Cloudflare, Stripe, Next.js, and others. On 404, fetch the index page `<site>/` instead. For search within site, search `references/routes.md` for the site; rows tagged `search:` expose a dedicated search API for when you have a topic, not a URL. Otherwise use the `$web-search` skill with a `site:` filter, then fetch the result URL via the fallback ladder. ## Summarized fetch The ladder retrieves full page content in markdown without an AI summarization step. Search keywords for headline facts if the result failed to read at once. Reach for `references/summarize.md` only when you need a quick AI summary on full content.
Reviews (0)
No reviews yet.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.