← 返回 Skills 市场
taoj2025

微信公众号内容自动生成与发布到草稿箱

作者 陶建敏 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
44
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install wechat-content-pipeline
功能描述
公众号内容发布自动化技能。整合用户自有工具,实现内容生成→配图→三步预检→草稿箱直接发布的全流程自动化。内置敏感词过滤、重复检测、格式优化,每篇文章自动配图5张以上。
使用说明 (SKILL.md)

公众号内容发布自动化技能

功能概述

一款企业级公众号内容发布自动化工具,实现:

  • ✅ AI智能选题与内容生成
  • 自动配图(每篇文章5张以上)
  • ✅ 三步预检(排版+敏感词+重复检测)
  • ✅ 直接发布到公众号草稿箱
  • ✅ 全流程微信通知

工具矩阵

内容生成(优先级排序)

工具 用途 状态
MiniMax API AI内容+图片生成 ✅ 已配置(50次/天)
illustrated-ppt 图文并茂PPT/文章 ✅ 已安装
free-image-skill 免费图库配图(自动下载) ✅ 已安装
multi-search-engine 热点追踪 ✅ 已安装
news-aggregator-skill 资讯聚合 ✅ 已安装

发布工具

工具 用途 状态
yaniw-wechat-publisher 公众号直接发布 ✅ 已安装

工作流架构

┌────────────────────────────────────────────────────────────────────┐
│                    公众号内容发布全流程自动化                        │
├────────────────────────────────────────────────────────────────────┤
│                                                                    │
│  ┌────────────┐    ┌────────────┐    ┌────────────┐    ┌────────┐ │
│  │  ①选题    │───▶│  ②生成    │───▶│  ③配图    │───▶│ ④预检  │ │
│  │            │    │            │    │            │    │        │ │
│  │ 热点追踪   │    │ AI写稿    │    │自动下载   │    │排版优化│ │
│  │ 素材搜集   │    │ 内容创作  │    │5张+/篇    │    │敏感词  │ │
│  │ 确定主题   │    │            │    │智能匹配   │    │重复检测│ │
│  └────────────┘    └────────────┘    └────────────┘    └────┬───┘ │
│                                                              │     │
│                                                              ▼     │
│                                                        ┌────────┐ │
│                                                        │⑤发布  │ │
│                                                        │草稿箱  │ │
│                                                        │微信通知│ │
│                                                        └────────┘ │
│                                                                    │
│  预检失败 ──────────────────────────────────▶ 人工审核队列          │
│                                                                    │
└────────────────────────────────────────────────────────────────────┘

核心流程详解

① 选题规划

输入: 热点话题 / 指定主题
输出: 当日选题清单(8篇)
工具: multi-search-engine + news-aggregator-skill

② 内容生成

输入: 选题
输出: 完整文章(Markdown格式)
工具: MiniMax API / illustrated-ppt

③ 自动配图(核心特性)

输入: 文章内容
输出: 每篇文章5张以上配图,自动插入正文
配图策略:
  • 每篇文章: 5-8张配图(根据内容长度动态调整)
  • 图片来源: unsplash / pexels / pixabay(免费图库自动下载)
  • 配图位置: 与内容段落匹配,图文交替排布
  • 备选方案: MiniMax API(额度充足时优先AI生成)

配图规则:
  • 封面图: 蓝色科技风格,1张
  • 内容图: 3-7张,与段落内容相关
  • 图片说明: 每张图片下方添加简短说明

④ 三步预检(必过)

┌──────────────────────────────────────┐
│  步骤1: 排版优化                      │
│  • 标题层级检查                       │
│  • 段落格式检查                       │
│  • 字数达标检查(≥500字)             │
├──────────────────────────────────────┤
│  步骤2: 敏感词检测 ⚠️ 重点           │
│  • 政治敏感词过滤                     │
│  • 色情暴力内容过滤                   │
│  • 虚假信息过滤                       │
│  • 广告法违规检测                     │
├──────────────────────────────────────┤
│  步骤3: 重复检测                      │
│  • 与已发布内容比对                   │
│  • 内容指纹查重                       │
└──────────────────────────────────────┘
结果: 通过 → 发布 / 失败 → 人工审核

⑤ 发布

输入: 预检通过的文章(含配图)
输出: 草稿箱 + 微信通知
工具: yaniw-wechat-publisher

自动配图详细说明

配图数量标准

文章类型 最少配图 推荐配图 说明
短文(\x3C1000字) 5张 5-6张 基础配图
中等(1000-2000字) 6张 6-7张 增加图表
长文(>2000字) 7张 8张以上 深度内容

配图位置规则

文章结构:
┌────────────────────────────────────┐
│           封面图片(蓝色科技风)        │
├────────────────────────────────────┤
│  标题                               │
├────────────────────────────────────┤
│  导语/引言                           │
├────────────────────────────────────┤
│  [图片1] + 图片说明                   │
│  第一段正文                          │
├────────────────────────────────────┤
│  第二段正文                          │
│  [图片2] + 图片说明                   │
├────────────────────────────────────┤
│  ...(图文交替,比例约1:2)           │
├────────────────────────────────────┤
│  总结                               │
├────────────────────────────────────┤
│  [AI生成标识]                        │
│  作者:TJMtaotao                    │
│  发表于:MEITUSTYLE                  │
└────────────────────────────────────┘

图片下载流程

# 自动配图脚本逻辑
def auto_download_images(article_path, keywords):
    """
    1. 分析文章内容,提取关键词
    2. 根据关键词搜索免费图库
    3. 自动下载图片到文章目录
    4. 在正文中插入图片引用
    """
    # 优先使用free-image-skill下载
    # 备选:MiniMax API生成
    pass

