baoyu-post-to-wechat
Originally fromyelban/baoyu-skills.tw
Installation
Summary
Publish articles and image-text posts to WeChat Official Accounts via API or browser automation.
- Supports three input formats: plain text, markdown, and HTML, with automatic metadata generation (title, summary, cover image)
- Two publishing methods: fast API-based drafts (requires credentials) and browser-based posting (requires Chrome login)
- Multi-account management with per-account credentials, Chrome profiles, and publishing preferences via EXTEND.md configuration
- Markdown articles automatically convert external links to bottom citations for WeChat-friendly formatting; image-text posts support up to 9 images with auto-compression
- Customizable themes (default, grace, simple, modern), colors, author, and comment settings (open/closed, fans-only) stored in project or user-level config files
SKILL.md
Post to WeChat Official Account
User Input Tools
When this skill prompts the user, follow this tool-selection rule (priority order):
- Prefer built-in user-input tools exposed by the current agent runtime — e.g.,
AskUserQuestion,request_user_input,clarify,ask_user, or any equivalent. - 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.
- 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.