mizzlelover/gongwen-gbt9704-skill
信息安全提醒:请勿上传企业禁止对外公开的文件;可在本地或企业内网部署大模型后使用。中文公文排版 Skill:按 GB/T 9704-2012 生成可编辑 DOCX。配套 CEB:https://github.com/mizzlelover/CEB
What it solves
It automates the complex and rigid formatting requirements of official Chinese government documents (Gongwen) based on the GB/T 9704-2012 national standard. It eliminates the manual effort of adjusting margins, fonts, line spacing, and page numbering in Word or WPS, ensuring that documents meet strict institutional requirements for submission.
How it works
The project provides a "Skill" (a set of rules and scripts) that can be integrated into various AI coding assistants and LLM platforms. It uses a Node.js generator (generate_gongwen_docx.mjs) to convert Markdown or text input into a professionally formatted DOCX file. The system handles specific layouts for different document types (ordinary reports, formal letters, commands, minutes) and manages technical details like red-header (hongtou) placement, font compatibility, and automatic table of contents generation.
Who it’s for
Professionals in Chinese government agencies, state-owned enterprises, and public institutions who need to produce official documents that strictly adhere to national formatting standards.
Highlights
- Strict Standard Compliance: Specifically engineered to meet the GB/T 9704-2012 standard, including precise measurements for margins and headers.
- Multi-Platform Support: Compatible with a wide range of AI tools including Claude Code, Kimi, Trae, and WorkBuddy.
- Comprehensive Layouts: Supports various formal styles such as red-header digital versions, pre-printed paper layouts, joint issuance, and detached attachments.
- Built-in Verification: Includes a validator script to check if the generated DOCX file meets the promised formatting parameters.
- Professional Typography: Manages complex Chinese font requirements (e.g., Xiaobiao Song) and provides warnings when standard fonts are missing.
Related
- Project
- Project
- Project
- Project
- Project