Wechat Publisher

一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传。

49 stars 8 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add 0731coderlee-sudo/wechat-publisher --skill wechat-publisher
Manual install
git clone --depth 1 https://github.com/0731coderlee-sudo/wechat-publisher.git /tmp/wechat-publisher
mkdir -p ~/.claude/skills
cp -r /tmp/wechat-publisher/. ~/.claude/skills/wechat-publisher

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# wechat-publisher

**一键发布 Markdown 文章到微信公众号草稿箱**

基于 [wenyan-cli](https://github.com/caol64/wenyan-cli) 封装的 OpenClaw skill。

## 功能

- ✅ Markdown 自动转换为微信公众号格式
- ✅ 自动上传图片到微信图床
- ✅ 一键推送到草稿箱
- ✅ 多主题支持(代码高亮、Mac 风格代码块)
- ✅ 支持本地和网络图片

## 快速开始

### 1. 安装 wenyan-cli

**wenyan-cli 需要全局安装:**

```bash
npm install -g @wenyan-md/cli
```

**验证安装:**
```bash
wenyan --help
```

> **注意:** publish.sh 脚本会自动检测并安装 wenyan-cli(如果未安装)

### 2. 配置 API 凭证

API 凭证已保存在 `/Users/leebot/.openclaw/workspace/TOOLS.md`

确保环境变量已设置:
```bash
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 强制要求):

```markdown
---
title: 文章标题(必填!)
cover: https://example.com/cover.jpg  # 封面图(必填!)
---

# 正文开始

你的内容...
```

**⚠️ 关键发现(实测):**
- `title` 和 `cover` **都是必填字段**!
- 缺少任何一个都会报错:"未能找到文章封面"
- 虽然文档说"正文有图可省略cover",但实际测试必须提供 cover
- 所有图片(本地/网络)都会自动上传到微信图床

**推荐封面图来源:**
```markdown
# 方案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 脚本**
```bash
cd /Users/leebot/.openclaw/workspace/wechat-publisher
./scripts/publish.sh /path/to/article.md
```

**方式 2: 直接使用 wenyan-cli**
```bash
wenyan publish -f article.md -t lapis -h solarized-light
```

**方式 3: 在 OpenClaw 中使用**
Read the full skill on GitHub

Details

Skill name
wechat-publisher
License
MIT
Repo updated
5 February 2026
Copies
Found in 3 GitHub repos

FAQ

What does the Wechat Publisher skill do?

一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传。

How do I install the Wechat Publisher skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add 0731coderlee-sudo/wechat-publisher --skill wechat-publisher. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Wechat Publisher popular?

It lives in 0731coderlee-sudo/wechat-publisher, which has 49 GitHub stars and 8 forks.

Related skills

Code Map

110

microsoft/cat-agent-skills

Maps drafted time entries to the client phase and task codes with the deterministic code_map engine and flags submitted-code mismatches with citations; it recommends codes only. Use it after narrative-draft and before guideline-check when the user asks "what code should this entry use?", "map my time to billing codes", "is this task code wrong?", "check my phase and task codes" or "recommend phase codes for my entries". Do NOT use for gathering activity (use activity-pull), narrative wording (use narrative-draft), overall compliance or rejection risk (use guideline-check), recoding entries in

Software Development122

Tw Ecom Logistics Cvs

248

asgard-ai-platform/skills

Ship via Taiwan convenience store pickup (7-11 賣貨便 / 全家 / 萊爾富 / OK) — store selection API, shipping-label format, pickup SLA, COD reconciliation, return shipping. Use when setting up CVS 超取 on a TW store, choosing which chains to support, or debugging label printing. Do NOT use for home delivery or cross-border. STATUS: SKELETON — body pending.

Software Development30

Coding Rationale

110

microsoft/cat-agent-skills

Assembles the cited documentation evidence for the visit level and diagnosis codes already on the claim and flags every element the note does not support. If asked to change, pick or upgrade a code it still builds the rationale and declines the change. Use when the user says "why is this coded 99214?", "does the note support this diagnosis?", "build the coding rationale", "what backs up this claim?" or "the coder is asking for the evidence". Do NOT use for quality-measure status - use quality-gap-check instead; do NOT use for documentation drafting - use document-derive instead; do NOT use to

Software Development122

Tw Ecom Dtc Shopline

248

asgard-ai-platform/skills

Integrate and operate Shopline in Taiwan e-commerce context via mcp-shopline. Use when the user needs to sync orders, manage products, run promotions, or reconcile inventory on Shopline stores; when comparing Shopline vs 91APP/Shopify for Taiwan DTC; or when debugging async write propagation. Do NOT use for API schema lookup (go to mcp-shopline docs) or non-Taiwan Shopline deployments.

Software Development30

Deadline Track

110

microsoft/cat-agent-skills

Deterministic engine: calculates the appeal deadline and days remaining from today, flags urgent and expired deadlines on every queued claim, ranks the queue by deadline then recoverable value, and enforces the coding-integrity boundary. Use when asked "when is this appeal due", "how many days do we have left", "which denial should we work first", "can we recode this to a 99215 and refile", "that payer isn't in our config, just use 30 days". Run before appeal-draft and again as the last step of every run. Do NOT use for drafting the letter - use appeal-draft instead; do NOT use for gathering e

Software Development122

Tech API Integration

248

asgard-ai-platform/skills

Guide REST API integration including HTTP methods, authentication, error handling, and rate limiting. Use this skill when the user needs to connect to a third-party API, design an API client, troubleshoot API errors, or understand API concepts — even if they say 'connect to this API', 'why is the API returning errors', 'how do I authenticate', or 'build an API integration'.

Software Development30

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.