X (Twitter) to Markdown Converter
Turns X/Twitter tweets, threads, and articles into Markdown files with YAML front matter.
UtilitiesIntermediate★ 24,749⑂ 2,764AI score 6/10Last updated: Jul 4, 2026
What it does
- Takes a tweet, thread, or X Article URL from x.com / twitter.com and converts it into a Markdown file.
- Adds YAML front matter with
url,author,tweetCount, andcoverImage. - Optional
--download-mediasaves images/videos into localimgs/andvideos/folders and rewrites links to relative paths. - Runs a consent/disclaimer flow on first use and stores your preferences in
EXTEND.md(media handling, default output directory). - Output layout:
x-to-markdown/{username}/{tweet-id}/{slug}.md
⚠️ This skill uses a reverse-engineered, unofficial X API and needs
X_AUTH_TOKEN/X_CT0env vars or your Chrome login cookies. Account restrictions are possible — use at your own risk.
Who it's for
- Anyone archiving great tweets/threads into Obsidian, Notion, or a personal knowledge base.
- Content creators repurposing X Articles into blog drafts or newsletters.
- Researchers who need verbatim tweet text plus source metadata for citation.
Examples
- Archive a thread: "Save this thread as markdown: https://x.com/user/status/123" → file created under
x-to-markdown/user/123/with images pulled down locally. - Repurpose an article: pass an X Article URL and ask to "extract the full text into my blog drafts folder" using the
-oflag. - Automation pipeline: use
--jsonto get structured output and pipe it into your own summarization or translation script.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/baoyu-danger-x-to-markdown folder from the GitHub repo JimLiu/baoyu-skills into my ~/.claude/skills/baoyu-danger-x-to-markdown/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-danger-x-to-markdown ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Prerequisites: run
bun --versionornpx --version. If neither exists, install bun withcurl -fsSL https://bun.sh/install | bash. - Clone the repo:
git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills - Copy the skill:
mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-danger-x-to-markdown ~/.claude/skills/ - Restart Claude Code and confirm
baoyu-danger-x-to-markdownshows up in your skill list. - Set up auth (optional but recommended): export
X_AUTH_TOKENandX_CT0. Otherwise the tool opens Chrome to log in and caches cookies locally. - First run: ask "convert https://x.com/... to markdown". You'll see the disclaimer prompt and three first-time setup questions (media handling, output dir, where to save prefs).
- Check the generated file under
./x-to-markdown/.
View source on GitHub ↗License: MIT