.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/baoyu-skills/baoyu-danger-x-to-markdown
home/skills/jimliu/baoyu-skills/baoyu-danger-x-to-markdown
jimliu avatar

baoyu-danger-x-to-markdown

byjimliu· 68 skills

Installs

26k

Stars

24k

Forks

2.7k

Category

Content & Copywriting

View on GitHub

TL;DR

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?

jimliu/baoyu-skills/baoyu-danger-x-to-markdown
$npx -y skills add jimliu/baoyu-skills --skill baoyu-danger-x-to-markdown

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Use this skill

Run `npx skills use "https://github.com/jimliu/baoyu-skills" --skill "jimliu/baoyu-skills/baoyu-danger-x-to-markdown"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.

Use the whole pack

Use the skills in "https://github.com/jimliu/baoyu-skills" that are relevant to the current task. Run `npx skills add "https://github.com/jimliu/baoyu-skills"` and select the relevant skills, then follow their instructions.

Files · 1

View on GitHub
SKILL.md
1# X to Markdown
2 
3Converts X content to markdown:
4- Tweets/threads → Markdown with YAML front matter
5- X Articles → Full content extraction
6 
7## User Input Tools
8 
9When this skill prompts the user, follow this tool-selection rule (priority order):
10 
111. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.
122. **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.
133. **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.
14 
15Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.
16 
17## Script Directory
18 
19Scripts located in `scripts/` subdirectory.
20 
21**Path Resolution**:
221. `{baseDir}` = this SKILL.md's directory
232. Script path = `{baseDir}/scripts/main.ts`
243. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun
25 
26## Consent Requirement
27 
28**Before any conversion**, check and obtain consent.
29 
30### Consent Flow
31 
32**Step 1**: Check consent file
33 
34```bash
35# macOS
36cat ~/Library/Application\ Support/baoyu-skills/x-to-markdown/consent.json
37 
38# Linux
39cat ~/.local/share/baoyu-skills/x-to-markdown/consent.json
40```
41 
42**Step 2**: If `accepted: true` and `disclaimerVersion: "1.0"` → print warning and proceed:
43```
44Warning: Using reverse-engineered X API. Accepted on: <acceptedAt>
45```
46 
47**Step 3**: If missing or version mismatch → display disclaimer:
48```
49DISCLAIMER
50 
51This tool uses a reverse-engineered X API, NOT official.
52 
53Risks:
54- May break if X changes API
55- No guarantees or support
56- Possible account restrictions
57- Use at your own risk
58 
59Accept terms and continue?
60```
61 
62Use `AskUserQuestion` with options: "Yes, I accept" | "No, I decline"
63 
64**Step 4**: On accept → create consent file:
65```json
66{
67 "version": 1,
68 "accepted": true,
69 "acceptedAt": "<ISO timestamp>",
70 "disclaimerVersion": "1.0"
71}
72```
73 
74**Step 5**: On decline → output "User declined. Exiting." and stop.
75 
76## Preferences (EXTEND.md)
77 
78Check EXTEND.md in priority order — the first one found wins:
79 
80| Priority | Path | Scope |
81|----------|------|-------|
82| 1 | `.baoyu-skills/baoyu-danger-x-to-markdown/EXTEND.md` | Project |
83| 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-danger-x-to-markdown/EXTEND.md` | XDG |
84| 3 | `$HOME/.baoyu-skills/baoyu-danger-x-to-markdown/EXTEND.md` | User home |
85 
86| Result | Action |
87|--------|--------|
88| Found | Read, parse, apply settings |
89| Not found | **MUST** run first-time setup (see below) — do NOT silently create defaults |
90 
91**EXTEND.md supports**: Download media by default, default output directory.
92 
93### First-Time Setup (BLOCKING)
94 
95**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.
96 
97Use `AskUserQuestion` with ALL questions in ONE call:
98 
99**Question 1** — header: "Media", question: "How to handle images and videos in tweets?"
100- "Ask each time (Recommended)" — After saving markdown, ask whether to download media
101- "Always download" — Always download media to local imgs/ and videos/ directories
102- "Never download" — Keep original remote URLs in markdown
103 
104**Question 2** — header: "Output", question: "Default output directory?"
105- "x-to-markdown (Recommended)" — Save to ./x-to-markdown/{username}/{tweet-id}.md
106- (User may choose "Other" to type a custom path)
107 
108**Question 3** — header: "Save", question: "Where to save preferences?"
109- "User (Recommended)" — ~/.baoyu-skills/ (all projects)
110- "Project" — .baoyu-skills/ (this project only)
111 
112After user answers, create EXTEND.md at the chosen location, confirm "Preferences saved to [path]", then continue.
113 
114Full reference: [references/config/first-time-setup.md](references/config/first-time-setup.md)
115 
116### Supported Keys
117 
118| Key | Default | Values | Description |
119|-----|---------|--------|-------------|
120| `download_media` | `ask` | `ask` / `1` / `0` | `ask` = prompt each time, `1` = always download, `0` = never |
121| `default_output_dir` | empty | path or empty | Default output directory (empty = `./x-to-markdown/`) |
122 
123**Value priority**:
1241. CLI arguments (`--download-media`, `-o`)
1252. EXTEND.md
1263. Skill defaults
127 
128## Usage
129 
130```bash
131${BUN_X} {baseDir}/scripts/main.ts <url>
132${BUN_X} {baseDir}/scripts/main.ts <url> -o output.md
133${BUN_X} {baseDir}/scripts/main.ts <url> --download-media
134${BUN_X} {baseDir}/scripts/main.ts <url> --json
135```
136 
137## Options
138 
139| Option | Description |
140|--------|-------------|
141| `<url>` | Tweet or article URL |
142| `-o <path>` | Output path |
143| `--json` | JSON output |
144| `--download-media` | Download image/video assets to local `imgs/` and `videos/`, and rewrite markdown links to local relative paths |
145| `--login` | Refresh cookies only |
146 
147## Supported URLs
148 
149- `https://x.com/<user>/status/<id>`
150- `https://twitter.com/<user>/status/<id>`
151- `https://x.com/i/article/<id>`
152 
153## Output
154 
155```markdown
156---
157url: "https://x.com/user/status/123"
158author: "Name (@user)"
159tweetCount: 3
160coverImage: "https://pbs.twimg.com/media/example.jpg"
161---
162 
163Content...
164```
165 
166**File structure**: `x-to-markdown/{username}/{tweet-id}/{content-slug}.md`
167 
168When `--download-media` is enabled:
169- Images are saved to `imgs/` next to the markdown file
170- Videos are saved to `videos/` next to the markdown file
171- Markdown media links are rewritten to local relative paths
172 
173## Media Download Workflow
174 
175Based on `download_media` setting in EXTEND.md:
176 
177| Setting | Behavior |
178|---------|----------|
179| `1` (always) | Run script with `--download-media` flag |
180| `0` (never) | Run script without `--download-media` flag |
181| `ask` (default) | Follow the ask-each-time flow below |
182 
183### Ask-Each-Time Flow
184 
1851. Run script **without** `--download-media` → markdown saved
1862. Check saved markdown for remote media URLs (`https://` in image/video links)
1873. **If no remote media found** → done, no prompt needed
1884. **If remote media found** → use `AskUserQuestion`:
189 - header: "Media", question: "Download N images/videos to local files?"
190 - "Yes" — Download to local directories
191 - "No" — Keep remote URLs
1925. If user confirms → run script **again** with `--download-media` (overwrites markdown with localized links)
193 
194## Authentication
195 
1961. **Environment variables** (preferred): `X_AUTH_TOKEN`, `X_CT0`
1972. **Chrome login** (fallback): Auto-opens Chrome, caches cookies locally
198 
199## Extension Support
200 
201Custom configurations via EXTEND.md. See **Preferences** section for paths and supported options.

