# Baoyu Skills: images, slides, translation and social posting (JimLiu/baoyu-skills) — skill card for AI agents

> AgentGid skill card. Checked on 2026-10-31 against commit 1567581 (version 2.5.2).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/jimliu/baoyu-skills/

> Note: the pack has changed since this check; re-read its files before relying on details.

## Explain it to a non-programmer
A set of 21 skills for writers and creators. Your assistant can draw covers, article pictures, infographics, comics, slides and image cards from your text, translate and tidy articles, and save web pages, tweets and YouTube transcripts as text. It can also fill in posts for X, Weibo and WeChat Official Accounts in a real Chrome window or as WeChat drafts.

## Who it is for
- You write articles or posts and want covers, illustrations, infographics or slides made from your text
- You publish on WeChat Official Accounts, Xiaohongshu, Weibo or X and want your assistant to prepare the post
- You want web pages, tweets or YouTube videos saved as clean text, or articles translated in several steps
- You use Claude Code, Codex or another assistant that can run programs on your computer
- Not for: You don't want an assistant to run programs, open Chrome with your logins or call paid image services
- Not for: You only want one or two of these: the author asks you to install only the skills you need

## What it is
- Kind: command, scripts, knowledge
- License: MIT
- Repository: https://github.com/JimLiu/baoyu-skills

