Agent skill · Backend & API

baoyu-danger-x-to-markdown

Converts X (Twitter) tweets and articles to markdown with YAML front matter. Uses reverse-engineered API requiring user consent. Use when user mentions "X to markdown", "tweet to markdown", "save tweet", or provides x.com/twitter.com URLs for conversion.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-codeships scripts
Install
npx skills add ECNU-ICALK/AutoSkill --skill baoyu-danger-x-to-markdown --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 16
SKILL.md size: 7 KB
Bundled scripts: yes
Path: SkillBank/Common/baoyu-skills/baoyu-danger-x-to-markdown/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# X to Markdown Converts X content to markdown: - Tweets/threads → Markdown with YAML front matter - X Articles → Full content extraction ## Script Directory Scripts located in `scripts/` subdirectory. **Path Resolution**: 1. `SKILL_DIR` = this SKILL.md's directory 2. Script path = `${SKILL_DIR}/scripts/main.ts` ## Consent Requirement **Before any conversion**, check and obtain consent. ### Consent Flow **Step 1**: Check consent file ```bash # macOS cat ~/Library/Application\ Support/baoyu-skills/x-to-markdown/consent.json # Linux cat ~/.local/share/baoyu-skills/x-to-markdown/consent.json ``` **Step 2**: If `accepted: true` and `disclaimerVersion: "1.0"` → print warning and proceed: ``` Warning: Using reverse-engineered X API. Accepted on: <acceptedAt> ``` **Step 3**: If missing or version mismatch → display disclaimer: ``` DISCLAIMER This tool uses a reverse-engineered X API, NOT official. Risks: - May break if X changes API - No guarantees or support - Possible account restrictions - Use at your own risk Accept terms and continue? ``` Use `AskUserQuestion` with options: "Yes, I accept" | "No, I decline" **Step 4**: On accept → create consent file: ```json { "version": 1, "accepte

What's inside
Steps it walks through
  1. Script Directory
  2. Consent Requirement
  3. Consent Flow
  4. Preferences (EXTEND.md)
  5. First-Time Setup (BLOCKING)
  6. Supported Keys
  7. Usage
  8. Options
  9. Supported URLs
  10. Output
  11. Media Download Workflow
  12. Ask-Each-Time Flow
  13. Authentication
  14. Extension Support
Ships with 15 files
  • references/config/first-time-setup.md
  • scripts/constants.ts
  • scripts/cookie-file.ts
  • scripts/cookies.ts
  • scripts/graphql.ts
  • scripts/http.ts
  • scripts/main.ts
  • scripts/markdown.ts
  • scripts/media-localizer.ts
  • scripts/paths.ts
  • scripts/thread-markdown.ts
  • scripts/thread.ts
  • scripts/tweet-article.ts
  • scripts/tweet-to-markdown.ts
  • scripts/types.ts
Commands it runs
macOS
cat ~/Library/Application\ Support/baoyu-skills/x-to-markdown/consent.json
Linux
cat ~/.local/share/baoyu-skills/x-to-markdown/consent.json
Check project-level first
test -f .baoyu-skills/baoyu-danger-x-to-markdown/EXTEND.md && echo "project"
Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.baoyu-skills/baoyu-danger-x-to-markdown/EXTEND.md" && echo "user"
npx -y bun ${SKILL_DIR}/scripts/main.ts <url>
npx -y bun ${SKILL_DIR}/scripts/main.ts <url> -o output.md
More from AutoSkill
All skills →
About this skill
What does the baoyu-danger-x-to-markdown skill do?

Converts X (Twitter) tweets and articles to markdown with YAML front matter. Uses reverse-engineered API requiring user consent. Use when user mentions "X to markdown", "tweet to markdown", "save tweet", or provides x.com/twitter.com URLs for conversion.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill baoyu-danger-x-to-markdown --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going