XiaoZuoOvO

Wechat HTML Publisher

Contentv1.0.2
By XiaoZuoOvOUpdated 2026-05-112 versions · latest released 2026-03-12wechat-html-publisher@clawhub_zuo-wentao/wechat-html-publisher
Article WritingSocial Media#WeChat#微信

According to AlphaMoat, as of 2026-09, Wechat HTML Publisher has 1,156 downloads and 2 stars — ranked #4,959 of 5,078 AI skills overall, and #349 of 362 in Content.

Installs
189
Downloads
1.2K
Stars
2
Overall Rank
#4,959
Top 98% overall · Top 97% in Content
PlatformInstallsDownloadsStarsComments
ClawHub ↗291.1K1-
SkillHub ↗1891.2K2—

Platforms count differently and update at different times.

What this skill does

Reads formatted HTML, uploads the cover and local or remote images, replaces their URLs and returns a draft media_id. Requires an HTML file, title and cover. Styles must be inline; style blocks and external CSS are unsupported. Delivery ends in the draft box and does not establish public publication.

Profile published 2026-10-26

What you can do with it

  • Synchronize a WeChat draft with an existing HTML layout

When to use it

  • When article HTML, a title and cover are ready

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Upload this HTML and cover as a WeChat account draft

Requirements

Compiled from what the skill’s documentation declares; not verified by installing or running it.

Authentication notes
Set WECHAT_APP_ID and WECHAT_APP_SECRET, and whitelist the server IP in the account.
Configuration
  • Requires Python. Images must have supported formats, be no larger than 2MB and be accessible at their paths.

Monthly Trend

Downloads1.2K
3727931.2K2026-03 · Downloads 4302026-05 · Downloads 6772026-06 · Downloads 7842026-07 · Downloads 9542026-08 · Downloads 1.0K2026-09 · Downloads 1.2K26-0326-09
Stars2
0122026-03 · Stars -2026-05 · Stars -2026-06 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 226-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-091.2K—2
2026-081.0K+7.1%1
2026-07954+21.7%1
2026-06784+15.8%1
2026-05677—-
2026-03430—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

4.6 KB · ClawHub v1.0.2
---
name: wechat-html-publisher
description: "直接上传HTML富文本到微信公众号草稿箱。支持完整的HTML格式,无需Markdown转换。"
metadata:
  {
    "openclaw":
      {
        "emoji": "📄",
      },
  }
Show all (200 lines)
---

# wechat-html-publisher

**直接上传HTML富文本到微信公众号草稿箱**

与 wechat-publisher 不同,本skill直接上传HTML格式,无需Markdown转换。适合已经有完整HTML排版的文章。

## 功能

- ✅ 直接上传HTML富文本
- ✅ 自动上传HTML中的图片到微信图床
- ✅ 支持本地和网络图片
- ✅ 一键推送到草稿箱
- ✅ 无需Markdown转换

## 快速开始

### 1. 配置API凭证

确保环境变量已设置:
```bash
export WECHAT_APP_ID= YOU_WECHAT_APP_ID
export WECHAT_APP_SECRET= YOU_WECHAT_APP_SECRET
```

**重要:** 确保你的IP已添加到微信公众号后台的白名单!

### 2. 准备HTML文件

HTML文件需要包含完整的样式(内联样式):

```html
<section>
  <h1 style="color: #333; font-size: 24px;">文章标题</h1>
  <p style="line-height: 1.8;">文章内容...</p>
  <img src="./images/photo.jpg" style="width: 100%;">
</section>
```

**注意:**
- 必须使用内联样式(style属性)
- 不支持`<style>`标签或外部CSS
- 图片会自动上传到微信图床

### 3. 发布文章

**使用脚本:**
```bash
python scripts/publish_html.py \
  --file article.html \
  --title "文章标题" \
  --cover ./cover.jpg
```

**参数说明:**
- `--file`: HTML文件路径(必填)
- `--title`: 文章标题(必填)
- `--cover`: 封面图路径(必填)
- `--author`: 作者名称(可选)
- `--digest`: 文章摘要(可选)
- `--source-url`: 原文链接(可选)

## 使用示例

### 示例1: 基本用法
```bash
python scripts/publish_html.py \
  --file my-article.html \
  --title "2026年税务新政解读" \
  --cover ./cover.jpg
```

### 示例2: 完整参数
```bash
python scripts/publish_html.py \
  --file my-article.html \
  --title "2026年税务新政解读" \
  --cover ./cover.jpg \
  --author "慧评税" \
  --digest "详细解读2026年最新税务政策" \
  --source-url "https://example.com/article"
```

### 示例3: 网络封面图
```bash
python scripts/publish_html.py \
  --file my-article.html \
  --title "文章标题" \
  --cover "https://example.com/cover.jpg"
```

## HTML格式要求

### 1. 必须使用内联样式
```html
<!-- ✅ 正确 -->
<p style="color: #333; font-size: 16px;">内容</p>

<!-- ❌ 错误 -->
<style>
  p { color: #333; }
</style>
<p>内容</p>
```

### 2. 图片支持
- ✅ 本地路径: `<img src="./images/photo.jpg">`
- ✅ 绝对路径: `<img src="/Users/user/photo.jpg">`
- ✅ 网络图片: `<img src="https://example.com/photo.jpg">`

