Agent skill · Backend & API

baoyu-post-to-wechat

Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text posting (贴图, formerly 图文) with multiple images. Markdown article workflows default to converting ordinary external links into bottom citations for WeChat-friendly output. Use when user mentions "发布公众号", "post to wechat", "微信公众号", or "贴图/图文/文章".

JimLiugithub.com/JimLiuGitHub ↗
claude-codecodexships scriptsMIT
Install
npx skills add JimLiu/baoyu-skills --skill baoyu-post-to-wechat --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 29
SKILL.md size: 14 KB
Bundled scripts: yes
Version: 1.118.2
Path: skills/baoyu-post-to-wechat/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 24,562
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Post to WeChat Official Account ## User Input Tools When this skill prompts the user, follow this tool-selection rule (priority order): 1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent. 2. **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. 3. **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. Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes. ## Language Respond in the user's language. If they write in Chinese, reply in Chinese; if English, English. Keep technical tokens (paths, flags, field names) in English. ## Script Directory `{baseDir}` = this SKILL.md's directory. Resolve `${BUN_X}`: prefer `bun`; else `npx -y bun`; else suggest `brew install oven-sh/bun/bun`. | Script | Purpose | |--------|---------| | `scripts/wechat-browser.ts` | Image-text posts (图文) | | `scripts/wechat-

What's inside
Steps it walks through
  1. User Input Tools
  2. Language
  3. Script Directory
  4. Preferences (EXTEND.md)
  5. Multi-Account Support
  6. Pre-flight Check (Optional)
  7. Image-Text Posting (图文)
  8. Article Posting Workflow (文章)
  9. Step 0: Load Preferences
  10. Step 1: Determine Input Type
  11. Step 2: Select Publishing Method and Configure
  12. Step 3: Resolve Theme/Color and Validate Metadata
  13. Step 4: Publish
  14. Step 5: Completion Report
Ships with 24 files
  • references/api-setup.md
  • references/article-posting.md
  • references/config/first-time-setup.md
  • references/image-text-posting.md
  • references/multi-account.md
  • scripts/bun.lock
  • scripts/cdp.ts
  • scripts/check-permissions.ts
  • scripts/copy-to-clipboard-mac.test.ts
  • scripts/copy-to-clipboard.ts
  • scripts/md-to-wechat.ts
  • scripts/package.json
  • scripts/paste-from-clipboard.ts
  • scripts/wechat-agent-browser.ts
  • scripts/wechat-api.ts
  • scripts/wechat-article-focus.test.ts
  • scripts/wechat-article.ts
  • scripts/wechat-browser.ts
  • scripts/wechat-extend-config.test.ts
  • scripts/wechat-extend-config.ts
  • scripts/wechat-http.test.ts
  • scripts/wechat-http.ts
  • scripts/wechat-image-loader.ts
  • scripts/wechat-image-processor.ts
first 24 of 29
More from baoyu-skills
All skills →
About this skill
What does the baoyu-post-to-wechat skill do?

Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text posting (贴图, formerly 图文) with multiple images. Markdown article workflows default to converting ordinary external links into bottom citations for WeChat-friendly output. Use when user mentions "发布公众号", "post to wechat", "微信公众号", or "贴图/图文/文章".

How do I install it?

Run `npx skills add JimLiu/baoyu-skills --skill baoyu-post-to-wechat --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From JimLiu/baoyu-skills, a repository with 24,562 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going