WeChat Markdown Article
简介
WeChat Markdown Article
原始描述
Convert a local Markdown article into clean WeChat Official Account HTML, with an optional explicitly confirmed draft upload. Default behavior is local-only...
通过你的 Agent 添加
安装目录:wx-md-article/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: wx-md-article
description: >
Convert 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
metadata:
openclaw:
emoji: "📝"
homepage: https://github.com/yangchao228/wx-md-article
WeChat Markdown Article
将本地 Markdown 转为简洁的微信公众号 HTML。默认只生成本地文件,不发送网络请求。
安全边界
config.json 只保存非敏感排版配置,不包含 App ID、App Secret、Token 或媒体 ID。
- 凭据只从环境变量或系统密钥存储读取;不要在聊天、命令行、日志或仓库中保存凭据。
- 上传前先检查生成的 HTML、封面和目标账号。
- 只有同时传入
--upload --confirm-upload 才会发送文章 HTML 和可选封面到微信 API。
- 脚本不打印 access token,也不包含删除草稿能力。
- 若旧版本曾包含真实 App Secret,应立即在微信公众平台轮换。
本地生成
./wechat-article.sh article.md \
--title "文章标题" \
--author "作者" \
--output article.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,并在目标公众号草稿箱创建草稿。
依赖
- Bash
- curl
- jq
- sed
- awk
作者入口
- 微信公众号:AI生命克劳德
- X:https://x.com/yangchao228
- GitHub:https://github.com/yangchao228
- 微信公众号:AI生命克劳德
- X:https://x.com/yangchao228
- GitHub:https://github.com/yangchao228
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。