WeChat MP Publisher for Openclaw

An automation toolkit for WeChat Official Account management featuring Markdown-to-HTML conversion, draft publishing, and menu configuration.

huuuwnnn-droid
v1.0.0
Apr 28, 2026
0
674
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install wechat-mp-plus

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install wechat-mp-plus using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is WeChat MP Publisher?

WeChat MP Publisher is a professional-grade automation tool designed to bridge the gap between developer-friendly Markdown workflows and the WeChat Official Account (MP) platform. As part of the Openclaw Skills ecosystem, it allows users to manage their WeChat presence without relying on the manual web-based editor. It handles the complexities of WeChat's API, including token management, image hosting, and HTML sanitization.

By leveraging this integration, creators can maintain a consistent technical writing workflow. This tool is particularly valuable for developers who prefer writing in Markdown and need a reliable way to transform their technical content into the specific HTML format required by WeChat, all while managing the account's structural elements like menus and auto-replies through automated Openclaw Skills scripts.

WeChat MP Publisher Use Cases

  • Automating the publishing pipeline from a local Markdown repository to WeChat Official Account drafts.
  • Managing complex navigation menus for WeChat accounts through simple JSON configurations.
  • Batch uploading images and media assets to the WeChat permanent material library using Openclaw Skills.
  • Rapidly typesetting articles with pre-defined visual themes like elegant or dark mode.
  • Querying and managing auto-reply settings via terminal or AI agent interfaces.

How WeChat MP Publisher Works

  1. The skill initializes by authenticating with the WeChat API using your APP_ID and APP_SECRET, automatically managing token refresh cycles.
  2. When a publishing command is issued, the tool parses the local Markdown file and identifies all embedded images.
  3. Images are automatically uploaded to WeChat's servers to obtain the necessary media IDs or permanent URLs.
  4. The Markdown content is converted to WeChat-compatible HTML using a selected CSS theme.
  5. A draft is created on the WeChat platform, combining the HTML content, title, author, and cover image media ID.
  6. Users can verify the draft through Openclaw Skills list commands or manage account menus directly via the provided scripts.

WeChat MP Publisher Setup

To get started with this integration, ensure you have Python 3.7+ installed and follow these steps:

# Navigate to the skill directory
cd skills/wechat-mp-publisher

# Configure your credentials as environment variables
export WECHAT_MP_APP_ID="your_id_here"
export WECHAT_MP_APP_SECRET="your_secret_here"

# Alternatively, create a secrets file at .secrets/wechat_mp.env

Once configured, Openclaw Skills can interact with your WeChat Official Account backend securely.

WeChat MP Publisher Data Schema & Taxonomy

The skill organizes its operations through a set of specialized Python scripts and configuration files:

File Purpose
publish.py Main entry point for one-click publishing from Markdown to WeChat.
wechat_mp.py Core API wrapper for token, media, and draft management.
menu.py Handles retrieval and creation of the account's custom menus.
md2html.py Converts Markdown into styled HTML using theme templates.
themes/ Directory containing CSS styles (default, elegant, dark).

WeChat MP Publisher Advanced Features

  • One-click publishing that handles image uploading, HTML conversion, and draft creation in a single workflow.
  • Support for multiple aesthetic themes (default, elegant, dark) specifically optimized for the WeChat mobile interface.
  • Automatic token caching that persists for 2 hours to minimize API calls and avoid rate limiting.
  • Comprehensive menu management allowing for programmatic creation and deletion of navigation structures.
  • Integrated error handling providing detailed feedback for WeChat API response codes within Openclaw Skills commands.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*