geekjourneyx/md2wechat-skill

面向 AI Agent 的微信公众号创作与发布 CLI:Markdown 排版、AI 配图、预览与草稿创建;支持由浏览器 Agent 保存知乎、CSDN、头条未发布草稿。

What it solves

Publishing a WeChat official account article is a multi-step chore: write Markdown, make it look good in WeChat's editor, generate a cover, check everything, and push a draft. md2wechat turns that whole pipeline into a set of CLI commands an AI agent can run reliably, so you don't have to manually copy-paste or wrestle with formatting.

How it works

md2wechat is a command-line tool. You give it a Markdown file, and it can convert that file into WeChat-friendly HTML, generate cover images or infographics, validate the article before publishing, and even push a draft to WeChat's draft box. It works in two modes:

  • Free AI mode – instead of returning final HTML, the tool produces a prompt that an external LLM (the agent you're using) can follow to generate the formatting itself. This is for experimentation and learning.
  • Professional API mode – a paid service that returns the final HTML directly. This mode supports 48 professionally tuned themes and 59 recommended layout module syntaxes, plus multi-account publishing and a fixed IP egress for WeChat's whitelist.

For AI agents, md2wechat provides machine-readable command output (JSON) and discovery commands like capabilities, doctor, themes, and layout so the agent knows what's available and whether the current environment is ready. It also has commands to inspect an article's readiness, preview the final HTML, convert, and then – only when the user explicitly asks – upload images or create a draft.

The tool can also prepare cross-platform drafts for Zhihu, CSDN, Toutiao, and Tencent Cloud Developer Community, leveraging an already-logged-in browser. Image generation is supported via multiple providers (Volcengine, ModelScope, OpenRouter, OpenAI, Gemini, MiniMax, Atlas Cloud) or via the host agent's built-in image generation tool.

Who it's for

Anyone who writes for WeChat official accounts and uses or wants to use AI agents (Claude Code, Codex, WorkBuddy, Kimi Work, Hermes Agent, OpenClaw, or similar) to speed up content production. It's especially useful for teams managing multiple accounts or needing consistent, professional formatting at scale.

Highlights

  • Agent-ready – designed to be called by AI agents with JSON discovery commands, so the agent can check capabilities, validate configuration, and follow a clear workflow.
  • Two working modes – free AI mode for experimentation, and a paid Professional API mode with 48 themes, 59 layout module syntaxes, and reliable final HTML output.
  • Full publishing pipeline – convert Markdown to WeChat HTML, generate cover and infographic images, inspect readiness, preview, and create drafts (with explicit side-effect commands).
  • Multi-platform draft sync – prepare a single article and then, through the host agent, create drafts on Zhihu, CSDN, Toutiao, and Tencent Cloud Developer Community.
  • Brand consistency – a Brand Profile file stores long-term style preferences that the agent reads during writing and layout.

Related

  • Project
  • Project
  • Project
  • Project
  • Project