微信创作

v1.0.0

自动将 Markdown 文章转为适配微信公众号格式的 HTML,并批量发布至公众号草稿箱,支持封面图生成与专题管理。

0· 167·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for hanbinsite/wechat-publish-skill.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "微信创作" (hanbinsite/wechat-publish-skill) from ClawHub.
Skill page: https://clawhub.ai/hanbinsite/wechat-publish-skill
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install wechat-publish-skill

ClawHub CLI

Package manager switcher

npx clawhub@latest install wechat-publish-skill
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Error

Like a lobster shell, security has layers — review code before you run it.

latestvk97eaj86wcgph17xqtgx10bzhd834hdg
167downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

微信公众号文章发布技能

自动化发布 Markdown 文章到微信公众号草稿箱的完整流程。

功能

  • Markdown 转 HTML(适配微信公众号格式)
  • 自动生成封面图(Pillow 规则绘制 / AI 大模型生成)
  • 批量发布文章到草稿箱
  • 支持多个专题管理

使用方法

  1. 配置 .env 文件填写微信公众号 AppID 和 Secret
  2. (可选)配置 AI 图片生成 API
  3. 准备文章目录结构(每个期数一个文件夹)
  4. 运行发布脚本

环境变量

变量名说明默认值
WECHAT_APP_ID公众号 AppID-
WECHAT_APP_SECRET公众号 AppSecret-
WECHAT_ACCOUNT_NAME作者署名-
AI_IMAGE_BASE_URLAI 图片 API 地址https://api.openai.com/v1
AI_IMAGE_API_KEYAI 图片 API 密钥-
AI_IMAGE_MODELAI 图片模型dall-e-3

目录结构示例

tutorials/
├── your-tutorial/
│   ├── 01-getting-started/
│   │   ├── README.md      # 文章内容
│   │   └── cover.png      # 封面图(可选)
│   ├── 02-advanced/
│   │   ├── README.md
│   │   └── cover.png
│   └── ...

文件说明

  • publisher.py - 核心发布脚本
  • cover_generator.py - 封面图生成工具
  • template.env - 环境变量模板

注意事项

  • 文章使用 Markdown 格式编写
  • 封面图尺寸建议 900x383px
  • 发布前请确保文章内容已审核

Comments

Loading comments...