AI Agent Hub
Back to skills
WeChat Article and Image Post Publisher icon

WeChat Article and Image Post Publisher

Content Creation Updated 2026.08.30

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×864 and under 64 KB.
  • API credentials and an allowlisted IP are required.
  • Common errors include 40007 invalid media, 45004 digest/content limits, and 40004 encoding 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.