wechat-article-publisher

Solid

Publish Markdown/HTML articles to WeChat Official Account (微信公众号) drafts via API 新手引导:输入 `/公众号发布 新手`、「这个怎么用」「第一次用」「能干嘛」时,走 SKILL.md 的〈新手上路〉,不要直接开始干活。

AI & Automation 154 stars 20 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
73
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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: ```bash # 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): ```bash python parse_markdown.py <markdown_file> [--output json|html] ``` ## Workflow **Strategy: "API-First Publishing"** Unlike browser-based publishing, this skill uses direct API calls for reliable, fast publishing. 1. Load WECHAT_API_KEY from environment 2. List available WeChat accounts (if user hasn't specified) 3. Detect file format (Markdown or HTML) and parse accordingly 4. Call publish API to create draft in WeChat 5. Report success with draft details **Supported File Formats:** - `.md` files → Pars...

Details

Author
iamzifei
Repository
iamzifei/wechat-article-publisher-skill
Created
7 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category