wechat-article-publisher

Solid

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

AI & Automation 156 stars 19 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
73
Recency 20%
75
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
8 months ago
Last Updated
1 months ago
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

wechat-article-formatter

Format markdown and publish to WeChat Official Account via bm.md rendering + WeChat official API 新手引导:输入 `/公众号排版 新手`、「这个怎么用」「第一次用」「能干嘛」时,走 SKILL.md 的〈新手上路〉,不要直接开始干活。

77 Updated 1 months ago
iamzifei
AI & Automation Featured

aws-wechat-article-publish

公众号发布|公众号草稿箱|公众号群发|图文推送|微信 API|wechat automation|WeChat API automation|auto publish|scheduled publish — 公众号 API 发布工具,图文入草稿箱或直接群发,支持封面素材上传、发布前检查与 draft/published 模式切换。面向公众号运营、自动化内容团队、开发者。触发词:「发布」「提交」「群发」「推送」「发出去」「上传到公众号」「发到公众号」「可以发了吗」「发布前检查」。需要多环节串联(写+审+排+配图+发)请走 aws-wechat-article-main。

592 Updated today
aiworkskills
AI & Automation Listed

wechat-publisher

公众号文章发布工具。当用户说"存到公众号"、"发布到公众号"、"发到草稿箱"、"推到公众号"、"写到公众号"时触发。配合 kakarot-writer skill 使用:先用 kakarot-writer 风格生成 markdown 文章 → 用 wechat-publisher CLI 格式化并存入微信草稿箱。也支持纯 markdown 文件直接发布。 触发词:存到公众号、发布到公众号、发到草稿箱、推到公众号、写到公众号、发公众号、wechat publish 不触发情况:纯写作不涉及发布、不需要存草稿箱的情况。

2 Updated 4 days ago
Zhangs-11