wechat-publisher
Skill1 starsChanged 6 months agoMITView on GitHub
一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传。
- Installs packages
11 other projects use a version of this.
Adopted by
Most recently taken up by
- Kianzzz/Zhouxing-skill-publictheir own version, first seen Nov 8, 2026
- antonailog/skillstheir own version, first seen Nov 1, 2026
- YiShu5/claude-skillstheir own version, first seen Sep 20, 2026
- Zhangs-11/zs-skillstheir own version, first seen Aug 12, 2026
- peterpanstechland/wechat-publisher-skilltheir own version, first seen Jul 13, 2026
- zrt-ai-lab/opencode-skillstheir own version, first seen Jul 13, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- zrt-ai-lab/opencode-skills★ 277same name
- wpsnote/wpsnote-skills★ 184same name
- YiShu5/claude-skills★ 131same name
- kaiye/skills★ 19same name
- Kianzzz/Zhouxing-skill-public★ 4same name
- Aias00/agent-skills★ 2same name
- Zhangs-11/zs-skills★ 2same name
- antonailog/skills★ 1same name
- StanleyChanH/WeChat-Publisher-Skill★ 1same name
- peterpanstechland/wechat-publisher-skill★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- aihotSkill
- aliyun-askSkill
- andywah-writerSkill
- aws-askSkill
- generate-wechat-themeSkill
- hot-monitorSkill
- khazix-writerSkill
- neat-freakSkill
- Self-Improving + Proactive AgentSkill
- skill-vetterSkill
- tencent-askSkill
The file
Files
一键发布 Markdown 文章到微信公众号草稿箱
基于 wenyan-cli 封装的 skill。
功能
- ✅ Markdown 自动转换为微信公众号格式
- ✅ 自动上传图片到微信图床
- ✅ 一键推送到草稿箱
- ✅ 多主题支持(代码高亮、Mac 风格代码块)
- ✅ 支持本地和网络图片
快速开始
1. 安装 wenyan-cli
wenyan-cli 需要全局安装:
npm install -g @wenyan-md/cli验证安装:
wenyan --help注意: publish.sh 脚本会自动检测并安装 wenyan-cli(如果未安装)
2. 配置 API 凭证
API 凭证已保存在 /Users/leebot/.openclaw/workspace/TOOLS.md
确保环境变量已设置:
export WECHAT_APP_ID=your_wechat_app_id
export WECHAT_APP_SECRET=your_wechat_app_secret重要: 确保你的 IP 已添加到微信公众号后台的白名单!
配置方法:https://yuzhi.tech/docs/wenyan/upload
3. 准备 Markdown 文件
文件顶部必须包含完整的 frontmatter(wenyan 强制要求):
---
title: 在本地跑一个大语言模型(2) - 给模型提供外部知识库
cover: /Users/xxx/image.jpg
author: xxx
source_url: http://
---
# 正文开始
你的内容...⚠️ 关键发现(实测):
- 每篇 Markdown 顶部都需要包含完整 frontmatter:
title、cover、author、source_url title和cover都是必填字段,缺少任何一个都会报错:"未能找到文章封面"- 虽然文档说"正文有图可省略cover",但实际测试必须提供 cover
- 所有图片(本地/网络)都会自动上传到微信图床
推荐封面图来源:
# 方案1: 相对路径(推荐,便于分享)
cover: ./assets/default-cover.jpg
# 方案2: 绝对路径
cover: /Users/bruce/photos/cover.jpg
# 方案3: 网络图片
cover: https://your-cdn.com/image.jpg💡 提示: 使用相对路径时,从 Markdown 文件所在目录开始计算。
4. 发布文章
方式 1: 使用 publish.sh 脚本
cd /Users/leebot/.openclaw/workspace/wechat-publisher
./scripts/publish.sh /path/to/article.md方式 2: 直接使用 wenyan-cli
wenyan publish -f article.md -t lapis -h solarized-light方式 3: 在 OpenClaw 中使用
"帮我发布这篇文章到微信公众号" + 附带 Markdown 文件路径主题选项
wenyan-cli 支持多种主题:
内置主题:
default- 默认主题lapis- 青金石(推荐)phycat- 物理猫- 更多主题见:https://github.com/caol64/wenyan-core/tree/main/src/assets/themes
代码高亮主题:
atom-one-dark/atom-one-lightdraculagithub-dark/githubmonokaisolarized-dark/solarized-light(推荐)xcode
使用示例:
# 使用 lapis 主题 + solarized-light 代码高亮
wenyan publish -f article.md -t lapis -h solarized-light
# 使用 phycat 主题 + GitHub 代码高亮
wenyan publish -f article.md -t phycat -h github
# 关闭 Mac 风格代码块
wenyan publish -f article.md -t lapis --no-mac-style
# 关闭链接转脚注
wenyan publish -f article.md -t lapis --no-footnote自定义主题
临时使用自定义主题
wenyan publish -f article.md -c /path/to/custom-theme.css安装自定义主题(永久)
# 从本地文件安装
wenyan theme --add --name my-theme --path /path/to/theme.css
# 从网络安装
wenyan theme --add --name my-theme --path https://example.com/theme.css
# 使用已安装的主题
wenyan publish -f article.md -t my-theme
# 删除主题
wenyan theme --rm my-theme列出所有主题
wenyan theme -l工作流程
- 准备内容 - 用 Markdown 写作
- 运行脚本 - 一键发布到草稿箱
- 审核发布 - 到公众号后台审核并发布
Markdown 格式要求
必需的 Frontmatter
⚠️ 关键(实测结果):wenyan-cli 强制要求完整的 frontmatter!
---
title: 在本地跑一个大语言模型(2) - 给模型提供外部知识库
cover: /Users/xxx/image.jpg
author: xxx
source_url: http://
---示例 1:相对路径(推荐)
---
title: 我的技术文章
cover: ./assets/cover.jpg
author: xxx
source_url: http://
---
# 正文...示例 2:绝对路径
---
title: 我的技术文章
cover: /Users/bruce/photos/cover.jpg
author: xxx
source_url: http://
---
# 正文...示例 3:网络图片
---
title: 我的技术文章
cover: https://example.com/cover.jpg
author: xxx
source_url: http://
---
# 正文...Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

