Official Document Master: Processing Word/DOCX in Agents per Party and Government Official Document Standards

Preface

For official documents produced by government agencies and public institutions, most ultimately end up in Word: layout must be correct, document type must be correct, and fonts must not be missing. Drafting with a general-purpose conversation model often only captures the gist of the body text; margins, heading hierarchy, date of composition, and font compliance still have to be manually adjusted item by item in Word. Below we introduce a community Skill on SkillHub — “Gongwen Writer” (公文笔杆子) — which binds drafting, revision, layout, and validation into the DOCX delivery pipeline, and provides an actionable path for resolving missing Chinese fonts.

What Is This

“Gongwen Writer” is an office-efficiency Skill (category office-efficiency, source community, current version 1.0.3) under the SkillHub coordinate @user_0c5c3d2f/gongwen-word-mini. It is published by user_0c5c3d2f and requires no API Key configuration (requires_api_key=false).

One-sentence positioning: drafts, revises, lays out, and validates Word/DOCX files according to the Chinese Party and government official document standards. Applicable document types include Party and government official documents, as well as notices, requests for instructions, reports, letters, meeting minutes, decisions, announcements, circulars, approvals, opinions, orders, gazettes, proposals, and resolutions (subject to the SkillHub page introduction).

Core Features

According to the official SkillHub documentation, the verified capabilities include:

  1. Drafting & Revision: Generates or adjusts DOCX content within the official document standard framework.
  2. Layout & Validation: Performs layout processing and compliance checks on the finished document, producing a usable Word file.
  3. Font Scanning & Completion: On first use, automatically scans the user’s system font directory; if commonly used official document fonts are missing, it outputs completion guidance (including open-source font download links). After placing font files into assets/fonts/, the Skill installs them automatically.
  4. Fallback Delivery: If the user chooses not to install fonts yet still requests document generation, the Skill uses fallback fonts and explicitly notes this at delivery time.

Installation & Activation

The Skill follows the generic SKILL.md format and is installed into the current Agent’s skills directory via the SkillHub CLI. Installing it into the wrong directory will prevent the Agent from loading it; you need to specify --dir according to your environment.

Method 1: Have the AI follow the official installation documentation

Send the following prompt to an AI that supports Skills (for installation instructions, see the SkillHub installation documentation):

Please install `@user_0c5c3d2f/gongwen-word-mini` according to https://skillhub.cn/install/skillhub.md.

Method 2: skillhub CLI already installed locally

First confirm whether the CLI is available:

command -v skillhub && skillhub --version

If it is not installed, follow the SkillHub documentation to perform a full installation (requires internet access):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

When installing the Skill, --dir must point to the current client’s skills directory. Common paths are as follows (excerpted from the SkillHub installation documentation):

Client skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

Example (replace <skills directory> with the corresponding path from the table above):

skillhub install @user_0c5c3d2f/gongwen-word-mini --dir <skills directory>

After installation is complete, restart or refresh the Skill list according to the conventions of your Agent, then invoke the “Gongwen Writer” capabilities in conversation.

Typical Usage

The official page does not provide fixed Prompt templates; a typical workflow can be reproduced by breaking down the capabilities:

  1. New official document: Specify the document type (e.g., notice, request for instructions), subject matter, primary recipient organizations, and composition elements; request DOCX output with compliance validation.
  2. Document revision: Provide an existing DOCX or body text, specify revision requirements (wording, structure, or layout), and request re-layout adjustments according to Party and government official document standards.
  3. Font issues: If the first run reports missing fonts, download open-source fonts per the guidance, place them into assets/fonts/ under the Skill workspace, and regenerate; if fonts are not installed at this time, accept the fallback fonts and verify the delivery notes.

The above steps depend on conversation context and the Skill’s built-in rules; specific layout details are subject to the Skill’s execution results.

Applicable Scenarios & Notes

Who It’s For

  • Secretary and general-affairs staff who frequently produce or revise Party and government official document DOCX files.
  • Teams already using Skills in environments such as Cursor, Claude Code, and Codex, who want to complete “drafting + layout + font checking” within a single Agent pipeline.

Limitations & Notes

  • This is a community-sourced Skill; its standard basis is the “Chinese Party and Government Official Document Standards” mentioned in the introduction. Major or classified documents still require manual final review.
  • Font compliance involves licensing: only install fonts the user is licensed to use. The Skill provides open-source font links and a local installation path; whether to install is at the user’s discretion.
  • The SkillHub page shows a rating of 100000 and 10455 downloads (statistics are updated by the platform; refer to the page at the time of writing).
  • Without installing the specified fonts, the finished document may not meet commonly used official document font requirements; read the fallback notes at delivery before using the document externally.

Conclusion

“Gongwen Writer” brings official document type coverage, DOCX layout validation, and font directory scanning together in a single Skill, making it suitable for reducing the round-trip of “model drafts → manual layout” within Agent workflows. For installation and details, see SkillHub:

  • Page: https://www.skillhub.cn/skills/user_0c5c3d2f/gongwen-word-mini
  • API entry: https://api.skillhub.cn/user_0c5c3d2f/gongwen-word-mini
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye