baoyu-danger-x-to-markdown
Convert X (Twitter) tweets, threads and articles into markdown files
Install
See the repository for setupWhat it does
This skill turns X (Twitter) posts and long-form X Articles into Markdown files that begin with YAML front matter recording the source URL, author, tweet count and cover image. It is intended for people who want to archive or repost tweet threads and articles as local documents.
It runs as a script invoked by an AI agent, using either bun or npx -y bun, and accepts x.com or twitter.com status URLs and x.com/i/article URLs. Output goes to a folder structure of username, tweet ID and a content slug. Options include a custom output path, JSON output, and --download-media, which saves images and videos into local imgs/ and videos/ directories and rewrites links to relative paths.
Material limitations to note:
- It relies on a reverse-engineered X API, not an official one, so it may break without notice and offers no support guarantees.
- Before any conversion the user must read a disclaimer and explicitly accept it; acceptance is stored in a local consent file.
- First use requires choosing preferences for media download and output location; these are saved in an EXTEND.md file.
- Authentication uses
X_AUTH_TOKENandX_CT0environment variables, falling back to cached Chrome cookies.
Skill files
- SKILL.md
Repository data
- Stars
- 27,823
- Last push
- Nov 20, 2026
- License
- MIT
- Archived
- No
Tools similar to baoyu-danger-x-to-markdown
FAQ
- What license does baoyu-danger-x-to-markdown use?
- MIT
- What files are included with baoyu-danger-x-to-markdown?
- SKILL.md
Embed a listing badge
<a href="https://aiagentsmarketplace.dev/skills/baoyu-danger-x-to-markdown"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
Comments
No comments yet.