Individual skill

wechat-formatter

把 Markdown 文稿转换成微信公众号可用的内联样式 HTML。**触发场景**:用户说 "把 markdown 转成公众号能用的 HTML" / "排版一下这篇文章" / "套个主题" / "微信编辑器不识别我的样式" / 任何提到「公众号排版 / 微信 HTML / md 转 html / doocs 主题」的请求。微信编辑器不识别 `<style>` 标签,必须把所有 CSS 内联到每个 HTML 元素的 style 属性里——本 skill 用 doocs/md 主题完成这件事。本 skill 只负责格式转换;写作交给 wechat-writer,发布交给 wechat-publisher。

skills/wechat-formatter/SKILL.md

Read pinned source

Source commit 87caa778a9f6fe3811ee5af6d6a60a95dc334cf9

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
No
Observed behavior
Not checked yet
Last checked
Nov 6, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
129
Repository last updated
Oct 29, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# wechat-formatter · Markdown → 微信 HTML

只解决一件事:**把 Markdown 转成微信编辑器粘贴后样式不丢的 HTML**。

## 核心问题

微信公众号编辑器**不识别** `<style>` 标签和 CSS class。所以普通的 `markdown → html` 转换器输出的 HTML 粘到微信里会变成裸文本,所有样式全丢。

唯一可靠方案:**所有 CSS 都内联到元素的 `style="..."` 属性里**。doocs/md 是这件事的开源标准,本 skill 直接调用它。

## 使用方法

```bash
python3 scripts/markdown_to_wechat_doocs.py \