所有图片会自动上传到微信图床并替换URL!

### 3. 推荐的HTML结构
```html
<section>
  <section style="text-align: center;">
    <h1 style="font-size: 24px; color: #333;">标题</h1>
  </section>
  
  <section style="margin: 20px 0;">
    <p style="line-height: 1.8; color: #666;">正文内容...</p>
  </section>
  
  <section>
    <img src="./image.jpg" style="width: 100%; display: block;">
  </section>
</section>
```

## 工作流程

1. **读取HTML** - 读取HTML文件内容
2. **上传封面** - 上传封面图到微信图床
3. **处理图片** - 解析HTML中的图片,上传并替换URL
4. **调用API** - 调用微信draft/add接口
5. **返回结果** - 返回草稿media_id

## 与wechat-publisher的区别

| 特性 | wechat-publisher | wechat-html-publisher |
|------|------------------|----------------------|
| 输入格式 | Markdown | HTML |
| 样式转换 | 自动应用主题 | 使用原有样式 |
| 适用场景 | 写作发布 | 已有HTML排版 |
| 依赖 | wenyan-cli | 仅Python |

## 故障排查

### 1. IP不在白名单
**错误:** `ip not in whitelist`

**解决:**
1. 获取公网IP: `curl ifconfig.me`
2. 添加到微信公众号后台白名单

### 2. 图片上传失败
**错误:** `invalid image`

**解决:**
- 检查图片格式(支持jpg, png, gif)
- 检查图片大小(不超过2MB)
- 确保图片路径正确

### 3. HTML格式错误
**错误:** `invalid content`

**解决:**
- 确保使用内联样式
- 移除`<style>`标签
- 检查HTML是否闭合

## 参考资料

- 微信公众号API文档: https://developers.weixin.qq.com/doc/offiaccount/
- 草稿箱接口: https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Add_draft.html
- 素材管理接口: https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html

## 更新日志

### 2026-03-09 - v1.0.0
- ✅ 初始版本
- ✅ 支持HTML直接上传
- ✅ 自动图片上传
- ✅ 命令行工具

## License

MIT License

Popular in Content

文章去AI味工具Content

去除文本中的AI写作痕迹,让文字读起来更像人类写作。当用户要求'去AI味'、'降AI味'、'让回复更像人话'、'润色'、'改写得更自然'时使用。检测并修复:AI高频词汇、过度结构化、虚假客观性、机械化连接词、完美主义陷阱、公式化结尾、过度修饰、情感缺失、'不是而是'假靶子/同义替换、莫名其妙的比喻、高频堆叠副词等问题。

↓ 377.3K★ 688user_ab5ae6ee
HumanizerContent

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.

↓ 319.6K★ 1.1KB*T
humanizer-zhContent

去除文本中的 AI 生成痕迹。适用于编辑或审阅文本,使其听起来更自然、更像人类书写。 基于维基百科的"AI 写作特征"综合指南。检测并修复以下模式:夸大的象征意义、 宣传性语言、以 -ing 结尾的肤浅分析、模糊的归因、破折号过度使用、三段式法则、 AI 词汇、否定式排比、过多的连接性短语。

↓ 105.1K★ 103liuxy951129-cpu
公众号热门文章查询Content

公众号搜索工具,支持按关键词搜索爆款文章,展示推荐热门文章,助力内容创作者把握趋势与获取灵感;当用户需要搜索公众号文章、查找爆款内容、获取创作灵感时使用

↓ 72.5K★ 118user_5f9c21aa
抖音文案一键提取Content

粘贴抖音、快手、小红书、视频号公开可访问的短视频分享链接,一键提取标题、简介、口播文案,提供原版、优化朗读版、精简浓缩版,并支持违禁敏感词提醒与口播时长参考,排版整洁纯净,一键复制即用。

↓ 61.9K★ 183user_a41ae6c8
一键去AI味工具Content

去除文本中的AI写作痕迹,让文字读起来更像人类写作。当用户要求'去AI味'、'降AI味'、'让回复更像人话'、'润色'、'改写得更自然'时使用。检测并修复:AI高频词汇、过度结构化、虚假客观性、机械化连接词、完美主义陷阱、公式化结尾、过度修饰、情感缺失、'不是而是'假靶子/同义替换、莫名其妙的比喻、高频堆叠副词等问题。

↓ 48.4K★ 55user_ab5ae6ee
番茄小说写作助手(单章2200-2800字)Content

|专为番茄小说平台优化的分章节创作助手。支持各种题材(悬疑/言情/奇幻/科幻/历史等),支持长篇创作,每章2200-2800字,结尾设置悬念钩子。强化情绪拉扯、爆点分布、开篇黄金三行、评论区诱导,深度润色去除AI痕迹。 当用户要求:写番茄小说、创作网文、分章节写作、连续剧情、章节悬念、长篇小说时使用。

↓ 45.3K★ 347user_634bbcdc
Marketing SkillsContent

Bundle a set of marketing playbooks into one skill and route each request to the module that fits.

↓ 39.5K★ 158Jordan Chops

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.