From utility-skills
Posts articles and image-text content to WeChat Official Accounts using Chrome CDP browser automation and Bun TypeScript scripts. Supports Markdown conversion and multi-image uploads.
npx claudepluginhub xuanxuan1983/baoyu-xuanyi-skills --plugin ai-generation-skillsThis skill uses the workspace's default tool permissions.
Post content to WeChat Official Account using Chrome CDP automation.
references/article-posting.mdreferences/image-text-posting.mdscripts/cdp.tsscripts/copy-to-clipboard.tsscripts/md-to-wechat.tsscripts/md/LICENSEscripts/md/extensions/alert.tsscripts/md/extensions/footnotes.tsscripts/md/extensions/index.tsscripts/md/extensions/infographic.tsscripts/md/extensions/katex.tsscripts/md/extensions/markup.tsscripts/md/extensions/plantuml.tsscripts/md/extensions/ruby.tsscripts/md/extensions/slider.tsscripts/md/extensions/toc.tsscripts/md/render.tsscripts/md/themes/base.cssscripts/md/themes/default.cssscripts/md/themes/grace.cssPosts articles or image-text content to WeChat Official Accounts via API or Chrome CDP. Supports HTML, Markdown, plain text input, and multiple images for 图文/贴图.
Posts articles from HTML, Markdown, or plain text and image-text content with multiple images to WeChat Official Accounts via API or Chrome CDP. Converts Markdown external links to bottom citations.
Posts articles and image-text content to WeChat Official Accounts via API or Chrome CDP browser automation. Supports HTML, Markdown, plain text inputs; converts Markdown links to bottom citations.
Share bugs, ideas, or general feedback.
Post content to WeChat Official Account using Chrome CDP automation.
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
SKILL_DIR${SKILL_DIR}/scripts/<script-name>.ts${SKILL_DIR} in this document with the actual pathScript Reference:
| Script | Purpose |
|---|---|
scripts/wechat-browser.ts | Image-text posts (图文) |
scripts/wechat-article.ts | Full article posting (文章) |
scripts/md-to-wechat.ts | Markdown → WeChat HTML conversion |
scripts/copy-to-clipboard.ts | Copy content to clipboard |
scripts/paste-from-clipboard.ts | Send real paste keystroke |
# From markdown file and image directory
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --markdown article.md --images ./images/
# With explicit parameters
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --title "标题" --content "内容" --image img1.png --image img2.png --submit
# Post markdown article
npx -y bun ${SKILL_DIR}/scripts/wechat-article.ts --markdown article.md --theme grace
Note:
${SKILL_DIR}represents this skill's installation directory. Agent replaces with actual path at runtime.
references/image-text-posting.md for detailed image-text posting guidereferences/article-posting.md for detailed article posting guidebun runtime (via npx -y bun)| Feature | Image-Text | Article |
|---|---|---|
| Multiple images | ✓ (up to 9) | ✓ (inline) |
| Markdown support | Title/content extraction | Full formatting |
| Auto title compression | ✓ (to 20 chars) | ✗ |
| Content compression | ✓ (to 1000 chars) | ✗ |
| Themes | ✗ | ✓ (default, grace, simple) |
WECHAT_BROWSER_CHROME_PATH environment variableCustom configurations via EXTEND.md.
Check paths (priority order):
.baoyu-skills/baoyu-post-to-wechat/EXTEND.md (project)~/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md (user)If found, load before workflow. Extension content overrides defaults.