wechat-html-anything
Skill1 starsChanged 6 months agoMITView on GitHub
基于 HTML Anything 开源项目的深度克隆。57 个排版模板, 涵盖文章/博客/演示/社交卡片/数据报告/办公文档等全品类。 支持 Markdown → WeChat 适配 HTML 转换,CSS 内联,直接粘贴发布。
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- wechat-publisher-2.0Skill
- auto-wechat-opsSkill
- memory-managerSkill
- wechat-html-articleSkill
The file
Files
公众号 HTML 排版系统 (HTML Anything)
定位
从 nexu-io/html-anything 深度克隆的公众号排版模板库。 57 个生产级 HTML 模板,覆盖文章、数据报告、演示、社交卡片、办公文档等场景。
模板库
📝 文章类(公众号最常用)
| 模板 | 中文名 | 风格 | 适用场景 |
| article-magazine | 杂志文章 | 编辑级长文排版 | 深度技术文、专栏 |
| blog-post | 博客长文 | 信息密度高 | 教程、分析文章 |
| doc-kami-parchment | 羊皮纸文档 | 暖色衬线、复古感 | 人文、历史、随笔 |
📊 数据报告类
| 模板 | 中文名 | 风格 | 适用场景 |
| data-report | 数据报告 | 表格+图表为主 | 月度/季度报告 |
| dashboard | 仪表盘 | 卡片化数据展示 | 运营数据看板 |
| competitive-teardown | 竞品分析 | 对比表格+评分 | 竞品调研 |
🎨 演示文稿类
| 模板 | 中文名 | 风格 | 适用场景 |
| deck-swiss-international | 瑞士国际主义 | 网格+几何 | 产品发布 |
| deck-tech-sharing | 技术分享 | 代码+架构图 | 技术演讲 |
| deck-pitch | Pitching | 大标题+数据 | 融资/项目介绍 |
| deck-product-launch | 产品发布 | 视觉冲击 | 新品发布 |
📱 社交卡片类
| 模板 | 中文名 | 风格 | 适用场景 |
| card-xiaohongshu | 小红书卡片 | 圆角+图片 | 种草内容 |
| social-carousel | 轮播卡片 | 多图排列 | 多图分享 |
| card-twitter | Twitter 卡片 | 极简+引用 | 金句/观点 |
💼 办公文档类
| 模板 | 中文名 | 风格 | 适用场景 |
| exec-briefing-memo | 高管简报 | 简洁+重点突出 | 决策参考 |
| finance-report | 财务报告 | 表格+数字 | 财务数据 |
| meeting-notes | 会议纪要 | 时间线+行动项 | 会议记录 |
| weekly-update | 周报 | 进度追踪 | 团队同步 |
完整 57 模板索引见 INDEX.md
设计硬约束(所有模板通用)
- CJK 优先字体栈:Noto Sans SC / PingFang SC / Microsoft YaHei
- 8px 基线网格:所有间距/字号/行高是 8 的倍数
- 防 AI Slop:不用 emoji 做 bullet、不用纯黑纯白、不用渐变背景
- 对比度 ≥ 4.5:每个交互元素有真实的 hover/focus 状态
- 微信公众号适配:
- 最大宽度 677px
- CSS 全部 inline(juice)
- 图片用 HTTPS URL
- 字体 ≥ 15px
工作流程
1. 选择模板
根据内容类型选择最合适的模板:
- 深度长文 → article-magazine / blog-post
- 数据报告 → data-report / dashboard
- 产品介绍 → deck-product-launch / saas-landing
- 金句观点 → card-twitter / social-carousel
- 会议记录 → meeting-notes / weekly-update
2. 生成 HTML
使用 wechat_html.py 生成适配公众号的 HTML:
python scripts/wechat_html.py article.md -o output.html -t article-magazine3. CSS 内联
python scripts/css_inline.py output.html4. 粘贴发布
将内联后的 HTML 粘贴到公众号编辑器即可。
文件结构
skills/wechat-html-anything/
├── SKILL.md # 本文件
├── INDEX.md # 57 模板索引
├── templates/
│ ├── article-magazine_SKILL.md
│ ├── blog-post_SKILL.md
│ ├── data-report_SKILL.md
│ └── ... (57 total)
└── scripts/
├── wechat_html.py # Markdown → WeChat HTML
└── css_inline.py # CSS 内联工具模板使用方式
每个模板 SKILL.md 包含:
- 设计系统(颜色/字体/间距)
- HTML 结构规范
- 组件清单
- 使用示例
使用时参考对应 SKILL.md 的设计参数,通过 wechat_html.py 生成适配公众号的 HTML 输出。
扩展模板
新增模板步骤:
- 在
templates/下创建<name>_SKILL.md - 在
INDEX.md中添加条目 - 如需新主题,在
wechat_html.py的THEMES和theme_css()中添加 - 在
wechat_html.py的模板选择器中添加选项
与 wechat-publisher-2.0 集成
wechat-html-anything 生成的 HTML 可直接用于 wechat-publisher-2.0:
from wechat_publisher_2 import Publisher
pub = Publisher()
result = pub.publish(
title="文章标题",
markdown=pathlib.Path("article.md").read_text(),
theme="default", # 使用内置主题
)未来计划:将 HTML Anything 的设计系统直接集成到发布器的主题引擎中。
版本历史
- v1.0 (2026-06-05) - 初始版本,57 个模板克隆,基础 HTML 生成器
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.

