WeChat MP Publisher
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_cc41bf5e/wechat-mp-publish in your AI assistant.
About this skill
Problem
Publishing to a WeChat Official Account often means handling several moving parts separately: keeping access_token fresh, uploading article images to the WeChat CDN, preparing the cover as permanent material, converting Markdown to WeChat-compatible HTML, and creating a draft. Manual workflows can fail on token expiry, non-CDN images, or an invalid cover material type.
How It Works
This skill focuses on the draft-publishing pipeline:
- Reads AppID and AppSecret from environment variables and obtains an access_token
- Batch uploads article images to the WeChat CDN and replaces links with publishable URLs
- Uploads the cover image as permanent material to satisfy draft creation requirements
- Renders Markdown into WeChat-compatible HTML
- Calls the draft API to write the article into the Official Account draft box
Before use, the account should have an AppSecret and IP whitelist configured in WeChat MP settings, and local configuration should be supplied through environment variables or CLI. Sensitive local files such as config.json and token_store.json should not be committed to version control.
Boundaries
Personal subscription accounts have limited API access: draft creation is generally supported, while direct mass sending, reading article analytics, and user analytics APIs are not. A verified service account is needed for broader publishing and data capabilities. Use a Markdown file path for the content parameter, and ensure the cover is uploaded via the permanent material API.
Use Cases
- An editor has a Markdown draft and needs article images converted to WeChat CDN links before creating a draft.
- An operator has cover art and copy, and needs to upload a permanent cover asset and create an Official Account draft.
- A developer integrates a publishing script and needs automated access_token handling with IP whitelist constraints.
- A content team batches Markdown articles and needs consistent WeChat HTML rendering before draft submission.
Best For
- An editor who writes Official Account posts needs a reliable path from Markdown and images to a reviewable draft.
- An operations owner who manages subscription-account content needs permanent cover assets, WeChat CDN images, and draft creation.
- A developer building a publishing pipeline needs automated access_token handling and draft API calls.
- A technical writer publishing from local Markdown needs WeChat-compatible HTML rendering and draft-box submission.
Related Skills
A multi-platform writing workflow for WeChat that emphasizes information gain, scannability, SEO/GEO, and localization to produce verifiable, high-signal blog posts.
Search YiQiXiu electronic album templates for brochures, product manuals, magazines, mobile albums, portfolios, and meeting materials, returning preview links and page views.
Generate structured company strategic planning reports from policy, industry, competitor, and internal data, with Markdown and DOCX output.
Rewrites MD, PDF, or TXT material into a mobile-friendly WeChat article with title candidates, outline, and self-check.