WeChat Article Formatter

Markdown in WeChat-fähiges inline-styled HTML über bm.md rendern, dann in einem Official veröffentlichen

von iamzifei · iamzifei/wechat-article-formatter-skill

Funktioniert mit Setup ★ 8.4/10

WeChat Article Formatter — Markdown in WeChat-fähiges inline-styled HTML über bm.md rendern, dann in einem Official veröffentlichen

Was es kann

Formats a markdown article with bundled green-accent CSS through the bm.md render service, uploads images to the WeChat CDN, und publishes to an Official Account draft via the official draft/add API. Wird ausgelöst, wenn Sie einen article formatieren oder publish to WeChat möchten. Uses inline styles specifically so WeChat's sanitizer does not strip the formatting to plain text.

Testbericht

Testete den core render step live against bm.md with the bundled custom.css: it returned WeChat-ready HTML with 39 inline style= attributes, no <style> block, Chinese characters preserved, und the green accent inlined - which beats a class-based markdown baseline that WeChat would strip to plain black text. Two real frictions keep this at setup: the publish half (image upload plus draft/add) needs a WeChat Official Account AppID/Secret that I could not supply, so it ist unmeasured; und the documented render curl (Content-Type only) returns 403 - it only worked after adding Origin und User-Agent headers the skill never mentions. Everything measurable held up, but the actual publishing deliverable sits behind a credential wall.

Getestet am: 2026-07-20 · Claude Code 2.x (agent harness)

Installation

git clone https://github.com/iamzifei/wechat-article-formatter-skill
mkdir -p ~/.claude/skills/wechat-article-formatter
cd wechat-article-formatter-skill && cp -r SKILL.md styles ~/.claude/skills/wechat-article-formatter/

Befehle & Beispiel-Prompts

  • /wechat-article-formatterMarkdown in WeChat-fähiges inline-styled HTML über bm.md rendern, dann in einem Official veröffentlichen

Skills reagieren auf normale Anfragen — keine Slash-Befehle nötig. Nach der Installation aktivieren Prompts wie diese den Skill (auf Englisch):

  • 帮我把这篇markdown文章排版成微信公众号能直接用的样式,然后帮我发布到草稿箱里
  • 这篇文章的格式一发到微信公众号里就全乱了,帮我重新排版成内联样式再重新发出去吧,谢谢
  • 把这些配图都上传到微信的图片CDN服务器,并把这篇文章发布到公众号的草稿箱里去,谢谢