完善项目介绍与图文素材

This commit is contained in:
mizzlelover
2026-09-09 20:32:05 +08:00
parent 2dd6729f07
commit e4d34030d7
12 changed files with 139 additions and 0 deletions
+50
View File
@@ -6,6 +6,56 @@
许多 AI 只会把标题设为黑体、正文设为仿宋,便把输出称为“公文”。本项目把 A4、版心、正文、层次、首页和页码等版式参数做成可生成、可检查的 DOCX 输出,并接受用户提供的机构名称、文号、署名、日期和页码模式。 许多 AI 只会把标题设为黑体、正文设为仿宋,便把输出称为“公文”。本项目把 A4、版心、正文、层次、首页和页码等版式参数做成可生成、可检查的 DOCX 输出,并接受用户提供的机构名称、文号、署名、日期和页码模式。
## 项目缘起
![公文排版 Skill 项目头图](punk-assets/punk-cover/gongwen-skill-x/cover.png)
### 我把自己常用的公文排版 Skill 开源了
我最早注意到 Skill,是 Claude Code 推出这个概念的时候。那时官方有一套 Office 相关的能力,用起来的第一感觉很好。以前让 AI 写完一份材料,常常还要把内容转成 Python,再自己补一段脚本去生成 Word。现在至少有了一个入口,生成的样式会比裸写一段提示词规整得多。
![从 AI 到 Word 的整理流程](punk-assets/punk-cover/gongwen-skill-x/inline-ai-to-word.png)
后来真正拿来干活,事情没有这么简单。
它能把 Word 读进去,也能再转回 Word,可原文件里那些我在意的格式经常留不住。标题层级、段前段后、缩进和页脚,拿到新文件里还得重新排。对不少国内企业来说,这已经够麻烦了。
还是得自己调。
事业单位和国企的正式材料更严,差几毫米、少一个页码规则,文件就很难往下走。
我开始自己调版式,才发现这些细节比想象中散。WPS 和 Office Word 看着能互相打开,字体命名却不总在同一套规则里。有的环境认中文字体名,有的认英文名。一个文件在电脑上排得好好的,换个环境,字号、行距和换行都有可能变样。
![字体兼容带来的版式差异](punk-assets/punk-cover/gongwen-skill-x/inline-font-compatibility.png)
总有一处露馅。
后来 Kimi 推出客户端,我有一次把材料交给它,没特地交代公文格式。它自己去检索相关国标,顺手拼出了一份接近标准的版式。字体处理得不错,效果也比我预期好。我猜它读到了我原先 Kimi 环境里灵魂文件中的要求,但这只是我对当时行为的判断。
![从标准参数到文档版式](punk-assets/punk-cover/gongwen-skill-x/inline-standard-to-layout.png)
那次结果让我意识到,公文格式这件事确实适合做成 Skill。很多重复动作可以交给工具,用户也不必每次从页边距和字体名称重新讲起。
不过接着用下来,问题还是陆续冒出来。缩进、边距、段间距和页码,往往各自看着差不多,合到一份文件里就不够准。市场上可能早就有人做过公文 Skill,我自己做项目时顺手让 AI 生成了这一套,也一直没有专门去装别人的。
用得越多,我越不想靠“看起来像”过关。前些天我把 GB/T 9704-2012 逐项拿出来核了一遍,也把发现的问题逐个补进了 Skill。现在它会把常用的页面、字体、标题、正文、层级、机构名称、文号、署名、日期和页码排进可编辑的 DOCX,方便在 Word 或 WPS 里继续处理表格、附件和盖章位置。
我把这套 Skill 开源,是想让它从我自己的电脑里走出来。它现在可以安装到 Codex、Claude Code、OpenCode、Trae Code、Kimi、TraeWork、WorkBuddy 和 ZCode。各个平台读的是同一份规则,后续修改也不用在七八个目录里反复补。
![同一套规则服务多个 AI 工具](punk-assets/punk-cover/gongwen-skill-x/inline-one-source-many-tools.png)
它很小,却是我的刚需。很多时候,一份材料能不能顺利交出去,卡的就是这些平时没人愿意盯的细节。
如果你也在做中文正式材料,欢迎试试看。遇到问题可以直接反馈给我,我会继续把它改得更稳。
项目地址
https://github.com/mizzlelover/gongwen-gbt9704-skill
标准依据
https://std.samr.gov.cn/gb/search/gbDetailed?id=lOIe27f77QU%3D&mode=p
## 能力与边界 ## 能力与边界
| 场景 | 本项目的处理方式 | | 场景 | 本项目的处理方式 |
+47
View File
@@ -0,0 +1,47 @@
# 我把自己常用的公文排版 Skill 开源了
![公文排版 Skill 项目头图](../punk-assets/punk-cover/gongwen-skill-x/cover.png)
我最早注意到 Skill,是 Claude Code 推出这个概念的时候。那时官方有一套 Office 相关的能力,用起来的第一感觉很好。以前让 AI 写完一份材料,常常还要把内容转成 Python,再自己补一段脚本去生成 Word。现在至少有了一个入口,生成的样式会比裸写一段提示词规整得多。
![从 AI 到 Word 的整理流程](../punk-assets/punk-cover/gongwen-skill-x/inline-ai-to-word.png)
后来真正拿来干活,事情没有这么简单。
它能把 Word 读进去,也能再转回 Word,可原文件里那些我在意的格式经常留不住。标题层级、段前段后、缩进和页脚,拿到新文件里还得重新排。对不少国内企业来说,这已经够麻烦了。
还是得自己调。
事业单位和国企的正式材料更严,差几毫米、少一个页码规则,文件就很难往下走。
我开始自己调版式,才发现这些细节比想象中散。WPS 和 Office Word 看着能互相打开,字体命名却不总在同一套规则里。有的环境认中文字体名,有的认英文名。一个文件在电脑上排得好好的,换个环境,字号、行距和换行都有可能变样。
![字体兼容带来的版式差异](../punk-assets/punk-cover/gongwen-skill-x/inline-font-compatibility.png)
总有一处露馅。
后来 Kimi 推出客户端,我有一次把材料交给它,没特地交代公文格式。它自己去检索相关国标,顺手拼出了一份接近标准的版式。字体处理得不错,效果也比我预期好。我猜它读到了我原先 Kimi 环境里灵魂文件中的要求,但这只是我对当时行为的判断。
![从标准参数到文档版式](../punk-assets/punk-cover/gongwen-skill-x/inline-standard-to-layout.png)
那次结果让我意识到,公文格式这件事确实适合做成 Skill。很多重复动作可以交给工具,用户也不必每次从页边距和字体名称重新讲起。
不过接着用下来,问题还是陆续冒出来。缩进、边距、段间距和页码,往往各自看着差不多,合到一份文件里就不够准。市场上可能早就有人做过公文 Skill,我自己做项目时顺手让 AI 生成了这一套,也一直没有专门去装别人的。
用得越多,我越不想靠“看起来像”过关。前些天我把 GB/T 9704-2012 逐项拿出来核了一遍,也把发现的问题逐个补进了 Skill。现在它会把常用的页面、字体、标题、正文、层级、机构名称、文号、署名、日期和页码排进可编辑的 DOCX,方便在 Word 或 WPS 里继续处理表格、附件和盖章位置。
我把这套 Skill 开源,是想让它从我自己的电脑里走出来。它现在可以安装到 Codex、Claude Code、OpenCode、Trae Code、Kimi、TraeWork、WorkBuddy 和 ZCode。各个平台读的是同一份规则,后续修改也不用在七八个目录里反复补。
![同一套规则服务多个 AI 工具](../punk-assets/punk-cover/gongwen-skill-x/inline-one-source-many-tools.png)
它很小,却是我的刚需。很多时候,一份材料能不能顺利交出去,卡的就是这些平时没人愿意盯的细节。
如果你也在做中文正式材料,欢迎试试看。遇到问题可以直接反馈给我,我会继续把它改得更稳。
项目地址
https://github.com/mizzlelover/gongwen-gbt9704-skill
标准依据
https://std.samr.gov.cn/gb/search/gbDetailed?id=lOIe27f77QU%3D&mode=p
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

