๐ŸŽฏ

baoyu-post-to-wechat

๐ŸŽฏSkill

from siatwangmin/coco-skills

VibeIndex|
What it does

Automates posting markdown articles and image-text content to WeChat Official Account using Chrome browser automation.

๐Ÿ“ฆ

Part of

siatwangmin/coco-skills(11 items)

baoyu-post-to-wechat

Installation

npxRun with npx
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --markdown article.md --images ./images/
npxRun with npx
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --title "ๆ ‡้ข˜" --content "ๅ†…ๅฎน" --image img.png --submit
npxRun with npx
npx -y bun ${SKILL_DIR}/scripts/md-to-wechat.ts article.md --theme <chosen-theme>
npxRun with npx
npx -y bun ${SKILL_DIR}/scripts/wechat-article.ts --markdown article.md --theme <chosen-theme>
๐Ÿ“– Extracted from docs: siatwangmin/coco-skills
3Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Posts content to WeChat Official Account (ๅพฎไฟกๅ…ฌไผ—ๅท) via Chrome CDP automation. Supports article posting (ๆ–‡็ซ ) with full markdown formatting and image-text posting (ๅ›พๆ–‡) with multiple images. Use when user mentions "ๅ‘ๅธƒๅ…ฌไผ—ๅท", "post to wechat", "ๅพฎไฟกๅ…ฌไผ—ๅท", or "ๅ›พๆ–‡/ๆ–‡็ซ ".

Overview

# Post to WeChat Official Account

Script Directory

Agent Execution: Determine this SKILL.md directory as SKILL_DIR, then use ${SKILL_DIR}/scripts/.ts.

| Script | Purpose |

|--------|---------|

| scripts/wechat-browser.ts | Image-text posts (ๅ›พๆ–‡) |

| scripts/wechat-article.ts | Article posting (ๆ–‡็ซ ) |

| scripts/md-to-wechat.ts | Markdown โ†’ WeChat HTML |

Preferences (EXTEND.md)

Use Bash to check EXTEND.md existence (priority order):

```bash

# Check project-level first

test -f .baoyu-skills/baoyu-post-to-wechat/EXTEND.md && echo "project"

# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)

test -f "$HOME/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md" && echo "user"

```

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”

โ”‚ Path โ”‚ Location โ”‚

โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค

โ”‚ .baoyu-skills/baoyu-post-to-wechat/EXTEND.md โ”‚ Project directory โ”‚

โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค

โ”‚ $HOME/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md โ”‚ User home โ”‚

โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”

โ”‚ Result โ”‚ Action โ”‚

โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค

โ”‚ Found โ”‚ Read, parse, apply settings โ”‚

โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค

โ”‚ Not found โ”‚ Use defaults โ”‚

โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

EXTEND.md Supports: Default theme | Auto-submit preference | Chrome profile path

Usage

Image-Text (ๅ›พๆ–‡)

```bash

npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --markdown article.md --images ./images/

npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --title "ๆ ‡้ข˜" --content "ๅ†…ๅฎน" --image img.png --submit

```

Article (ๆ–‡็ซ )

Before posting, ask user to choose a theme using AskUserQuestion:

| Theme | Description |

|-------|-------------|

| default | ็ปๅ…ธไธป้ข˜ - ไผ ็ปŸๆŽ’็‰ˆ๏ผŒๆ ‡้ข˜ๅฑ…ไธญๅธฆๅบ•่พน๏ผŒไบŒ็บงๆ ‡้ข˜็™ฝๅญ—ๅฝฉๅบ• |

| grace | ไผ˜้›…ไธป้ข˜ - ๆ–‡ๅญ—้˜ดๅฝฑ๏ผŒๅœ†่ง’ๅก็‰‡๏ผŒ็ฒพ่‡ดๅผ•็”จๅ— (by @brzhang) |

| simple | ็ฎ€ๆดไธป้ข˜ - ็Žฐไปฃๆž็ฎ€้ฃŽ๏ผŒไธๅฏน็งฐๅœ†่ง’๏ผŒๆธ…็ˆฝ็•™็™ฝ (by @okooo5km) |

Default: default. If user has already specified a theme, skip the question.

Workflow:

  1. Generate HTML preview and print the full htmlPath from JSON output so user can click to preview:

```bash

npx -y bun ${SKILL_DIR}/scripts/md-to-wechat.ts article.md --theme

```

  1. Post to WeChat:

```bash

npx -y bun ${SKILL_DIR}/scripts/wechat-article.ts --markdown article.md --theme

```

Detailed References

| Topic | Reference |

|-------|-----------|

| Image-text parameters, auto-compression | [references/image-text-posting.md](references/image-text-posting.md) |

| Article themes, image handling | [references/article-posting.md](references/article-posting.md) |

Feature Comparison

| Feature | Image-Text | Article |

|---------|------------|---------|

| Multiple images | โœ“ (up to 9) | โœ“ (inline) |

| Markdown support | Title/content extraction | Full formatting |

| Auto compression | โœ“ (title: 20, content: 1000 chars) | โœ— |

| Themes | โœ— | โœ“ (default, grace, simple) |

Prerequisites

  • Google Chrome
  • First run: log in to WeChat Official Account (session preserved)

Troubleshooting

| Issue | Solution |

|-------|----------|

| Not logged in | First run opens browser - scan QR to log in |

| Chrome not found | Set WECHAT_BROWSER_CHROME_PATH env var |

| Paste fails | Check system clipboard permissions |

Extension Support

Custom configurations via EXTEND.md. See Preferences section for paths and supported options.

More from this repository10

๐ŸŽฏ
baoyu-xhs-images๐ŸŽฏSkill

Skill

๐ŸŽฏ
baoyu-image-gen๐ŸŽฏSkill

Generates AI images using OpenAI and Google APIs with flexible text-to-image generation options.

๐ŸŽฏ
baoyu-infographic๐ŸŽฏSkill

Generates professional infographics by analyzing content and creating publication-ready visuals with 20 layout types and 17 visual styles.

๐ŸŽฏ
baoyu-danger-x-to-markdown๐ŸŽฏSkill

Skill

๐ŸŽฏ
baoyu-cover-image๐ŸŽฏSkill

Generates customizable article cover images with 5-dimensional design options, supporting multiple styles, palettes, and aspect ratios.

๐ŸŽฏ
baoyu-danger-gemini-web๐ŸŽฏSkill

Generates images and text via reverse-engineered Gemini Web API, supporting multi-turn conversations and vision-capable AI generation.

๐ŸŽฏ
baoyu-slide-deck๐ŸŽฏSkill

Generates professional slide deck images from content, creating stylized presentations with customizable options for audience, style, and language.

๐ŸŽฏ
baoyu-compress-image๐ŸŽฏSkill

Automatically compresses and optimizes images to WebP or other formats using the best available tool.

๐ŸŽฏ
baoyu-article-illustrator๐ŸŽฏSkill

Generates contextually-appropriate illustrations for articles by analyzing content structure and automatically selecting optimal image types and visual styles.

๐ŸŽฏ
release-skills๐ŸŽฏSkill

Automatically detects and updates version files, changelogs, and git tags across multiple project types with multi-language support and intelligent version bumping.