
Wechat Article Publisher
The wechat-article-publisher skill enables users to publish Markdown or HTML content directly to WeChat Official Account drafts through API calls, automatically converting formats as needed. It serves content creators and managers who need to programmatically publish articles to WeChat without using the web interface. The skill solves the problem of manual publishing by providing command-line tools to list authorized accounts and push articles to drafts with a single API call.
- skills.sh installs
- 2.6K
- GitHub stars
- 158
- last updated
- Aug 21, 2026
Install
$ npx -y skills add iamzifei/wechat-article-publisher-skill --skill wechat-article-publisher --agent claude-codeInstalls into .claude/skills of the current project.
Files
WeChat Article Publisher
Publish Markdown or HTML content to WeChat Official Account drafts via API, with automatic format conversion.
Prerequisites
- WECHAT_API_KEY environment variable set (from .env file)
- Python 3.9+
- Authorized WeChat Official Account on wx.limyai.com
Scripts
Located in ~/.claude/skills/wechat-article-publisher/scripts/:
wechat_api.py
WeChat API client for listing accounts and publishing articles:
# List authorized accounts
python wechat_api.py list-accounts
# Publish from markdown file
python wechat_api.py publish --appid <wechat_appid> --markdown /path/to/article.md
# Publish from HTML file (preserves formatting)
python wechat_api.py publish --appid <wechat_appid> --html /path/to/article.html
# Publish with custom options
python wechat_api.py publish --appid <appid> --markdown /path/to/article.md --type newspic
parse_markdown.py
Parse Markdown and extract structured data (optional, for advanced use):
python parse_markdown.py <markdown_file> [--output json|html]
Workflow
Strategy: "API-First Publishing"
Sponsors