Tooluck logoTooluck
SKILL.md

baoyu-post-to-wechat

Agent skill fromJimLiu/baoyu-skills

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 to install baoyu-post-to-wechat

install baoyu-post-to-wechat
# 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-post-to-wechat/

# into

~/.claude/skills/baoyu-post-to-wechat/ (all projects)

.claude/skills/baoyu-post-to-wechat/ (one project)

skills/baoyu-post-to-wechat/SKILL.md

MITFull file
1# Post to WeChat Official Account
2
3## User Input Tools
4
5When this skill prompts the user, follow this tool-selection rule (priority order):
6
71. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.
82. **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.
93. **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.
10
11Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.
12
13## Language
14
15Reply in the user's language; keep paths, flags, field names in English.
16
17## Script Directory
18
19`{baseDir}` = this SKILL.md's directory. Resolve `${BUN_X}`: prefer `bun`; else `npx -y bun`; else suggest `brew install oven-sh/bun/bun`.
20
21| Script | Purpose |
22|--------|---------|
23| `scripts/wechat-browser.ts` | Image-text posts (图文) |
24| `scripts/wechat-article.ts` | Article posting via browser (文章) |
25| `scripts/wechat-api.ts` | Article posting via API (文章) |
26| `scripts/md-to-wechat.ts` | Markdown → WeChat-ready HTML with image placeholders |
27| `scripts/check-permissions.ts` | Verify environment & permissions |
28
29## Preferences (EXTEND.md)
30
31First hit wins:
32
33| Path | Scope |
34|------|-------|
35…

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