post-to-wechat

Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text posting (贴图,formerly 图文) with multiple images. Use when user mentions "发布公众号", "post to wechat", "微信公众号", or "贴图/图文/文章".

Install

Hot:40

Download and extract to your skills directory

Copy command and send to OpenClaw for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=ginobefun-skills-post-to-wechat&locale=en&source=copy

WeChat Post - WeChat Official Account Auto-Publishing Skill

Overview


Post to WeChat is a Claude skill that helps you automatically publish content to a WeChat Official Account via API or browser automation. It supports two modes: articles and multi-image articles (text + images). It is compatible with Markdown and HTML input.

Use Cases

1. Sync blog content to your Official Account


Automatically convert existing Markdown blog posts or technical notes and publish them to your Official Account—no manual copy/paste or reformatting required. The skill automatically handles image uploads, theme styling, and format conversion.

2. Automate Official Account operations


For Official Account operators who need to publish content on a regular basis, you can use CLI commands or scripts to automate publishing, saving time on manual work and supporting batch processing of multiple posts.

3. Publish developer technical articles


If you’re used to writing technical documentation in Markdown, you can create content using your familiar workflow and publish it to your Official Account with a single click—keeping the integrity of code blocks, tables, and other formatting.

Core Features

Multiple publishing methods


Supports both API and browser publishing modes. The API mode is fast and requires you to configure WeChat Official Account developer credentials in advance. The browser mode uses Chrome CDP automation; after the first login, it keeps the session, making it suitable for users who don’t want to apply for an API.

Markdown-friendly support


Use Markdown files directly as input, and the skill will automatically convert them to the formats supported by WeChat Official Accounts. It supports common Markdown elements such as code highlighting, image handling, tables, and more. It also provides multiple theme and color presets.

Smart metadata handling


Extracts metadata such as title and summary automatically from the file content. It also supports setting defaults like author, comment switch, cover image, and other options via a configuration file. Images are automatically uploaded to the Official Account material library, and the cover image can be intelligently selected from the default directory location or from the content.

Frequently Asked Questions

How do I configure the WeChat Official Account API?


You need to go to the WeChat Official Platform developer backend to apply for an AppID and AppSecret. The skill will guide you through the configuration process, and the credentials will be saved in the .gino-skills/.env file. The API mode is fast and is ideal for users with development capability.

Is the browser mode safe?


The browser mode uses the Chrome DevTools Protocol (CDP) to control an already logged-in Chrome instance. It does not save or transmit your login password. The first time you use it, you’ll need to log in via manual QR-code scanning; afterward, it reuses the login session. It’s recommended to use a separate Chrome profile to avoid interfering with normal use.

Is there a limit on the number of images?


In the multi-image articles (text + images) mode, up to 9 images are supported. In the article mode, there is no strict limit on the number of images, but it’s recommended that each post contains no more than 20 images to ensure good publishing speed. The skill automatically compresses large images and supports automatically uploading local images to the Official Account material library.