LLM Skills
~/catalog/backend//SKILL
BackendGitHub source

Baoyu danger x to markdown

/SKILL

Converts X (Twitter) tweets and articles to markdown with YAML front matter. Uses reverse-engineered API requiring user consent.

JimLiuJimLiu
24.2k
June 20, 2026
MIT License
// skill content

--- name: baoyu-danger-x-to-markdown description: Converts X (Twitter) tweets and articles to Markdown withYAML front matter. Uses reverse-engineeredAPI , which requires user consent. Use when the user mentions "X to Markdown," "tweet to Markdown," "save tweet," or provides x.com/twitter.com URLs for conversion. version: 1.117.3 metadata: openclaw: homepage:https://github.com/JimLiu/baoyu-skills#baoyu-danger-x-to-markdown requires: anyBins : - bun - npx --- # X to Markdown Converts X content to Markdown: - Tweets/threads → Markdown withYAML front matter - X Articles → Full content extraction ## User Input Tools When thisskill prompts the user, follow this tool-selection rule (in order of priority): 1. Prefer built-in user-input tools exposed by the currentagent runtime:e.g.,AskUserQuestion ,request_user_input ,clarify ,ask_user , or any equivalent. 2. Fallback: if no such tool exists, send a numbered plain-text message and ask the user to reply with the chosen number or answer for each question. 3. Batching: If the tool supports multiple questions per call, combine all applicable questions into a single call; if it supports only a single question, ask them one at a time in order of priority. The specificAskUserQuestion references below are examples:substitute the local equivalent in other runtimes. ## Script Directory Scripts are located in thescripts/ subdirectory. Path Resolution: 1.{baseDir} = thisSKILL.md 's directory 2. Script path ={baseDir}/scripts/main.ts 3. Resolve${BUN_X} runtime: ifbun is installed →bun ; ifnpx is available →npx -y bun ; otherwise, suggest installing bun ## 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, "accepted": true, "acceptedAt": "<ISO timestamp>", "disclaimerVersion": "1.0" } **Step 5**: On decline → output "User declined. Exiting." and stop. ## Preferences (EXTEND.md) Check EXTEND.md in priority order : the first one found wins: | Priority | Path | Scope | |----------|------|-------| | 1 | .baoyu-skills/baoyu-danger-x-to-markdown/EXTEND.md | Project | | 2 | ${XDGCONFIGHOME :-$HOME/.config}/baoyu-skills/baoyu-danger-x-to-markdown/EXTEND.md | XDG | | 3 | $HOME/.baoyu-skills /baoyu-danger-x-to-markdown/EXTEND.md | User home | | Result | Action | |--------|--------| | Found | Read, parse, apply settings | | Not found | **MUST** run first-time setup (see below) : do NOT silently create defaults | **EXTEND.md supports**: Download media by default, default output directory. ### First-Time Setup (BLOCKING) **CRITICAL**: When EXTEND.md is not found, you **MUST use AskUserQuestion** to ask the user for their preferences before creating EXTEND.md. **NEVER** create EXTEND.md with defaults without asking. This is a **BLOCKING** operation : do NOT proceed with any conversion until setup is complete. Use AskUserQuestion with ALL questions in ONE call: **Question 1** : header: "Media", question: "How to handle images and videos in tweets?" - "Ask each time (Recommended)" : After saving Markdown, ask whether to download media - "Always download" : Always download media to the local imgs/ and videos/` directories - "Never download" : Keep the original remote URLs in Markdown Question 2 : header: "Output", question: "Default output directory?" - "x-to-markdown (Recommended)" : Save to./x-to-markdown /{username}/{tweet

// original public source
JimLiu/baoyu-skills
/skills/baoyu-danger-x-to-markdown/SKILL.md
License: MIT License
Independent project, not affiliated with Anthropic. This skill remains the property of its original author.
// install this skill
Paste this command in your terminal at the root of your project:
mkdir -p .claude/commands && curl -o ".claude/commands/SKILL.md" "https://raw.githubusercontent.com/JimLiu/baoyu-skills/main/skills/baoyu-danger-x-to-markdown/SKILL.md"
Then in Claude Code, type /SKILL to activate it.
open_in_newOpen original source
// save
Save available after sign in.
loginSign in to save
// information
CreatorJimLiu
Stars 24.2k
CategoryBackend
LicenseMIT License
UpdatedJune 20, 2026
Format.md
AccessFree
// similar

Skills Backend

View allarrow_forward