⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
wechat-article-mulit-publisher
从 Markdown 文件或网页链接提取文章并发布到微信公众号。支持多账号管理、两种排版模板(standard/viral)、自动生成封面图和草稿发布。
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
OpenClaw Skills
为 OpenClaw 打造的技能集合,让 AI 助手能够执行各种实用任务。
技能列表
微信公众号发布
目录: wechat-article-mulit-publisher/
从 Markdown 文件或网页链接提取文章并发布到微信公众号。
功能特性
- 多账号支持:通过
--account指定发布到哪个公众号 - 两种排版模板:
standard(科技风格)和viral(高传播风格) - 自动生成封面图(无本地图片时)
- 文章内图片自动上传:自动将文章中的图片上传到微信素材库并替换为微信 CDN URL
- 草稿管理:支持列出草稿列表、删除草稿
- 素材管理:支持单独上传图片到素材库(本地文件或网络 URL)
- 支持
--dry-run预览 - 支持直接发布草稿
--publish
安装
cd wechat-article-mulit-publisher
pip install -r scripts/requirements.txt
配置
编辑 config.json:
{
"default_account": "your_account",
"accounts": {
"your_account": {
"name": "公众号名称",
"app_id": "wx...",
"app_secret": "...",
"author": "作者",
"default_template": "standard"
}
}
}
使用方法
# 列出所有已配置的账号
python scripts/publish_wechat.py --list-accounts
# 预览(不调用微信 API)
python scripts/publish_wechat.py <文章.md> --dry-run
# 发布到默认账号
python scripts/publish_wechat.py <文章.md>
# 发布到指定账号
python scripts/publish_wechat.py <文章.md> --account account2
# 直接发布(跳过草稿直接发布)
python scripts/publish_wechat.py <文章.md> --publish --status
# 列出草稿箱
python scripts/publish_wechat.py --list-drafts
# 删除草稿
python scripts/publish_wechat.py --delete-draft <media_id>
# 上传本地图片到素材库
python scripts/publish_wechat.py --upload-material /path/to/image.jpg
# 上传网络图片到素材库
python scripts/publish_wechat.py --upload-material-url https://example.com/image.jpg
命令行参数
| 参数 | 说明 |
|---|---|
--account | 指定公众号账号(账号标识名) |
--list-accounts | 列出所有已配置的账号 |
--template | 覆盖模板:standard 或 viral |
--author | 覆盖作者名 |
--cover-image | 指定本地封面图路径 |
--source-url | 覆盖原文链接 |
--dry-run | 仅渲染预览,不调用微信 API |
--publish | 草稿创建后直接提交发布 |
--status | 查询发布状态 |
--list-drafts | 列出草稿箱中的所有草稿 |
--delete-draft | 删除指定 media_id 的草稿 |
--upload-material | 上传本地图片到素材库(传入图片路径) |
--upload-material-url | 上传网络图片到素材库(传入图片URL) |
贡献
欢迎提交新的技能!请确保:
- 每个技能有独立的目录
- 包含
SKILL.md描述文件 - 提供清晰的安装和使用说明
- 包含
requirements.txt(如有依赖)
目录结构
openclaw-skills/
├── README.md
├── wechat-article-mulit-publisher/
│ ├── SKILL.md # 技能描述
│ ├── config.json # 配置文件
│ └── scripts/
│ ├── publish_wechat.py
│ └── requirements.txt
└── <future-skills>/
License
MIT
// HOW IT'S BUILT
KEY FILES