WeChat Draft Publisher (mp-draft-push) for Openclaw

An automated workflow to publish formatted article content and cover images directly to the WeChat Official Account draft box.

wuhongchen
v1.0.2
Feb 28, 2026
1
1.5k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install mp-draft-push

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 mp-draft-push 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 Draft Publisher (mp-draft-push)?

The mp-draft-push skill is a specialized automation tool designed to bridge the gap between external writing environments and the WeChat Official Account platform. By integrating with Openclaw Skills, this tool handles the complexities of WeChat's API, including authentication, media uploads, and strict HTML formatting requirements. It allows developers to programmatically send content to their draft box, ensuring that articles are ready for final manual review and publication without manual copy-pasting.

This skill is particularly valuable for those who manage multiple content channels and want to maintain a consistent workflow. It simplifies the process of handling thumb media IDs and ensures that all HTML content uses inline styles, which is a mandatory requirement for the WeChat ecosystem to prevent style stripping.

WeChat Draft Publisher (mp-draft-push) Use Cases

  • Automatically syncing blog posts from a local CMS to a WeChat draft box using Openclaw Skills.
  • Streamlining the distribution of AI-generated content to Official Accounts.
  • Batch processing articles with pre-configured cover images and metadata.
  • Reducing manual effort for digital marketers managing WeChat content pipelines.

How WeChat Draft Publisher (mp-draft-push) Works

  1. The skill receives the article title, digest, and HTML content from the user or another connected agent.
  2. It authenticates with the WeChat API using the configured AppID and Secret to retrieve a valid access token.
  3. If a cover image is provided, the skill uploads the file to the WeChat permanent material library to obtain a thumb_media_id.
  4. It constructs a specialized JSON payload, ensuring the HTML content is correctly escaped and styles are inline.
  5. The payload is sent to the WeChat draft creation endpoint, and the system returns a draft media ID upon success.
  6. The user is prompted with a final checklist and a link to the WeChat admin console to perform the final publication.

WeChat Draft Publisher (mp-draft-push) Setup

To use this skill within Openclaw Skills, you must configure the following environment variables:

export WECHAT_APPID="your_appid_here"
export WECHAT_SECRET="your_appsecret_here"
export WECHAT_AUTHOR="Author Name"
export DEFAULT_COVER_URL="https://example.com/default-cover.png"

Ensure that your environment has curl and jq installed, as these are required for API interaction and JSON parsing.

WeChat Draft Publisher (mp-draft-push) Data Schema & Taxonomy

The skill expects the following parameters for successful execution:

Parameter Type Required Description
title string Yes The article title (max 64 bytes).
digest string Yes The summary displayed on share cards.
content_html string Yes The article body in HTML format (must use inline styles).
cover_image_path string No Local filesystem path to the cover image.

All temporary data is stored in /tmp/ and cleaned up after the draft is created.

WeChat Draft Publisher (mp-draft-push) Advanced Features

  • Automatic HTML style sanitization to ensure compatibility with the WeChat editor.
  • Fallback mechanism to download and upload a default cover image if none is provided.
  • Intelligent character limit handling for titles to prevent API rejection.
  • Integration ready for multi-agent content pipelines within the Openclaw Skills ecosystem.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins bashcurljq
Github Stars: 0
forks: 0

Featured*