
Wechat Publisher Yashu
This publishes local Markdown files directly to your WeChat Official Account drafts. Point it at your .md file, configure your AppID and AppSecret once, and it handles the conversion and upload. Supports 17 visual themes (sakura, vintage, minimal, etc.), automatically processes embedded images if they're in the same directory, and even converts chat bubble syntax for dialogue formatting. The workflow is smart about defaults: it won't auto-generate prefix or suffix content unless you explicitly provide it, which prevents unwanted AI-generated footers. If you're managing a Chinese public account and tired of manually copying formatted content into the web editor, this eliminates that entire step. Just remember images need to be local, not remote URLs.
- skills.sh installs
- 202
- GitHub stars
- 10
- last updated
- Aug 21, 2026
Install
$ npx -y skills add steelan9199/wechat-publisher --skill wechat-publisher-yashu --agent claude-codeInstalls into .claude/skills of the current project.
Files
微信公众号文章发布工具
功能概述
将本地 Markdown 文章一键发布到微信公众号草稿箱。支持 17 种文章渲染主题,支持 LaTeX 公式、对话气泡、代码高亮等丰富格式。支持 Obsidian 的 markdown 语法。
环境说明
- Shell 类型:bash
- 本 Skill 运行命令时采用 bash
&&链式依赖执行(前一条成功才执行下一条),规则:cmd1 && cmd2 - 脚本目录:
$SKILL_DIR/scripts/ - Node.js:>= 18.20.8
- 依赖安装:
cd "$SKILL_DIR/scripts" && npm install - 配置文件:
$SKILL_DIR/config.default.json,发布参数默认值来源于此文件,用户未指定的字段将自动使用默认值 - 执行任何脚本前必须先
cd到$SKILL_DIR/scripts目录。 - ⚠️
$SKILL_DIR仅为文档占位符,不是环境变量,执行命令时必须替换为实际绝对路径。
全脚本索引
| 脚本 | 功能 |
|---|---|
$SKILL_DIR/scripts/index.js | 发布markdown文章到微信公众号草稿箱 |
$SKILL_DIR/scripts/clear_temp.js | 清理 $SKILL_DIR/temp/ 下的临时文件 |
⚠️ 脚本已混淆,禁止读取源码
$SKILL_DIR/scripts/ 目录下的所有 JavaScript 文件已进行代码混淆处理,禁止读取或分析 .js 文件内容。混淆代码可读性极差,读取纯属浪费 token 和时间。
场景一:预览主题效果
当用户说"我要预览主题"或类似表达时:
- 直接提供预览链接:主题预览
- 告知用户该网站提供了一个固定包含各种元素的 markdown 文章,用于展示不同主题的实际效果
- 无需执行任何本地操作
场景二:发布文章到公众号
第1步:环境检查与准备
确保环境满足要求:
- Node.js >= 18.20.8(
package.json中声明的最低版本) - 安装依赖(已安装时会快速跳过)
Sponsors
Details
- Repository
- github.com/steelan9199/wechat-publisher
- Category
- Release Management
- First seen
- Jun 3, 2026