Baoyu post to wechat
Skill ComeOnOliver/skillshub/skills/aiskillstore/marketplace/jimliu/baoyu-post-to-wechat
Post content to WeChat Official Account (微信公众号). Supports both article posting (文章) and image-text posting (图文).From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill baoyu-post-to-wechatAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
2.6 KB, 609 tokens by cl100k_base, as published. Nobody here has run it
Post to WeChat Official Account (微信公众号)
Post content to WeChat Official Account using Chrome CDP automation.
Script Directory
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR - Script path =
${SKILL_DIR}/scripts/<script-name>.ts - Replace all
${SKILL_DIR}in this document with the actual path
Script 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 |
Quick Usage
Image-Text (图文) - Multiple images with title/content
# 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
Article (文章) - Full markdown with formatting
# 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: See
references/image-text-posting.mdfor detailed image-text posting guide - Article Posting: See
references/article-posting.mdfor detailed article posting guide
Prerequisites
- Google Chrome installed
bunruntime (vianpx -y bun)- First run: log in to WeChat Official Account in the opened browser window
Features
| 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) |
Troubleshooting
- Not logged in: First run opens browser - scan QR code to log in, session is preserved
- Chrome not found: Set
WECHAT_BROWSER_CHROME_PATHenvironment variable - Paste fails: Check system clipboard permissions
What ships with it
197.9 KB alongside SKILL.md, 19 of them executable
GitHub clipped this repository’s file list, so this is at least 27 files and may be more.
references/
- article-posting.md2.2 KB
- image-text-posting.md2.7 KB
scripts/
- cdp.tsruns10.7 KB
- copy-to-clipboard.tsruns11.9 KB
- md/extensions/alert.tsruns19.3 KB
- md/extensions/footnotes.tsruns2.4 KB
- md/extensions/index.tsruns280 B
- md/extensions/infographic.tsruns3.6 KB
- md/extensions/katex.tsruns4.6 KB
- md/extensions/markup.tsruns2.3 KB
- md/extensions/plantuml.tsruns8.1 KB
- md/extensions/ruby.tsruns3.9 KB
- md/extensions/slider.tsruns2.9 KB
- md/extensions/toc.tsruns2.1 KB
- md/LICENSE650 B
- md/render.tsruns17.6 KB
- md/themes/base.css566 B
- md/themes/default.css7.7 KB
- md/themes/grace.css2.5 KB
- md/themes/simple.css2.7 KB
- md-to-wechat.tsruns8.1 KB
- md/utils/languages.tsruns8.1 KB
- paste-from-clipboard.tsruns5.5 KB
- wechat-agent-browser.tsruns10.4 KB
- wechat-article.tsruns17.7 KB
- wechat-browser.tsruns25.1 KB
- skill-report.json14.4 KB