post-to-wechat

Automates WeChat Official Account publishing via API or Chrome CDP from local content files.

76|6|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/bozhouDev/bozhou-skills --skill post-to-wechat-bozhoudev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: post-to-wechat
Source: https://github.com/bozhouDev/bozhou-skills/tree/main/post-to-wechat
Command: npx skills add https://github.com/bozhouDev/bozhou-skills --skill post-to-wechat-bozhoudev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @jsquash/webp, baoyu-chrome-cdp, baoyu-md, jimp, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill automates posting content to WeChat Official Accounts (微信公众号) via API or Chrome CDP, enabling both article posts (HTML, markdown, or plain text) and image-text posts (贴图) with multiple images. Markdown articles default to converting ordinary external links into bottom citations for WeChat-friendly output.

Core Features & Use Cases

  • API-based publishing for speed and credentials-based control.
  • Chrome-based browser posting when a login session is available, suitable for interactive posting and image-text workflows.
  • Flexible metadata handling with frontmatter, input content, and config-based defaults; supports cover-image fallbacks and citation behavior.

Quick Start

Provide a content file and run post-to-wechat to publish using the configured method.

Frequently Asked Questions about post-to-wechat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate publishing markdown articles to a WeChat Official Account?

Automate publishing to WeChat Official Accounts by running a CLI command that converts markdown to WeChat-friendly HTML, automatically extracting title and description from frontmatter and transforming external links into bottom citations.

Can I post image-text articles with multiple images to WeChat using Chrome?

Yes, you can post image-text articles with multiple images using the Chrome CDP method, which leverages an active browser login session for interactive publishing and image-text workflows.

What is the difference between API and Chrome CDP methods for WeChat publishing?

The API method uses credentials for fast, automated article posting, while the Chrome CDP method utilizes an active browser login session, making it suitable for interactive posting and image-text workflows.

Do I need a config file to automate WeChat publishing from local content?

Yes, you need a user configuration file located at ~/.config/post-to-wechat/config.json to set up credentials and defaults before executing the CLI-driven workflow with pre-flight environment checks.

How does the tool handle article titles and cover images for WeChat posts?

The tool extracts the title and description from frontmatter, supports optional cover image handling with config-based fallbacks, and applies WeChat-friendly conversion to ensure posts meet platform requirements.