New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Command-line publisher that sends Markdown or HTML articles to WeChat Official Account drafts through an API.

skills.sh installs
2.6K
GitHub stars
159
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers account listing and draft creation, with format detection for .md and .html inputs and automatic image upload
  • Includes wechat_api.py for list-accounts and publish, plus an optional parse_markdown.py for structured output
  • Enforces draft-only saves, so articles are never auto-published and the user reviews them in the WeChat admin panel
  • Designed for authors who already hold an authorized account on wx.limyai.com and need API-based publishing

Install

$ npx -y skills add iamzifei/wechat-article-publisher-skill --skill wechat-article-publisher -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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"

Details

Repository
github.com/iamzifei/wechat-article-publisher-skill
Categories
Social Media, Writing & Content

Similar to Wechat Article Publisher

More Social Media