Install
openclaw skills install publish-to-wechatAI-ready skill to format and publish Markdown articles to WeChat Official Accounts using Wenyan CLI.
openclaw skills install publish-to-wechat这是一个专门为 AI Agent 设计的技能,用于将标准的 Markdown 文档转换为符合微信公众号排版要求的富文本并直接发布。它集成了自动化样式注入、代码高亮处理以及素材库图片自动上传功能。
WECHAT_APP_ID 和 WECHAT_APP_SECRET 环境变量。wenyan-cli (pnpm add -g @wenyan-md/cli)。orangeheart)和代码高亮方案。文章开头 必须 包含以下 YAML 块,否则发布接口将返回错误:
---
title: 文章标题
cover: ./cover.jpg # 若缺省则自动取正文第一张图
author: 作者名称 # 可选
source_url: https://example.com/original-article # 可选,原文链接
---
-f, --file:(必填) Markdown 文件路径。-t, --theme:排版主题(默认 default)。-h, --highlight:代码高亮主题(默认 solarized-light)。--no-mac-style:禁用代码块 Mac 风格。wenyan publish -f my-article.md
wenyan publish -f article.md -t orangeheart -h solarized-light
wenyan theme -l