Converting Word Documents to Official Government Format: A Skill for .docx Inspection and Layout Based on National Standards

Introduction

Official government documents have fixed layout, element, and terminology requirements, commonly based on GB/T 9704-2012. In everyday work, materials are often drafted in Word: font size, line spacing, heading hierarchy, page margins, and other details can easily diverge from the national standard. Reading through the document and manually adjusting formatting is time-consuming and hard to make comprehensive. If you want to process a user-uploaded .docx directly within an Agent conversation and chain “inspect issues, generate a report, add annotations, and reformat according to the national standard” into one workflow, you can install the community skill word文档转党政机关公文格式 on SkillHub (coordinate @user_8c628583/docformat, current version 1.0.0).

What This Is

Below is the skill’s positioning and origin.

word文档转党政机关公文格式 is a community skill under SkillHub’s office-efficiency category (source: community), published by user_8c628583 (shown as “HaLouHuiXing” on SkillHub). The official description defines it as a one-stop inspection and formatting skill for Word documents, used when a user uploads a Word (.docx) file and needs to check errors, generate an inspection report, add annotations, or correct the document format according to GB/T 9704-2012. The tag requires_api_key=false indicates, according to SkillHub metadata, that no additional API key configuration is required.

SkillHub page: https://www.skillhub.cn/skills/user_8c628583/docformat
Skill API entry: https://api.skillhub.cn/user_8c628583/docformat

As of the data capture time, the skill’s rating on SkillHub is 100000, with 1023 downloads.

Core Capabilities

This section lists only capabilities verified from the official introduction, without expanding on implementation details not present in the materials.

  1. Document inspection: Perform error and compliance checks on the user’s provided .docx (officially described as “check errors”).
  2. Inspection report: Can generate an inspection report for easy comparison and revision.
  3. Annotations: Supports adding annotations to the document (officially described as “add annotations”).
  4. National standard formatting: Corrects the formatting of Party and government official documents according to GB/T 9704-2012 (layout and formatting specifications).
  5. Trigger semantics: When users say things like “help me check the document,” “does the document have issues,” “add annotations to the document,” “the format isn’t standard, please fix it,” “typeset the official document according to the national standard,” “check for typos,” “fix document formatting,” or when they discuss Word document quality, compliance, layout, or proofreading in general terms, the Agent should prioritize enabling this skill.

The primary input is .docx. Specific inspection items and typesetting rules are determined by SKILL.md in the skill package and the Agent execution environment; this article does not speculate on unpublished scripts or fields.

Installation & Activation

Follow the instructions on the SkillHub page to install: refer to SkillHub Installation and Priority Source Configuration and install with the coordinate @user_8c628583/docformat.

1. Check for or install the SkillHub CLI

First, confirm whether skillhub is already on your machine:

command -v skillhub && skillhub --version

If not installed, follow the official documentation for a full installation (CLI + default skills):

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

To install only the CLI:

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

2. Install this skill into the current Agent’s skills directory

Official requirement: when installing, you must use --dir to point to the skills directory recognized by your Agent; otherwise, it will default to ./skills/ and may not be loaded.

skillhub install @user_8c628583/docformat --dir <skills directory>

Common paths per client (excerpted from the SkillHub installation documentation):

Environment Skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ in the project
Windsurf ~/.codeium/windsurf/skills/ or .windsurf/skills/

In Cursor, you can set <skills directory> to ~/.cursor/skills/. After installation, restart or refresh your Agent per your client’s convention to activate the new skill.

You can also search for the coordinate user_8c628583/docformat on SkillHub to verify version and details:

skillhub search docformat

Typical Use Cases

The official materials do not provide separate CLI example subcommands; usage is expressed through natural-language tasks that combine conversation with .docx attachments. Below are directly reproducible request types (consistent with the SkillHub introduction).

  1. Upload the .docx file to be processed in the conversation.
  2. Start the task with a clear intent, for example:
    - “Check this official document’s format against GB/T 9704-2012 and add annotations where there are issues.”
    - “Help me check for typos and formatting problems, and generate an inspection report.”
    - “The format isn’t standard—please typeset the document according to the national standard and give me a downloadable Word file.”
  3. Perform a second confirmation based on the report, annotated version, or corrected document returned by the Agent. For documents that will be issued externally, manual final proofreading is still recommended.

Through the above steps, the skill guides the Agent through the branch that matches your statement among “inspect → report / annotate / format correction,” rather than general chit-chat.

Use Scenarios & Caveats

Who it’s for: Office staff who frequently handle government official documents, reporting materials, and internal Word final drafts; teams using clients that support Skills (such as Cursor or Claude Code) who want the Agent to assist with national-standard layout and basic proofreading.

Limitations and notes:
- Designed only for .docx scenarios; scanned PDFs, legacy .doc, etc. must be converted to .docx first.
- The skill is community-owned; quality and update cadence depend on the publisher. For major official documents, use your organization’s templates and legal/secretarial final review—national-standard automated correction cannot replace the issuance workflow.
- requires_api_key=false only means that SkillHub metadata does not require a key; whether Python, Word-related libraries, etc. are needed locally is subject to the instructions in the installed skill package.
- Rating is a SkillHub in-site metric and is not directly equivalent to effectiveness in handling official documents; adoption should be judged based on trial runs.

Conclusion

word文档转党政机关公文格式 consolidates Word document inspection, reporting, annotations, and GB/T 9704-2012 format corrections under a single skill coordinate, suitable for handling .docx official document needs within Agent conversations. For installation and details, see SkillHub: https://www.skillhub.cn/skills/user_8c628583/docformat ; skill entry: https://api.skillhub.cn/user_8c628583/docformat.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye