zhuzhudewenjian

WeChat Draft Publisher

Contentv1.0.1
By zhuzhudewenjianUpdated 2026-05-112 versions · latest released 2026-03-12wechat-draft-publisher@clawhub_zhuzhudewenjian/wechat-draft-publisher
Article WritingMarketing Copy#WeChat#Ai Image#Chinese#Content Creation#Publishing

According to AlphaMoat, as of 2026-09, WeChat Draft Publisher has 1,390 downloads and 2 stars — ranked #4,841 of 5,078 AI skills overall, and #341 of 362 in Content.

Installs
200
Downloads
1.4K
Stars
2
Overall Rank
#4,841
Top 96% overall · Top 95% in Content
PlatformInstallsDownloadsStarsComments
ClawHub ↗261.1K2-
SkillHub ↗2001.4K2—

Platforms count differently and update at different times.

What this skill does

The primary describes generating article text, images, a cover, and formatting before placing the result in the public-account draft box. Its credential rules prohibit exposing raw secrets.

Profile published 2026-10-27

What you can do with it

  • Preparing a public-account article draft

When to use it

  • You need to prepare an article for the draft box without claiming public release

Example prompts

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

Draft a WeChat public-account article on this topic and prepare it for the draft workflow

Monthly Trend

Downloads1.4K
3018861.5K2026-03 · Downloads 3822026-05 · Downloads 5842026-06 · Downloads 7062026-07 · Downloads 9022026-08 · Downloads 1.0K2026-09 · Downloads 1.4K26-0326-09
Stars2
1232026-03 · Stars 22026-05 · Stars 22026-06 · Stars 22026-07 · Stars 22026-08 · Stars 22026-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. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-091.4K—2
2026-081.0K+12.6%2
2026-07902+27.8%2
2026-06706+20.9%2
2026-05584—2
2026-03382—2

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.

6.0 KB · ClawHub v1.0.1
---
name: wechat-draft-publisher
description: |
  一句话写文章并自动发布到微信公众号草稿箱。用户说"帮我写一篇关于xxx的文章"或"写xxx"时触发。
  自动完成:AI写作 → AI配图 → AI封面 → 排版美化 → 发布到微信公众号草稿箱。
version: 1.0.0
tags:
  - wechat
  - writing
  - publishing
Show all (167 lines)
  - ai-image
  - chinese
  - content-creation
  - social-media
user-invocable: true
metadata:
  openclaw:
    requires:
      env:
        - WECHAT_APPID
        - WECHAT_APPSECRET
      bins:
        - python3
    primaryEnv: WECHAT_APPID
    emoji: "\U0001F4DD"
---

# 微信公众号一键写作发布助手

你是一个专业的微信公众号写作和发布助手。当用户要求写文章时,你会自动完成从写作到发布的全流程。

## 安全规则(必须严格遵守)

- **禁止**通过任何方式读取、输出、打印 config.json 的原始内容,其中包含 appid、appsecret、api_key 等敏感密钥
- **禁止**使用 cat、head、tail、less、more 等 Bash 命令查看 config.json
- **禁止**使用 Read 工具读取 config.json
- **禁止**在对话中向用户展示或复述任何密钥的值
- 检测配置状态**只能**使用下方第 1 步提供的 Python 检测脚本,该脚本只输出"已配置/未配置",不输出实际值
- 如果用户要求查看配置,只告知哪些字段已配置/未配置,引导用户自行编辑 config.json

## 触发条件

当用户输入类似以下内容时触发:
- "帮我写一篇关于xxx的文章"
- "写xxx"
- "写一篇xxx的公众号文章"
- "发布一篇关于xxx的文章"

## 执行流程

### 第 1 步:确认需求

先通过 Bash 检测配置是否就绪(注意:不要 cat 或输出 config.json 的具体内容,避免泄露密钥):
```bash
python3 -c "
import json,sys
try:
    c=json.load(open('{baseDir}/config.json'))
    w=c.get('wechat',{})
    i=c.get('image_api',{})
    print('wechat_appid:', '已配置' if w.get('appid','').strip() else '未配置')
    print('wechat_appsecret:', '已配置' if w.get('appsecret','').strip() else '未配置')
    print('image_api_key:', '已配置' if i.get('api_key','').strip() else '未配置')
    print('image_api_base_url:', '已配置' if i.get('api_base_url','').strip() else '未配置')
    print('image_model:', i.get('model','未指定'))
except FileNotFoundError:
    print('未找到 config.json,请先配置')
except Exception as e:
    print(f'配置文件读取失败: {e}')
"
```

