Tooluck logoTooluck
SKILL.md

baoyu-url-to-markdown

Agent skill fromJimLiu/baoyu-skills

Fetch any URL and convert to markdown using baoyu-fetch CLI (Chrome CDP with site-specific adapters). Built-in adapters for X/Twitter, YouTube transcripts, Hacker News threads, and generic pages via Defuddle. Handles login/CAPTCHA via interaction wait modes. Use when user wants to save a webpage as markdown.

How to install baoyu-url-to-markdown

install baoyu-url-to-markdown
# install the baoyu-skills pack with the skills CLI
npx skills add JimLiu/baoyu-skills

# or add only this skill to Claude Code: copy the folder

skills/baoyu-url-to-markdown/

# into

~/.claude/skills/baoyu-url-to-markdown/ (all projects)

.claude/skills/baoyu-url-to-markdown/ (one project)

skills/baoyu-url-to-markdown/SKILL.md

MITFull file
1# URL to Markdown
2
3## User Input Tools
4
5When this skill prompts the user, follow this tool-selection rule (priority order):
6
71. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.
82. **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.
93. **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.
10
11Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.
12
13## CLI Setup
14
15The CLI source is vendored in `{baseDir}/scripts/lib`; `scripts/package.json` installs only third-party runtime dependencies.
16
171. `{baseDir}` = this SKILL.md's directory
182. `${BUN}` = `bun` if installed; otherwise suggest installing Bun
193. If `{baseDir}/scripts/node_modules` is missing: `${BUN} install --cwd {baseDir}/scripts`
204. `${READER}` = `{baseDir}/scripts/baoyu-fetch` (substitute everywhere below)
21
22## Preferences (EXTEND.md)
23
24First one found wins:
25
26| Priority | Path | Scope |
27|----------|------|-------|
28| 1 | `.baoyu-skills/baoyu-url-to-markdown/EXTEND.md` | Project |
29| 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-url-to-markdown/EXTEND.md` | XDG |
30…

Excerpt shown under the repository's MIT license.

More skills in baoyu-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates