Xiaohu WeChat Format for Openclaw

A powerful utility for converting Markdown into perfectly formatted, inline-styled WeChat Official Account articles with automated media handling and draft publishing.

lingmafuture
v1.0.0
May 11, 2026
0
595
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install xiaohu-wechat-format

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 xiaohu-wechat-format 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 Xiaohu WeChat Format?

Xiaohu WeChat Format is an essential tool within the Openclaw Skills ecosystem designed for content creators and marketers managing WeChat Official Accounts. It solves the notorious difficulty of maintaining consistent styling on WeChat by converting standard Markdown into WeChat-compatible inline-styled HTML.

By leveraging this skill, developers and editors can bypass the manual WeChat editor, choosing from 33 professionally designed themes. It handles the technical heavy lifting, including automatic image conversion to meet WeChat's strict API requirements and direct pushing to the draft box, ensuring a seamless bridge between local Markdown files and the WeChat ecosystem.

Xiaohu WeChat Format Use Cases

  • Converting rough Markdown notes into polished WeChat articles with specific visual themes.
  • Mass-uploading images to the WeChat CDN and automatically updating references in the HTML.
  • Previewing article layouts across multiple themes using the built-in visual gallery.
  • Automating the creation of WeChat drafts including cover image generation and metadata handling.
  • Re-formatting and importing existing WeChat articles for updated republishing.

How Xiaohu WeChat Format Works

  1. Markdown Processing: The skill parses your Markdown file, supporting standard syntax and custom extensions like dialogue blocks and galleries.
  2. Theming: It applies one of 33 JSON-based themes, injecting CSS directly as inline styles for compatibility with the WeChat renderer.
  3. Media Handling: Local or external images are processed; the skill detects real file types via magic bytes and converts incompatible formats (like WebP) to JPEG.
  4. CDN Upload: Images are uploaded to the WeChat CDN, and article links are replaced with permanent WeChat URLs.
  5. Draft Publishing: The final HTML, along with the cover image and author metadata, is pushed to the WeChat Official Account draft box via the API.

Xiaohu WeChat Format Setup

To start using this among your Openclaw Skills, follow these steps:

  1. Configure API Credentials: Copy the example configuration and add your WeChat developer credentials:
    cp config.example.json config.json
    # Edit config.json with your app_id and app_secret
    
  2. IP Whitelisting: Add your machine's public IP address to the WeChat Official Account Admin panel under Basic Configuration.
  3. Install Dependencies: Ensure you have uv installed to run the scripts with the necessary environment:
    uv run --with markdown --with requests --with pillow python scripts/format.py --input article.md
    

Xiaohu WeChat Format Data Schema & Taxonomy

The skill manages article data through a structured local workflow to ensure consistency before publishing:

Data Type Format Description
Input .md Standard Markdown with support for :::dialogue and :::gallery containers.
Config config.json Stores app_id, app_secret, and default author name (Git-ignored).
Themes .json Found in the themes/ directory, defining colors, spacing, and typography.
Output Directory A /tmp/wechat-format/ folder containing the processed HTML and converted assets.

Xiaohu WeChat Format Advanced Features

  • Visual Theme Gallery: Launch a browser-based preview to compare all 33 available themes against your actual content simultaneously.
  • Smart Image Conversion: Automatic byte-level detection of image formats to fix the common WeChat 40137 error by converting WebP to JPEG on the fly.
  • Extended Markdown Containers: Support for special WeChat components like callouts ([!important]), interview-style dialogue blocks, and image grids.
  • Automated Cover Generation: Integration with image APIs to generate article covers if a local one isn't provided.
  • Comment Auto-Reply: Advanced script for managing user interactions directly from the CLI (requires explicit confirmation).

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*