gongwen-draft

Draft, review, and export Chinese official documents to Word with policy citation checks.

60|5|Updated Jun 29, 2026
One-click install
npx skills add https://github.com/Rimagination/gongwen-draft --skill gongwen-draft-rimagination
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gongwen-draft
Source: https://github.com/Rimagination/gongwen-draft
Command: npx skills add https://github.com/Rimagination/gongwen-draft --skill gongwen-draft-rimagination

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, fonttools, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Drafting Chinese official documents (公文) and government materials is error-prone: wrong document types, fabricated policy citations, incorrect punctuation, and non-compliant Word formatting are common risks. This Skill enforces a verify-first workflow that checks policy sources, document type, language, and fonts before producing a draft or Word file. ## Core Features & Use Cases - Drafting and revision across 23 document types: Covers all 15 statutory document types (通知, 请示, 报告, 函, 纪要, etc.) plus 8 common government materials such as 工作总结, 工作方案, and 调研报告. - Policy research and citation verification: Builds citation ledgers from official sources (gov.cn, flk.npc.gov.cn) and flags untrusted or media-only references before drafting. - Linting and Word export: Scripts check document structure, punctuation, risky wording, and required official fonts (方正小标宋简体, 仿宋_GB2312), then generate GB/T 9704-2012 style .docx files with optional red-head headers. - Use Case: Turn meeting notes about flood-control deployment into a formal 通知 draft, verify its policy citations, lint the language, and export a properly formatted Word document. ## Quick Start Ask the assistant to use gongwen-draft to turn your meeting notes into a formal 通知 draft and export it as a Word document.

Frequently Asked Questions about gongwen-draft

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I draft a Chinese official document like 通知 or 请示 with AI?▼

Provide your meeting notes or work points and specify the document type. The skill routes by document type, writing direction, format, and tone, then drafts with placeholders for unknown facts and runs structure and language lint checks before delivery.

How to export a Chinese official document to Word with correct formatting?▼

Run scripts/generate_docx.py on a controlled Markdown draft to produce a .docx following GB/T 9704-2012 defaults: A4 page, specified margins, 方正小标宋简体 titles, and 仿宋_GB2312 body text. Export stops if required fonts are missing.

Does the Word export require specific Chinese fonts?▼

Yes, export requires 方正小标宋简体, 仿宋_GB2312, 黑体, 楷体_GB2312, and 宋体. The font check script stops export if fonts are missing and can install authorized font assets from assets/fonts on Windows.

Can it verify policy citations against official government sources?▼

Yes, scripts/check_citations.py classifies URLs as official (gov.cn, npc.gov.cn), authoritative media (people.com.cn, xinhuanet.com), or untrusted. Media sources are flagged as background only and cannot replace official policy originals.

What are the limitations of generated official document drafts?▼

Generated files are drafts only, not formal issuances. The skill never invents document numbers, signatories, seals, or policy basis, and red-head headers require user-supplied authorized values or placeholders.