doc-format-gw

Format Word documents to Chinese government document standards using python-docx.

195|12|Updated Jul 19, 2026
One-click install
npx skills add https://github.com/ZJU-REAL/HugAgentOS --skill doc-format-gw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-format-gw
Source: https://github.com/ZJU-REAL/HugAgentOS/tree/main/src/backend/skill_bundles/marketplace/doc-format-gw
Command: npx skills add https://github.com/ZJU-REAL/HugAgentOS --skill doc-format-gw

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the tedious manual work of formatting official Word documents according to Chinese government document standards, helping users prepare polished files for review, submission, or distribution.

Core Features & Use Cases

  • Automatic Heading Detection: Identifies and formats first- through fourth-level headings based on Chinese numbering patterns.
  • Document Layout Formatting: Applies standardized fonts, font sizes, alignment, indentation, line spacing, and page margins.
  • Table Formatting: Formats table headers and body cells with official document typography.
  • Use Case: Prepare a draft government notice before sending it by applying standardized title, body, heading, date, margin, and table formatting in one pass.

Quick Start

Use the doc-format-gw skill to format the attached Word document according to the official document formatting rules and save the result as a new Word file.

Frequently Asked Questions about doc-format-gw

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

FAQPage Schema
How do I automatically format official Word documents according to Chinese government standards?

You can automatically format official Word documents by applying standardized typography, margins, spacing, and table formatting based on Chinese government standards. This process detects headings and applies official document layout rules to prepare files for submission.

What is the best way to format government document headings and tables in Word?

The best way to format government document headings and tables is to apply standardized typography automatically. The process identifies first- through fourth-level headings using Chinese numbering patterns and formats table headers and body cells according to official rules.

Do I need Python and python-docx to apply standardized Word document layout for policy files?

Yes, you need Python 3 and the python-docx library to apply standardized Word document layout. These dependencies are required to programmatically adjust typography, margins, and table formatting for policy documents and formal files.

Can I prepare a draft government notice for review by applying official document formatting in one pass?

Yes, you can prepare a draft government notice for review by applying official document formatting in one pass. The process standardizes titles, body text, headings, dates, margins, and table formatting, outputting a newly formatted Word file ready for distribution.

Does python-docx support automatic heading detection for Chinese government document formatting?

Yes, python-docx supports automatic heading detection for Chinese government document formatting. It identifies and formats first- through fourth-level headings based on Chinese numbering patterns, alongside applying standardized fonts, alignment, and line spacing.

Why does my government document layout lose its standardized table formatting in Word?

Government document layout loses standardized table formatting when manual edits bypass official typography rules. To fix this, apply automated document layout formatting to regenerate standardized table headers and body cells according to Chinese government standards.