Skip to content
cccskills
FreePublished on GitHub

aws-wechat-article-formatting

公众号排版|Markdown 转 HTML|排版主题|段落样式 — 公众号一键排版工具,Markdown 文稿转微信后台可粘贴 HTML,多主题、多字号、段落样式切换,所见即所得。面向公众号编辑、独立作者、排版岗。

触发词:「排版」「版式」「美化」「格式化」「字号」「段落样式」「换个排版主题」「换个版式」「转 HTML」「弄好看点」「调整格式」。换预设包/品牌包/整套主题配色请走 aws-wechat-article-assets;需要多环节串联(写+审+排+配图+发)请走 aws-wechat-article-main。

The English summary is being prepared. Showing the original description.

See how to install

Files included (82)

  • SKILL.md9.7 KB
  • references/branches.md6.6 KB
  • references/components/bao/article-end.yaml149 B
  • references/components/bao/checklist.yaml1.0 KB
  • references/components/bao/lead.yaml211 B
  • references/components/bao/li-label.yaml200 B
  • references/components/bao/quote-card.yaml379 B
  • references/components/cai/article-end.yaml200 B
  • references/components/cai/checklist.yaml1.0 KB
  • references/components/cai/h2-deco.yaml160 B
  • references/components/cai/img-deco.yaml223 B
  • references/components/cai/lead.yaml317 B
  • references/components/cai/li-label.yaml202 B
  • references/components/cai/quote-card.yaml392 B
  • references/components/checklist.yaml2.1 KB
  • references/components/closing.yaml1.7 KB
  • references/components/compare.yaml2.0 KB
  • references/components/gou/article-end.yaml512 B
  • references/components/gou/checklist.yaml1012 B
  • references/components/gou/h2-deco.yaml459 B
  • references/components/gou/hr-deco.yaml353 B
  • references/components/gou/img-deco.yaml298 B
  • references/components/gou/lead.yaml589 B
  • references/components/gou/li-label.yaml196 B
  • references/components/gou/quote-card.yaml727 B
  • references/components/kuai/article-end.yaml270 B
  • references/components/kuai/checklist.yaml1.0 KB
  • references/components/kuai/lead.yaml218 B
  • references/components/kuai/li-label.yaml202 B
  • references/components/kuai/quote-card.yaml332 B
  • references/components/layers.yaml1.5 KB
  • references/components/lead.yaml1.4 KB
  • references/components/ma/article-end.yaml307 B
  • references/components/ma/checklist.yaml1.0 KB
  • references/components/ma/h2-deco.yaml322 B
  • references/components/ma/lead.yaml426 B
  • references/components/ma/li-label.yaml197 B
  • references/components/ma/quote-card.yaml422 B
  • references/components/quote-card.yaml1.5 KB
  • references/components/section-title.yaml1.5 KB
  • references/components/shou/article-end.yaml488 B
  • references/components/shou/checklist.yaml1.0 KB
  • references/components/shou/h2-deco.yaml526 B
  • references/components/shou/hr-deco.yaml678 B
  • references/components/shou/img-deco.yaml508 B
  • references/components/shou/lead.yaml313 B
  • references/components/shou/li-label.yaml265 B
  • references/components/shou/quote-card.yaml559 B
  • references/components/shu/article-end.yaml188 B
  • references/components/shu/checklist.yaml1.0 KB
  • references/components/shu/h2-deco.yaml360 B
  • references/components/shu/hr-deco.yaml183 B
  • references/components/shu/img-deco.yaml265 B
  • references/components/shu/lead.yaml301 B
  • references/components/shu/li-label.yaml195 B
  • references/components/shu/quote-card.yaml609 B
  • references/components/stat.yaml2.0 KB
  • references/components/steps.yaml2.2 KB
  • references/components/yi/article-end.yaml403 B
  • references/components/yi/checklist.yaml1.0 KB
  • references/components/yi/h2-deco.yaml377 B
  • references/components/yi/hr-deco.yaml281 B
  • references/components/yi/lead.yaml631 B
  • references/components/yi/li-label.yaml200 B
  • references/components/yi/quote-card.yaml491 B
  • references/presets/_sample-image-2.svg1.0 KB
  • references/presets/_sample-image.svg1.6 KB
  • references/presets/_sample.md2.7 KB
  • references/presets/README.md5.6 KB
  • references/presets/templates/README.md1.3 KB
  • references/presets/templates/手账.yaml2.9 KB
  • references/presets/templates/技术.yaml3.8 KB
  • references/presets/templates/活力.yaml3.3 KB
  • references/presets/templates/硬朗.yaml3.1 KB
  • references/presets/themes/书卷.yaml3.7 KB
  • references/presets/themes/亲和.yaml3.2 KB
  • references/presets/themes/杂志.yaml2.9 KB
  • references/presets/themes/资讯.yaml3.1 KB
  • references/wechat-html-constraints.md20.8 KB
  • scripts/brush_svg.py7.4 KB
  • scripts/format.py92.8 KB
  • skill.json475 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

