baoyu-post-to-wechat

Publish markdown or HTML articles to WeChat Official Account via API or Chrome CDP automation.

2|2|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/pynbj1001/agent-workspace --skill baoyu-post-to-wechat-pynbj1001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-post-to-wechat
Source: https://github.com/pynbj1001/agent-workspace/tree/main/skills/baoyu-post-to-wechat
Command: npx skills add https://github.com/pynbj1001/agent-workspace --skill baoyu-post-to-wechat-pynbj1001

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires front-matter, highlight.js, marked, reading-time, unified, remark-parse, remark-cjk-friendly, remark-stringify, juice, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill removes the manual, error-prone steps of publishing articles and multi-image posts to a WeChat Official Account by automating content conversion, image handling, and the final upload or browser-driven paste workflow.

Core Features & Use Cases

  • API publishing: convert markdown/HTML and upload article drafts via WeChat API with cover and image uploads.
  • Browser (CDP) publishing: automate Chrome DevTools Protocol to paste rendered HTML and replace image placeholders for complex editor flows.
  • Markdown → WeChat-ready HTML: theme and color resolution, frontmatter metadata extraction, slug and file management.
  • Image handling & clipboard helpers: download remote images, copy images/HTML to system clipboard, and replace placeholders during paste workflow.
  • Preferences & checks: first-time EXTEND.md setup, environment and permission checks (Chrome, Bun, clipboard, paste keystroke, credentials).

Quick Start

Post the file article.md to my WeChat Official Account as an article using API if credentials exist otherwise use the browser automation method.

Frequently Asked Questions about baoyu-post-to-wechat

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

FAQPage Schema
How do I publish markdown to a WeChat Official Account automatically?

To publish markdown to a WeChat Official Account, this Skill converts markdown to WeChat-ready HTML, resolves themes, handles cover and image uploads, and posts drafts via the WeChat API or Chrome CDP browser automation.

What is the best way to automate multi-image post publishing on WeChat?

Automating multi-image post publishing on WeChat requires handling image uploads and replacing placeholders. This Skill downloads remote images, uploads them via the WeChat API, and replaces placeholders during the browser paste workflow.

Can I use browser automation to paste HTML into the WeChat editor?

Yes, you can use browser automation to paste HTML into the WeChat editor. This Skill uses Chrome DevTools Protocol (CDP) to automate the paste workflow for complex editor flows when API publishing is unavailable.

Do I need WeChat API credentials to post articles automatically?

You do not strictly need WeChat API credentials to post articles automatically. If credentials are missing, this Skill defaults to the browser automation method using Chrome CDP to paste rendered HTML into the editor.

How does markdown-to-HTML conversion handle frontmatter and themes for WeChat?

Markdown-to-HTML conversion for WeChat extracts frontmatter metadata, resolves themes and colors, and calculates reading time. It produces WeChat-ready HTML with proper slug and file management before publishing.

What are the limitations of using Chrome CDP for WeChat publishing?

Using Chrome CDP for WeChat publishing requires local environment checks for Chrome, Bun, clipboard access, and paste keystroke permissions. It is limited by local browser constraints compared to direct API publishing.