Search

PythonReactSEOPDF
OpenClaw

channel

WeChat Official Account Draft Box management tool. Create and manage graphic draft articles via WeChat API, supporting text and images. Automatically extracts the first paragraph as summary. Supports draft creation, listing, publishing, and deletion.

alphafactor0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install alphafactor/channel

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

微信公众号草稿箱管理

通过微信公众号 API 管理草稿箱内容,支持创建图文消息、上传图片、发布文章。

功能特性

  • 📝 图文草稿 - 创建带格式的图文消息
  • 🖼️ 图片支持 - 自动上传正文和封面图片
  • 🎨 自动封面 - 未提供封面时自动生成默认封面图(蓝紫色渐变)
  • 📋 自动摘要 - 正文第一段自动提取为文章摘要
  • 📊 草稿管理 - 查看、发布、删除草稿
  • 🔗 发布接口 - 支持通过 API 发布(需权限)

前提条件

1. 微信公众号认证
  • 拥有一个微信公众号(订阅号或服务号)
  • 完成微信认证(部分接口需要)
2. 获取开发者凭证
  1. 登录 微信公众平台
  2. 开发 → 基本配置 → 开发者ID
  3. 获取 AppID 和 AppSecret
  4. 添加服务器 IP 到白名单
3. 配置环境变量
# 添加到 ~/.zshrc
export WECHAT_APPID="your-app-id"
export WECHAT_APPSECRET="your-app-secret"

然后执行:

source ~/.zshrc

使用方法

创建草稿

基础用法(自动生成封面图):

python3 scripts/channel.py create "文章标题" "这里是正文内容..."

从文件读取正文(自动生成封面图):

python3 scripts/channel.py create "文章标题" --file article.txt

带自定义封面图:

python3 scripts/channel.py create "文章标题" "正文内容..." --cover cover.jpg

禁止自动生成封面图:

python3 scripts/channel.py create "文章标题" "正文..." --no-auto-cover

设置作者:

python3 scripts/channel.py create "文章标题" "正文..." --author "张三"
正文格式

纯文本:

python3 scripts/channel.py create "标题" "这是正文内容,支持换行。\n\n第二段内容..."

带图片(Markdown 格式):

python3 scripts/channel.py create "标题" "正文\n\n!<span class=\"image\"><span>描述</span></span>(/path/to/image.jpg)\n\n更多内容..."

HTML 格式:

python3 scripts/channel.py create "标题" "<p>正文</p><img src='url' />"
查看草稿列表
# 列出最近 20 篇
python3 scripts/channel.py list

# 列出最近 50 篇
python3 scripts/channel.py list --limit 50

输出示例:

📝 草稿列表 (3 篇):

序号   M...

Source information

Source
github
Repository
openclaw/skills
Path
skills/alphafactor/channel
Version
—
Commit
735e7773a65aa24ddfaa766f75c720e08215f0f5
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 微信公众号草稿箱管理

通过微信公众号 API 管理草稿箱内容,支持创建图文消息、上传图片、发布文章。

## 功能特性

- 📝 **图文草稿** - 创建带格式的图文消息
- 🖼️ **图片支持** - 自动上传正文和封面图片
- 🎨 **自动封面** - 未提供封面时自动生成默认封面图(蓝紫色渐变)
- 📋 **自动摘要** - 正文第一段自动提取为文章摘要
- 📊 **草稿管理** - 查看、发布、删除草稿
- 🔗 **发布接口** - 支持通过 API 发布(需权限)

## 前提条件

### 1. 微信公众号认证

- 拥有一个微信公众号(订阅号或服务号)
- 完成微信认证(部分接口需要)

### 2. 获取开发者凭证

1. 登录 [微信公众平台](https://mp.weixin.qq.com)
2. 开发 → 基本配置 → 开发者ID
3. 获取 **AppID** 和 **AppSecret**
4. 添加服务器 IP 到白名单

### 3. 配置环境变量

```bash
# 添加到 ~/.zshrc
export WECHAT_APPID="your-app-id"
export WECHAT_APPSECRET="your-app-secret"
```

然后执行:
```bash
source ~/.zshrc
```

## 使用方法

### 创建草稿

**基础用法(自动生成封面图):**
```bash
python3 scripts/channel.py create "文章标题" "这里是正文内容..."
```

**从文件读取正文(自动生成封面图):**
```bash
python3 scripts/channel.py create "文章标题" --file article.txt
```

**带自定义封面图:**
```bash
python3 scripts/channel.py create "文章标题" "正文内容..." --cover cover.jpg
```

**禁止自动生成封面图:**
```bash
python3 scripts/channel.py create "文章标题" "正文..." --no-auto-cover
```

**设置作者:**
```bash
python3 scripts/channel.py create "文章标题" "正文..." --author "张三"
```

### 正文格式

**纯文本:**
```bash
python3 scripts/channel.py create "标题" "这是正文内容,支持换行。\n\n第二段内容..."
```

**带图片(Markdown 格式):**
```bash
python3 scripts/channel.py create "标题" "正文\n\n!<span class=\"image\"><span>描述</span></span>(/path/to/image.jpg)\n\n更多内容..."
```

**HTML 格式:**
```bash
python3 scripts/channel.py create "标题" "<p>正文</p><img src='url' />"
```

### 查看草稿列表

```bash
# 列出最近 20 篇
python3 scripts/channel.py list

# 列出最近 50 篇
python3 scripts/channel.py list --limit 50
```

输出示例:
```
📝 草稿列表 (3 篇):

序号   M...

Related skills

OpenClaw

ad-compliance-reviewer

danyangliu-sandwichlab

Review ads and campaign setup for policy compliance on Meta (Facebook/Instagram), Google Ads, TikTok Ads, YouTube Ads, Amazon Ads, and DSP/programmatic.

OpenClaw

afrexai-seo-content-engine

1kalin

Complete SEO content creation system for AI agents. Research keywords, analyze competitors, write optimized articles, and track rankings — all through natural conversation. No APIs required.