Skip to content

Wechat Article Publisher Skill

Claude Skill that publish on Wechat articles (微信公众号发布)

Install

$git clone https://github.com/iamzifei/wechat-article-publisher-skill

Install command taken from the project's README or registry entry. Always review code before running it.

WeChat Article Publisher Skill

English | 中文

Publish Markdown or HTML articles to WeChat Official Account drafts with one command. Say goodbye to tedious copy-paste-format workflows.

v1.1.0 — API-based publishing for reliability and speed


The Problem

If you write in Markdown, publishing to WeChat Official Account (公众号) is a painful process:

Pain Point Description
Format Loss Copy from Markdown editor -> Paste to WeChat -> All formatting gone
Manual Formatting Re-apply each H2, bold, link manually — 15-20 min per article
Image Upload Hassle Upload images one by one through WeChat's media library
Multiple Steps Switch between markdown editor, image uploads, and WeChat admin panel

Time Comparison

Task Manual With This Skill
Format conversion 15-20 min 0 (automatic)
Image upload 5-10 min 0 (automatic)
Copy & paste content 2-3 min 0 (automatic)
Total 20-30 min < 1 min

30x efficiency improvement


The Solution

This skill uses WeChat's API for direct, reliable publishing:

Markdown/HTML File
     | Python parsing
     v
Structured Data (title, content, images)
     | WeChat API
     v
Draft in WeChat Official Account (never auto-publishes)

Key Features

  • API-Based: Direct API calls, no browser automation needed
  • Cross-Platform: Works on macOS, Linux, and Windows
  • Dual Format: Supports both Markdown (.md) and HTML (.html) files
  • Format Preserved: HTML formatting preserved, Markdown auto-converted
  • Image Auto-Upload: Images in your content are automatically uploaded
  • Safe by Design: Only saves as draft, never publishes automatically
  • 小绿书 Support: Publish as image-text format (newspic) for visual content

Requirements

Requirement Details
Claude Code claude.ai/code
Python 3.9+ Standard library only (no extra dependencies)
WECHAT_API_KEY Get from wx.limyai.com
WeChat Account Authorized on wx.limyai.com

怎么装(没用过命令行也能跟着做)

下面每一步都可以直接复制粘贴。不用懂什么是「技能」「仓库」「终端」,照做就行。 哪一步卡住了,把报错原样复制给 AI,让它帮你看——这是最快的解决办法。

方式一:WorkBuddy(推荐,不用敲命令)

  1. 下载安装 WorkBuddy,打开它,登录。
  2. 在电脑上新建一个文件夹,名字随便,比如 我的AI技能,放桌面上就行。记住它在哪。
  3. 把本项目下载下来:
    • 在本页面点绿色的 Code 按钮 → Download ZIP
    • 下载完解压,把解压出来的整个文件夹拖进刚才建的 我的AI技能 里
  4. 打开 WorkBuddy 的设置 → 技能(Skills),点「添加技能目录」,选中 我的AI技能 这个文件夹。
  5. 重启 WorkBuddy。
  6. 在对话框里输入 /公众号发布 新手,回车。

看到它开始介绍它能做什么并给你编号选项,就是装好了。

找不到「技能」入口?在设置里搜 skill,或者直接问 WorkBuddy:「我要怎么添加本地技能目录?」 WorkBuddy 的菜单名称可能随版本变化,但「添加技能目录」这一步的意思是一样的。

方式二:Claude Code(会用终端的人)

git clone https://github.com/iamzifei/wechat-article-publisher-skill.git

把 clone 下来的文件夹放进 Claude Code 的技能目录(~/.claude/skills/),重启,输入 /公众号发布 新手。

方式三:其他支持技能的 AI 工具(Codex、豆包、Trae 等)

这些工具大多会读一个固定的技能目录,常见的是 ~/.agents/skills、~/.codex/skills。 把本项目文件夹复制进去,重启工具,输入 /公众号发布 新手。

不知道装没装上?

在对话框里输入 /公众号发布 新手。它会自己介绍自己、并带你走一遍—— 不用你想好要问什么,也不用准备任何材料。

Installation

Step 1: Clone the Repository

git clone https://github.com/iamzifei/wechat-article-publisher-skill.git

Step 2: Copy Skill to Claude

cp -r wechat-article-publisher-skill/skills/wechat-article-publisher ~/.claude/skills/

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Explore related