url-to-markdown

url-to-markdown is a skill for Claude Code, Codex from hankunpeng/skills. It costs 68 tokens per session (2,111 once invoked), scanned A, a copy of baoyu-url-to-markdown, MIT.

A tool that fetches a web page and turns it into clean Markdown. It uses a browser connection, includes special handling for sites such as X, YouTube, and Hacker News, and can wait for login or CAPTCHA interaction.

In plain words
What is it for?
Use it to save webpages, articles, social posts, video transcripts, and discussion threads as Markdown.
Why use it?
It removes the manual work of copying web content and cleaning page layout before an agent can use it.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: names the AskUserQuestion tool; built for openclaw.

Good fit Use it to save webpages, articles, social posts, video transcripts, and discussion threads as Markdown.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/hankunpeng/skills/url-to-markdown/github.svg)](https://agentmods.dev/skills/hankunpeng/skills/url-to-markdown)
Your own site
<a href="https://agentmods.dev/skills/hankunpeng/skills/url-to-markdown"><img src="https://agentmods.dev/badge/skills/hankunpeng/skills/url-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 url-to-markdown

Your own site · 80×15
<a href="https://agentmods.dev/skills/hankunpeng/skills/url-to-markdown"><img src="https://agentmods.dev/badge/skills/hankunpeng/skills/url-to-markdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,111 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 88% copy Near-identical to another mod 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.00068 $0.02111
Opus 5.5 $0.00027 $0.00844
Sonnet 5.5 $0.00014 $0.00422
Haiku 4.5 $0.00007 $0.00211

Measured 6d ago against content hash 38c9b6422076, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

url-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 6d ago.

The scan reads SKILL.md. This mod also ships 41 executable files (scripts/lib/adapters/generic/index.ts, scripts/lib/adapters/hn/index.ts, scripts/lib/adapters/index.ts, …), 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.

Origin

This is a copy

88% identical to baoyu-url-to-markdown — 27 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/url-to-markdown/SKILL.md · 171 lines

How it starts

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

URL to Markdown

Fetches any URL via fetch CLI (Chrome CDP + site-specific adapters) and converts it to clean markdown.

User Input Tools

When this skill prompts the user, follow this tool-selection rule (priority order):

  1. Prefer built-in user-input tools exposed by the current agent runtime — e.g., AskUserQuestion, request_user_input, clarify, ask_user, or any equivalent.
  2. Fallback: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.
  3. Batching: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.

Concrete AskUserQuestion references below are examples — substitute the local equivalent in other runtimes.

CLI Setup

Important: The CLI source is vendored in {baseDir}/scripts/lib. scripts/package.json installs only third-party runtime dependencies.

Agent Execution Instructions:

  1. Determine this SKILL.md file's directory path as {baseDir}
  2. Resolve ${BUN} runtime: if bun installed → bun; else suggest installing Bun
  3. If {baseDir}/scripts/node_modules does not exist, run ${BUN} install --cwd {baseDir}/scripts
  4. ${READER} = {baseDir}/scripts/fetch
  5. Replace all ${READER} in this document with the resolved value

Preferences (EXTEND.md)

Check EXTEND.md in priority order — the first one found wins:

Priority Path Scope
1 .config/skills/url-to-markdown/EXTEND.md Project
2 ${XDG_CONFIG_HOME:-$HOME/.config}/skills/url-to-markdown/EXTEND.md User home
Result Action
Found Read, parse, apply settings
Not found MUST run first-time setup (see below) — do NOT silently create defaults

EXTEND.md supports: download media by default, default output directory.

First-Time Setup ⛔ BLOCKING

When EXTEND.md is not found, you MUST use AskUserQuestion to gather preferences before creating EXTEND.md. NEVER create EXTEND.md with silent defaults. Generation is BLOCKED until setup completes. Batch all three questions into a single call:

Read the full file on GitHub · 171 lines

Files

What ships with it

47 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. 6d ago First seen · 171 lines · 68 tokens per session scan A 38c9b6422076

Subscribe to this mod's changes

url-to-markdown is a skill published in the GitHub repository hankunpeng/skills (25 stars, last pushed 4d ago), licensed MIT. It adds 68 tokens to every session and 2,111 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to baoyu-url-to-markdown, differing in 27 lines, and is treated as a copy.

Related

Other skills, from other repositories

browser-testing-with-devtools

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be…

addyosmani/agent-skills · 68 tokens

prd-architect

Updated to cover both pre-code PRD/ERD/Docs generation AND post-code continuous documentation updates / Diperbarui untuk mencakup pembuatan PRD/ERD/Docs pra-kode DAN pembaruan dokumentasi kontinu pasca-kode.

roedyrustam/vibes-plug · 58 tokens

browser-automation-expert

Expert guide for autonomous web agents (Browser-Use, Stagehand v0.4+), hardcore anti-bot evasion (Playwright Stealth, WebGL masking), and Vision LLM visual QA / Panduan ahli agen web otonom, penghindaran deteksi bot, dan QA visual berbasis Vision LLM.

roedyrustam/vibes-plug · 73 tokens

computer-use-os-agent-expert

Expert guide for Computer-Using Agents (CUA), OS/Desktop GUI automation, normalized pixel-coordinate grounding, isolated VM/Container sandboxing, and human-in-the-loop safety gates / Panduan ahli agen pengguna komputer (CUA), otomasi GUI OS/Desktop, grounding koordinat piksel, dan sandbox VM terisolasi.

roedyrustam/vibes-plug · 72 tokens

pdf-document-generation-expert

Expert guide for PDF generation and document processing (React PDF, Puppeteer, jsPDF, pdf-lib) / Panduan ahli generasi PDF dan pemrosesan dokumen (React PDF, Puppeteer, jsPDF, pdf-lib).

roedyrustam/vibes-plug · 53 tokens

web-scraper

Smart agentic web data extraction with multi-strategy scraping (Crawl4AI v4, Firecrawl), LLM extraction loops, anti-bot bypass, and structured export / Ekstraksi data web cerdas dan agentic dengan scraping multi-strategi (Crawl4AI v4, Firecrawl), ekstraksi LLM, bypass anti-bot, dan ekspor terstruktur.

roedyrustam/vibes-plug · 84 tokens