ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified productivity Safety 3/5

wechat-publisher

一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/0731coderlee-sudo/wechat-publisher
Or

What This Skill Does

The wechat-publisher skill for OpenClaw is a powerful automation tool designed to streamline the content creation workflow for WeChat Official Account owners. It leverages the underlying wenyan-cli engine to bridge the gap between Markdown-based writing and the WeChat public platform's editor. By handling automatic Markdown-to-HTML conversion, image hosting, and direct API submission to the WeChat draft box, this skill eliminates the manual drudgery of copy-pasting, formatting, and image uploading. It supports extensive styling options, including various visual themes and syntax highlighting configurations, ensuring that your technical articles look professional and readable across all devices.

Installation

To install this skill, run the following command in your OpenClaw terminal: clawhub install openclaw/skills/skills/0731coderlee-sudo/wechat-publisher

Ensure that you have globally installed the dependency by running npm install -g @wenyan-md/cli. Furthermore, you must configure your WeChat environment variables (WECHAT_APP_ID and WECHAT_APP_SECRET) and ensure your server IP is whitelisted in the WeChat Official Account platform's security settings.

Use Cases

This skill is perfect for technical writers, developers blogging about their projects, and digital marketers who rely on Markdown for draft management. It is particularly useful for those who want to maintain a 'Single Source of Truth' for their content, keeping master copies in local Git repositories while syncing to WeChat as needed. It is also ideal for teams wanting to automate repetitive publishing tasks or those who prefer a keyboard-centric workflow over the browser-based WeChat dashboard.

Example Prompts

  1. "发布我的 Markdown 文章到微信公众号,文件路径是 /Users/leebot/documents/blog/web-trends.md,主题用 lapis。"
  2. "帮我把这篇文章同步到公众号草稿箱,并使用 solarized-light 的代码高亮风格。"
  3. "我想发布最新的技术分享,记得把封面图设置好,这是路径:/Users/leebot/workspace/posts/intro.md。"

Tips & Limitations

  • Mandatory Frontmatter: You must include title and cover in your YAML frontmatter. Missing these will cause the publishing process to fail.
  • Image Handling: All images, including local assets referenced by relative paths, will be uploaded to WeChat's servers during the process. Ensure your total file size is within platform limits.
  • Theme Customization: You can extend functionality by adding your own CSS themes via wenyan theme --add, allowing for bespoke branding.
  • Security: Because this skill communicates with the WeChat API, keep your APP_SECRET secure and avoid hardcoding credentials in scripts where possible.

Metadata

Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-0731coderlee-sudo-wechat-publisher": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#wechat#markdown#automation#publishing#blogging
Safety Score: 3/5

Flags: file-read, external-api, code-execution