Agent skill · writing content · guanyang
wechat-post-publisher
Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) and image-text posting (贴图).
Why this skill is useful
Adds 5 executable scripts for posting content to WeChat that automate the publishing process and handle specific API interactions.
What it needs
Requires bun, google chrome, npx installed locally. Requires wechat account access. About 2k tokens when loaded. Last updated 2026-07-16. 28 stars on the source repository.
What this skill does
Post to WeChat Official Account Language Match user's language: Respond in the same language the user uses. If user writes in Chinese, respond in Chinese. If user writes in English, respond in English. Script Directory Agent Execution: Determine this SKILL.md directory as {baseDir}, then use {baseDir}/scripts/<name>.ts. Resolve ${BUNX} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun. Script Purpose -------- --------- scripts/wechat-browser.ts Image-text posts (图文) scripts/wechat-article.ts Article posting via browser (文章) scripts/wechat-api.ts Article posting via API (文章) scripts/md-to-wechat.ts Markdown → WeChat-ready HTML with image placeholders scripts/check-permissions.ts Verify environment & permissions Reference Guides For detailed setup, configuration, features, and troubleshooting, refer to these standalone documents: Multi-Account & EXTEND.md Configuration Feature Comparison Matrix & Prerequisites Environment Pre-flight Check & Troubleshooting --- Article Posting Workflow (文章) Copy this checklist and check off items as you complete them: Step 0: Load Preferences Check and load EXTEND.md settings (details in Preferences & Multi-Account Settings). If not found, complete first-time setup BEFORE any other steps. Resolve: defaulttheme (default default), defaultcolor, defaultauthor, needopencomment (default 1), onlyfanscancomment (default 0). Step 1: Determine Input Type HTML file: Ends with .html, file exists -> Skip to Step 3. Markdown file: Ends with .md, file exists -> Continue to Step 2. Plain text: Otherwise -> Save to post-to-wechat/yyyy-MM-dd/[slug].md (generate slug from first 2-4 English words of content), then continue to Step 2. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills guanyang/wechat-post-publisher