smart-web-fetch

Fetch clean readable web content from URLs via llms.txt and markdown fallback.

75|18|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/JKHeadley/instar --skill smart-web-fetch-jkheadley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-web-fetch
Source: https://github.com/JKHeadley/instar/tree/main/skills/smart-web-fetch
Command: npx skills add https://github.com/JKHeadley/instar --skill smart-web-fetch-jkheadley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reduces the token and cleanup cost of reading web pages by finding the cleanest available content source first instead of passing raw HTML into context.

Core Features & Use Cases

  • LLMS-first discovery: Checks llms.txt and llms-full.txt when available to retrieve curated, agent-friendly page content.
  • Markdown fallback: Uses a markdown-oriented reader path before falling back to HTML, which is ideal for documentation, blogs, and product pages.
  • Token-efficient extraction: Strips noisy markup when needed so agents can summarize, compare, or answer questions from web pages faster and more reliably.

Quick Start

Ask the assistant to fetch a URL with smart-web-fetch and return the cleanest readable version of the page.

Frequently Asked Questions about smart-web-fetch

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

FAQPage Schema
How do I extract clean text from web pages for LLM summarization?

To extract clean text from web pages for LLM summarization, fetch the URL to strip noisy HTML markup and retrieve only the readable content. This approach uses llms.txt discovery and markdown fallback to ensure token-efficient retrieval.

What is the best way to reduce token usage when fetching web content?

The best way to reduce token usage when fetching web content is to retrieve markdown-first sources instead of raw HTML. By checking for llms.txt files and stripping noisy markup, agents receive only the essential readable text.

How does llms.txt discovery work for retrieving web content?

Llms.txt discovery works by checking a domain for llms.txt or llms-full.txt files to retrieve curated, agent-friendly content. If unavailable, the fetch operation falls back to a markdown-oriented reader path before attempting raw HTML parsing.

Can I use markdown extraction for documentation and product sites?

Yes, you can use markdown extraction for documentation and product sites. The retrieval process applies a markdown-oriented reader path that is ideal for blogs and product pages, ensuring fast and clean content access.

Why does parsing raw HTML increase token costs for AI agents?

Parsing raw HTML increases token costs because it includes noisy markup, scripts, and structural tags that consume context window space. Stripping this noise and retrieving markdown-first content provides token-efficient extraction for faster summarization.

When should I not use markdown fallback for web fetching?

You should not rely solely on markdown fallback for web fetching when a site explicitly provides an llms.txt file. Llms.txt discovery provides curated, agent-friendly content directly, making it the optimal explicit source selection before any fallback parsing occurs.