mizzlelover/gongwen-gbt9704-skill

信息安全提醒:请勿上传企业禁止对外公开的文件;可在本地或企业内网部署大模型后使用。中文公文排版 Skill:按 GB/T 9704-2012 生成可编辑 DOCX。配套 CEB:https://github.com/mizzlelover/CEB

What it solves

It solves the difficulty of creating official Chinese government documents (Gongwen) that strictly adhere to the GB/T 9704-2012 national standard. Most AI tools only apply basic fonts, but this project ensures precise layout parameters—including A4 margins, page centers, heading levels, and page numbering—that are required for formal submission in state-owned enterprises and government agencies.

How it works

The project provides a "Skill" (a set of rules and scripts) that can be integrated into various AI coding agents and IDEs. It uses a generator script to convert Markdown input into a formatted DOCX file. It handles complex layout requirements such as "red-head" (letterhead) scenarios, specific spacing for official titles, and standard font mapping. It also includes a verifier script to check if the generated document meets the promised layout specifications.

Who it’s for

Professionals working in Chinese government agencies, state-owned enterprises, or organizations that must produce formal official documents following the GB/T 9704-2012 standard.

Highlights

  • Strict Standard Adherence: Specifically designed for GB/T 9704-2012, covering A4 layout, font sizes, and hierarchical headings.
  • Multi-Platform Support: Compatible with AI tools like Claude Code, Kimi, Trae, and OpenCode via a unified SKILL.md structure.
  • Flexible Letterhead Options: Supports both pre-printed red-head paper (leaving specific blank spaces) and fully digital red-head generation.
  • Specialized Document Types: Dedicated logic for letters, commands, minutes, and horizontal tables.
  • Built-in Verification: Includes a validator and visual audit tools to ensure the output matches the national standard.

Related

  • Project
  • Project
  • Project
  • Project