AI Agent Hub
Back to skills
WeChat Article Publisher icon

WeChat Article Publisher

Content Creation Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_d8946e26/wenyan-publish according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Publishing Markdown to WeChat Official Account posts can fail when local images are not in the WeChat media library, code blocks lack consistent styling, and article metadata is not carried with the document. wenyan-publish turns this into a publishable flow for AI agents, combining formatting, media upload, and metadata validation in one run.

How It Works

  • Layout generation: converts Markdown into WeChat rich text with built-in themes such as orangeheart and code highlighting such as solarized-light.
  • Media handling: parses local or remote images in the content and uploads them to the WeChat material library.
  • Metadata-driven publishing: requires YAML Frontmatter for title, cover, author, and source link; missing fields cause API errors.
  • Publish parameters: uses -f for the Markdown file, -t for theme, -h for highlight style, and --no-mac-style to disable Mac-style code blocks.

Boundaries

Best for finished Markdown documents with valid credentials and backend IP allowlisting. Local image paths must exist, Frontmatter must follow the expected shape, and missing WECHAT_APP_ID or WECHAT_APP_SECRET will block publishing.

Use Cases

  • Publish Markdown to WeChat with themes and uploaded images.
  • Format code blocks and upload local screenshots in posts.
  • Read YAML frontmatter and submit article posts to WeChat.
  • Preview themes and highlight styles before WeChat publishing.

Best For

  • WeChat editors who publish Markdown drafts with themes.
  • Engineers who run content pipelines and need API publishing.
  • Brand owners needing consistent themes and code styles.
  • Tech writers who publish docs with screenshots and code.