## What it does
- Picture skills (cover, article illustrations, infographic, Xiaohongshu cards, comic, slides) read your text, suggest a style and layout, wait for your OK, then write one prompt file per picture before any picture is made
- They use whichever image tool your assistant has (Codex, Cursor, or the pack's own image skill with your key); if several exist they ask once, if none they ask what to do
- Slides are merged into a PPTX and a PDF; comics into a PDF
- The diagram skill draws SVG files by hand in a fixed dark style, plus a PNG copy; no image service is called
- Text skills translate (quick, normal or refined with review and polish), format drafts into clean Markdown, and turn Markdown into styled HTML for WeChat
- Saving skills turn a web page, an X post or thread, or a YouTube video into Markdown or subtitles
- Posting skills fill a post or article into X, Weibo or WeChat; WeChat can also go in through its official API as a draft
- Preferences live in EXTEND.md files (project or home folder); keys live in .baoyu-skills/.env

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| baoyu-cover-image | /baoyu-cover-image path/to/article.md, or "make a cover" | no | Makes a cover picture for an article |
| baoyu-article-illustrator | /baoyu-article-illustrator path/to/article.md, or "illustrate this article" | no | Finds spots in an article that need a picture and draws them |
| baoyu-infographic | /baoyu-infographic path/to/content.md | no | Turns content into one dense information picture |
| baoyu-xhs-images | /baoyu-xhs-images article.md, or "小红书图片" | no | Breaks a text into a series of 1 to 10 cartoon-style image cards for social posts |
| baoyu-comic | /baoyu-comic source.md | no | Makes an educational comic from a story or a topic |
| baoyu-slide-deck | /baoyu-slide-deck article.md | no | Turns content into a slide deck, one picture per slide |
| baoyu-diagram | /baoyu-diagram "how JWT authentication works", or "draw me a diagram" | no | Draws flowcharts, architecture and sequence diagrams as SVG files |
| baoyu-image-gen | /baoyu-image-gen --prompt "..." --image out.png | no | Makes pictures through an image service you choose; the other picture skills can use it |
| baoyu-danger-gemini-web | /baoyu-danger-gemini-web "prompt" | no | Uses the Gemini website through your Google login to write text or make pictures |
| baoyu-translate | /translate article.md --to zh-CN, or "translate this" | no | Translates articles in quick, normal or refined mode, with a glossary |
| baoyu-format-markdown | /baoyu-format-markdown draft.md | no | Tidies a draft into a clean article with title, summary, headings and lists |
| baoyu-markdown-to-html | /baoyu-markdown-to-html article.md | no | Turns Markdown into styled HTML that pastes well into WeChat |
| baoyu-compress-image | /baoyu-compress-image path/to/image.png | no | Makes image files smaller (WebP by default) |
| baoyu-url-to-markdown | /baoyu-url-to-markdown https://example.com/article | no | Saves a web page as clean Markdown, waiting for you to log in if needed |
| baoyu-danger-x-to-markdown | /baoyu-danger-x-to-markdown https://x.com/user/status/123 | no | Saves an X post, thread or article as Markdown, after you accept a warning |
| baoyu-youtube-transcript | /baoyu-youtube-transcript <YouTube link> | no | Downloads a video's subtitles and cover picture as Markdown or SRT |
| baoyu-wechat-summary | /baoyu-wechat-summary <group name> 最近 1 天 | no | Reads a WeChat group chat on your Mac and writes a digest of what was discussed |
| baoyu-electron-extract | /baoyu-electron-extract <app name> | no | Unpacks an installed desktop app built with Electron to show its source files |
| baoyu-post-to-x | /baoyu-post-to-x "text" --image photo.png, or --article article.md | no | Fills a post or a long article into X; you check it and publish |
| baoyu-post-to-weibo | /baoyu-post-to-weibo "text" --image photo.png, or --article article.md | no | Fills a Weibo post or headline article into Chrome; you check it and publish |
| baoyu-post-to-wechat | /baoyu-post-to-wechat 文章 --markdown article.md | no | Puts an article or picture post into your WeChat Official Account as a draft |

### baoyu-cover-image
- Asks for: The article file or text
- Asks for: Optional: type, palette, rendering, text amount, mood, aspect ratio (default 16:9)
- Asks for: Optional: reference images
- Gives: prompts/cover.md
- Gives: cover.png
- Gives: In cover-image/{topic}/ by default, or next to the article
- Say: "Make a cover image for posts/my-article.md"

### baoyu-article-illustrator
- Asks for: The article file
- Asks for: Optional: type (for example flowchart), style, palette
- Gives: outline.md with picture positions
- Gives: prompts/NN-*.md
- Gives: NN-*.png in imgs/ next to the article by default
- Say: "Illustrate posts/my-article.md"

### baoyu-infographic
- Asks for: The content file
- Asks for: Optional: layout (pyramid, funnel, timeline ...), style, aspect, language
- Gives: analysis.md
- Gives: structured-content.md
- Gives: prompts/infographic.md
- Gives: infographic.png
- Say: "Make an infographic from notes.md"

### baoyu-xhs-images
- Asks for: An article or a short topic
- Asks for: Optional: style, layout, palette; --yes to skip questions
- Gives: outline.md
- Gives: prompts/NN-*.md
- Gives: NN-*.png cards
- Say: "Make Xiaohongshu image cards from article.md"

### baoyu-comic
- Asks for: Source text or a topic
- Asks for: Optional: art style, tone, preset, layout, aspect, language
- Gives: analysis.md
- Gives: storyboard.md
- Gives: A character sheet
- Gives: Page images
- Gives: One merged PDF
- Say: "Make a knowledge comic about the story of Alan Turing"

### baoyu-slide-deck
- Asks for: The content file
- Asks for: Optional: style, audience, slide count, language; --outline-only for the plan only
- Gives: outline.md
- Gives: One PNG per slide
- Gives: {topic}.pptx
- Gives: {topic}.pdf
- Say: "Make a 15-slide deck from article.md for executives"

### baoyu-diagram
- Asks for: A topic or a file
- Asks for: Optional: type (flowchart, sequence, structural, illustrative, class), language, output path
- Gives: An .svg file in a diagram/ folder
- Gives: A @2x PNG copy
- Say: "Draw a diagram of how OAuth 2.0 works"

### baoyu-image-gen
- Asks for: A prompt or prompt files
- Asks for: An output file name
- Asks for: Your key for one provider (or Codex)
- Gives: The image file
- Gives: Batch mode for many prompts
- Say: "Generate a 16:9 banner image of a mountain at dawn and save it as banner.png"

### baoyu-translate
- Asks for: A file, text or a link
- Asks for: Target language
- Asks for: Optional: mode, audience, style, glossary
- Gives: A folder {name}-{lang}/ with translation.md
- Gives: Analysis, draft and review files in refined mode
- Say: "Translate article.md to English in refined mode"

### baoyu-format-markdown
- Asks for: A text or Markdown file
- Gives: {filename}-formatted.md
- Gives: Fixed quotes and spacing between Chinese and Latin text
- Say: "Format draft.md as a clean article"

### baoyu-wechat-summary
- Asks for: A group name
- Asks for: A time range, or nothing for everything since the last digest
- Asks for: Optional: 毒舌版 for a roast version
- Gives: A digest with topics, who said what, stats and a leaderboard
- Gives: Per-group history, per-member profiles and a memory file kept between runs
- Say: "Summarize the AI tech group for the last 7 days"

### baoyu-post-to-x
- Asks for: Text and images or a video, or a Markdown article
- Asks for: A logged-in X account in Chrome
- Gives: The post or article draft filled in, ready for your review
- Gives: A request for your OK before anything is published
- Say: "Post this to X with photo.png: Hello from my assistant"

### baoyu-post-to-wechat
- Asks for: A Markdown, HTML or text article, or images with a title
- Asks for: API AppID and AppSecret, or a QR-code login in Chrome
- Asks for: Optional: theme, account
- Gives: A draft in the WeChat Official Account
- Gives: The converted HTML file
- Gives: A report with title, summary and image count
- Say: "Post article.md to my WeChat Official Account"

## Know before installing
- Two skills are marked danger: they use unofficial, reverse-engineered access to Gemini and X with your login cookies. The author warns your X account could be restricted.
- Posting skills work in a real Chrome window. On X in Codex the assistant may use your everyday Chrome with its logins; the script fallback uses a separate Chrome profile kept by the pack.
- The WeChat group summary reads your WeChat chats through an outside tool (wx-cli) and keeps profiles of group members. Its instructions tell the assistant to run those commands outside the Claude Code safety sandbox.
- Keys sit in plain .env files in .baoyu-skills/ (project) or ~/.baoyu-skills/ (home). Keep the project one out of Git.
- Picture skills ask before they make pictures, unless you say to skip (--quick, --yes or "直接生成").
- The Codex image route starts Codex with full access to your computer so it can move the finished picture; it is only used when you pick it.

## Install (official commands)
- Any agent (skills CLI): `npx skills add jimliu/baoyu-skills` — The author's recommended way. Pick only the skills you need.
- Claude Code: `/plugin marketplace add JimLiu/baoyu-skills` && `/plugin install baoyu-skills@baoyu-skills` — Installs all 21 skills as one plugin. Update from /plugin → Marketplaces.
- Codex (one project): Copy or link each skill folder you need into <project>/.agents/skills/. Remove: `delete the folder from .agents/skills/`.
- OpenClaw (ClawHub): `clawhub install baoyu-image-gen` — One skill at a time; ClawHub copies are under MIT-0.

## What runs on the user's machine
- Code on the machine: yes (skills with a scripts/ folder (the picture-planning, translate and diagram text rules run as instructions))
- Network: yes
- Install: No hooks and no install scripts. Nothing runs until a skill is used.
- Any script: TypeScript scripts run with Bun (bun, or npx -y bun, which downloads Bun). url-to-markdown runs bun install for its parts; markdown-to-html loads the author's baoyu-md and baoyu-chrome-cdp packages from npm.
- baoyu-image-gen: Sends your prompt (and reference images) to the provider you set up: OpenAI, Azure, Google, OpenRouter, DashScope, Z.AI, MiniMax, Jimeng, Seedream (Volcengine), Replicate or Agnes. With codex-cli it starts the codex program with full access instead.
- Posting to X or Weibo: Starts Chrome with remote control on a profile in ~/Library/Application Support/baoyu-skills/chrome-profile (Linux ~/.local/share), you log in once, the script pastes text and images. It does not press publish unless --submit is used.
- Posting to WeChat: API mode calls api.weixin.qq.com with your AppID/AppSecret and saves a draft. Browser mode logs in by QR code; if TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID are set, it sends the QR picture to your Telegram bot. Remote mode tunnels the API calls through your own server over SSH.
- baoyu-danger-gemini-web: Talks to gemini.google.com with Google cookies. It first tries your everyday Chrome if it is running with remote debugging on, else opens its own Chrome for login, and saves the cookies to cookies.json under baoyu-skills/gemini-web in your app-data folder.
- baoyu-danger-x-to-markdown: Calls x.com's internal API with X_AUTH_TOKEN/X_CT0 or cookies taken from its own Chrome login; media can be downloaded from twimg.com. A consent file is written first.
- baoyu-url-to-markdown: Opens the page in Chrome (own profile). When local extraction looks poor, it also sends the page address to the defuddle.md service and may use its result.
- baoyu-youtube-transcript: Fetches captions, details and the cover from youtube.com and i.ytimg.com; saves them in youtube-transcript/.
- baoyu-electron-extract: Runs npx @electron/asar and npx prettier (downloaded from npm) and writes to ~/Downloads/<App>-electron-extract/.
- baoyu-wechat-summary: No scripts of its own: the assistant runs the separate wx command, which reads WeChat's data folder, and writes digests, profiles and memory files to a wechat/ folder in your project by default.
- Local-only scripts: compress-image (sharp or system tools), diagram SVG to PNG, format-markdown, translate chunking, and the slide and comic PDF/PPTX merges work on local files only.

## Settings
- `OPENAI_API_KEY / GOOGLE_API_KEY / OPENROUTER_API_KEY / REPLICATE_API_TOKEN / DASHSCOPE_API_KEY / ZAI_API_KEY / MINIMAX_API_KEY / ARK_API_KEY / JIMENG_ACCESS_KEY_ID`: Image provider keys for baoyu-image-gen
- `WECHAT_APP_ID / WECHAT_APP_SECRET`: WeChat Official Account API posting
- `X_AUTH_TOKEN / X_CT0`: X cookies for x-to-markdown
- `TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID`: Optional: send the WeChat login QR to Telegram
- `BAOYU_CHROME_PROFILE_DIR`: Chrome profile folder shared by the browser skills
- `preferred_image_backend`: EXTEND.md key: which image tool the picture skills use (auto, ask, codex-imagegen ...)

## Examples (from the pack's own files)
- The WeChat posting report: output format defined in skills/baoyu-post-to-wechat/SKILL.md
- The slide deck report: output format defined in skills/baoyu-slide-deck/SKILL.md

## Steps only the person can do
- Put a key for one image provider into .baoyu-skills/.env or ~/.baoyu-skills/.env, or sign in to Codex with codex login (picture skills only) (README.md (baoyu-image-gen section)) Then: The picture skills generate images through that provider or Codex
- Log in to X or Weibo in the Chrome window the skill opens, then review the filled post and press publish (docs/chrome-profile.md) Then: The assistant fills later posts in the same Chrome profile
- Create a WeChat AppID and AppSecret and add your IP to the allowlist, or scan the QR code for browser mode (https://developers.weixin.qq.com/platform/) Then: The assistant saves articles as drafts in your WeChat Official Account
- Accept the disclaimer before the first use of the two danger skills (Gemini web, X to Markdown) (skills/baoyu-danger-gemini-web/SKILL.md) Then: The skill writes a consent file and continues
- Install wx-cli yourself and keep WeChat 4.x running and logged in on macOS (wechat-summary only) (skills/baoyu-wechat-summary/references/setup.md) Then: The assistant reads the group chat and writes the digest

## Mistakes to avoid
- Not: Install all 21 skills at once. Instead: Install only the skills you need, for example cover-image, article-illustrator and post-to-wechat for WeChat articles. Why: Every installed skill adds context to every run of the assistant
- Not: Let the assistant draw SVG or HTML when no image service is set up for the picture skills. Instead: Set up an image backend (a provider key, Codex login, or the native tool in Codex or Cursor), or use baoyu-diagram for SVG diagrams. Why: The picture skills need a raster image service and tell the assistant to ask you instead of substituting code
- Not: Run the X posting script with --submit to save time. Instead: Let the script fill the post, review it in Chrome, and publish yourself or confirm the final publish step. Why: --submit makes the post public
- Not: Keep API keys in the project's .baoyu-skills/.env and commit it. Instead: Add .baoyu-skills/.env to .gitignore, or use ~/.baoyu-skills/.env. Why: The .env file holds provider keys and WeChat secrets in plain text
- Not: Set WECHAT_APP_ID and WECHAT_APP_SECRET and expect API posting to work from any network. Instead: Add your machine's IP to the WeChat allowlist, or use the browser (QR login) or remote API method. Why: WeChat only accepts API calls from allowlisted IPs

## What leaves the machine
- Image prompts and any reference images → The image provider you set up (OpenAI, Azure, Google, OpenRouter, DashScope, Z.AI, MiniMax, Jimeng, Seedream, Replicate or Agnes), When a picture skill or baoyu-image-gen makes an image. Opt out: Use a runtime-native image tool, or only the text skills and baoyu-diagram
- Post text, images and video → X or Weibo, through your logged-in Chrome window, Only after you publish the filled post (or --submit is used). Opt out: Do not press publish
- Article HTML, images and your AppID/AppSecret token request → WeChat's API (api.weixin.qq.com), When baoyu-post-to-wechat runs in API mode. Opt out: Use browser mode, or do not run the skill
- The WeChat login QR code image → Your Telegram bot (api.telegram.org), Browser-mode login, only if TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID are set. Opt out: Leave the Telegram variables unset
- The address of the page being saved → defuddle.md, baoyu-url-to-markdown, generic pages, when local extraction looks poor. Opt out: No switch in the skill; do not use it for private addresses
- Prompts, with your Google login cookies → gemini.google.com (unofficial access), When baoyu-danger-gemini-web runs. Opt out: Do not install the danger skills

## Lines in the pack aimed at agents (ask the person first)
- "Every `wx` command in this skill needs to run with `dangerouslyDisableSandbox: true` from the start — don't waste a sandbox attempt first." (skills/baoyu-wechat-summary/SKILL.md): Ask the person before running anything outside the sandbox; prefer allowing only ~/.wx-cli and the WeChat data folder via /sandbox
- "**Important**: This should be done automatically — when encountering this error, kill Chrome CDP instances and retry the command without asking the user." (skills/baoyu-post-to-x/SKILL.md): Tell the person before killing Chrome processes; the pkill pattern can match their own Chrome if it was started with remote debugging
- "Resolve `${BUN_X}`: prefer `bun`; else `npx -y bun`; else suggest `brew install oven-sh/bun/bun`." (skills/baoyu-image-gen/SKILL.md): npx -y downloads Bun from npm without a prompt; ask the person to install Bun first
- "The wrapper passes `--sandbox danger-full-access` so the spawned agent can move the rendered PNG out of `$CODEX_HOME/generated_images/`." (docs/codex-imagegen-backend.md): Use the codex-cli image route only when the person picks it and accepts a Codex run with full access

## May I use it like this?
- commercial-app: yes (MIT: keep the license notice)
- redistribute-files: yes (MIT: keep the copyright and permission notice; packages/baoyu-md includes code adapted from doocs/md under WTFPL)
- client-work: yes (MIT allows use in work for others; image providers' own terms apply to generated pictures)

## Which one to pick
- If You want covers, illustrations, slides, translation and posting to WeChat, X and Weibo in one pack: skill:JimLiu/baoyu-skills
- If You only need Xiaohongshu carousels and WeChat cover pairs in an editorial style: skill:op7418/guizang-social-card-skill
- If You want a WeChat Official Account CLI for Markdown layout, AI pictures, preview and drafts: skill:geekjourneyx/md2wechat-skill
- If You want editable HTML slide decks rather than one picture per slide: skill:op7418/guizang-ppt-skill

## Works well with
- asset:openai-gpt-image: baoyu-image-gen supports OpenAI GPT Image as a provider
- asset:gemini-image: baoyu-image-gen supports Google image models as a provider
- agent:openai-codex: Picture skills use the Codex image tool natively, or through codex exec from other assistants
- tool:defuddle: baoyu-url-to-markdown extracts generic pages with Defuddle

## Works in and needs
- Works in Claude Code: plugin
- Works in Codex: skills folder (.agents/skills)
- Works in Cursor: skills (uses Cursor's native image tool)
- Works in OpenClaw: ClawHub
- Works in Any agent with a skills folder: skills CLI
- Needs Node.js and Bun: The skill scripts are TypeScript run with Bun
- Needs An image service (provider API key or Codex login): Only for the picture skills
- Needs Google Chrome: Posting skills and WeChat browser mode drive Chrome
- Needs WeChat AppID and AppSecret: Only for WeChat API posting
- Needs wx-cli and WeChat 4.x on macOS: Only for baoyu-wechat-summary

## How to tell it works
Install only baoyu-diagram and ask "draw a diagram of how OAuth 2.0 works". It needs no key: you should get an .svg file and a @2x PNG in a diagram/ folder, in the dark cyan, emerald and violet style.

## Related
- JimLiu/baoyu-design
- jackwener/wx-cli
- doocs/md
- wshuyi/x-article-publisher-skill
- Cocoon-AI/architecture-diagram-generator

## Safety
Install from github.com/JimLiu/baoyu-skills. The two "danger" skills use unofficial access with your login cookies and store them on disk; the posting skills drive Chrome with your accounts; the WeChat summary reads your private chats and asks to run outside the sandbox. Install only the skills you need and read their SKILL.md first.
