Post to WeChat Official Account (baoyu-post-to-wechat)
Publishes Markdown, HTML, or plain-text drafts straight into your WeChat Official Account (微信公众号).
AutomationIntermediate★ 24,749⑂ 2,764AI score 8/10Last updated: Jul 4, 2026
What it does
- Takes a Markdown file, an HTML file, or raw pasted text and creates a draft in your WeChat Official Account.
- Three publishing paths:
api(fast, needs AppID/AppSecret),browser(Chrome + QR login), andremote-api(tunnels only the WeChat HTTPS calls through an SSH SOCKS5 proxy on a server whose IP is allowlisted). - Auto-generates or asks for title, summary, author, and cover image; applies themes (default/grace/simple/modern) and color presets.
- Converts ordinary external links into bottom citations by default, since WeChat blocks inline outbound links.
- Also supports the short "image-text" (贴图/图文) post format with up to 9 images.
- Stores your defaults in
EXTEND.md: theme, author, comment settings, and multi-account profiles.
Who it's for
- Creators and marketers who run a WeChat Official Account and publish long-form posts regularly.
- Writers who draft in Markdown and are tired of hand-fixing formatting in WeChat's editor.
- Teams juggling several Official Accounts from one machine.
- Not useful at all if you don't own a WeChat Official Account.
Examples
- "Publish
post.mdto my 公众号" → it loads EXTEND.md, uses the API method with your theme, and reports the draft'smedia_id. - No cover image supplied → it looks for frontmatter
coverImage, thenimgs/cover.png, then the first inline image, and asks you only if all fail. - Your home IP isn't on WeChat's allowlist → add
--remoteso rendering stays local while API calls exit from your allowlisted server. - Photo-heavy quick post →
wechat-browser.ts --markdown article.md --images ./images/publishes an image-text post with multiple pictures.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/baoyu-post-to-wechat folder from the GitHub repo JimLiu/baoyu-skills into my ~/.claude/skills/baoyu-post-to-wechat/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-post-to-wechat ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Install Bun (required runtime):
brew install oven-sh/bun/bunon macOS, ornpm install -g bun. - Clone the repo:
git clone https://github.com/JimLiu/baoyu-skills.git - Copy the skill into Claude's skills folder:
mkdir -p ~/.claude/skills && cp -r baoyu-skills/skills/baoyu-post-to-wechat ~/.claude/skills/ - Restart Claude Code and type "post to wechat" (or "发布公众号") to confirm the skill triggers.
- On first run, follow the guided first-time setup to create your
EXTEND.md(default theme, author, comment flags). - For the API method, create an AppID/AppSecret in the Official Account admin console, save them to
.baoyu-skills/.env, and add your public IP under 公众号设置 → IP 白名单. - Optional: run
bun ~/.claude/skills/baoyu-post-to-wechat/scripts/check-permissions.tsto verify Chrome, clipboard, and (on macOS) Accessibility permissions.
View source on GitHub ↗License: MIT