baoyu-danger-x-to-markdown
यह क्या करती है
यह स्किल ट्वीट, थ्रेड और X Articles को पढ़ने योग्य markdown फ़ाइलों में बदलती है। यह उन लोगों के लिए है जो X की पोस्ट सहेजना या संग्रहित करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप कोई ट्वीट या थ्रेड markdown फ़ाइल के रूप में सहेजना चाहते हैं।
- ✓जब आपके पास कोई X Article है जिसे पढ़ने योग्य टेक्स्ट में रखना है।
- ✓जब आपके पास x.com या twitter.com का लिंक है जिसे बदलना है।
Skill का लिंक
https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-danger-x-to-markdown/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस ट्वीट थ्रेड को markdown फ़ाइल में सहेजिए, जिसके हेडर में तारीख और लेखक हों।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आपका एजेंट जाँचता है कि आपने शर्तें स्वीकार की हैं, reverse-engineered कनेक्शन से पोस्ट लाता है, और उसे हेडर के साथ markdown में लिखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
X to Markdown
Tweets/threads → markdown with YAML front matter; X Articles → full content.
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.
Script Directory
{baseDir}= this SKILL.md's directory; script ={baseDir}/scripts/main.ts${BUN_X}=bunif installed; elsenpx -y bunifnpxavailable; else suggest installing bun
Consent Requirement (before any conversion)
- Read the consent file:
- macOS:
~/Library/Application\ Support/baoyu-skills/x-to-markdown/consent.json - Linux:
~/.local/share/baoyu-skills/x-to-markdown/consent.json
- macOS:
accepted: trueanddisclaimerVersion: "1.0"→ printWarning: Using reverse-engineered X API. Accepted on: <acceptedAt>and proceed.- Missing or version mismatch → show this disclaimer and ask "Yes, I accept" | "No, I decline":
DISCLAIMER This tool uses a reverse-engineered X API, NOT official. Risks: - May break if X changes API - No guarantees or support - Possible account restrictions - Use at your own risk Accept terms and continue? - Accept → write the consent file:
{ "version": 1, "accepted": true, "acceptedAt": "<ISO timestamp>", "disclaimerVersion": "1.0" } - Decline → output "User declined. Exiting." and stop.
Preferences (EXTEND.md)
First one found wins:
| Priority | Path | Scope |
|---|---|---|
| 1 | .baoyu-skills/baoyu-danger-x-to-markdown/EXTEND.md |
Project |
| 2 | ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-danger-x-to-markdown/EXTEND.md |
XDG |
| 3 | $HOME/.baoyu-skills/baoyu-danger-x-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 at the chosen location, confirm "Preferences saved to [path]", then continue. Never create EXTEND.md with defaults without asking.
| Key | Default | Values |
|---|---|---|
download_media |
ask |
ask (prompt each time) / 1 (always) / 0 (never) |
default_output_dir |
empty (= ./x-to-markdown/) |
path or empty |
Value priority: CLI arguments (--download-media, -o) → EXTEND.md → skill defaults.
Usage
${BUN_X} {baseDir}/scripts/main.ts <url>
${BUN_X} {baseDir}/scripts/main.ts <url> -o output.md
${BUN_X} {baseDir}/scripts/main.ts <url> --download-media
${BUN_X} {baseDir}/scripts/main.ts <url> --json
| Option | Description |
|---|---|
<url> |
Tweet or article URL |
-o <path> |
Output path |
--json |
JSON output |
--download-media |
Download images/videos to local imgs/ and videos/ next to the markdown, rewrite links to local relative paths |
--login |
Refresh cookies only |
Supported URLs: https://x.com/<user>/status/<id>, https://twitter.com/<user>/status/<id>, https://x.com/i/article/<id>
Output
---
url: "https://x.com/user/status/123"
author: "Name (@user)"
tweetCount: 3
coverImage: "https://pbs.twimg.com/media/example.jpg"
---
Content...
File structure: x-to-markdown/{username}/{tweet-id}/{content-slug}.md
Media Download
By EXTEND.md download_media: 1 → run with --download-media; 0 → run without; ask (default):
- Run without
--download-media→ markdown saved - Check it for remote media (
https://image/video links); none → done, no prompt - Otherwise ask (header "Media", question "Download N images/videos to local files?"): "Yes" — download to local directories / "No" — keep remote URLs
- Yes → rerun with
--download-media(overwrites markdown with localized links)
Authentication
- Environment variables (preferred): `X_AUTH_TOKE
अक्सर पूछे जाने वाले सवाल
सहमति क्यों ज़रूरी है?
स्किल एक reverse-engineered X कनेक्शन इस्तेमाल करती है, इसलिए पहली बार वह शर्तें स्वीकार करने को कहती है।
फ़ाइल में क्या शामिल होता है?
शीर्ष पर पोस्ट के विवरण वाला YAML front matter होता है, उसके बाद सामग्री।
क्या यह पूरे X Articles सहेजती है?
हाँ। स्किल X Articles को ट्वीट और थ्रेड की तरह ही पूरी सामग्री सहित बदलती है।
जानकारी
लेखक का मूल विवरण
Converts X (Twitter) tweets and articles to markdown with YAML front matter. Uses reverse-engineered API requiring user consent. Use when user mentions "X to markdown", "tweet to markdown", "save tweet", or provides x.com/twitter.com URLs for conversion.
repo: JimLiu/baoyu-skills
लोकप्रियता
- GitHub स्टार
- 27k
- रैंकिंग में स्थान
- #9953
- लाइसेंस
- 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 किया जा सकता है, जानकारी को और बेहतर बनाया जा सकता है और नतीजे सेव किए जा सकते हैं। ऑनलाइन डेटा पर नज़र रखने के लिए उपयोगी है।