Skip to content

Post to WeChat Official Account

Publish articles and image-text posts to WeChat Official Accounts via API or Chrome automation

Stars
27,191
Licence
MIT
Files
15 files

What it does

This skill teaches an AI agent how to publish content to a WeChat Official Account (a popular Chinese publishing platform). It can take a Markdown, HTML, or plain-text article, convert it into WeChat-friendly HTML (turning external links into bottom citations), and post it either through WeChat's API or by driving a Chrome browser window. It also handles short image-text posts with up to 9 images, and it walks the user through first-time setup of preferences and credentials.

Great for

  • Chinese-language content creators who publish on WeChat Official Accounts
  • Editors who want to draft in Markdown and push to WeChat as a draft or post
  • Operators managing several Official Accounts who use the multi-account setup

Skip it if

  • Users who do not run an Official Account, since the posting targets require WeChat account access
  • Anyone who wants to post without reviewing the result, because automated browser pasting and publishing can send wrong or unapproved content to a public audience
  • Users on machines where they cannot grant Chrome or accessibility permissions, since the browser method depends on them

Try asking

  • “Post this Markdown article to my WeChat Official Account as a draft”
  • “Publish this image-text post with these five photos to 公众号”
  • “Convert my blog post into WeChat-ready HTML and check my environment for posting”
  • “Set up my WeChat posting preferences and default author”
Step-by-step guide: how to use Post to WeChat Official AccountInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 15 original files, the MIT licence and an attribution note.

    baoyu-post-to-wechat.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip baoyu-post-to-wechat.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip baoyu-post-to-wechat.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Run the check-permissions script first to see which pieces (Chrome, clipboard, API credentials) are missing before publishing.
  • Keep a draft review step: check the generated draft in WeChat's backend before anyone publishes it.
  • Store API credentials in the documented config file rather than pasting them into chat, and use a dedicated Chrome profile for this skill.

What's inside

  • references/api-setup.md
  • references/article-posting.md
  • references/config/first-time-setup.md
  • references/image-text-posting.md
  • references/multi-account.md
  • 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
  • SKILL.md

Redistributed unmodified from JimLiu/baoyu-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.

Find exactly what
you're looking for