wechat-publisher
One-click publishing of Markdown articles to WeChat Official Account drafts, featuring automated image hosting, multi-theme styling, and code syntax highlighting.
Introduction
The wechat-publisher skill is a specialized automation tool designed for technical bloggers and content creators who use the WeChat Official Account platform. By leveraging the wenyan-cli framework, it streamlines the conversion of raw Markdown files into the specific format required by WeChat, enabling seamless publishing to your draft box. This skill is ideal for developers who prefer writing content in local editors like Obsidian, VS Code, or Cursor while maintaining the professional presentation expected in tech media.
- Automated Markdown to WeChat conversion with support for complex layouts.
- Intelligent image processing: automatically uploads local and network images to the WeChat image hosting service, solving common upload barriers.
- Extensive theme support, including popular styles like lapis, phycat, and default, along with robust code syntax highlighting (e.g., solarized-light, dracula, github).
- Seamless integration into OpenClaw workflows, allowing users to trigger publishes via simple natural language commands.
- Cross-platform compatibility for local machines, provided dependencies like Node.js and wenyan-cli are installed.
When using this skill, ensure your environment variables (WECHAT_APP_ID and WECHAT_APP_SECRET) are correctly configured in your workspace's TOOLS.md file. Note that WeChat's API enforces strict security; verify that your server IP is added to the WeChat Official Account management background whitelist to prevent authentication errors. Markdown files must contain a properly formatted frontmatter header including both a title and a cover image URL or local path to avoid validation failures. For optimal performance, images should be sized according to WeChat's recommended dimensions. The skill outputs directly to your WeChat draft box, giving you the final opportunity to review, edit, and manually publish the content through the official web interface.
Repository Stats
- Stars
- 4,456
- Forks
- 1,217
- Open Issues
- 7
- Language
- Python
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- Apr 30, 2026, 05:12 PM