Skip to content

baoyu-danger-x-to-markdown

Convert X tweets and articles to markdown with YAML front matter using reverse-engineered API.

— (0 ratings) 28.7K downloads jimliu
$ npx skills add https://github.com/jimliu/baoyu-skills --skill baoyu-danger-x-to-markdown

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Summary

Convert X tweets and articles to markdown with YAML front matter using reverse-engineered API.

  • Extracts tweets, threads, and X articles to markdown with metadata (author, URL, cover image, thread count)
  • Requires explicit user consent before first use; displays disclaimer about reverse-engineered API and potential account risks
  • Supports media download to local imgs/ and videos/ directories with automatic link rewriting, configurable per-conversion or via preferences
  • Authenticates via environment variables (X_AUTH_TOKEN, X_CT0) or Chrome login with cached cookies; includes --login flag to refresh credentials

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):

  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 them one at a time in priority order.

Concrete AskUserQuestion references below are examples — substitute the local equivalent in other runtimes.

Script Directory

  1. {baseDir} = this SKILL.md's directory; script = {baseDir}/scripts/main.ts
  2. ${BUN_X} = bun if installed; else npx -y bun if npx available; else suggest installing bun

Installs: 28.7K | GitHub stars: 28.0K | First seen: Jan 19, 2026

Related skills

New

Social media

reddit-automation

Find Reddit threads where people are genuinely asking for what you offer, then draft short, genuinely helpful replies — disclosing your affiliation honestly

New • 1.6M
New

Testing

grill-with-docs

Relentless design interrogation that stress-tests plans against your domain model and sharpens terminology inline.

New • 1.4M
New

Writing & content

setup-matt-pocock-skills

Configuration scaffold for engineering skills to locate issue tracker, triage labels, and domain documentation.

New • 1.2M