WeChat Publisher for Openclaw

A powerful automation tool that transforms Markdown documents into polished WeChat Official Account drafts with automatic image hosting and syntax highlighting.

0731coderlee-sudo
v0.1.0
Feb 5, 2026
39
9.1k
322

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install wechat-publisher

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-publisher 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 Publisher?

WeChat Publisher is a specialized integration for Openclaw Skills designed to bridge the gap between local Markdown writing and the WeChat Official Account platform. Built upon the wenyan-cli framework, it automates the tedious formatting tasks required by WeChat, ensuring your technical articles maintain professional styling, Mac-style code blocks, and high-quality syntax highlighting.

By leveraging this skill, developers and content creators can bypass the manual copy-pasting process. The tool handles the heavy lifting of converting Markdown into WeChat-compliant HTML and managing the media assets, allowing you to focus entirely on writing high-quality content while using Openclaw Skills to manage your distribution pipeline.

WeChat Publisher Use Cases

  • Technical bloggers who write in Markdown and need to sync content to WeChat Official Accounts.
  • Developers using Openclaw Skills to automate their content distribution workflow directly from their coding environment.
  • Marketing teams requiring consistent brand styling across multiple articles through pre-defined themes.
  • Content creators who want to automate image uploads to the WeChat media library without manual intervention.

How WeChat Publisher Works

  1. The user provides a Markdown file containing mandatory frontmatter including a title and a cover image path.
  2. Openclaw Skills triggers the publishing script which invokes the wenyan-cli engine.
  3. The engine parses the Markdown and automatically identifies all local and remote image assets.
  4. Assets are uploaded to the WeChat image hosting server to generate permanent URLs.
  5. The final styled HTML is pushed to the WeChat Official Account draft box via the official API.
  6. The author can then perform a final review in the WeChat mobile app or web console before publishing.

WeChat Publisher Setup

First, install the wenyan-cli globally on your system:

npm install -g @wenyan-md/cli

Next, configure your WeChat API credentials as environment variables:

export WECHAT_APP_ID=your_wechat_app_id
export WECHAT_APP_SECRET=your_wechat_app_secret

Crucially, ensure your public IP address is added to the IP Whitelist in the WeChat Official Account admin panel under Development -> Basic Configuration.

WeChat Publisher Data Schema & Taxonomy

The skill expects Markdown files to follow a specific metadata structure to satisfy WeChat API requirements:

Attribute Type Description
title String Mandatory. The title of the article.
cover String Mandatory. Path to local file or remote URL for the cover image.
theme Option Optional. Built-in themes like lapis or phycat.
highlights Option Optional. Code highlighting styles like dracula or solarized-light.

WeChat Publisher Advanced Features

  • Support for custom CSS themes to maintain brand identity.
  • Automatic conversion of links into footnotes to comply with WeChat platform limitations.
  • Mac-style code block decorations for a premium technical look.
  • Seamless integration with Openclaw Skills allowing natural language commands like "Publish this file to WeChat".

SKILL.md


Loading

METADATA

Github Stars: 0
forks: 0

Featured*