# 策展 · X (Twitter) 🔥

> 作者：宝玉 (@dotey) · 平台：X (Twitter) · 日期：2026-03-24

> 原始來源：https://x.com/dotey/status/2035570395256930355

## 中文摘要

JimLiu發布baoyu-skills提升Claude Code效率。

**baoyu-skills 介紹**  
JimLiu 開發的 [baoyu-skills](https://github.com/jimliu/baoyu-skills) 是 Baoyu 技能集合，涵蓋內容生成、AI 後端與實用工具三大類別，專為 Claude Code 日常工作設計。無需 API 金鑰即可提取 YouTube 字幕、多語言支援、分章、AI 辨識講者，並輸出 SRT 或 Markdown 格式，具備智慧快取即時重格式化功能。

**安裝與更新方式**  
**快速安裝（推薦）**：  
```bash
npx skills add jimliu/baoyu-skills
```  
**發布至 ClawHub / OpenClaw**：每個 `skills/baoyu-*` 目錄可獨立發布為 ClawHub skill，以 MIT-0 授權。  
```bash
# 預覽發布內容
./scripts/sync-clawhub.sh --dry-run

# 發布所有變更技能
./scripts/sync-clawhub.sh --all
```  
使用者可單獨安裝：  
```bash
clawhub install baoyu-image-gen
clawhub install baoyu-markdown-to-html
```  
**Claude Code 中註冊插件市場**：  
```bash
/plugin marketplace add JimLiu/baoyu-skills
```  
**安裝選項 1：透過 Browse UI**：  
1. 選擇 **Browse and install plugins**  
2. 選擇 **baoyu-skills**  
3. 選擇 **baoyu-skills** plugin  
4. 選擇 **Install now**  

**安裝選項 2：直接安裝**：  
```bash
/plugin install baoyu-skills@baoyu-skills
```  
**安裝選項 3：詢問 Agent**：直接告訴 Claude Code：「Please install Skills from github.com/JimLiu/baoyu-skills」。  

**更新技能**：  
1. 在 Claude Code 執行 `/plugin`  
2. 切換至 **Marketplaces** 分頁（使用方向鍵或 Tab）  
3. 選擇 **baoyu-skills**  
4. 選擇 **Update marketplace**  
可啟用 **auto-update** 自動獲取最新版本。

**內容技能（Content Skills）**  
這些技能專注內容生成與發布。  

**baoyu-xhs-images**：生成小紅書（RedNote）資訊圖系列，將內容拆成 1-10 張卡通風格 infographics，使用 **Style × Layout** 二維系統。  
```bash
# 自動選擇風格與布局
/baoyu-xhs-images posts/ai-future/article.md

# 指定風格
/baoyu-xhs-images posts/ai-future/article.md --style notion

# 指定布局
/baoyu-xhs-images posts/ai-future/article.md --layout dense

# 組合風格與布局
/baoyu-xhs-images posts/ai-future/article.md --style tech --layout list

# 直接輸入內容
/baoyu-xhs-images 今日星座运势
```  
- **風格（Styles）**：`cute`（預設）、`fresh`、`warm`、`bold`、`minimal`、`retro`、`pop`、`notion`、`chalkboard`。  
- **布局（Layouts）**：  
  | Layout | Density | Best for |  
  |--------|---------|----------|  
  | `sparse` | 1-2 pts | Covers, quotes |  
  | `balanced` | 3-4 pts | Regular content |  
  | `dense` | 5-8 pts | Knowledge cards, cheat sheets |  
  | `list` | 4-7 items | Checklists, rankings |  
  | `comparison` | 2 sides | Before/after, pros/cons |  
  | `flow` | 3-6 steps | Processes, timelines |  

**baoyu-infographic**：生成專業 infographics，20 種布局與 17 種視覺風格，分析內容推薦組合，輸出出版就緒圖像。  
```bash
# 依內容自動推薦組合
/baoyu-infographic path/to/content.md

# 指定布局
/baoyu-infographic path/to/content.md --layout pyramid

# 指定風格（預設：craft-handmade）
/baoyu-infographic path/to/content.md --style technical-schematic

# 指定兩者
/baoyu-infographic path/to/content.md --layout funnel --style corporate-memphis

# 指定長寬比
/baoyu-infographic path/to/content.md --aspect portrait
/baoyu-infographic path/to/content.md --aspect 3:4
```  
- **選項**：`--layout <name>`（20 種）、`--style <name>`（17 種，預設 `craft-handmade`）、`--aspect <ratio>`（如 `landscape` (16:9)、`portrait` (9:16)、`square` (1:1) 或自訂 `3:4`）、`--lang <code>`（en, zh, ja 等）。  
- **布局（20 種）**：`bridge`（問題-解決方案）、`circular-flow`（循環流程）、`comparison-table`（多因素比較）、`do-dont`（正確 vs 錯誤）、`equation`（公式分解）、`feature-list`（產品特點）、`fishbone`（根本原因分析）、`funnel`（轉換流程）、`grid-cards`（多主題概覽）、`iceberg`（表面 vs 隱藏）、`journey-path`（客戶旅程）、`layers-stack`（技術堆疊）、`mind-map`（腦圖）、`nested-circles`（影響層級）、`priority-quadrants`（艾森豪矩陣）、`pyramid`（階層）、`scale-balance`（優缺權衡）、`timeline-horizontal`（歷史時間線）、`tree-hierarchy`（組織圖）、`venn`（重疊概念）。  
- **風格（17 種）**：`craft-handmade`（手繪紙藝，預設）、`claymation`（黏土動畫）、`kawaii`（日式可愛）、`storybook-watercolor`（水彩故事書）、`chalkboard`（黑板粉筆）、`cyberpunk-neon`（賽博龐克霓虹）、`bold-graphic`（粗獷圖形）、`aged-academia`（老派學術）、`corporate-memphis`（企業扁平）、`technical-schematic`（技術藍圖）、`origami`（摺紙）、`pixel-art`（像素藝術）、`ui-wireframe`（介面線框）、`subway-map`（地鐵圖）、`ikea-manual`（IKEA 手冊）、`knolling`（平鋪整理）、`lego-brick`（樂高積木）。  

**baoyu-cover-image**：生成文章封面圖，5 維度系統：Type × Palette × Rendering × Text × Mood，9 種色盤 × 6 種渲染產生 54 種組合。  
```bash
# 依內容自動選擇所有維度
/baoyu-cover-image path/to/article.md

# Quick 模式，跳過確認
/baoyu-cover-image path/to/article.md --quick

# 指定維度
/baoyu-cover-image path/to/article.md --type conceptual --palette cool --rendering digital

# 指定文字與心情
/baoyu-cover-image path/to/article.md --text title-subtitle --mood bold

# 舊版相容風格預設
/baoyu-cover-image path/to/article.md --style blueprint

# 指定長寬比（預設 16:9）
/baoyu-cover-image path/to/article.md --aspect 2.35:1

# 無標題
/baoyu-cover-image path/to/article.md --no-title
```  
- **Type**：`hero`、`conceptual`、`typography`、`metaphor`、`scene`、`minimal`。  
- **Palette**：`warm`、`elegant`、`cool`、`dark`、`earth`、`vivid`、`pastel`、`mono`、`retro`。  
- **Rendering**：`flat-vector`、`hand-drawn`、`painterly`、`digital`、`pixel`、`chalk`。  
- **Text**：`none`、`title-only`（預設）、`title-subtitle`、`text-rich`。  
- **Mood**：`subtle`、`balanced`（預設）、`bold`。  

**baoyu-slide-deck**：從 Markdown 生成專業投影片圖像，自動建立大綱與樣式，輸出 `.pptx` 與 `.pdf`。  
```bash
/baoyu-slide-deck path/to/article.md
/baoyu-slide-deck path/to/article.md --style corporate
/baoyu-slide-deck path/to/article.md --audience executives
/baoyu-slide-deck path/to/article.md --slides 15
/baoyu-slide-deck path/to/article.md --outline-only
/baoyu-slide-deck path/to/article.md --lang zh
```  
- **選項**：`--style <name>`（視覺風格）、`--audience <type>`（beginners, intermediate, experts, executives, general）、`--lang <code>`、`--slides <number>`（8-25 推薦，max 30）、`--outline-only`、`--prompts-only`、`--images-only`、`--regenerate <N>`。  
- **風格系統**：Texture (`clean`、`grid`、`organic`、`pixel`、`paper`) × Mood (`professional`、`warm`、`cool`、`vibrant`、`dark`、`neutral`) × Typography (`geometric`、`humanist`、`handwritten`、`editorial`、`technical`) × Density (`minimal`、`balanced`、`dense`)。  
- **預設**：`blueprint`（架構設計）、`chalkboard`（教育）、`corporate`（提案）、`minimal`（簡報）、`sketch-notes`（教學）、`watercolor`（生活）、`dark-atmospheric`（娛樂）、`notion`（產品）、`bold-editorial`（發表）、`editorial-infographic`（解說）、`fantasy-animation`（故事）、`intuition-machine`（技術文件）、`pixel-art`（遊戲）、`scientific`（科學）、`vector-illustration`（創意）、`vintage`（歷史）。  

**baoyu-comic**：生成知識漫畫，自動選擇 art + tone。  
```bash
/baoyu-comic posts/turing-story/source.md
/baoyu-comic posts/turing-story/source.md --art manga --tone warm
/baoyu-comic posts/turing-story/source.md --art ink-brush --tone dramatic
/baoyu-comic posts/turing-story/source.md --style ohmsha
/baoyu-comic posts/turing-story/source.md --style wuxia
/baoyu-comic posts/turing-story/source.md --layout cinematic --aspect 16:9
/baoyu-comic posts/turing-story/source.md --lang zh
/baoyu-comic "The story of Alan Turing and the birth of computer science"
```  
- **Art**：`ligne-claire`（預設，歐漫）、`manga`、`realistic`、`ink-brush`、`chalk`。  
- **Tone**：`neutral`（預設）、`warm`、`dramatic`、`romantic`、`energetic`、`vintage`、`action`。  
- **預設**：`ohmsha`（manga + neutral，視覺隱喻無人物特寫）、`wuxia`（ink-brush + action，氣效戰鬥）、`shoujo`（manga + romantic，裝飾浪漫）。  
- **Layout**：`standard`（預設，4-6 格）、`cinematic`（2-4 格）、`dense`（6-9 格）、`splash`（1-2 大格）、`mixed`（3-7 變動）、`webtoon`（3-5 垂直）。  
- **Aspect**：`3:4`（預設縱向）、`4:3`（橫向）、`16:9`（寬屏）。  

**baoyu-article-illustrator**：為文章生成插圖，分析結構識別視覺輔助位置。  
```bash
/baoyu-article-illustrator path/to/article.md
/baoyu-article-illustrator path/to/article.md --type infographic
/baoyu-article-illustrator path/to/article.md --style blueprint
/baoyu-article-illustrator path/to/article.md --type flowchart --style notion
```  
- **Types**：`infographic`（資料視覺化）、`scene`（氛圍插圖）、`flowchart`（流程圖）、`comparison`（對比）、`framework`（概念圖）、`timeline`（時間線）。  
- **Styles**：`notion`（預設，極簡手繪）、`elegant`（精緻）、`warm`（親切）、`minimal`（禪意）、`blueprint`（藍圖）、`watercolor`（水彩）、`editorial`（雜誌）、`scientific`（學術）。  

**AI 生成技能（AI Generation Skills）**  
**baoyu-image-gen**：多供應商 AI 圖像生成（OpenAI、Google、OpenRouter、DashScope、Jimeng、Seedream、Replicate），自動偵測偏好 Google。  
```bash
/baoyu-image-gen --prompt "A cute cat" --image cat.png
/baoyu-image-gen --prompt "A landscape" --image landscape.png --ar 16:9
/baoyu-image-gen --prompt "A banner" --image banner.png --quality 2k
/baoyu-image-gen --prompt "A cat" --image cat.png --provider openai
/baoyu-image-gen --prompt "一只可爱的猫" --image cat.png --provider dashscope
/baoyu-image-gen --prompt "Make it blue" --image out.png --ref source.png
```  
- **選項**：`--prompt`、`--promptfiles`、`--image`（必填）、`--provider`（預設 auto，偏好 google）、`--model`、`--ar`、`--size`、`--quality`（預設 `2k`）、`--ref`。  
環境變數如 `OPENAI_API_KEY`、`GOOGLE_API_KEY` 等，詳見後述配置。  

**baoyu-danger-gemini-web**：互動 Gemini Web 生成文字/圖像（非官方，反向工程，風險自負，需 Chrome 認證快取 cookie）。  
```bash
/baoyu-danger-gemini-web "Hello, Gemini"
/baoyu-danger-gemini-web --prompt "Explain quantum computing"
/baoyu-danger-gemini-web --prompt "A cute cat" --image cat.png
```  
代理支援：  
```bash
HTTP_PROXY=http://127.0.0.1:7890 HTTPS_PROXY=http://127.0.0.1:7890 /baoyu-danger-gemini-web "Hello"
```  

**發布技能（Publishing Skills）**  
**baoyu-post-to-x**：發布至 X (Twitter)，支援圖片與 X Articles，使用 Chrome + CDP 繞過反自動化，手動審核。  
```bash
/baoyu-post-to-x "Hello from Claude Code!"
/baoyu-post-to-x "Check this out" --image photo.png
/baoyu-post-to-x --article path/to/article.md
```  

**baoyu-post-to-wechat**：發布微信公眾號，Image-Text 或 Article 模式。API 推薦（快），需憑證；Browser 模式慢，需 Chrome 登入。  
```bash
# Image-Text
/baoyu-post-to-wechat 贴图 --markdown article.md --images ./photos/
/baoyu-post-to-wechat 贴图 --title "标题" --content "内容" --image img1.png --submit

# Article
/baoyu-post-to-wechat 文章 --markdown article.md
/baoyu-post-to-wechat 文章 --markdown article.md --theme grace
/baoyu-post-to-wechat 文章 --html article.html
```  
API 配置至 `.baoyu-skills/.env` 或 `~/.baoyu-skills/.env`：  
```
WECHAT_APP_ID=your_app_id
WECHAT_APP_SECRET=your_app_secret
```  
獲取憑證：1. 訪問 [https://developers.weixin.qq.com/platform/](https://developers.weixin.qq.com/platform/)；2. 我的业务 → 公众号 → 開發密鑰；3. 建立開發密鑰複製 AppID/AppSecret；4. 加機器 IP 到白名單。  
多帳號經 `EXTEND.md` 管理：  
```yaml
# Global settings
default_theme: default
default_color: blue

# Account list
accounts:
  - name: My Tech Blog
    alias: tech-blog
    default: false
    default_publish_method: api
    default_author: Author Name
    need_open_comment: 1
    only_fans_can_comment: 0
    app_id: your_wechat_app_id
    app_secret: your_wechat_app_secret
  - name: AI Newsletter
    alias: ai-news
    default_publish_method: browser
    default_author: AI Newsletter
    need_open_comment: 1
    only_fans_can_comment: 0
```  

**baoyu-post-to-weibo**：發布微博，支援文字/圖/影片（最多 18 檔）與頭條文章，使用 Chrome + CDP，手動審核。  
```bash
/baoyu-post-to-weibo "Hello Weibo!"
/baoyu-post-to-weibo "Check this out" --image photo.png
/baoyu-post-to-weibo "Watch this" --video clip.mp4
/baoyu-post-to-weibo --article article.md
/baoyu-post-to-weibo --article article.md --cover cover.jpg
```  
文章選項：`--cover <path>`、`--title <text>`（max 32 chars）、`--summary <text>`（max 44 chars）。  

**實用技能（Utility Skills）**  
**baoyu-youtube-transcript**：提取 YouTube 字幕/封面，多語言、分章、講者辨識，快取支援。  
```bash
/baoyu-youtube-transcript https://www.youtube.com/watch?v=VIDEO_ID
/baoyu-youtube-transcript https://youtu.be/VIDEO_ID --languages zh,en,ja
/baoyu-youtube-transcript https://youtu.be/VIDEO_ID --chapters --speakers
/baoyu-youtube-transcript https://youtu.be/VIDEO_ID --format srt
/baoyu-youtube-transcript https://youtu.be/VIDEO_ID --list
```  

**baoyu-url-to-markdown**：Chrome CDP 抓 URL 轉乾淨 Markdown，存 HTML 快照。  
```bash
/baoyu-url-to-markdown https://example.com/article
/baoyu-url-to-markdown https://example.com/private --wait
/baoyu-url-to-markdown https://example.com/article -o output.md
```  

**baoyu-danger-x-to-markdown**：轉 X (Twitter) 內容為 Markdown，支援 threads 與 Articles（非官方，風險自負）。  
```bash
/baoyu-danger-x-to-markdown https://x.com/username/status/123456
/baoyu-danger-x-to-markdown https://x.com/username/status/123456 -o output.md
/baoyu-danger-x-to-markdown https://x.com/username/status/123456 --json
/baoyu-danger-x-to-markdown https://x.com/username/status/123456 --download-media
```  

**baoyu-compress-image**：壓縮圖像維持品質。  
```bash
/baoyu-compress-image path/to/image.png
/baoyu-compress-image path/to/images/ --quality 80
```  

**baoyu-format-markdown**：格式化 Markdown，添加 frontmatter、標題、摘要、粗體、清單、程式碼區塊。  
```bash
/baoyu-format-markdown path/to/article.md
```  
工作流程：讀取分析 → YAML frontmatter（title, slug, summary, coverImage）→ 標題處理 → 格式化（# 標題、**粗體**、- 清單、```程式碼```、> 引言）→ 輸出 `{filename}-formatted.md` → 排版（全形引號、CJK 間距）。  

**baoyu-markdown-to-html**：轉 Markdown 為微信相容 HTML，支援主題、語法高亮、底部引用。  
```bash
/baoyu-markdown-to-html article.md
/baoyu-markdown-to-html article.md --theme grace --color red
/baoyu-markdown-to-html article.md --cite
```  

**baoyu-translate**：多語言翻譯，三模式（quick 直接、normal 分析後翻、refined 審潤出版級）。  
```bash
/translate article.md --to zh-CN
/translate article.md --mode quick --to ja
/translate article.md --mode refined --to zh-CN
/translate https://example.com/article --to zh-CN
/translate article.md --to zh-CN --audience technical
/translate article.md --to zh-CN --style humorous
/translate article.md --to zh-CN --glossary my-terms.md
```  
- **模式**：Quick（短文）、Normal（文章，預設）、Refined（出版，後續回「继续润色」繼續）。  
- **Audience**：`general`（預設）、`technical`、`academic`、`business`。  
- **Style**：`storytelling`（預設）、`formal`、`technical`、`literal`、`academic`、`business`、`humorous`、`conversational`、`elegant`。  
支援自訂詞彙 `EXTEND.md`、長文分塊並行、意譯比喻、文化註解。  

**環境配置與自訂**  
環境變數優先：CLI > process.env > `<cwd>/.baoyu-skills/.env` > `~/.baoyu-skills/.env`。  
使用者級配置：  
```bash
mkdir -p ~/.baoyu-skills
cat > ~/.baoyu-skills/.env << 'EOF'
OPENAI_API_KEY=sk-xxx
OPENROUTER_API_KEY=sk-or-xxx
GOOGLE_API_KEY=xxx
DASHSCOPE_API_KEY=sk-xxx
REPLICATE_API_TOKEN=r8_xxx
JIMENG_ACCESS_KEY_ID=xxx
JIMENG_SECRET_ACCESS_KEY=xxx
ARK_API_KEY=xxx
# 更多模型與 base URL 如上段所述
EOF
```  
專案級：  
```bash
mkdir -p .baoyu-skills
echo ".baoyu-skills/.env" >> .gitignore
```  
所有技能支援 `EXTEND.md` 自訂，優先 `.baoyu-skills/<skill>/EXTEND.md` > `~/.baoyu-skills/<skill>/EXTEND.md`。例如 `baoyu-cover-image`：  
```markdown
## Custom Palettes
### corporate-tech
- Primary colors: #1a73e8, #4A90D9
- Background: #F5F7FA
- Accent colors: #00B4D8, #48CAE4
- Decorative hints: Clean lines, subtle gradients
- Best for: SaaS, enterprise, technical
```  

**注意事項與授權**  
`baoyu-danger-gemini-web` 與 `baoyu-danger-x-to-markdown` 使用反向工程 API，穩定性無保證，使用風險自負。致謝 [x-article-publisher-skill](https://github.com/wshuyi/x-article-publisher-skill)（[@wshuyi](https://github.com/wshuyi)）、[doocs/md](https://github.com/doocs/md)（[@doocs](https://github.com/doocs)）、AJ@WaytoAGI 高密度 infographic prompt、[qiaomu-mondo-poster-design](https://github.com/joeseesun/qiaomu-mondo-poster-design)（[@joeseesun](https://github.com/joeseesun)）。授權：MIT。

## 標籤

功能更新, 爬蟲, 其他, Baoyu
