WeChat Article and Image Post Publisher
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_dfcfbf47/weixin-publisher.
About this skill
Problem
Publishing Markdown to a WeChat Official Account can fail at formatting, cover constraints, media uploads, or IP allowlisting: long posts need rich text, image posts need horizontally swipeable images, and errors such as content limits or invalid media_id can block drafts.
How It Works
The skill separates two paths: rich-text articles use wenyan-cli to convert Markdown into WeChat-ready formatting with code highlighting and themes; image posts use wechat-image-post.py, reading title, cover, tags, and author from frontmatter. Local images in ![]() are uploaded as permanent materials, and the payload uses article_type=newspic with image_info.image_list.
Boundaries
- Image-post captions are plain text and do not support Markdown.
- Article covers may need exactly
1080×864and under 64 KB. - API credentials and an allowlisted IP are required.
- Common errors include
40007invalid media,45004digest/content limits, and40004encoding issues.
Use Cases
- A technical writer converts a Markdown article with code blocks into a WeChat draft with a highlighted theme.
- An editor publishes product screenshots and plain-text captions as a swipeable WeChat image post.
- A content operator fills frontmatter fields for title, cover, and tags before creating a WeChat draft.
- A developer debugs 40007, 45004, media upload, cover size, and IP allowlist issues.
Best For
- Engineers maintaining technical blogs or docs who sync long articles to WeChat drafts.
- Editors responsible for WeChat content schedules who convert Markdown and images into drafts.
- Product operations teams publishing product materials with swipeable screenshot posts.
- Automation engineers debugging media uploads, cover sizes, and IP allowlisting.
Related Skills
Rewrite self-introductions by scenario, audience, and duration, with memory hooks, structure feedback, and speakable practice versions.
Helps AI Agents apply local CSS themes to Markdown articles with wenyan-cli, including preview, WeChat draft publishing, and theme registration.
Turn Markdown or plain text into styles for Xiaohongshu, WeChat Official Accounts, Zhihu, Weibo, Douyin, Bilibili, and Toutiao.
A multi-platform writing workflow for WeChat that emphasizes information gain, scannability, SEO/GEO, and localization to produce verifiable, high-signal blog posts.