WeChat Official Account Draft Publisher for Openclaw

A specialized automation skill for uploading Markdown or HTML content directly to the WeChat Official Account draft box.

lixinran2015
v1.0.0
Apr 16, 2026
0
820
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install publish-wechat-draft

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 publish-wechat-draft 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 Official Account Draft Publisher?

The WeChat Official Account Draft Publisher is a technical bridge designed for creators who want to streamline their editorial workflow. By utilizing the weixingongzhonghao-publisher CLI tool, this skill allows users to bypass the manual WeChat web editor, converting local files or raw text into perfectly formatted drafts.

This integration for Openclaw Skills ensures that developers and content marketers can maintain a single source of truth for their content while automating the tedious process of browser-based uploading. It handles session management via secure cookies and provides detailed feedback through automated browser screenshots if errors occur.

WeChat Official Account Draft Publisher Use Cases

  • Syncing technical blog posts written in Markdown to a WeChat Official Account draft.
  • Automating the upload of generated HTML reports or newsletters for social media distribution.
  • Managing publishing workflows directly from a developer workspace without opening a browser manually.
  • Batch processing multiple articles from a local directory into the WeChat cloud editor.

How WeChat Official Account Draft Publisher Works

  1. The skill locates the publisher project directory by checking local paths or environment variables.
  2. It verifies that all necessary dependencies, including Node.js and Playwright, are correctly installed and ready.
  3. It performs a login check; if the session is invalid, it initiates a secure QR code login process for the user.
  4. It ingests content from file paths, raw text, or YAML configurations, converting them into a standardized HTML format if necessary.
  5. It executes a Playwright-based automation script that logs into the WeChat platform and saves the content as a draft.
  6. It returns the final draft link and execution logs to the user.

WeChat Official Account Draft Publisher Setup

To get started with this skill within your Openclaw Skills environment, follow these steps:

# Clone the required publisher repository
git clone https://github.com/lixinran2015/weixingongzhonghao.git
cd weixingongzhonghao

# Install project dependencies and the browser engine
npm install
npx playwright install chromium

# Set the environment variable to your project path
export WECHAT_PUBLISHER_DIR=$(pwd)

# Perform the initial login to save your session
npm run login

WeChat Official Account Draft Publisher Data Schema & Taxonomy

The skill organizes its data and assets according to the following structure:

Item Description
PROJECT_DIR The root folder where the publisher source code resides.
articles/ A local directory used for storing temporary HTML files during the conversion process.
cookies.json Stored in ~/.config/weixingongzhonghao/, this file maintains your secure session data.
logs/screenshots/ Captures visual snapshots of the browser during failed attempts for debugging.
package.json Contains metadata and script definitions for the publishing lifecycle.

WeChat Official Account Draft Publisher Advanced Features

  • Multi-format support: Seamlessly handles Markdown, HTML, and YAML configuration files.
  • Debugging Suite: Supports a --debug flag to launch a visible browser window with slowed execution for troubleshooting.
  • Intelligent Content Wrapping: Automatically wraps raw text in standard HTML5 structures including metadata and charset definitions.
  • Automated Error Diagnostics: Analyzes the latest error screenshots and terminal output to provide actionable fix suggestions.
  • Session Resilience: Includes a check:login utility to prevent automated failures due to expired credentials.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*