wechat-layout

Solid

公众号排版:把一篇文章(Markdown)排成能直接粘贴进公众号编辑器的图文——内联样���、图片内嵌、12 套主推主题配色,附 2.35:1 头图、1:1 封面和发布信息(标题、摘要、步骤);正文一字不改,逐块读回校验。只接受文章:原文(article.md)、译文(article.zh.md)或改写稿导出的文章(rewrite.md,即"总结后发公众号")。可以单独用,也可以接在抓取、翻译、改写后面。Use when the user wants 公众号排版, 微信公众号文章排版, 推文排版, gzh, mp.weixin formatting, "排成公众号/发公众号", or to paste a Markdown article into the WeChat editor.

AI & Automation 436 stars 66 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
88
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
96
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 公众号排版(wechat-layout) > 路径约定:文中的 `${CLAUDE_SKILL_DIR}` 指本 SKILL.md 所在的目录。宿主没有替换这个变量时(命令里原样出现 `${CLAUDE_SKILL_DIR}`),把它换成这个目录的绝对路径再运行;`../<名字>/` 指同级的另一个 skill 目录。 把一篇**文章**排成可粘贴的公众号图文。正文一字不改;改不改写、译不译,在排版之前决定。 参数:`$ARGUMENTS` ## 0. 先确定排哪篇文章 | 情况 | 做法 | |---|---| | 给了 `.md` 文章,或说"排版 / 原文" | 直接排它 | | 给的是链接、文件、粘贴的正文或视频 | 先用 `article-fetch` / `video-transcript` 取原文 | | 说"总结 / 提炼 / 改写后发公众号" | 先用 `article-rewrite` 写 content.json(加 `wechat.title`、`wechat.digest`),再用它的 `export.mjs` 导出 `rewrite.md`,排 `rewrite.md` | | 原文是外文,读者是中文 | 先用 `article-translate` 出 `article.zh.md`,排译文 | | 只说"发公众号",没说原文还是总结 | 默认**原文排版**;一篇别人的长文、结果差别又大时,问一句"原文排版还是总结后再排" | 给的是 `content.json` 时脚本会拒绝:��众号排版只吃文章,先导出 `rewrite.md`。判断规则和工作目录见 `../article2media/references/pipeline.md`。 第一次使用先跑 `node ${CLAUDE_SKILL_DIR}/scripts/doctor.mjs`(Node 22+、Chrome)。 ## 1. 排版 ```bash node ${CLAUDE_SKILL_DIR}/scripts/wechat.mjs <目录>/article.md --check # 只校验:解析、标题长度 node ${CLAUDE_SKILL_DIR}/scripts/wechat.mjs <目录>/article.md --theme quiet # → <目录>/quiet-wechat/ node ${CLAUDE_SKILL_DIR}/scripts/wechat.mjs <目录>/rewrite.md # 主题默认用 rewrite.md 里记录的(图表按它截的图) node ${CLAUDE_SKILL_DIR}/scripts/wechat.mjs <目录>/article.md --title "公众号标题" --digest "摘要" --cover-title "两行\n标题" ``` - 主题:用户指定 > 文章 front matter 的 `theme` > 按 `../article2media/references/styles.md` 选(没选时是 editorial)。`rewrite.md` 的图表是按导出时的主题截的图,换主题要先重新导出。 - 标题、摘要、封面标题的写法和限制见 `references/wechat-guide.md`。 ## 2. 检查(最多 2 轮:出图 → 发现问题 →...

Details

Author
threerocks
Repository
threerocks/article2media
Created
1 weeks ago
Last Updated
1 weeks ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

wechat-article-writer

微信公众号文章写作和排版助手。输入主题+内容���纲→自动生成结构完整、排版精美的公众号文章(WeChat兼容HTML+行内样式),同时可配套调用infographic-generator生成4主题配图。触发词:'公众号文章','写公众号','公众号排版','微信文章','推文'。

6 Updated 4 months ago
konglong87
AI & Automation Listed

hkr-render

WeChat Official Account (微信公众号) publishing pipeline: format Markdown or plain text into WeChat-compatible inline-style HTML with 7 polished themes (dark mode and mobile font sizes tuned), optionally generate a cover image with brightness check and auto-darkening, and push one or many articles to the WeChat draft box (多图文). Use when the user wants to format, typeset or publish a WeChat article, or says 排版, 微信排版, 公众号排版, 公众号发布, 格式化文章, format, /format. Requires a config.json with WeChat AppID/Secret (see SKILL.md).

1 Updated 2 weeks ago
hanzhangzzz
AI & Automation Listed

wechat-article-format

微信公众号推文排版美化:把用户已写好的推文正文(从公众号编辑器复制的富文本,或纯文本/文件)按成熟微信推文排版规范生成带内联样式的富文本,程序化保证文字零改动,本地预览确认后写回剪贴板整体粘贴。Common aliases 微信排版, 推文排版, 公众号排版, 美化推文, wechat-format, $wechat-format。当用户提到微信推文/公众号文章要排版、美化、优化版式,或发来 mp.weixin.qq.com 编辑器链接要求处理文章样式时使用。

1 Updated 3 months ago
DragonJames2026