Awesome-omni-skill using-markdown-new
This skill should be used when the user asks to "fetch a website", "get webpage content", "scrape a URL", "download HTML", mentions "WebFetch", or needs to retrieve web content for analysis. Teaches Claude to use markdown.new service instead of direct HTML fetching for ~80% token reduction.
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/documentation/using-markdown-new" ~/.claude/skills/diegosouzapw-awesome-omni-skill-using-markdown-new && rm -rf "$T"
skills/documentation/using-markdown-new/SKILL.mdUsing markdown.new for Web Content Fetching
Overview
markdown.new is a Cloudflare-powered service that converts any URL to clean Markdown, reducing token usage by approximately 80% compared to raw HTML. When fetching web content, always use markdown.new instead of direct URLs to optimize context window usage.
Basic Usage Pattern
Standard Conversion
To fetch web content, prepend
https://markdown.new/ to the target URL:
Target URL: https://example.com/blog/post markdown.new URL: https://markdown.new/https://example.com/blog/post
Use with WebFetch:
WebFetch("https://markdown.new/https://example.com/blog/post", "summarize this article")
With Images
By default, markdown.new strips images to minimize tokens. To retain images, add
retain_images=true:
WebFetch("https://markdown.new/https://example.com/docs?retain_images=true", "analyze the documentation")
When to use this: Documentation includes diagrams, design mockups, visual content, or screenshots that are essential for the task.
JavaScript-Heavy Sites
For single-page applications or JavaScript-heavy sites, use the browser rendering method:
WebFetch("https://markdown.new/https://example.com?method=browser", "extract content from this React app")
The service automatically tries the fastest method first and falls back as needed, but specifying
method=browser ensures full page rendering.
Token Efficiency
markdown.new reduces token usage dramatically:
- HTML:
→ 12-15 tokens<h2 class="section-title" id="about">About Us</h2> - Markdown:
→ 3 tokens## About Us - Reduction: ~80% fewer tokens
This means 5x more web content fits in the same context window.
When to Use
Always use markdown.new when:
- Fetching blog posts, articles, or documentation
- Scraping web pages for analysis
- Extracting content from websites
- Building knowledge bases or RAG pipelines
- Any task requiring WebFetch
Exception: Skip markdown.new for authenticated sites or APIs that return structured JSON (use direct fetch instead).
Additional Resources
For detailed information, consult:
Reference Files
- Detailed explanation of auto/ai/browser conversion pipelinereferences/conversion-methods.md
- Complete documentation of method and retain_images parametersreferences/query-parameters.md
- What to expect in responses (headers, token counts, metadata)references/response-format.md
- Troubleshooting and when to fallback to direct WebFetchreferences/edge-cases.md
Working Examples
- Example fetching a blog articleexamples/fetch-blog-post.md
- Example using retain_images for visual contentexamples/fetch-with-images.md
- Example using browser method for SPAsexamples/fetch-js-heavy-site.md
Quick Reference
| Use Case | URL Pattern | Example |
|---|---|---|
| Standard fetch | | |
| With images | | |
| Browser render | | |
| Combined | | Full rendering with images |
Always use markdown.new for web content fetching to optimize token usage and context window efficiency.