Tooluck logoTooluck
SKILL.md

baoyu-danger-x-to-markdown

Agent skill fromJimLiu/baoyu-skills

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 to install baoyu-danger-x-to-markdown

install baoyu-danger-x-to-markdown
# install the baoyu-skills pack with the skills CLI
npx skills add JimLiu/baoyu-skills

# or add only this skill to Claude Code: copy the folder

skills/baoyu-danger-x-to-markdown/

# into

~/.claude/skills/baoyu-danger-x-to-markdown/ (all projects)

.claude/skills/baoyu-danger-x-to-markdown/ (one project)

skills/baoyu-danger-x-to-markdown/SKILL.md

MITFull file
1# X to Markdown
2
3Tweets/threads → markdown with YAML front matter; X Articles → full content.
4
5## User Input Tools
6
7When this skill prompts the user, follow this tool-selection rule (priority order):
8
91. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.
102. **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.
113. **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.
12
13Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.
14
15## Script Directory
16
171. `{baseDir}` = this SKILL.md's directory; script = `{baseDir}/scripts/main.ts`
182. `${BUN_X}` = `bun` if installed; else `npx -y bun` if `npx` available; else suggest installing bun
19
20## Consent Requirement (before any conversion)
21
221. Read the consent file:
23 - macOS: `~/Library/Application\ Support/baoyu-skills/x-to-markdown/consent.json`
24 - Linux: `~/.local/share/baoyu-skills/x-to-markdown/consent.json`
252. `accepted: true` and `disclaimerVersion: "1.0"` → print `Warning: Using reverse-engineered X API. Accepted on: <acceptedAt>` and proceed.
263. Missing or version mismatch → show this disclaimer and ask "Yes, I accept" | "No, I decline":
27 ```
28…

Excerpt shown under the repository's MIT license.

More skills in baoyu-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates