Individual skill
gongwen
把中文正式材料整理成可直接交付的公文 DOCX:按 GB/T 9704-2012 处理版心、字体、标题层级、文号、页码、附件与版记;普通稿不误用红头,正式发文支持预印红头纸套打或完整电子红头,并保留 Word/WPS 可更新目录。
SKILL.md
Source commit 6a5e47a9077d30aa62d6a1cd511bcac6887a7b75
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 10, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 859
- Repository last updated
- Sep 13, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-skill Repository topic
- chinese-official-document Repository topic
- claude-code Repository topic
- cross-platform Repository topic
- document-formatting Repository topic
- docx Repository topic
- kimi Repository topic
- opencode Repository topic
- traework Repository topic
- word Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
LICENSEasset · 1,068 bytesREADME.mddoc · 13,945 bytesSKILL.mdcore · 7,940 bytesSKILL.mdcore · 7,940 bytesSKILL.mdcore · 7,940 bytesSKILL.mdcore · 7,940 bytesdist/traework-gongwen-skill.zipasset · 4,570,850 bytesdist/workbuddy-gongwen-skill-v2.0.0.zipasset · 1,229,336 bytesdocs/platform-support.mddoc · 2,838 bytesmarketing/wechat-gongwen-2.0.htmlasset · 22,236 bytesmarketing/x-major-update-images/01-头图.pngasset · 1,309,905 bytesmarketing/x-major-update-images/02-预印红头纸套打.pngasset · 1,536,175 bytesmarketing/x-major-update-images/03-红线与标题留白.pngasset · 1,573,403 bytesmarketing/x-major-update-images/04-标题样式与目录引用.pngasset · 1,653,947 bytesmarketing/x-major-update-images/05-真实环境实测.pngasset · 1,539,651 bytesmarketing/x-major-update-layout-preview.mddoc · 7,907 bytesmarketing/x-major-update.mddoc · 6,870 bytesmarketing/x-promotion.mddoc · 3,615 bytesmarketing/x-v2-release.mddoc · 4,927 bytespunk-assets/author/wechat-who-is-expert.pngasset · 169,197 bytespunk-assets/punk-avatar/gongwen-skill-v2/avatar.pngasset · 148,884 bytespunk-assets/punk-avatar/gongwen-skill-v2/prompts/avatar.mddoc · 6,387 bytespunk-assets/punk-cover/gongwen-ceb-collaboration/cover.pngasset · 1,269,373 bytespunk-assets/punk-cover/gongwen-ceb-collaboration/prompts/cover.mddoc · 7,788 bytespunk-assets/punk-cover/gongwen-redline-x/cover.pngasset · 1,309,905 bytespunk-assets/punk-cover/gongwen-redline-x/inline-outline.pngasset · 1,653,947 bytespunk-assets/punk-cover/gongwen-redline-x/inline-preprinted.pngasset · 1,536,175 bytespunk-assets/punk-cover/gongwen-redline-x/inline-real-world.pngasset · 1,539,651 bytespunk-assets/punk-cover/gongwen-redline-x/inline-spacing.pngasset · 1,573,403 bytespunk-assets/punk-cover/gongwen-redline-x/prompts/cover.mddoc · 3,387 bytespunk-assets/punk-cover/gongwen-redline-x/prompts/inline-outline.mddoc · 1,540 bytespunk-assets/punk-cover/gongwen-redline-x/prompts/inline-preprinted.mddoc · 1,611 bytespunk-assets/punk-cover/gongwen-redline-x/prompts/inline-real-world.mddoc · 1,550 bytespunk-assets/punk-cover/gongwen-redline-x/prompts/inline-spacing.mddoc · 1,512 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/cover-prompt.mddoc · 1,539 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/cover.pngasset · 1,309,594 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/inline-audit-prompt.mddoc · 943 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/inline-audit.pngasset · 1,214,017 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/inline-evidence-prompt.mddoc · 905 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/inline-evidence.pngasset · 1,684,884 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/inline-redhead-prompt.mddoc · 1,033 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/inline-redhead.pngasset · 1,554,980 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/inline-structure-prompt.mddoc · 964 bytespunk-assets/punk-cover/gongwen-skill-major-update-x/inline-structure.pngasset · 1,539,715 bytespunk-assets/punk-cover/gongwen-skill-v2-x/cover.pngasset · 1,238,458 bytespunk-assets/punk-cover/gongwen-skill-v2-x/inline-audit-to-layout.pngasset · 1,753,547 bytespunk-assets/punk-cover/gongwen-skill-v2-x/inline-heading-structure.pngasset · 1,838,517 bytespunk-assets/punk-cover/gongwen-skill-v2-x/inline-preprinted-letterhead.pngasset · 1,654,189 bytespunk-assets/punk-cover/gongwen-skill-v2-x/prompts/cover.mddoc · 2,352 bytespunk-assets/punk-cover/gongwen-skill-v2-x/prompts/inline-audit-to-layout.mddoc · 1,033 bytespunk-assets/punk-cover/gongwen-skill-v2-x/prompts/inline-heading-structure.mddoc · 947 bytespunk-assets/punk-cover/gongwen-skill-v2-x/prompts/inline-preprinted-letterhead.mddoc · 1,163 bytespunk-assets/punk-cover/gongwen-skill-x/cover.pngasset · 1,098,981 bytespunk-assets/punk-cover/gongwen-skill-x/inline-ai-to-word.pngasset · 1,732,092 bytespunk-assets/punk-cover/gongwen-skill-x/inline-font-compatibility.pngasset · 1,371,342 bytespunk-assets/punk-cover/gongwen-skill-x/inline-one-source-many-tools.pngasset · 1,370,225 bytespunk-assets/punk-cover/gongwen-skill-x/inline-standard-to-layout.pngasset · 2,106,111 bytespunk-assets/punk-cover/gongwen-skill-x/prompts/cover.mddoc · 2,659 bytespunk-assets/punk-cover/gongwen-skill-x/prompts/inline-ai-to-word.mddoc · 998 bytespunk-assets/punk-cover/gongwen-skill-x/prompts/inline-font-compatibility.mddoc · 972 bytespunk-assets/punk-cover/gongwen-skill-x/prompts/inline-one-source-many-tools.mddoc · 970 bytespunk-assets/punk-cover/gongwen-skill-x/prompts/inline-standard-to-layout.mddoc · 1,050 bytesreferences/assets/visual-audit/all-pages.pngasset · 719,220 bytesreferences/assets/visual-audit/all-rules/command-1.pngasset · 169,778 bytesreferences/assets/visual-audit/all-rules/command-2.pngasset · 42,115 bytesreferences/assets/visual-audit/all-rules/contact-sheet.pngasset · 339,288 bytesreferences/assets/visual-audit/all-rules/formal-attachments-3.pngasset · 59,167 bytesreferences/assets/visual-audit/all-rules/formal-attachments-4.pngasset · 41,879 bytesreferences/assets/visual-audit/all-rules/formal-attachments-detached-3.pngasset · 66,519 bytesreferences/assets/visual-audit/all-rules/formal-digital-all-1.pngasset · 160,645 bytesreferences/assets/visual-audit/all-rules/formal-digital-all-2.pngasset · 112,689 bytesreferences/assets/visual-audit/all-rules/formal-digital-upward-1.pngasset · 155,376 bytesreferences/assets/visual-audit/all-rules/formal-digital-upward-2.pngasset · 68,016 bytesreferences/assets/visual-audit/all-rules/formal-joint-1.pngasset · 119,640 bytesreferences/assets/visual-audit/all-rules/formal-joint-2.pngasset · 112,914 bytesreferences/assets/visual-audit/all-rules/formal-long-2.pngasset · 367,703 bytesreferences/assets/visual-audit/all-rules/formal-long-3.pngasset · 277,162 bytesreferences/assets/visual-audit/all-rules/formal-preprinted-1.pngasset · 150,253 bytesreferences/assets/visual-audit/all-rules/formal-preprinted-2.pngasset · 68,016 bytesreferences/assets/visual-audit/all-rules/formal-seal-2.pngasset · 19,219 bytesreferences/assets/visual-audit/all-rules/formal-signed-2.pngasset · 21,384 bytesreferences/assets/visual-audit/all-rules/formal-unsigned-1.pngasset · 190,625 bytesreferences/assets/visual-audit/all-rules/formal-unsigned-2.pngasset · 19,238 bytesreferences/assets/visual-audit/all-rules/header-coordinates.logasset · 107 bytesreferences/assets/visual-audit/all-rules/horizontal-table-1.pngasset · 46,922 bytesreferences/assets/visual-audit/all-rules/letter-1.pngasset · 200,462 bytesreferences/assets/visual-audit/all-rules/letter-fields-1.pngasset · 181,409 bytesreferences/assets/visual-audit/all-rules/manifest.tsvasset · 2,205 bytesreferences/assets/visual-audit/all-rules/minutes-1.pngasset · 197,585 bytesreferences/assets/visual-audit/all-rules/minutes-2.pngasset · 40,104 bytesreferences/assets/visual-audit/all-rules/ordinary-1.pngasset · 194,718 bytesreferences/assets/visual-audit/all-rules/ordinary-calibration-1.pngasset · 243,843 bytesreferences/assets/visual-audit/all-rules/table-1.pngasset · 51,516 bytesreferences/assets/visual-audit/first-pages.pngasset · 430,839 bytesreferences/assets/visual-audit/header-coordinates.logasset · 107 bytesreferences/assets/visual-audit/long-pages-colophon.pngasset · 269,093 bytesreferences/formal-checklist.mddoc · 7,669 bytesreferences/gbt9704-2012-summary.mddoc · 11,590 bytesreferences/gbt9704-audit-matrix.mddoc · 10,827 bytesreferences/gbt9704-screenshot-evidence.mddoc · 18,767 bytesreferences/gbt9704-visual-audit.mddoc · 13,937 bytesscripts/generate_gongwen_docx.mjsruns · 59,033 bytesscripts/install.ps1runs · 1,561 bytesscripts/install.shruns · 2,848 bytesscripts/verify_gongwen_docx.mjsruns · 19,368 bytestests/fixture.mddoc · 314 bytestests/fixtures/visual-all.mddoc · 637 bytestests/fixtures/visual-attachment-a.mddoc · 182 bytestests/fixtures/visual-attachment-b.mddoc · 98 bytestests/fixtures/visual-calibration.mddoc · 1,891 bytestests/fixtures/visual-horizontal.mddoc · 124 bytestests/fixtures/visual-long.mddoc · 2,886 bytestests/measure-header-coordinates.mjsruns · 4,043 bytestests/run_tests.shruns · 17,008 bytestests/test-install.shruns · 948 bytestests/visual-audit.shruns · 7,333 bytes
Read excerpt
# 公文版式工具
## 标准依据与边界
GB/T 9704-2012《党政机关公文格式》现行,2025-05-30 复审继续有效。其适用于党政机关制发公文;其他机关、单位可以参照执行。
先读 `references/gbt9704-2012-summary.md`;需要逐项复核时再读 `references/gbt9704-audit-matrix.md` 和 `references/formal-checklist.md`。标准规定纸张、版面、要素编排和印制装订要求。
## 工具定位
本工具只处理排版,不判断单位身份、授权状态或后续盖章方式。它会根据用户明确选择的版式模式应用对应的排版规则,不因“正式”“国企”“报告”或仅提供机构名称而擅自使用红头。
生成器可输出 A4、156mm×225mm 版心、三号仿宋正文、小标宋二号标题、四级标题层次、两字缩进,以及居中或单双页页码。四级标题均写入 Word/WPS 标题样式和大纲级别,便于后续插入、更新目录;文章总标题使用独立“公文标题”样式,不进入目录。上行文的文号和签发人在同一行编排,左右各空一字;信函、命令(令)、纪要和横排表格使用各自专用版式;电子联合行文可重复传入 `--joint-org`;主办机关在前,联署机关名称分行排列;输入含“文件”时将“文件”置右并按联署名称上下居中;分离装订附件可加 `--attachment-detached`;重复传入 `--attachment-file` 时必须同时提供与附件顺序、标题一致的 `--attachment-note`,附件会另页生成并保持页码连续。版记会锚定最后一页版心底部,正式页码按版心下边缘下7mm的位置生成。正式版头的份号、密级、紧急程度和电子机关标志以版心上边缘为垂直锚点固定定位,不会因为左上字段而把机关标志或预印红头留白向下推移。只有传入密级而未传入份号时,首行会保留空位,密级仍从第二行开始。