微信公众号文章发布工具 v1.0。基于官方 API,支持智能配图、模板渲染、草稿/发布双模式。当用户说"发公众号"、"发布微信公众号"时使用此技能。
cd ~/.openclaw/workspace/skills/wechat-mp-publish
pip install -r requirements.txt
cp config.example.yaml config.yaml
# 编辑 config.yaml 填入 AppID 和 AppSecret
python publish.py --test
# 测试模式(自动发布 3 篇测试文章到草稿箱)
python publish.py --test
# 发布到草稿箱
python publish.py --draft "文章标题" "文章内容"
# 直接发布
python publish.py --publish "文章标题" "文章内容"
# 指定模板
python publish.py --draft "标题" "内容" --template business
| 模板 | 风格 | 适用场景 |
|---|---|---|
simple | 简约 | 日常文章、技术文档 |
business | 商务 | 正式公告、企业宣传 |
creative | 创意 | 故事、随笔、创意内容 |