webpage-to-markdown

webpage-to-markdown is a skill for Claude Code, Codex from easyzoom/aix-skills. It costs 17 tokens per session (725 once invoked), scanned A, original, MIT.

A guide for turning one public webpage URL into clean Markdown, keeping the useful page content while removing navigation, advertisements, scripts, and other surrounding elements.

In plain words
What is it for?
Use it for a single public article or webpage when you need its main text, headings, lists, or tables in Markdown.
Why use it?
It removes the manual work of copying and cleaning a webpage when the goal is readable Markdown rather than a visual copy of the page.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for a single public article or webpage when you need its main text, headings, lists, or tables in Markdown.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/easyzoom/aix-skills/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 easyzoom/aix-skills --skill webpage-to-markdown
Clone the repo
git clone --depth 1 https://github.com/easyzoom/aix-skills

Made for: Claude Code, Codex.

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/easyzoom/aix-skills/webpage-to-markdown/github.svg)](https://agentmods.dev/skills/easyzoom/aix-skills/webpage-to-markdown)
Your own site
<a href="https://agentmods.dev/skills/easyzoom/aix-skills/webpage-to-markdown"><img src="https://agentmods.dev/badge/skills/easyzoom/aix-skills/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/easyzoom/aix-skills/webpage-to-markdown"><img src="https://agentmods.dev/badge/skills/easyzoom/aix-skills/webpage-to-markdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 725 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.00017 $0.00725
Opus 5 $0.00009 $0.00362
Sonnet 5 $0.00003 $0.00145
Haiku 4.5 $0.00002 $0.00072

Measured 8d ago against content hash a8449d636fa3, 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 8d ago.

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.

skills/webpage-to-markdown/SKILL.md · 102 lines

How it starts

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

Webpage To Markdown

Overview

Convert a webpage into clean Markdown when the user provides only a URL. The goal is to preserve the meaningful article or page content while removing navigation, ads, scripts, cookie banners, and unrelated page chrome.

When To Use

Use this skill when:

  • The user gives a webpage URL and asks for Markdown.
  • The user says "网页转 Markdown", "URL 转 markdown", "convert this page to markdown", or similar.
  • The desired output is readable Markdown, not a screenshot, PDF, or browser automation trace.

Do not use it when:

  • The URL requires private login that the agent cannot access.
  • The user asks to crawl an entire site instead of converting one page.
  • The user needs exact visual layout preservation.

Inputs

Required:

  • One public http or https URL.

Optional:

  • Output path if the user wants the Markdown saved to a file.
  • Focus instruction such as "只要正文", "保留表格", or "包含链接".

Workflow

  1. Fetch the URL with the best available webpage-reading tool.
  2. If the fetch fails because of access restrictions, report the status and ask for a public URL or pasted HTML/text.
  3. Identify the main content: title, headings, article body, lists, tables, code blocks, and important links.
  4. Convert the main content to Markdown.
  5. Remove unrelated content such as navigation menus, cookie banners, newsletter popups, footers, comments, tracking scripts, and repeated sidebar links.
  6. Preserve source links when they are meaningful to the content.
  7. If saving to a file, use a descriptive lowercase filename and the .md extension.

Output Format

For direct chat output:

# Page Title

Source: https://example.com/page

Converted content...

For file output, write the same Markdown content to the requested file path and tell the user where it was saved.

Quality Rules

  • Keep heading hierarchy valid: one # title, then ## and below.
  • Preserve code blocks with fenced Markdown.
  • Preserve tables as Markdown tables when practical.
  • Keep relative links only if the base URL is obvious; otherwise convert them to absolute links.
  • Do not invent content that was not present on the page.
  • If the page is very long, convert the full content unless the user asks for a summary.

Read the full file on GitHub · 102 lines

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. 8d ago First seen · 102 lines · 17 tokens per session scan A a8449d636fa3

Subscribe to this mod's changes

webpage-to-markdown is a skill published in the GitHub repository easyzoom/aix-skills (31 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 725 once invoked, about $0.0001 per session on Opus 5. 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-09-03.

Related

Other skills, from other repositories

resume-writer

Rewrite and enhance resumes using a persistent library of principles harvested from real recruiters, hiring managers, and HR professionals. Always trigger immediately when the user's message starts with "rw". Also trigger on "resume writer", "rewrite my resume", "enhance my resume", "fix my resume", "review my…

mickpletcher/AI-Skills · 222 tokens

trip-email-html-itinerary

Extract trip logistics from pasted travel emails, booking confirmations, forwarded messages, reservation notes, or raw itinerary text, research useful restaurant and activity suggestions for each destination, and generate one polished, self-contained offline HTML itinerary file for sharing with family or other…

mickpletcher/AI-Skills · 98 tokens

idea-forge

Run any raw idea through a multi-stage R&D pipeline that interprets, expands, scores, and converts it into an actionable engineering plan. Always trigger immediately when the user's message starts with "idea". Also trigger on "ideaforge", "analyze this idea", "expand this concept", "assess this invention", "explore…

mickpletcher/AI-Skills · 118 tokens

facebook-post

Write and polish Facebook posts on any topic. Trigger on requests to draft, rewrite, polish, improve a Facebook post, or create cross-platform Facebook, X, and LinkedIn bundles, especially when the user starts with fbp.

mickpletcher/AI-Skills · 50 tokens

fitness-log

Track workouts, log fitness progress, adjust the training program, and generate Facebook posts from workout data. Trigger on workout logging, PR updates, program questions, and fitness progress summaries.

mickpletcher/AI-Skills · 39 tokens

food-analyzer

Analyze food photos, nutrition labels, and ingredient lists. Trigger on food images, nutrition label scans, macro questions, glycemic questions, medication interaction checks, and similar food-analysis requests.

mickpletcher/AI-Skills · 41 tokens