Kimi DOCX
thvroyal/kimi-skills
Generate and edit Word documents (.docx). An agent skill from thvroyal/kimi-skills.
把中文正式材料整理成可直接交付的公文 DOCX:按 GB/T 9704-2012 处理版心、字体、标题层级、文号、页码、附件与版记;普通稿不误用红头,正式发文支持预印红头纸套打或完整电子红头,并保留 Word/WPS 可更新目录。
$ npx skills add mizzlelover/gongwen-gbt9704-skill --skill gongwen -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mizzlelover/gongwen-gbt9704-skill gongwen --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
Claude Code skills documentation · loads skills from .claude/skills/
Install the "gongwen" agent skill from https://github.com/mizzlelover/gongwen-gbt9704-skill/tree/main into .claude/skills/gongwen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mizzlelover/gongwen-gbt9704-skill --skill gongwen -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mizzlelover/gongwen-gbt9704-skill gongwen --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "gongwen" agent skill from https://github.com/mizzlelover/gongwen-gbt9704-skill/tree/main into .agents/skills/gongwen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mizzlelover/gongwen-gbt9704-skill --skill gongwen -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mizzlelover/gongwen-gbt9704-skill gongwen --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "gongwen" agent skill from https://github.com/mizzlelover/gongwen-gbt9704-skill/tree/main into .cursor/skills/gongwen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mizzlelover/gongwen-gbt9704-skill --skill gongwen -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mizzlelover/gongwen-gbt9704-skill gongwen --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "gongwen" agent skill from https://github.com/mizzlelover/gongwen-gbt9704-skill/tree/main into .gemini/skills/gongwen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mizzlelover/gongwen-gbt9704-skill gongwenInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mizzlelover/gongwen-gbt9704-skill --skill gongwen -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "gongwen" agent skill from https://github.com/mizzlelover/gongwen-gbt9704-skill/tree/main into .github/skills/gongwen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mizzlelover/gongwen-gbt9704-skill --skill gongwen -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mizzlelover/gongwen-gbt9704-skill gongwen --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "gongwen" agent skill from https://github.com/mizzlelover/gongwen-gbt9704-skill/tree/main into .opencode/skills/gongwen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
gongwen把中文正式材料整理成可直接交付的公文 DOCX:按 GB/T 9704-2012 处理版心、字体、标题层级、文号、页码、附件与版记;普通稿不误用红头,正式发文支持预印红头纸套打或完整电子红头,并保留 Word/WPS 可更新目录。
Gongwen is an agent skill from mizzlelover/gongwen-gbt9704-skill. 把中文正式材料整理成可直接交付的公文 DOCX:按 GB/T 9704-2012 处理版心、字体、标题层级、文号、页码、附件与版记;普通稿不误用红头,正式发文支持预印红头纸套打或完整电子红头,并保留 Word/WPS 可更新目录。
Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 138 other files, including scripts and reference files (for example `README.md`, `docs/platform-support.md` and `marketing/x-major-update-layout-preview.md`).
It sits in Documents & Office, covering Word documents. It works with Microsoft Word and Kimi. The repository describes itself as: 信息安全提醒:请勿上传企业禁止对外公开的文件;可在本地或企业内网部署大模型后使用。中文公文排版 Skill:按 GB/T 9704-2012 生成可编辑 DOCX。配套 CEB:https://github.com/mizzlelover/CEB. The licence is MIT.
Read from SKILL.md and the folder at commit 6a5e47a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/, which the agent can run.
Shell commands in SKILL.md call:
nodesofficebashFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Gongwen loads about 1k tokens when it runs, and up to ~1.3M if it reads all its reference files. Until then it costs about 31 tokens; SKILL.md has 91 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from mizzlelover/gongwen-gbt9704-skill at commit 6a5e47a, republished under its MIT licence (© mizzlelover). 91 words, ~1,049 tokens.
.claude/skills/gongwen/SKILL.md (or your agent's skills folder). This skill also uses 134 other files; get the full folder from GitHub.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的位置生成。正式版头的份号、密级、紧急程度和电子机关标志以版心上边缘为垂直锚点固定定位,不会因为左上字段而把机关标志或预印红头留白向下推移。只有传入密级而未传入份号时,首行会保留空位,密级仍从第二行开始。
references/formal-checklist.md 是可选的版式复核清单。涉及印章或签名章时,使用者可在 Word/WPS 中插入已取得的图片或完成实体盖章;本生成器不内置印章图像。
node scripts/generate_gongwen_docx.mjs --input source.md --output output.docx --format ordinary --title "文档标题"普通材料使用 --format ordinary,默认居中页码,不绘制红头。正式发文须显式使用 --format formal;其默认 --letterhead preprinted,即首面预留红头纸区域、不在 DOCX 中重绘纸上已有的红色机关标志和红线。--doc-no 等本次需打印的黑色变量仍可保留。只有明确要求完整电子版时使用 --letterhead digital。完整电子红头的机关标志按标准推荐使用小标宋体,标题按标准使用小标宋体;生成器会在缺失时明确警告并记录实际替代字体,需要硬性阻止替代输出时加 --require-standard-fonts。红线下标题按28磅版心网格空二行。
# 预印红头纸套打;72mm 是默认机关标志区域起点,可按实际纸样调为 37—130mm
node scripts/generate_gongwen_docx.mjs --input source.md --output output.docx --format formal --letterhead preprinted --letterhead-reserve-mm 72 --org "发文机关名称" --doc-no "单位发〔2026〕1号" --title "文档标题" --sender "落款单位" --date "2026年9月9日"
# 完整电子红头版,仅在明确要求时使用
node scripts/generate_gongwen_docx.mjs --input source.md --output output.docx --format formal --letterhead digital --org "发文机关名称" --doc-no "单位发〔2026〕1号" --title "文档标题"letter、command、minutes、horizontal-table 分别对应信函、命令(令)、纪要和横排表格格式;需要时显式传入 --format 和相应字段。横排表格会生成横向A4页面和225mm表格,单双页表头在订口/切口的朝向仍需目标 Word/WPS 模板核对。联合行文使用 --joint-org,主办机关在前、联署机关名称分行排列;输入含“文件”时将“文件”置右并按联署名称上下居中;附件不能与正文一起装订时使用 --attachment-detached,附件首行会补排文号和附件序号。command 会要求机关标志以“命令”或“令”结尾;信函中的份号、密级和紧急程度会在第一条双线下按标准顺序编排,联合行文和机关专用信函模板仍需目标软件核对。正式发文默认单双页页码;standard 为单页右、双页左,center 与 none 供普通材料选择。
附件可重复传入 --attachment-file attachment.md。附件 Markdown 的首个一级标题会作为附件标题,第一页第一行写“附件1”(后续文件递增),第三行写标题,随后排正文;附件说明通过 --attachment-note 提供,工具会统一为“附件:”并去除末尾标点,同时拒绝顺序或标题与附件文件不一致的输入。复杂横排附件、不能与正文一起装订的附件和机关专用模板仍需在目标 Word/WPS 中核对。
正式版式的 --doc-no 采用“单位发〔2026〕1号”这类标准写法;--date、--print-date 采用“2026年9月9日”,月份和日期不补零。明显不符合这两类规则的输入会被拒绝,避免把错误字段排成看似规范的文件。
Markdown 标题优先按序数识别:一、、(一)、1.、(1);序数缺失时才按 Markdown 层级映射。正文、四级标题均左空二字,回行顶格。标题字体在运行机器缺失时会明确报告并使用可见替代字体;打开文件时仍须确认目标 Office/WPS 的实际字体,不把普通宋体视作小标宋的等价替代。
unzip -t output.docx
soffice --headless --convert-to pdf --outdir /tmp output.docx
node scripts/verify_gongwen_docx.mjs --input output.docx --profile formal --letterhead preprinted
# 目标电脑必须装有标准小标宋体和仿宋体时,再加严格字体校验
node scripts/verify_gongwen_docx.mjs --input output.docx --profile formal --letterhead digital --require-standard-fonts
# 逐场景生成 DOCX、PDF 和 PNG,人工按截图核对版式
bash tests/visual-audit.sh /tmp/gongwen-visual-audit全条款视觉证据和未自动化边界见GB/T 9704-2012 全条款视觉核验记录和全条款截图证据矩阵。横排表格的单双页表头方向、实体印章、纸张和装订不能只由 DOCX 生成器证明。
校验器核验生成器可检查的版式要素,并按 ordinary、formal、letter、command、minutes、horizontal-table 选择校验档案。输出后仍须在目标 Word/WPS 与实际打印条件下检查首页正文、分页、附件、表格、页码、红头纸套打和装订。
formal-checklist.md 逐项复核。© mizzlelover, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 134 other files (scripts, references) in the repository root of mizzlelover/gongwen-gbt9704-skill.
Open the folder on GitHubat commit 6a5e47a
Gongwen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Gongwen this skillmizzlelover/gongwen-gbt9704-skill | 765 | — | ~1k | Automated safety check: Pass | MIT | |
| Kimi DOCXthvroyal/kimi-skills | 238 | — | ~8k | Automated safety check: Pass | None | |
| MarkitdownImCa0/just-laws | 781 | 14 repos | ~3.2k | Automated safety check: Notes | MIT | |
| DOCXrvdbreemen/OTGW-firmware | 207 | 33 repos | ~4.3k | Automated safety check: Pass | Proprietary | |
| Word Document Reader and WriterHKUDS/DeepTutor | 41k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Gzh Designisjiamu/gzh-design-skill | 4k | — | ~2.2k | Automated safety check: Pass | AGPL-3.0 |
thvroyal/kimi-skills
Generate and edit Word documents (.docx). An agent skill from thvroyal/kimi-skills.
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
rvdbreemen/OTGW-firmware
A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).
HKUDS/DeepTutor
Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.
isjiamu/gzh-design-skill
微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…
genspark-ai/genoffice
Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.
Works with
Categories
把中文正式材料整理成可直接交付的公文 DOCX:按 GB/T 9704-2012 处理版心、字体、标题层级、文号、页码、附件与版记;普通稿不误用红头,正式发文支持预印红头纸套打或完整电子红头,并保留 Word/WPS 可更新目录。. Gongwen is an agent skill from mizzlelover/gongwen-gbt9704-skill.
Gongwen fits situations like: tasks that involve Word documents.
Run `npx skills add mizzlelover/gongwen-gbt9704-skill --skill gongwen -a claude-code`. Or copy the skill folder (the mizzlelover/gongwen-gbt9704-skill repository) into .claude/skills/gongwen in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mizzlelover/gongwen-gbt9704-skill --skill gongwen -a codex`. Or copy the skill folder (the mizzlelover/gongwen-gbt9704-skill repository) into .agents/skills/gongwen in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mizzlelover/gongwen-gbt9704-skill --skill gongwen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gongwen, .gemini/skills/gongwen, .github/skills/gongwen and .opencode/skills/gongwen in your project.
Going by SKILL.md and its folder, Gongwen needs the command-line tools its instructions call (node, soffice and bash).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Gongwen is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3M tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Gongwen: Kimi DOCX (thvroyal/kimi-skills, 238 stars), Markitdown (ImCa0/just-laws, 781 stars), DOCX (rvdbreemen/OTGW-firmware, 207 stars) and Word Document Reader and Writer (HKUDS/DeepTutor, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mizzlelover (a GitHub user) maintains it in mizzlelover/gongwen-gbt9704-skill, which has 765 GitHub stars. The repository was last updated on September 13, 2026.
Source: mizzlelover/gongwen-gbt9704-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.