webpage-to-markdown

webpage-to-markdown is a skill for Claude Code from kay-ou/ClaudeSkills. It costs 0 tokens per session (1,001 once invoked), scanned A, original, MIT.

A tool for turning a web page into clean Markdown while keeping its main structure and content.

In plain words
What is it for?
Use it to extract readable content from a URL, convert HTML pages to Markdown, archive web articles, or prepare online material for further processing.
Why use it?
It removes surrounding page clutter so articles and documentation are easier to read, analyse, transform, or store.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to extract readable content from a URL, convert HTML pages to Markdown, archive web articles, or prepare online material for further processing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kay-ou/claudeskills/webpage-to-markdown
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kay-ou/ClaudeSkills --skill webpage-to-markdown
Clone the repo
git clone --depth 1 https://github.com/kay-ou/ClaudeSkills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for webpage-to-markdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/kay-ou/claudeskills/webpage-to-markdown/github.svg)](https://agentmods.dev/skills/kay-ou/claudeskills/webpage-to-markdown)
Your own site
<a href="https://agentmods.dev/skills/kay-ou/claudeskills/webpage-to-markdown"><img src="https://agentmods.dev/badge/skills/kay-ou/claudeskills/webpage-to-markdown/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for webpage-to-markdown

Your own site · 80×15
<a href="https://agentmods.dev/skills/kay-ou/claudeskills/webpage-to-markdown"><img src="https://agentmods.dev/badge/skills/kay-ou/claudeskills/webpage-to-markdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,001 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01001
Opus 5 $0.00000 $0.00500
Sonnet 5 $0.00000 $0.00200
Haiku 4.5 $0.00000 $0.00100

Measured 11d ago against content hash b3f0db006837, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

webpage-to-markdown scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/webpage_to_md.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/webpage-to-markdown/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

name: webpage-to-markdown description: Convert web pages to clean Markdown format, extracting main content while preserving structure. This skill should be used when users need to convert web pages to markdown, extract content from websites, save web articles as markdown, convert HTML to markdown, archive web content, or process online documentation. Keywords: 网页转markdown, 网页转换, HTML转markdown, 提取网页内容, 保存网页为markdown, convert webpage to markdown, extract web content, save article as markdown, HTML to markdown conversion, web scraping to markdown, 网页内容提取, 在线文档转换 inputs:

  • url
  • options (optional) outputs:
  • markdown_content
  • metadata instructions: |

Webpage to Markdown Converter

This skill fetches web pages and converts them to clean, readable Markdown format. It uses readability algorithms to extract the main content while preserving the document structure and formatting.

When to Use This Skill

Use this skill when you need to:

  • Convert web articles or documentation to Markdown
  • Extract readable content from web pages
  • Process web content for analysis or transformation
  • Archive web content in a readable format
  • Prepare web content for further processing

Processing Steps

Step 1: Fetch Web Page Content

  • Validate the provided URL format
  • Send HTTP GET request with appropriate headers
  • Handle redirects and follow them safely
  • Manage different character encodings
  • Handle network errors and timeouts gracefully

Step 2: Parse HTML Structure

  • Parse HTML using a robust parser
  • Identify the main content area using readability heuristics
  • Remove navigation, ads, sidebars, and other non-content elements
  • Preserve the document's logical structure
  • Handle malformed HTML gracefully

Step 3: Extract Main Content

  • Use readability algorithms to identify primary content
  • Preserve headings and their hierarchy (H1-H6)
  • Maintain paragraph structure and flow
  • Keep important formatting elements
  • Extract images with their alt text and sources
  • Preserve links with proper anchor text

Step 4: Convert to Markdown

  • Convert headings to appropriate Markdown levels
  • Transform paragraphs to Markdown format
  • Convert lists (ordered and unordered) to Markdown syntax
  • Handle code blocks with language detection
  • Convert tables to Markdown table format
  • Preserve emphasis (bold, italic) formatting
  • Handle blockquotes appropriately

Step 5: Generate Clean Output

  • Remove excessive whitespace and blank lines
  • Ensure consistent formatting throughout
  • Validate Markdown syntax
  • Optimize for readability
  • Preserve important semantic information

Optional Parameters

The options parameter can include:

  • include_images: Whether to include images (default: true)
  • preserve_links: Whether to keep all links (default: true)
  • extract_metadata: Whether to extract page metadata (default: true)
  • content_selector: CSS selector for specific content extraction
  • exclude_selectors: CSS selectors for elements to exclude

Output Format

Returns an object containing:

{
  "markdown_content": "# Article Title\n\nArticle content in Markdown format...",
  "metadata": {
    "title": "Original Page Title",
    "author": "Article Author",
    "publish_date": "2024-01-15",
    "url": "https://example.com/article",
    "word_count": 1250,
    "reading_time": 5,
    "extraction_success": true
  }
}

Content Preservation

The converter preserves:

  • Headings: Maintains heading hierarchy (H1 → #, H2 → ##, etc.)
  • Paragraphs: Clean paragraph breaks and spacing
  • Lists: Both ordered (1., 2., 3.) and unordered (-, *, +) lists
  • Code Blocks: With language detection and proper fencing
  • Links: Internal and external links with descriptive text
  • Images: With alt text and source URLs
  • Tables: Converted to Markdown table syntax
  • Emphasis: Bold (text) and italic (text) formatting
  • Blockquotes: Preserved with > syntax

Read the full file on GitHub · 110 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 110 lines · 0 tokens per session scan A b3f0db006837

Subscribe to this mod's changes

webpage-to-markdown is a skill published in the GitHub repository kay-ou/ClaudeSkills (10 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,001 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright…

Prat011/awesome-llm-skills · 62 tokens

resemble-detect

Deepfake detection and media safety — detect AI-generated audio, images, video, and text, trace synthesis sources, apply watermarks, verify speaker identity, and analyze media intelligence using Resemble AI.

Prat011/awesome-llm-skills · 45 tokens

content-research-writer

Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section. Transforms your writing process from solo effort to collaborative partnership.

Prat011/awesome-llm-skills · 49 tokens

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

Prat011/awesome-llm-skills · 61 tokens

slack-gif-creator

Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".

Prat011/awesome-llm-skills · 57 tokens

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

Prat011/awesome-llm-skills · 59 tokens