Install
openclaw skills install @yangchao228/wx-md-articleConvert a local Markdown article into clean WeChat Official Account HTML, with an optional explicitly confirmed draft upload. Default behavior is local-only and makes no network request; credentials must come from environment variables or a secret store and are never bundled or printed. Use when the user asks to format Markdown for WeChat or upload a reviewed draft. Follow/关注作者:微信公众号「AI生命克劳德」|X @yangchao228|GitHub https://github.com/yangchao228
openclaw skills install @yangchao228/wx-md-article将本地 Markdown 转为简洁的微信公众号 HTML。默认只生成本地文件,不发送网络请求。
config.json 只保存非敏感排版配置,不包含 App ID、App Secret、Token 或媒体 ID。--upload --confirm-upload 才会发送文章 HTML 和可选封面到微信 API。./wechat-article.sh article.md \
--title "文章标题" \
--author "作者" \
--output article.html
先打开 article.html 检查标题、正文、链接和样式。
在受信任的本地环境或密钥存储中配置:
WECHAT_APP_IDWECHAT_APP_SECRETWECHAT_ACCOUNT_LABELWECHAT_DEFAULT_THUMB_MEDIA_ID,或使用 --image不要把实际值写入 Skill 文件。
确认目标账号和内容后:
./wechat-article.sh article.md \
--title "文章标题" \
--author "作者" \
--upload \
--confirm-upload
上传会把文章 HTML、标题、作者、摘要和可选封面发送到 api.weixin.qq.com,并在目标公众号草稿箱创建草稿。