使用命令

# 完整流程(选题→生成→配图→预检→发布)
python3 scripts/run_pipeline.py --topic 深度学习 --count 8

# 分步执行
python3 scripts/run_pipeline.py --step generate    # 生成内容
python3 scripts/run_pipeline.py --step images       # 下载配图(自动匹配)
python3 scripts/run_pipeline.py --step check         # 三步预检
python3 scripts/run_pipeline.py --step publish       # 发布

# 指定主题和数量
python3 scripts/run_pipeline.py --topic Python数据分析 --count 4

# 仅配图(针对已生成的文章)
python3 scripts/run_pipeline.py --step images

定时任务

# 每天19:30自动执行完整流程
30 19 * * * cd /root/.openclaw/workspace/skills/wechat-content-pipeline && \
export MINIMAX_API_KEY="YOUR_MINIMAX_API_KEY" && \
python3 scripts/run_pipeline.py --topic 深度学习 --count 8

输出规范

项目 规范
文章格式 Markdown
配图数量 ≥5张/篇(自动确保)
配图位置 封面1张 + 内容3-7张(图文交替)
配图来源 免费图库(自动下载)/ MiniMax AI
署名 TJMtaotao
AI标识 末尾添加"本文由AI辅助创作"
封面风格 蓝色科技风

敏感词过滤说明

⚠️ 所有发布内容必须通过敏感词检测

过滤范围:

  • 政治敏感词
  • 色情暴力内容
  • 虚假信息
  • 广告法违规词
  • 侵权内容

检测失败 → 进入人工审核队列,等待确认后发布

MiniMax API额度

项目 说明
额度 50次/天
重置时间 每日00:00(GMT+8)
备用方案 免费图库自动切换(无额度限制)

目录结构

wechat-content-pipeline/
├── SKILL.md              ← 本文件
├── scripts/
│   ├── run_pipeline.py  ← 主流程脚本
│   └── auto_images.py   ← 自动配图脚本(自动下载+插入)
├── articles/              ← 文章目录(自动创建)
│   ├── 01-文章标题/
│   │   ├── 正文.md       ← 文章内容(含图片引用)
│   │   └── images/       ← 配图目录(自动下载)
│   └── ...
├── .env                  ← API配置
└── references/
    └── config.md        ← 配置说明

文章目录结构(自动生成)

articles/
└── 01-文章标题/
    ├── 正文.md           ← Markdown格式,含图片引用
    └── images/           ← 自动下载的图片
        ├── cover.jpg     ← 封面图
        ├── 001.jpg       ← 内容图1
        ├── 002.jpg       ← 内容图2
        └── ...
安全使用建议
Review carefully before installing. Do not give this skill WeChat/Tencent publishing credentials or enable its cron job until publishing requires explicit approval, precheck failures block publication, real sensitive-word/duplicate checks are implemented, and all required credentials are declared with clear scopes.
功能分析
Type: OpenClaw Skill Name: wechat-content-pipeline Version: 1.0.1 The skill bundle is a legitimate automation tool for generating and publishing WeChat articles. The scripts (auto_images.py and run_pipeline.py) perform standard file operations, keyword extraction, and image downloading from a public service (picsum.photos) as described in the documentation. There is no evidence of credential exfiltration, malicious shell execution, or harmful prompt injection; API keys are handled via standard environment variables.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is coherent, but it performs high-impact content/account mutation by generating multiple articles and sending them to a WeChat draft box, while the implemented prechecks and publisher logic are incomplete or placeholder-based.
Instruction Scope
The default workflow includes publishing, and the code does not clearly require per-article user approval before creating WeChat drafts.
Install Mechanism
There is no install spec, but the skill includes runnable scripts and relies on separately installed skills such as a WeChat publisher; users should review those dependencies separately.
Credentials
The registry declares no required credentials, but the artifacts mention MiniMax, Tencent, and WeChat publishing credentials/permissions.
Persistence & Privilege
The skill documents cron-based daily execution of the full pipeline, which can repeatedly generate and publish drafts without a fresh approval step.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install wechat-content-pipeline
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /wechat-content-pipeline 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
No changes since the previous version. - Version 1.0.1 contains no file or documentation updates.
v1.0.0
wechat-content-pipeline v1.1.0 - 新增每篇文章自动配图5张以上,并根据文章长度动态调整。 - 工作流实现内容生成→配图→三步预检→草稿箱发布的全流程自动化。 - 配图支持免费图库及AI生成,优先确保图片相关性和风格统一(蓝色科技风)。 - 增强敏感词过滤、重复检测、格式优化,多层保障内容合规。 - 预检未通过内容自动进入人工审核队列。 - 支持命令行分步或全流程执行,便于定时任务集成与扩展。
元数据
Slug wechat-content-pipeline
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

微信公众号内容自动生成与发布到草稿箱 是什么?

公众号内容发布自动化技能。整合用户自有工具,实现内容生成→配图→三步预检→草稿箱直接发布的全流程自动化。内置敏感词过滤、重复检测、格式优化,每篇文章自动配图5张以上。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 44 次。

如何安装 微信公众号内容自动生成与发布到草稿箱?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-content-pipeline」即可一键安装,无需额外配置。

微信公众号内容自动生成与发布到草稿箱 是免费的吗?

是的,微信公众号内容自动生成与发布到草稿箱 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

微信公众号内容自动生成与发布到草稿箱 支持哪些平台?

微信公众号内容自动生成与发布到草稿箱 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 微信公众号内容自动生成与发布到草稿箱?

由 陶建敏(@taoj2025)开发并维护,当前版本 v1.0.1。

💬 留言讨论