排版

公众号一键排版 —— Markdown 转微信后台可粘贴 HTML,多主题、多字号、所见即所得。

套件说明 · 本 skill 属 aws-wechat-article-* 一条龙套件(共 9 个 slug,入口 aws-wechat-article-main)。跨 skill 的相对引用依赖同一 skills/ 目录,建议一并 clawhub install 全套。源码:https://github.com/aiworkskills/wechat-article-skills

能力披露(Capabilities)

本 skill 为纯本地 Markdown → HTML 转换,零网络、零凭证。

  • 凭证:无
  • 网络:无
  • 文件读(仓库内):.aws-article/config.yaml、本篇 article.yaml、article.md、可选 closing.md、.aws-article/presets/formatting/<名>.yaml
  • 文件读(仓库外):~/.aws-article/presets/formatting/(跨项目共享的自定义主题;只读预设文件,不读凭证)
  • 文件写:本篇 article.html
  • shell:仅 {python} {baseDir}/scripts/format.py

单独安装可直接使用:format.py 零依赖、纯本地,无跨 skill 脚本调用。文档里指向 ../aws-wechat-article-main/references/*.md 的链接在套件未装齐时会断,但排版功能本身可用。

路由

一键发文且未明确只要排版 → aws-wechat-article-main。

配置检查 ⛔

任何操作前先按 首次引导 · 检测顺序 执行,通过后才继续(或用户明确书面确认「本次不检查」)。单独启用本 skill 时同样。

内置模版

排版 = 模版(骨架:标题装饰、导语、金句卡、图片处理、分隔、文末)× 配色(一组主色/次色,派生色自动重算)。名字即用途,选之前先看「适合」:

模版适合不适合配色(第一个是默认)
亲和教程、职场、面向新手的解释性长文严肃议题、极简冷硬的品牌黛紫 / 松绿 / 靛蓝
资讯快讯、评测、行业观察抒情散文、碎片化短段墨绿 / 绛红 / 藏青
书卷人文、读书、历史、深度长文工程文档、数据密集的评测朱砂 / 黛蓝 / 苍绿
杂志品牌故事、人物访谈、生活方式没有配图的稿子、信息型短文石青 / 驼褐 / 铁锈

不传 --theme 时的内置默认是 亲和。

另外四套不随 skill 内置,在 aiworkskills.cn 选好模版和配色后随 .aws 预设包下发到 .aws-article/presets/formatting/(见 assets skill):活力(产品发布、增长复盘)、手账(个人笔记、复盘)、硬朗(观点、宣言)、技术(工程实践、代码讲解)。网站上选的配色会烘进 YAML 顶层 variables,落地后不需要额外配置。

选之前先跑一次,判据、色值、每套配色的口径都在输出里,别只按名字猜:

{python} {baseDir}/scripts/format.py --list-themes

说不清就看:--preview 把样张渲成并列对照页(每栏 375px,与真机同宽),用浏览器打开。

{python} {baseDir}/scripts/format.py --preview 亲和 -o preview.html   # 该模版的每套配色并列
{python} {baseDir}/scripts/format.py --preview -o preview.html        # 所有模版的默认色并列

线上同一批预览:https://aiworkskills.cn/format-previews/<骨架>/<配色序号>.html,骨架名见 --list-themes。

换配色:--scheme <配色名>,或本篇 article.yaml 写 default_format_scheme: [松绿](单元素列表,由 main 的本篇预设落盘步骤写入)。

图注只认显式写的 title ⛔

![信息图:画面指令给生图模型看](imgs/x.png "图注给读者看")

括号里路径之后引号中的才是图注。alt 冒号后那段是画面指令,不会显示给读者。

早先的实现拿画面指令兼任图注,产出过这种东西:图上画着一个人站在 99.9 的牌子前望向远方,图注写「开发者站在巨型 99.9 分数牌前,视线越过分数望向复杂而开放的城市与工作现场」——把读者眼睛已经看见的复述一遍,零信息;图没生成出来时更会同一句话出现两次(破图 alt 一次、图注一次)。

没写 title 就不出图注,这是有意的:绝大多数图不需要图注,错的图注比没有更糟。图注该补充画面之外的东西——数据出处、一句判断、反常识的细节。

出不出图注还受合并配置的 caption_style 控制:有图注 全出、无图注 全不出、关键图有 只有信息位的图(信息图 / 实证)出。

从标准 markdown 认形态(主路径)

写作侧只产出标准 markdown,识别结构是排版层的事。让写手同时掌握标准 markdown 和一套私有语法就是耦合,而且那套语法只有本套件认得,稿子换个工具就废了。

渲染器会认这些形态,作者不用写任何特殊语法:

作者写的标准 markdown排版层做的事
**加粗**上本模版的重点色或荧光底——正文里唯一的扫读落点
- **标签**:说明标签在视觉上提出来(真稿里 62% 的列表项是这个形状)
- [ ] / - [x]换成该骨架的三态图标
> 金句。 —— 出处排成金句卡(正文位、带破折号出处的引用)
> 引文前面补一个大引号
![图](x.png "图注")四角标 + 图注
---装饰分隔
##标题装饰(笔锋 / 折角块)

只认形态,不推断语义。 有序列表在 markdown 里只表示「枚举」不表示「顺序」,所以不会因为看见 1. 2. 3. 就渲染成「第一步 第二步」——那是替作者断言一个他没说的顺序。真稿实测:三组多项有序列表里只有一组真有先后。

::: 组件语法排版侧仍然认,但写手不再产出——细则见 branches.md「一」。

工作流

排版进度:
- [ ] 第0步:⛔ 配置检查
- [ ] 第1步:确定模版与配色
- [ ] 第2步:转换
- [ ] 第3步:核对输出

第1步:确定模版与配色

--theme 显式指定最优先;不传则读本篇 article.yaml 的 default_format_preset(单元素列表),再无则内置默认 亲和。完整解析顺序与配色的同套规则见 branches.md「二」。

第2步:转换

在仓库根执行(路径按实际本篇目录调整):

# 不传 --theme:读本篇 default_format_preset,否则 亲和
{python} {baseDir}/scripts/format.py drafts/YYYYMMDD-slug/article.md -o drafts/YYYYMMDD-slug/article.html

# 显式指定模版 / 配色(覆盖配置)
{python} {baseDir}/scripts/format.py drafts/YYYYMMDD-slug/article.md --theme 资讯 --scheme 绛红 -o drafts/YYYYMMDD-slug/article.html

# 自定义主色 / 字号
{python} {baseDir}/scripts/format.py article.md --color '#C0392B'
{python} {baseDir}/scripts/format.py article.md --font-size 15px

文末 {embed:…} 的合并规则见 branches.md「四」——占位符与配置对不上会直接失败。

第3步:核对输出

  • 正文不含文章标题(article.md 的首个 # 被跳过,标题在后台单独填)。
  • 配图标记还是 placeholder 时保留为 <img>,等 images skill 替换——终审前必须全部换成真实路径。
  • 其余输出特性(closing.md 追加、预格式化范围、表格对齐)见 branches.md「五」。

选项

选项说明默认值
--theme <名称>模版;省略则按本篇配置 → 内置 亲和亲和
--scheme <配色名>模版的配色(见 --list-themes);省略则读本篇 default_format_scheme,再无则模版默认色模版默认
--color <hex>自定义主色主题默认
--font-size <px>正文字号(同时覆盖主题 p / li 里的字号)16px
-o <路径>输出路径同名 .html
--list-themes列出模版:长相、适合/不适合、每套配色的色值与口径
--preview [模版名]渲成并列对照页(给模版名则并列它的每套配色,不给则并列所有模版)
--export-theme <名称>以 YAML 导出主题,可作为自定义主题起点
--no-preformat跳过 Markdown 预格式化

分支与细则

::: 组件与查找顺序、主题解析完整顺序、自定义主题、{embed:…} 合并规则、输出细节、设计新版式前的微信 HTML 限制 → references/branches.md。

过程文件

读取产出
article.md、.aws-article/config.yaml + 同目录 article.yaml(默认模版与 embeds)、closing.md(可选)article.html

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

公众号素材|业务资料库|预设包|.aws 预设包|主题包|品牌包|aiworkskills.cn — 用户业务资料库与预设包管理:业务资料按产品名组织在 `.aws-article/products/{产品名}/`(介绍 .md 直挂产品根 + 配图归 `images/` 子目录含同名说明 .md),AI 与用户对话产出业务介绍内容时引导用户保存;图片入库走 `product_image_ingest.py --product <产品名> --stem <中文名>`。导入 .aws ZIP 预设包(本地文件或 `https://aiworkskills.cn/**/*.aws` URL)合并主题/配色/字体配置到 `.aws-article/presets/`;`config.yaml` 仅本地不存在时从包内复制,已存在则 stdout 输出差异 JSON 不覆盖。面向内容运营、品牌团队、设计支持岗。触发词:「素材库入库」「stock images」「上传图到素材库」「.aws」「预设包」「导入预设」「主题包」「aiworkskills.cn 链接」「.aws 下载地址」。

The English summary is being prepared. Showing the original description.

aiworkskills/wechat-article-skills705Updated Sep 23, 2026

公众号封面|公众号配图|公众号插图|AI 生图 — 公众号 AI 封面与配图生成,按文章标题与内容自动匹配画风,一稿多方案,多风格预设可复用。面向公众号编辑、自媒体、品牌设计。触发词:「封面」「配图」「插图」「生成图片」「给文章加图」「做个封面」「文章插图」「配个图」。不写正文只发一组图请走 aws-wechat-sticker;需要多环节串联(写+审+排+配图+发)请走 aws-wechat-article-main。

The English summary is being prepared. Showing the original description.

aiworkskills/wechat-article-skills705Updated Sep 23, 2026

公众号运营|微信公众号|公众号一条龙|公众号全流程|自媒体运营|wechat automation|content pipeline|AIGC workflow — 公众号一条龙运营总控入口,选题→写稿→审稿→排版→配图→发布串联 8 个子 skill,单条指令完成整篇图文从 0 到上架。面向公众号小编、自媒体、品牌内容。触发词分层:**一条龙流程**「一条龙」「完整流程」「从头做」「从 0 到发布」;**新做新发**「帮我写篇公众号文章」「做一篇公众号文章」「我想发一篇」「帮我发一篇」「再来一篇」;**选题起点**「今天写什么好」「有什么好写的」「找个话题」「爆款选题」「热点选题」「起个爆款标题」;**策划起点**「内容日历」「系列策划」「专栏规划」「连载」;**流程恢复**「接着上次那篇」「继续昨天的」「继续上次的」「接着之前的进度」;**显式模型新写**「用 GPT 写一篇」「用 DeepSeek 写一篇」「把提纲写成文章」。子 skill(topics/writing/review/formatting/images/publish/sticker/assets)单独触发仅限对**已有产物**的修改场景(如"改标题""润色这段""排版""审稿""加封面""发布");新做/策划/多环节串联一律走本入口。

The English summary is being prepared. Showing the original description.

aiworkskills/wechat-article-skills705Updated Sep 23, 2026

公众号发布|公众号草稿箱|公众号群发|图文推送|微信 API|wechat automation|WeChat API automation|auto publish|scheduled publish — 公众号 API 发布工具,图文入草稿箱或直接群发,支持封面素材上传、发布前检查与 draft/published 模式切换。面向公众号运营、自动化内容团队、开发者。触发词:「发布」「提交」「群发」「推送」「发出去」「上传到公众号」「发到公众号」「可以发了吗」「发布前检查」。需要多环节串联(写+审+排+配图+发)请走 aws-wechat-article-main。

The English summary is being prepared. Showing the original description.

aiworkskills/wechat-article-skills705Updated Sep 23, 2026

公众号审稿|公众号校对|敏感词检测|内容合规 — 公众号发布前合规审查:敏感词扫描、错别字检测、政治合规、平台规范校验,一次性输出修改清单。面向公众号编辑、自媒体作者、合规岗。触发词:「审稿」「审核」「校对」「合规」「敏感词」「错别字」「稿子检查一下」「稿子帮我看看」「稿子写完了」「文章检查一下」「检查下有没有问题」「能不能发」「发布前检查」。需要多环节串联(写+审+排+配图+发)请走 aws-wechat-article-main。

The English summary is being prepared. Showing the original description.

aiworkskills/wechat-article-skills705Updated Sep 23, 2026

公众号选题|爆款标题|热点追踪|系列策划 — 公众号 AI 选题与标题生成,覆盖热点调研、选题策划、起标题、写摘要、系列排期。面向自媒体编辑、内容运营。触发词(**单独触发仅限对已有标题/摘要的修改**):「改标题」「换个标题」「重起标题」「优化标题」「标题再想想」「换个标题试试」「改摘要」「重写摘要」「优化摘要」「摘要再优化下」。新做选题、起新标题、策划系列/内容日历、追热点都请走 aws-wechat-article-main;需要多环节串联(写+审+排+配图+发)也走 main。

The English summary is being prepared. Showing the original description.

aiworkskills/wechat-article-skills705Updated Sep 23, 2026

See all skills by aiworkskills

Report a problem with this skill