wechat-article-formatter
Skill2 starsChanged 8 months agoApache-2.0View on GitHub
将 Markdown 文章转换为适配微信公众号的 HTML。Use when the user asks to 美化文章、生成公众号 HTML、优化公众号格式、或把 Markdown 转成适合微信编辑器粘贴的 HTML。
- Installs packages
5 other projects use a version of this.
Adopted by
Most recently taken up by
- iamzifei/wechat-article-formatter-skilltheir own version, first seen Nov 8, 2026
- zacktian89/ai-writer-skilltheir own version, first seen May 26, 2026
- vigorX777/wechat-article-formattertheir own version, first seen Mar 24, 2026
- huangserva/servasyy_skillstheir own version, first seen Feb 5, 2026
- BND-1/wechat_article_skillstheir own version, first seen Jan 1, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- BND-1/wechat_article_skills★ 318same name
- huangserva/servasyy_skills★ 168same name
- iamzifei/wechat-article-formatter-skill★ 78same name
- vigorX777/wechat-article-formatter★ 22same name
- zacktian89/ai-writer-skill★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- ai-hotspot-collectorSkill
- article-multi-publisherSkill
- article-pipeline-skillSkill
- character-ip-risk-checkSkill
- chrome-extension-devSkill
- chrome-extension-e2e-automationSkill
- chrome-extension-publishSkill
- chrome-extension-social-promoSkill
- chrome-webstore-image-generatorSkill
- code-reviewSkill
- fund-querySkill
- github-trending-writerSkill
- lark-workflow-doc-to-slidesSkill
- notionSkill
- playwright-twitter-accessSkill
- post-to-xhsSkill
- rewrite-skillSkill
- small-capital-investingSkill
- technical-article-preflightSkill
- technical-article-reviewSkill
- technical-spoken-rewriteSkill
- tencent-dev-community-publisherSkill
- toutiao-publisherSkill
- url-readerSkill
- wechat-article-generatorSkill
- wechat-publisherSkill
- wechat-sticker-publisherSkill
The file
Files
WeChat Article Formatter
将 Markdown 文章转换为适配微信公众号发布的 HTML。
Themes
支持六套主题(封面和文章配色对应):
| 主题 | 封面 | 文章风格 | 适用场景 |
mist-blue | 蓝灰 | 克制技术编辑风 | 仓库解读、工程实践、长文 |
ai-tech | - | AI 展示感 | 产品展示、模型介绍、AI 主题 |
forest | 绿色 | 清新自然 | 环保、健康、成长类内容 |
sunset | 橙红 | 温暖活力 | 创意、设计、生活方式 |
slate | 灰蓝 | 中性专业 | 企业、商业、技术文档 |
midnight | 深蓝黑 | 暗色深邃 | 深度分析、夜间阅读 |
如果项目已经统一使用”AI 科技风”,默认优先:
--theme ai-techSetup
From this skill directory:
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txtStandard Command
From the repository root:
wechat-article-formatter/.venv/bin/python \
wechat-article-formatter/scripts/markdown_to_html.py \
--input /abs/path/article.md \
--theme ai-tech \
--output /abs/path/article.html \
--previewFrom inside the skill directory:
.venv/bin/python scripts/markdown_to_html.py \
--input /abs/path/article.md \
--theme ai-tech \
--previewWorkflow
- 以 Markdown 作为 source of truth
- 选择主题:
ai-tech:产品展示、模型介绍、AI 主题(默认)mist-blue:仓库解读、工程实践、长文
- 生成 HTML
- 本地预览:
- 图片是否加载
- 列表和编号是否正常
- 代码块是否可读
- H1 是否已移除
- 若项目有自定义色板,只在生成后做最小覆盖,不要继续维护另一套旧转换器
Handoff Contract
Formatter output is a derived artifact, not a publish-ready verdict.
- For manual copy/paste, inspect the generated HTML locally before copying into WeChat.
- For API/browser publishing, pass the original Markdown to
wechat-publisher/scripts/wechat-publish.tsunless the article package intentionally provides a dedicated API HTML file. - For technical articles, run
technical-article-preflightbefore publishing. The preflight owns review status, image readiness, cover checks, and final dry-run validation.
Important Rules
- 先改 Markdown,再重新生成 HTML,不要长期手改派生 HTML。
- 公众号标题单独填写,HTML 只负责正文。
- 本地图片路径是否能直接用于后续发布,取决于下游发布 skill;转换器本身不负责上传图片。
- 如果文章刚写完首稿,先走
technical-article-review,再进入 HTML 生成。 - 链接格式:所有外部链接使用原始链接格式(如
https://example.com),不要用 Markdown 链接语法(如[文本](URL))。这样在微信公众号中更清晰易读。
Common Commands
生成默认输出文件:
wechat-article-formatter/.venv/bin/python \
wechat-article-formatter/scripts/markdown_to_html.py \
--input article.md \
--theme ai-tech只做转换,不开预览:
wechat-article-formatter/.venv/bin/python \
wechat-article-formatter/scripts/markdown_to_html.py \
--input article.md \
--theme mist-blueReferences
- 快速参考:QUICKSTART.md
- 使用示例:EXAMPLES.md
- 主题模板:
templates/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

