baoyu-url-to-markdown
यह क्या करती है
यह स्किल वेब पेज को साफ़ markdown टेक्स्ट के रूप में सहेजती है। यह उन पाठकों और शोधकर्ताओं के लिए है जो लेख या थ्रेड को पढ़ने योग्य रूप में रखना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप किसी वेब पेज को markdown फ़ाइल के रूप में सहेजना चाहते हैं।
- ✓जब आप किसी YouTube वीडियो का ट्रांस्क्रिप्ट टेक्स्ट के रूप में चाहते हैं।
- ✓जब आप किसी Hacker News थ्रेड को बाद में पढ़ने के लिए सहेजना चाहते हैं।
Skill का लिंक
https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-url-to-markdown/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“यह लेख पेज एक markdown फ़ाइल के रूप में सहेजिए, जिसे मैं रख सकूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आपका एजेंट Chrome में पेज खोलता है, जहाँ उस साइट के लिए खास तरीका हो वहाँ उसे इस्तेमाल करता है, सामग्री को markdown में बदलता है, और जब आपको लॉग इन करना हो या कोई जाँच पास करनी हो तो प्रतीक्षा करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
URL to Markdown
User Input Tools
When this skill prompts the user, follow this tool-selection rule (priority order):
- Prefer built-in user-input tools exposed by the current agent runtime — e.g.,
AskUserQuestion,request_user_input,clarify,ask_user, or any equivalent. - 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.
- 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
The CLI source is vendored in {baseDir}/scripts/lib; scripts/package.json installs only third-party runtime dependencies.
{baseDir}= this SKILL.md's directory${BUN}=bunif installed; otherwise suggest installing Bun- If
{baseDir}/scripts/node_modulesis missing:${BUN} install --cwd {baseDir}/scripts ${READER}={baseDir}/scripts/baoyu-fetch(substitute everywhere below)
Preferences (EXTEND.md)
First one found wins:
| Priority | Path | Scope |
|---|---|---|
| 1 | .baoyu-skills/baoyu-url-to-markdown/EXTEND.md |
Project |
| 2 | ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-url-to-markdown/EXTEND.md |
XDG |
| 3 | $HOME/.baoyu-skills/baoyu-url-to-markdown/EXTEND.md |
User home |
Found → read and apply. Not found → BLOCKING first-time setup: ask the questions in references/config/first-time-setup.md (Media, Output, Save — all in one call) before any conversion, write EXTEND.md, confirm "Preferences saved to [path]", then continue. Never create EXTEND.md with silent defaults.
| Key | Default | Values | CLI mapping |
|---|---|---|---|
download_media |
ask |
ask (prompt each time) / 1 (always) / 0 (never) |
1 → --download-media (requires --output) |
default_output_dir |
empty (= ./url-to-markdown/) |
path or empty | Agent builds --output <dir>/{domain}/{slug}.md; not a direct flag |
Value priority: CLI arguments → EXTEND.md → skill defaults.
Usage
${READER} <url> # headless, markdown to stdout
${READER} <url> --output article.md --download-media # save with local media
${READER} <url> --wait-for interaction --output a.md # login/CAPTCHA: auto-detect and continue
${READER} <url> --wait-for force --output a.md # manual: Enter to continue
${READER} <url> --format json --output a.json
${READER} <url> --adapter youtube --output transcript.md
Options
| Option | Description |
|---|---|
<url> |
URL to fetch |
--output <path> |
Output file path (default: stdout) |
--format <type> |
markdown (default) or json |
--json |
Shorthand for --format json |
--adapter <name> |
Force adapter: x, youtube, hn, or generic (default: auto-detect) |
--headless |
Force headless Chrome |
--wait-for <mode> |
none (default), interaction, or force |
--wait-for-interaction |
Alias for --wait-for interaction |
--wait-for-login |
Alias for --wait-for interaction |
--timeout <ms> |
Page load timeout (default: 30000) |
--interaction-timeout <ms> |
Login/CAPTCHA wait timeout (default: 600000 = 10 min) |
--interaction-poll-interval <ms> |
Interaction poll interval (default: 1500) |
--download-media |
Download images/videos to local imgs/ and videos/, rewrite links. Requires --output |
--media-dir <dir> |
Base directory for downloaded media (default: --output directory) |
--cdp-url <url> |
Reuse existing Chrome DevTools Protocol endpoint |
--browser-path <path> |
Custom Chrome/Chromium binary path |
--chrome-profile-dir <path> |
Chrome user data directory (default: BAOYU_CHROME_PROFILE_DIR env or ./baoyu-skills/chrome-profile) |
--debug-dir <dir> |
Write debug artifacts (document.json, markdown.md, page.html, network.json) |
Quality Gate
Headless capture is provisional: some sites silently return low-quality content with exit code 0. Inspect the saved markdown after every headless run, using references/quality-gate.md for the checklist, recovery steps, and capture modes.
Output Path
baoyu-fetch does not generate path
अक्सर पूछे जाने वाले सवाल
जिन पेजों पर लॉग इन चाहिए, उनका क्या?
स्किल इंटरैक्शन प्रतीक्षा मोड का उपयोग करके आपके लॉग इन करने या जाँच पास करने तक रुक सकती है।
किन साइटों के लिए खास हैंडलिंग है?
X या Twitter, YouTube ट्रांस्क्रिप्ट और Hacker News थ्रेड के लिए अंतर्निहित हैंडलिंग है।
सामान्य पेज कैसे बदले जाते हैं?
सामान्य पेज Defuddle नाम के सामग्री-निष्कर्षण टूल से markdown में बदले जाते हैं।
जानकारी
लेखक का मूल विवरण
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.
repo: JimLiu/baoyu-skills
लोकप्रियता
- GitHub स्टार
- 27k
- रैंकिंग में स्थान
- #9965
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
release-skills
27kयह आपके एजेंट को किसी भी प्रोजेक्ट के रिलीज़ में मार्गदर्शन देती है: वर्ज़न बढ़ाना, changelog अपडेट करना और GitHub release या tag प्रकाशित करना।
baoyu-article-illustrator
27kयह आपके एजेंट को लेख में चित्र जोड़ने में मदद करती है, उन जगहों को खोजकर जहाँ विज़ुअल चाहिए, और एक ही शैली में इमेज बनाकर।
baoyu-comic
27kयह आपके एजेंट को पैनल, कला शैलियों और लहजों के साथ शैक्षिक कॉमिक बनाना दिखाती है, जैसे जीवनी या ट्यूटोरियल।
baoyu-compress-image
27kयह आपके एजेंट को इमेज फ़ाइलों को WebP या PNG में बदलकर छोटा करने देती है, स्वचालित टूल चयन के साथ, ताकि वे तेज़ी से लोड हों।
मिलती-जुलती skills
tavily
394kयह आपके एजेंट को Tavily से वेब पर खोजने और खास वेब पेजों से टेक्स्ट निकालने देती है, गहराई, डोमेन और तारीख के विकल्पों के साथ।
blogwatcher
394kयह आपके एजेंट को ब्लॉग और RSS या Atom फ़ीड फ़ॉलो करने, उनमें नए लेख जांचने और जो लेख आपने पढ़ लिए हों उन्हें चिह्नित करने देती है।
data-scraper-agent
280kएजेंट को किसी भी public स्रोत से अपने-आप डेटा इकट्ठा करने में मदद करता है। इसे schedule किया जा सकता है, जानकारी को और बेहतर बनाया जा सकता है और नतीजे सेव किए जा सकते हैं। ऑनलाइन डेटा पर नज़र रखने के लिए उपयोगी है।