wechat-publisher
Installation
SKILL.md
wechat-publisher
Agent Instructions
触发条件:用户提到「发布到公众号」「wechat publish」「公众号发布」等。
执行流程:
- 确认 Markdown 文件路径
- 检查 frontmatter 是否包含
title和cover - 若 cover 缺失:调用 xqx-image-generator 生成封面(见「图片生成」)
- 若正文需配图:调用 xqx-image-generator(见「图片生成」)
- 图片必须本地化:生成后下载到文章目录(如
./assets/),frontmatter 与正文用本地路径,禁止只用 URL - 在 wechat-publisher 目录执行:
python scripts/publish.py <path>;失败见 references/troubleshooting.md