Baoyu Post To WeChat

Sends your Markdown or HTML article to a WeChat Official Account as a formatted draft, with theme, cover and image uploads handled for you.

Social Media & Marketingwechatpublishingmarkdownofficial accountby JimLiu27kGitHub

What it is

Baoyu Post To Wechat takes an article you have written and gets it into your WeChat Official Account (微信公众号), the main publishing channel for newsletters and brand accounts in China. It is for writers and small teams who draft in Markdown, HTML or plain text and are tired of pasting into the WeChat editor and re-uploading every image. It also creates image-text posts (贴图), WeChat's format for up to nine images with a short caption. The skill replies in your language, but the platform it works with is Chinese.

It offers three ways to publish. The recommended API method uses your account's AppID and AppSecret to upload images and the cover and save a draft directly. The browser method opens Chrome, lets you log in by scanning a QR code, and pastes the formatted article into the editor, swapping in images one by one. A remote API option routes the API calls through your own server when WeChat's IP allowlist excludes your computer. Markdown is styled with one of four themes and a color preset, and ordinary links become citations at the end of the article.

The result is a draft in your account's draft box (or a filled-in editor with the browser method); you still review and press publish yourself. Title, summary and author come from your file or are generated from the content, and a cover image is required for API drafts. API setup needs access to your account's developer settings, and the browser method needs Chrome plus system permissions for clipboard and keystrokes.

What it can do

  • Converts Markdown into WeChat-ready formatted articles using the default, grace, simple or modern theme and color presets.
  • Saves articles as drafts through the official WeChat API, uploading inline images and the cover automatically.
  • Posts through a logged-in Chrome window instead, if you prefer not to set up API credentials.
  • Creates image-text (贴图) posts with up to nine images, shortening the title and caption to WeChat's limits.
  • Fills in title, summary, author, cover and the 'read original' link from your file, or generates them.
  • Turns external links into end-of-article citations and sets comment options such as fans-only comments.
  • Manages several Official Accounts, each with its own credentials and defaults.

When to use it

  • You write in Markdown and want each finished post to land in your WeChat draft box already formatted, with images uploaded.
  • You run a personal and a company Official Account and want to publish to either without mixing up settings.
  • You have six travel photos and a short caption and want them posted as a WeChat image-text post.
  • Your account's IP allowlist only includes a server, so you need to publish from your laptop through that server.

How it works

  1. 1On first use it asks for your defaults (theme, color, author, publishing method, comment settings) and saves them in a preferences file.
  2. 2It checks whether you gave it HTML, Markdown or plain text; plain text is saved as a Markdown file first.
  3. 3It picks the publishing method and, if API credentials are missing, walks you through adding your AppID and AppSecret.
  4. 4It settles the theme and color, checks the title, summary, author and cover image, and asks for anything missing.
  5. 5Its bundled scripts, run with Bun, convert the article, upload images and save the draft, or paste it into the WeChat editor in Chrome.
  6. 6It reports what was done, including the draft ID for API posts, and points you to the draft box to review and publish.

Try asking

“Post article.md to my WeChat Official Account using the grace theme”
“Publish this Markdown file to WeChat as a draft”
“Make a WeChat image-text post with the photos in ./photos and this caption”
“Post this HTML article to my 公众号 using the browser method”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/JimLiu/baoyu-skills/tree/main/skills/baoyu-post-to-wechat
pnpm
pnpm dlx skills add https://github.com/JimLiu/baoyu-skills/tree/main/skills/baoyu-post-to-wechat

Install as a Claude Code plugin

Run these inside Claude Code. The plugin may bundle related skills from the same author.

Claude Code
/plugin marketplace add JimLiu/baoyu-skills
/plugin install baoyu-skills@baoyu-skills

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the baoyu-post-to-wechat folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/JimLiu/baoyu-skills.git
mkdir -p ~/.claude/skills
cp -r baoyu-skills/skills/baoyu-post-to-wechat ~/.claude/skills/baoyu-post-to-wechat

Then just ask in plain language, for example: “Post article.md to my WeChat Official Account using the grace theme”