skillfed

baoyu-danger-x-to-markdown

Extract X posts and threads into markdown files with embedded metadata like author, URL, and media. The skill handles both individual tweets and multi-tweet threads, optionally downloading images and videos to local directories while rewriting links to point to saved files. First-time setup guides you through media handling and output preferences.

baoyu-danger-x-to-markdown converts X posts and threads to markdown files with metadata.

AI-generated summary based on this skill's SKILL.md

24,241 2,697 MIT updated by JimLiu

Install

JimLiu/baoyu-skills/baoyu-danger-x-to-markdown · repository language: TypeScript

git clone https://github.com/JimLiu/baoyu-skills
cp -r baoyu-skills/skills/baoyu-danger-x-to-markdown ~/.claude/skills/baoyu-danger-x-to-markdown
npx skillfed install JimLiu/baoyu-skills/baoyu-danger-x-to-markdown

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How does baoyu-danger-x-to-markdown convert tweet to markdown?

baoyu-danger-x-to-markdown extracts X posts into markdown format, capturing the tweet text, author information, and original URL. The skill preserves thread structure when processing multi-tweet conversations, organizing each tweet as a separate markdown section while maintaining chronological order and reply relationships.

Can I save X post as markdown with metadata included?

Yes. baoyu-danger-x-to-markdown saves tweets as markdown files with front matter containing metadata like author, publication date, URL, and engagement metrics. You can configure output preferences during setup to control which metadata fields appear and how files are named and organized.

What happens when I convert a twitter thread to markdown?

baoyu-danger-x-to-markdown processes entire threads as cohesive documents, preserving reply chains and conversation flow. Each tweet in the thread becomes a markdown section, and the skill maintains the original sequence so readers can follow the discussion from start to finish without losing context.

Does baoyu-danger-x-to-markdown download media from tweets?

Yes. The skill can download images and videos from tweets to local directories and rewrite markdown links to point to those saved files instead of external URLs. During first-time setup, you configure media handling preferences—whether to download all media, specific types only, or skip downloads entirely.

How do I convert multiple x.com URLs to markdown at once?

baoyu-danger-x-to-markdown supports batch conversion of multiple X URLs, processing them into separate markdown documents or a combined archive. Provide a list of URLs and the skill handles the extraction, metadata capture, and optional media downloading for all posts in a single operation.

Can baoyu-danger-x-to-markdown extract X articles to markdown?

Yes. The skill extracts X articles and long-form content into markdown format, preserving article structure, headings, and embedded media. Like tweet extraction, articles are saved with metadata front matter and can include downloaded images when configured to do so.

SKILL.md

rendered from the published skill — quoted content, verbatim

X to Markdown

Converts X content to markdown: - Tweets/threads → Markdown with YAML front matter - X Articles → Full content extraction

User Input Tools

When this skill prompts the user, follow this tool-selection rule (priority order):

  1. Prefer built-in user-input tools exposed by the current agent runtime — e.g., AskUserQuestion, request_user_input, clarify, ask_user, or any equivalent.
  2. 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.
  3. Batching: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 15 files
skills/baoyu-danger-x-to-markdown/SKILL.md
skills/baoyu-danger-x-to-markdown/references/config/first-time-setup.md
skills/baoyu-danger-x-to-markdown/scripts/bun.lock
skills/baoyu-danger-x-to-markdown/scripts/constants.ts
skills/baoyu-danger-x-to-markdown/scripts/cookie-file.ts
skills/baoyu-danger-x-to-markdown/scripts/cookies.ts
skills/baoyu-danger-x-to-markdown/scripts/graphql.ts
skills/baoyu-danger-x-to-markdown/scripts/http.ts
skills/baoyu-danger-x-to-markdown/scripts/main.ts
skills/baoyu-danger-x-to-markdown/scripts/markdown.test.ts
skills/baoyu-danger-x-to-markdown/scripts/markdown.ts
skills/baoyu-danger-x-to-markdown/scripts/media-localizer.ts
skills/baoyu-danger-x-to-markdown/scripts/package.json
skills/baoyu-danger-x-to-markdown/scripts/paths.ts
skills/baoyu-danger-x-to-markdown/scripts/referenced-tweets.ts

Related skills

Tags

social-media-export content-preservation markdown-conversion twitter-archival url-to-document media-embedding reverse-engineered-api yaml-frontmatter