baoyu-post-to-wechat
Skill by JimLiu
Posts articles and image-text posts to a WeChat Official Account (微信公众号) through the WeChat API or Chrome browser automation. Built for creators who write in markdown, HTML or plain text and want to publish from an AI assistant.
Install baoyu-post-to-wechat
Built from the published package, never by AI.
git clone --depth 1 https://github.com/JimLiu/baoyu-skills /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-post-to-wechat ~/.claude/skills/baoyu-post-to-wechatRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/JimLiu/baoyu-skills /tmp/baoyu-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/baoyu-skills/skills/baoyu-post-to-wechat ~/.gemini/antigravity-cli/skills/baoyu-post-to-wechatAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install baoyu-post-to-wechat in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
baoyu-post-to-wechat is an agent skill that posts content to a WeChat Official Account (微信公众号). It supports article posts (文章) from HTML, markdown or plain text, and image-text posts (贴图, formerly 图文) with multiple images, up to 9. Publishing can run through the WeChat API, a Chrome CDP browser flow, or a remote API method that sends the HTTPS calls through an SSH SOCKS5 forward.
Markdown article workflows convert ordinary external links into bottom citations by default. Users can set a theme, color, author, source URL and comment options through frontmatter, CLI flags or an EXTEND.md preferences file. The skill is aimed at people who publish to WeChat Official Account and want to save drafts or posts from an AI assistant.
Written from the project's SKILL.md and checked against it.
What it can do
- API article postingSaves markdown, HTML or plain text as a WeChat draft through the draft/add endpoint.
- Browser article postingPublishes articles through Chrome by pasting converted content into the WeChat editor.
- Image-text postingCreates image-text posts with a title, content and up to 9 images.
- Theme and color stylingApplies default, grace, simple or modern themes with optional color presets.
- Metadata handlingReads title, summary, author and source URL, and auto-generates missing title or summary.
- Citation conversionTurns ordinary external links in markdown into bottom citations for WeChat-friendly output.
- Remote API publishingRoutes WeChat API calls through an SSH forward so WeChat sees an allowlisted server's IP.
What you need
- Bun runtime, or npx to run it
- WeChat Official Account API credentials for the API method
- Chrome and a logged-in WeChat session for browser posting
- SSH-reachable server on the WeChat IP allowlist for remote-api
- xdotool or ydotool on Linux for paste keystrokes
Try asking
- Save this markdown article to my WeChat Official Account as a draft.
- Post these images as an image-text post with a title and body.
- Convert article.md to WeChat HTML using the grace theme and blue color.
Good to know
- Image-text posts support up to 9 images.
- SVG body images must be converted to PNG or JPG first.
- Remote mode supports SSH key authentication only, not passwords.
- The API method requires the local IP to be on the WeChat allowlist.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/baoyu-post-to-wechat/SKILL.md, skills/baoyu-post-to-wechat/scripts/cdp.ts, skills/baoyu-post-to-wechat/scripts/check-permissions.ts, skills/baoyu-post-to-wechat/scripts/copy-to-clipboard-mac.test.ts, skills/baoyu-post-to-wechat/scripts/copy-to-clipboard.ts, skills/baoyu-post-to-wechat/scripts/md-to-wechat.ts, skills/baoyu-post-to-wechat/scripts/paste-from-clipboard.ts, skills/baoyu-post-to-wechat/scripts/wechat-agent-browser.ts, skills/baoyu-post-to-wechat/scripts/wechat-api.ts. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 KB -
references/api-setup.md898 B -
references/article-posting.md1 KB -
references/config/first-time-setup.md5 KB -
references/image-text-posting.md2 KB
Show all 29 files
-
references/multi-account.md5 KB -
scripts/bun.lock38 KB -
scripts/cdp.ts8 KB -
scripts/check-permissions.ts9 KB -
scripts/copy-to-clipboard-mac.test.ts916 B -
scripts/copy-to-clipboard.ts14 KB -
scripts/md-to-wechat.ts6 KB -
scripts/package.json244 B -
scripts/paste-from-clipboard.ts6 KB -
scripts/wechat-agent-browser.ts11 KB -
scripts/wechat-api.ts31 KB -
scripts/wechat-article-focus.test.ts3 KB -
scripts/wechat-article.ts48 KB -
scripts/wechat-browser.ts28 KB -
scripts/wechat-extend-config.test.ts10 KB -
scripts/wechat-extend-config.ts14 KB -
scripts/wechat-http.test.ts5 KB -
scripts/wechat-http.ts3 KB -
scripts/wechat-image-loader.ts2 KB -
scripts/wechat-image-processor.ts8 KB -
scripts/wechat-remote-publish.test.ts6 KB -
scripts/wechat-remote-publish.ts8 KB -
scripts/wechat-socks-http.test.ts7 KB -
scripts/wechat-socks-http.ts7 KB
Alternatives to baoyu-post-to-wechat
All alternatives →Generates 3 to 10 second short-form video clips for product reveals, motion teasers and ambient loops. It defaults to Seedance 2 and also works with Kling 3 and 4, Veo 3 and Sora 2, saving one MP4 to the project folder.
Builds a strategic SEO plan for new or existing websites, covering competitors, architecture, content, technical setup and a 12-month roadmap. It is aimed at people who need an SEO strategy rather than a one-time audit.
Audits and rewrites a LinkedIn profile for people who want their headline, About section and other parts improved. It scores the headline, audits the whole profile from 0 to 100 and drafts an About section that works above the fold.
Builds a LinkedIn plan covering content pillars, positioning, posting cadence and whether to start a newsletter. Aimed at people pursuing a career change, consulting, thought leadership or similar goals on LinkedIn.
Guides an AI assistant to design or rewrite a single-offer landing page for SaaS, apps and services. It covers structure, layout, copywriting, conversion tactics, and SEO/AEO.
Analyzes your own exported LinkedIn post data to show which posts worked, test whether a pattern is real, and plan posting experiments. Built for people who want to understand their own LinkedIn numbers. It refuses to draw conclusions from fewer than 10 posts.
Compare with video-shortform, seo-plan or linkedin-profile
baoyu-post-to-wechat: common questions
Does it need WeChat API credentials?
The API method needs API credentials and a local IP on the WeChat allowlist. The browser method needs Chrome and a logged-in session instead.
How are links in markdown handled?
Markdown articles convert ordinary external links to bottom citations by default. Passing --no-cite keeps inline links.
What if my IP is not on the WeChat allowlist?
The remote-api method runs the WeChat HTTPS calls through an SSH SOCKS5 forward to a server that is on the allowlist. Only SSH key authentication is supported.
How do I install baoyu-post-to-wechat?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is baoyu-post-to-wechat free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is baoyu-post-to-wechat safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to baoyu-post-to-wechat?
Similar skills: video-shortform, seo-plan, linkedin-profile, linkedin-strategy.
