skillfed

baoyu-url-to-markdown

baoyu-url-to-markdown fetches URLs using Chrome DevTools Protocol and transforms them into clean markdown. It includes specialized adapters for X/Twitter, YouTube transcripts, and Hacker News, plus a generic fallback for any page. The skill supports interaction wait modes for login and CAPTCHA handling, optional media download, and customizable output directories through preference files.

baoyu-url-to-markdown converts any webpage URL into clean markdown with built-in support for Twitter, YouTube, and Hacker News.

AI-generated summary based on this skill's SKILL.md

24,241 2,697 MIT updated by JimLiu

Install

JimLiu/baoyu-skills/baoyu-url-to-markdown · repository language: TypeScript

git clone https://github.com/JimLiu/baoyu-skills
cp -r baoyu-skills/skills/baoyu-url-to-markdown ~/.claude/skills/baoyu-url-to-markdown
npx skillfed install JimLiu/baoyu-skills/baoyu-url-to-markdown

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How does baoyu-url-to-markdown convert a webpage to markdown?

baoyu-url-to-markdown fetches URLs using Chrome DevTools Protocol and transforms them into clean markdown. It connects to a browser instance, captures the rendered page content, and converts it to structured markdown format suitable for offline reading and archival.

Can I fetch a URL and save it as markdown with baoyu-url-to-markdown?

Yes. baoyu-url-to-markdown fetches URLs and saves them as markdown files. You can specify a custom output directory through preference files, and the tool handles the conversion automatically, preserving article structure and formatting.

What sites does baoyu-url-to-markdown have specialized adapters for?

baoyu-url-to-markdown includes site-specific adapters for X/Twitter, YouTube (including transcript extraction), and Hacker News. These adapters provide structured, optimized output for each platform. For any other webpage, baoyu-url-to-markdown falls back to its generic markdown converter.

Does baoyu-url-to-markdown support downloading webpages with images?

Yes. baoyu-url-to-markdown can optionally download embedded media including images and videos alongside the markdown conversion. You can configure media download settings to include or exclude these assets in your local markdown files.

How does baoyu-url-to-markdown handle login-protected pages?

baoyu-url-to-markdown supports interaction wait modes that allow it to handle login-protected and CAPTCHA-protected pages. These modes enable the browser to wait for user interaction or authentication before capturing and converting the page to markdown.

What output format does baoyu-url-to-markdown produce?

baoyu-url-to-markdown produces clean markdown (.md) files with structured content. Output directories are customizable through preference files, making it easy to organize converted webpages, articles from social media, and news site content for offline access.

SKILL.md

rendered from the published skill — quoted content, verbatim

URL to Markdown

Fetches any URL via baoyu-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

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 15 files
skills/baoyu-url-to-markdown/SKILL.md
skills/baoyu-url-to-markdown/references/adapters.md
skills/baoyu-url-to-markdown/references/config/first-time-setup.md
skills/baoyu-url-to-markdown/references/quality-gate.md
skills/baoyu-url-to-markdown/scripts/baoyu-fetch
skills/baoyu-url-to-markdown/scripts/bun.lock
skills/baoyu-url-to-markdown/scripts/lib/adapters/generic/index.ts
skills/baoyu-url-to-markdown/scripts/lib/adapters/hn/index.ts
skills/baoyu-url-to-markdown/scripts/lib/adapters/index.ts
skills/baoyu-url-to-markdown/scripts/lib/adapters/types.ts
skills/baoyu-url-to-markdown/scripts/lib/adapters/x/article.ts
skills/baoyu-url-to-markdown/scripts/lib/adapters/x/index.ts
skills/baoyu-url-to-markdown/scripts/lib/adapters/x/login.ts
skills/baoyu-url-to-markdown/scripts/lib/adapters/x/match.ts
skills/baoyu-url-to-markdown/scripts/lib/adapters/x/payloads.ts

Related skills

Tags

web-scraping content-extraction format-conversion headless-browser markup-generation site-adapters media-download login-handling chrome-automation