fetch-url-md

Fetch web content with curl, prioritizing markdown versions and falling back to HTML.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/1naichii/ai-code-tools --skill fetch-url-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fetch-url-md
Source: https://github.com/1naichii/ai-code-tools/tree/main/skills/fetch-url-md
Command: npx skills add https://github.com/1naichii/ai-code-tools --skill fetch-url-md

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of retrieving web content, automatically detecting and prioritizing markdown versions when available, ensuring a cleaner and more efficient experience.

Core Features & Use Cases

  • Markdown Detection: Automatically checks for markdown versions of web content, using curl to streamline the process.
  • Fallback to HTML: If markdown is not available, the skill falls back to fetching the original HTML content.
  • Use Case: Ideal for fetching documentation from websites that offer both markdown and HTML formats, such as GitHub wikis or documentation sites.

Quick Start

Use the fetch-url-md skill to retrieve the markdown version of the documentation from 'https://ui.shadcn.com/docs/components/radix/aspect-ratio'.

Frequently Asked Questions about fetch-url-md

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

FAQPage Schema
How do I fetch markdown content from a URL automatically?

To fetch markdown content, this Skill uses curl for HTTP requests, automatically detecting and prioritizing markdown versions over HTML. It handles URL parsing to retrieve the cleanest content format available from the target site.

What happens if a website does not have a markdown version available?

If markdown is not available, the Skill falls back to fetching the original HTML content. This ensures you still retrieve web content successfully when documentation sites lack dedicated markdown files.

Do I need curl installed to retrieve web content using this approach?

Yes, curl is required as the underlying dependency for executing HTTP requests. The Skill relies entirely on curl to handle web content retrieval, markdown detection, and HTML fallback processing.

What is the best way to get documentation from sites like GitHub wikis?

The best way is using this Skill to fetch web content from sites like GitHub wikis. It checks for markdown versions first, streamlining the retrieval of clean documentation from platforms offering both formats.

Can I extract HTML content instead of markdown for web scraping tasks?

Yes, you can extract HTML content for web scraping when markdown is absent. The Skill prioritizes markdown detection but defaults to fetching raw HTML, ensuring content retrieval continues regardless of format availability.