Gongwen GB/T 9704 Skill logo

Gongwen GB/T 9704 Skill

Visit

Gongwen GB/T 9704 Skill is a MIT pack that writes GB/T 9704-2012 official-document DOCX for Claude Code, Codex, OpenCode, and Kimi.

Share:
View alternatives

Gongwen GB/T 9704 Skill is a loadable agent skill that turns Chinese formal copy into an editable DOCX laid out against GB/T 9704-2012. The repo mizzlelover/gongwen-gbt9704-skill is MIT, created 2026-09-09, JavaScript. On 2026-09-10 GitHub listed 7 stars and 1 fork. It showed up on X For You via 谁是专家's article that open-sourced the pack the author already used for state-enterprise paperwork. Homepage on the repo is that X account.

Compare DOCX Skill if you wanted Anthropic's general Word skill, Document Skills if you needed PDF/PPTX/XLSX as well, or WorkBuddy if you wanted a Chinese-first host that can import this pack.

Key Features

  • Layout, not legal review: SKILL.md says it only sets A4, 156mm x 225mm type area, FangSong body, Xiaobiao Song title, four heading levels, two-character first-line indent, agency name, document number, signature, date, and page numbers. It does not guess missing fields or embed a seal image.
  • Generator plus checker: scripts/generate_gongwen_docx.mjs writes the DOCX. scripts/verify_gongwen_docx.mjs checks what the generator can promise (layout or standard-pages).
  • One source, many hosts: scripts/install.sh --all (and the PowerShell twin) links the same SKILL.md tree into Codex, Claude Code, OpenCode, Trae Code, Kimi, WorkBuddy, and ZCode. TraeWork uses dist/traework-gongwen-skill.zip.
  • National standard pointer: README cites GB/T 9704-2012 as still in force after the 2025-05-30 review, via the national standards portal.

Limitation: 7 stars is a heat signal from a day-old repo, not an audit. Font names can survive in the file while Word or WPS substitutes something else. Seals, attachments, and tables still need a human in Word or WPS. This is not a substitute for the full GB/T 9704-2012 text.

Use Cases

  • Claude Code / Codex / OpenCode / Kimi users who already draft Chinese memos and keep losing heading, indent, and page-number rules.
  • Enterprise or public-sector writers who will finish stamps and annexes in Word or WPS after the skill writes the shell.
  • People comparing it with DOCX Skill who need GB/T 9704 page geometry, not tracked changes.

Pricing

Piece Price Notes from first-party pages 2026-09-10
gongwen-gbt9704-skill $0 MIT. About 7 stars.
Host Confirm that product Claude Code, Codex, OpenCode, Trae, Kimi, WorkBuddy, or ZCode.

Getting Started

  1. Clone github.com/mizzlelover/gongwen-gbt9704-skill.
  2. On macOS or Linux run scripts/install.sh --all. On Windows run .\scripts\install.ps1 -All.
  3. Generate a sample: node scripts/generate_gongwen_docx.mjs --input tests/fixture.md --output /tmp/gongwen.docx --org "示例单位文件" --doc-no "示例发〔2026〕1号" --title "公文格式回归测试" --page-number standard.
  4. Verify with node scripts/verify_gongwen_docx.mjs --input /tmp/gongwen.docx --profile standard-pages, then open the file in Word or WPS.

First-party resource: SKILL.md.

Frequently Asked Questions

Does it write the full official document, including the seal?

No. README says insert an already obtained seal image, or stamp on paper, in Word or WPS.

Is this Anthropic's DOCX skill?

No. DOCX Skill is the official general Word pack. This one is a GB/T 9704 layout generator.

Will Songti pass as Xiaobiao Song?

SKILL.md says no. Keep the requested font name and check what Office actually substitutes.

Alternatives

  • DOCX Skill: Anthropic's official Word create/edit skill.
  • Document Skills: Office plus PDF in one scientific-writer pack.
  • WorkBuddy: A Chinese-first host that can import this zip.

Tips

  1. Quote MIT, 7 stars, GB/T 9704-2012, and scripts/install.sh --all from pages checked 2026-09-10.
  2. Run tests/run_tests.sh before you trust a new clone.
  3. Treat this as layout automation. Do not claim it certifies a filing.

Conclusion

Gongwen GB/T 9704 Skill is the small MIT pack X For You was pointing at: one SKILL.md, a DOCX generator, and installers for the agents people already run. Start at the GitHub repo. If you only needed generic Word editing, open DOCX Skill instead.

Comments

No comments yet. Be the first to comment!