baoyu-danger-x-to-markdown

Convert Twitter/X tweets, threads, and articles into Markdown with YAML front matter.

Updated May 18, 2018
One-click install
npx skills add https://github.com/812lcl/dotfiles --skill baoyu-danger-x-to-markdown-812lcl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-danger-x-to-markdown
Source: https://github.com/812lcl/dotfiles/tree/main/.agents/skills/baoyu-danger-x-to-markdown
Command: npx skills add https://github.com/812lcl/dotfiles --skill baoyu-danger-x-to-markdown-812lcl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires baoyu-chrome-cdp, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Converts X (Twitter) tweets and articles into Markdown with YAML front matter, enabling easy archiving, publication, and note-taking while preserving source metadata; it uses a reverse-engineered API and requires user consent.

Core Features & Use Cases

  • Converts Tweets/Threads to Markdown with YAML front matter fully preserving authorship, URLs, and tweet counts.
  • Extracts X articles with content when available and optionally localizes media assets for offline usage.
  • Handles consent flow and cookie management, integrating with browser login or environment variables for tokens.

Quick Start

Provide an X tweet or article URL and an output path, and the tool will fetch the content and save a Markdown file with front matter at the specified location.

Frequently Asked Questions about baoyu-danger-x-to-markdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Twitter threads to markdown with YAML frontmatter?

To convert Twitter threads to markdown, this tool fetches X content via a reverse-engineered API and saves it as a Markdown file with YAML frontmatter preserving authorship, URLs, and tweet counts. You simply provide the tweet URL and output path.

Do I need to provide X cookies to archive tweets to Markdown?

Yes, archiving tweets requires X cookies to authenticate the fetch process. You can provide access to X cookies via environment variables or use a browser login flow to manage consent and token retrieval.

Can I localize media assets when converting X articles to Markdown?

Yes, you can optionally localize media assets when converting X articles to Markdown. This feature downloads images for offline usage, embedding local paths within the generated Markdown file alongside the extracted text.

What metadata is preserved when exporting tweets to Markdown?

Exporting tweets to Markdown fully preserves source metadata within the YAML frontmatter. This includes original authorship information, tweet URLs, and tweet counts, ensuring accurate archiving and note-taking workflows.

Does the X to Markdown converter support browser login for authentication?

Yes, the converter integrates with browser login to handle authentication and consent flow. It works with the baoyu-chrome-cdp dependency to manage cookies and fetch content from X without manual token configuration.