@@ -0,0 +1,22 @@
# 瑞士国际主义 Swiss cover prompt
You are a top-tier cover art director, editorial visual designer, typography designer, and image-generation prompt director.
Create one single X article cover image with aspect ratio 5:2, optimized for a wide social-feed header. Use a precise Swiss International Typographic Style visual system with a strict modular grid, Helvetica-style sans-serif typography, hairline rules, off-white paper ground, black text, and one controlled ultramarine-blue accent.
The cover promotes an open-source skill that helps AI generate accurate, editable Chinese official-document layouts from user-supplied formatting fields.
Use this exact title hierarchy in Simplified Chinese.
- Main title, largest and fully readable: 公文 Skill
- Second line, fully readable: 我把它开源了
- Small editorial line, fully readable: GB/T 9704-2012 公文排版与可编辑 DOCX
- Small right-edge label: OPEN SOURCE / 2026
Build the composition on a cream-white field #FAFAF8. Place the huge black main title in the left two-fifths, aligned rigidly to a visible mathematical grid. Set the second line beneath it in black, smaller but still prominent. Draw a clean horizontal blue rule #1A4FD6 through the lower third. In the middle-right, place one sharply cropped A4 document sheet seen nearly flat from above. The paper contains only abstract black text bars and a small blue check mark, never a real official emblem, never a red masthead, never a seal, never a readable document number.
Turn the core idea into a precise visual metaphor. A blue horizontal rule crosses the paper edge and becomes a small blue alignment marker. The transition shows that a clear set of formatting inputs becomes an editable, print-ready document. Use a small blue grid label in the far-right lower corner reading EDITABLE DOCX, secondary and restrained.
Typography must be the main visual subject. Use a Swiss poster reading path from the upper-left title, down through the subtitle, across the blue rule, then to the A4 sheet and small right-edge label. Keep more blank space than graphics. Use crisp black geometric sans-serif type, controlled scale contrast, exact baseline alignment, thin gray grid lines, and no decorative texture. The image should feel rational, print-ready, modern, editorial, and open-source.
Avoid generic AI illustration, gradients, 3D chrome, cute mascots, office photography, government seals, stamps, signatures, national emblems, dense infographics, presentation-slide style, e-commerce advertising, misspelled Chinese text, cropped title text, or unrelated decorations. Generate only one finished wide cover image.
@@ -0,0 +1,5 @@
# 瑞士国际主义内文插图 1
Create one polished editorial illustration for an X article, aspect ratio 5:3. Apply Swiss International Typographic Style through an off-white paper ground, a strict modular grid, black geometric forms, thin gray hairline rules, and exactly one ultramarine-blue accent. No text, no logos, no branding.
Show a concise visual metaphor for turning an AI-written formal document into an editable Word document. On the left, a small black terminal window made from pure geometric blocks sends a blue alignment line across the grid. On the right, the line enters a crisp white A4 sheet with black text bars that resolve into neat typographic rows. The transition should feel precise and useful, like moving from draft text to a properly arranged document. Keep ample white space, hard edges, subtle paper shadow, and an editorial print-poster finish. Avoid generic software UI, 3D rendering, cute robots, gradients, office photography, clutter, and unreadable text.
@@ -0,0 +1,5 @@
# 瑞士国际主义内文插图 2
Create one polished editorial illustration for an X article, aspect ratio 5:3. Apply Swiss International Typographic Style through an off-white paper ground, a strict modular grid, black geometric forms, thin gray hairline rules, and exactly one ultramarine-blue accent. No text, no logos, no branding.
Show two nearly identical A4 document sheets side by side on a precise grid. The left sheet has evenly aligned black typographic bars, while the right sheet has the same bars shifted into a subtly different line wrapping and baseline rhythm. A single blue calibration ruler bridges the gap between them, showing font compatibility and layout drift across document software. Keep the discrepancy visible but elegant and restrained. Use flat editorial geometry, crisp paper edges, light shadow, and generous blank space. Avoid literal computer screenshots, app icons, gradients, 3D rendering, dense infographics, and unreadable text.
@@ -0,0 +1,5 @@
# 瑞士国际主义内文插图 4
Create one polished editorial illustration for an X article, aspect ratio 5:3. Apply Swiss International Typographic Style through an off-white paper ground, a strict modular grid, black geometric forms, thin gray hairline rules, and exactly one ultramarine-blue accent. No text, no logos, no branding.
Show one central white A4 document sheet on a modular grid. Four compact black terminal-like panels sit at the four corners, each connected to the document by one continuous ultramarine-blue line. The geometry should communicate that one shared skill source serves several AI tools without duplication. Keep every object abstract and generic, avoid product logos or readable labels. Use a clean editorial system diagram rather than a corporate infographic, with crisp typography-like bars, paper shadow, rigid alignment, and lots of empty space. Avoid gradients, 3D metallic surfaces, cute mascots, dense interfaces, and clutter.
@@ -0,0 +1,5 @@
# 瑞士国际主义内文插图 3
Create one polished editorial illustration for an X article, aspect ratio 5:3. Apply Swiss International Typographic Style through an off-white paper ground, a strict modular grid, black geometric forms, thin gray hairline rules, and exactly one ultramarine-blue accent. No text, no logos, no branding.
Show a carefully measured path from abstract standard parameters to a finished document layout. At upper left, a small grid of black measurement ticks and circles acts as source parameters. A blue line passes through a clean central square and reaches a white A4 document sheet at lower right, where black text bars, heading blocks, margin markers, and one blue check align exactly. The scene should feel like a method turning rules into a usable page, with a quiet research-desk precision. Use a flat top-down editorial composition, paper texture, hairline geometry, limited blue, and abundant negative space. Avoid robots, dashboards, literal browser search screens, gradients, clutter, and unreadable text.