md2wechat

Publish Markdown or HTML content to WeChat Official Account drafts via API.

4|3|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/zkkython/md2wechat_skills --skill md2wechat-zkkython
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md2wechat
Source: https://github.com/zkkython/md2wechat_skills/tree/main/skills/md2wechat
Command: npx skills add https://github.com/zkkython/md2wechat_skills --skill md2wechat-zkkython

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wechatpy, requests, and includes scripts (resource) components.

What problem does it solve?

This Skill lets you publish Markdown or HTML content directly to WeChat Official Account drafts via the official API, eliminating manual browser publishing and enabling style-aware formatting and automatic image handling.

Core Features & Use Cases

  • Multiple Visual Styles: academic_gray, festival, tech, and announcement to tailor drafts for different contexts.
  • Markdown/HTML Rendering + Image Upload: Converts Markdown to WeChat-ready HTML and auto-uploads images to WeChat's media server.
  • CLI-based Publishing & Safety: Provides a command-line workflow with credentials management and draft-only publishing to avoid accidental live posts.

Quick Start

Publish a Markdown article to WeChat drafts by running the CLI with your file and a chosen style.

Frequently Asked Questions about md2wechat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish Markdown to WeChat Official Account drafts via API?

You can publish Markdown to WeChat Official Account drafts by using a CLI tool that converts Markdown to WeChat-ready HTML and uploads it via the official API, requiring WECHAT_APPID and WECHAT_APPSECRET for authentication.

Can I automatically upload images when converting Markdown to WeChat drafts?

Yes, when converting Markdown to WeChat drafts, images are automatically uploaded to WeChat's media server during the HTML rendering process, ensuring all visual content is properly hosted.

What visual styles are available for publishing HTML to WeChat drafts?

When publishing HTML to WeChat drafts, you can choose from multiple visual styles including academic_gray, festival, tech, and announcement to tailor the formatting for different content contexts.

Does the WeChat draft publishing workflow support HTML input directly?

Yes, the WeChat draft publishing workflow supports both Markdown and HTML inputs directly, allowing you to push existing HTML content to WeChat Official Account drafts with applied visual styles.

How do I manage credentials for automated WeChat draft publishing?

For automated WeChat draft publishing, credentials are managed by storing WECHAT_APPID and WECHAT_APPSECRET in a .env file or environment variables, which are then used for secure API interactions.

Is it safe to use a CLI tool for WeChat Official Account publishing?

Using a CLI tool for WeChat publishing is safe because it operates with draft-only publishing to avoid accidental live posts, incorporating error handling and safety checks during API interactions.