Security

Review

  • Gen Agent Trust Hubwarn
  • Socketwarn
  • Snykwarn
  • Runlayerwarn
  • ZeroLeakspass

Preview

jimliu/baoyu-skillsjimliu/baoyu-skills

$ npx -y skills add jimliu/baoyu-skills --skill baoyu-danger-x-to-markdown

▸ installing to .claude/skills…

✓ baoyu-danger-x-to-markdown ready

Repojimliu/baoyu-skills
TypeSkills
CategoryContent & Copywriting
ForContent CreatorResearcher
UpdatedJul 2026
License—
First seenJul 26, 2026

Tags

Skill

Related

6 picks
Type
  1. mattpocock avataredit-articleEdit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.SkillsJul 2026172k189k
  2. mattpocock avatarwriting-shapeWriting, exploit — shape raw material into an article, paragraph by paragraph.SkillsJul 2026165k189k
  3. mattpocock avatarwriting-fragmentsWriting, explore — mine raw fragments, no structure yet.SkillsJul 2026165k189k
  4. mattpocock avatarwriting-beatsWriting, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.SkillsJul 2026164k189k
  5. coreyhaines31 avatarcopywritingWhen the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages,…SkillsJul 2026164k42k
  6. heygen-com avatarslideshowAuthor a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and…SkillsJul 2026115k38k