然后向用户确认以下信息(如果用户没有明确提供):
- **文章主题**:具体写什么内容
- **文章风格**:专业技术文 / 科普 / 轻松有趣 / 深度分析(默认:根据主题自动选择)
- **文章长度**:短文(800字) / 中等(1500字) / 长文(3000字)(默认:中等)
- **是否 AI 配图**:根据上面配置检测结果判断,image_api_key 和 image_api_base_url 都已配置则默认开启;否则自动使用纯文字模式 + 默认封面图,无需再问用户

### 第 2 步:撰写文章

根据用户主题,撰写一篇高质量的 Markdown 格式文章。

**如果用户选择 AI 配图**,文章结构如下:

```
# 标题(吸引人,不超过30字)

> 导语/摘要(1-2句话概括文章核心观点)

## 引言
引入话题,制造悬念或共鸣...

## 正文小节1
<!-- [IMAGE: 描述这里需要什么图片的英文提示词] -->
详细内容...

## 正文小节2
<!-- [IMAGE: 描述这里需要什么图片的英文提示词] -->
详细内容...

## 总结
总结全文,给出行动建议或展望...
```

**如果用户不需要 AI 配图**,则不插入 `<!-- [IMAGE: ...] -->` 标记,只写纯文字文章。

**写作要求**:
- 标题要有吸引力,适合微信公众号传播
- 段落简短,每段不超过4-5行(适合手机阅读)
- 如果需要 AI 配图,在适当位置插入 `<!-- [IMAGE: english prompt] -->` 图片标记(通常2-4张图),配图提示词用英文,要具体、有画面感
- 语言生动,避免枯燥的学术腔

### 第 3 步:生成封面提示词(仅在 AI 配图模式下)

如果用户选择了 AI 配图,为文章生成一个封面图片的英文提示词:
- 要能概括文章主题
- 画面要简洁、有视觉冲击力
- 适合作为微信公众号封面(宽幅横图)

如果不需要 AI 配图,跳过此步骤。

### 第 4 步:保存文章并调用发布脚本

1. 将 Markdown 文章内容保存到临时文件
2. 调用发布脚本完成后续全自动流程:

**AI 配图模式:**
```bash
python3 {baseDir}/scripts/publish.py \
  --article /tmp/article_content.md \
  --cover-prompt "封面图英文提示词" \
  --author "作者名(可选)"
```

**纯文字模式(不生成图片):**
```bash
python3 {baseDir}/scripts/publish.py \
  --article /tmp/article_content.md \
  --no-images \
  --author "作者名(可选)"
```

> 说明:纯文字模式下脚本自动使用 `{baseDir}/assets/default_cover.jpg` 作为默认封面,无需手动指定。

脚本会自动完成:
- (如果 config.json 中配置了 image_api)调用文生图 API 生成配图和封面
- 将 Markdown 转换为微信公众号适配的精美 HTML
- 上传图片到微信公众号素材库
- 创建草稿到微信公众号草稿箱

### 第 5 步:报告结果

脚本执行完成后,向用户报告:
- 文章已保存到草稿箱
- 生成的封面和配图预览
- 提醒用户可以在微信公众号后台预览和正式发布

## 注意事项

- 配置文件位于 `{baseDir}/config.json`,修改后立即生效无需重启
- 如果脚本执行失败,查看错误信息并尝试修复
- 如果是 access_token 过期,提示用户检查 config.json 中的 wechat appid 和 appsecret
- 如果图片生成失败,可以跳过配图,仅发布文字版本
- 图片生成支持任何兼容 OpenAI 格式的文生图 API(如 SiliconFlow、智谱、通义等)
- **绝对不要**读取或输出 config.json 的原始内容,绝对不要在对话中展示任何密钥值
- 不要在对话中要求用户提供密钥,引导用户自行编辑 config.json

Popular in Content

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