AI Agent Hub
Back to skills
One-Click Government Document Formatting icon

One-Click Government Document Formatting

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

To install the 'One-Click Government Document Formatting' skill, follow https://skillhub.cn/install/skillhub.md and install @user_ce858ad4/gov-document-typesetting.

About this skill

The Specific Problem It Solves

The format for official government documents in China (GB/T 9704-2012) is extremely rigorous, specifying exact paper size, margins, fonts (Heiti, FangSong_GB2312, KaiTi_GB2312), font sizes, and layout for titles at multiple levels, body text, and even page numbers. Manually formatting an existing document or creating a new one to meet these standards is tedious, time-consuming, and error-prone, often leading to non-compliance and undermining the formality of the document.

Core Capabilities and Key Steps

This skill automates the repetitive task of government document formatting. It is not merely a template generator but a "formatting engine" that intelligently parses an existing document's structure and applies the standard. Its workflow can be summarized as:

  1. Input Parsing: It accepts an existing Word document from the user or creates a new document based on instructions. The core is reading and understanding the content structure of the source file.
  2. Intelligent Recognition and Mapping: The skill attempts to identify different elements within the document:
    • Document Title: Typically the first line or large text, mapped to Heiti font, size 2, and centered.
    • Hierarchical Headings: Automatically identified as levels 1 through 4 based on numbering formats (e.g., 一、, (一), 1., (1)), and formatted with corresponding fonts like Heiti, KaiTi_GB2312, and FangSong_GB2312.
    • Body Text: The main content is uniformly set to FangSong_GB2312 font, size 3, with strict adherence to a first-line indent of 2 characters, 28 characters per line, and 22 lines per page.
    • Signature and Date: The issuing authority and date at the end of the document are identified and set to right-aligned.
  3. Batch Format Application: Based on the recognition results, the skill applies formatting across the entire document. This includes replacing all numbers and English characters with the Times New Roman font and setting line spacing to a fixed value of 28 points. Page numbers are fixed at the outer bottom of the page in the format - 1 -.
  4. Safe Output: After formatting, the skill does not overwrite the original file. Instead, it generates a new document with a (Formatted) prefix in the filename and saves it in the same directory. A key principle is image protection: all images, charts, and their layout properties within the document are preserved intact; formatting is only applied to pure text paragraphs.

Notes and Applicability Boundaries

To ensure successful formatting, be aware of these boundaries:
* Font Dependency: The system environment must have the specified fonts installed, such as FangSong_GB2312, KaiTi_GB2312, and Heiti. If unavailable, it will fall back to regular FangSong and KaiTi, which may cause slight visual differences.
* Formatting Recognition Accuracy: The skill relies on automatic identification of document structure. For documents with highly irregular formatting or non-standard structures (e.g., unconventional signatures), it may not perfectly identify all elements, requiring the user to first manually organize a basic structure.
* Scope of Application: The core function is processing text-based official documents. While it protects images, it is not a document content editor and does not alter the text itself. It also cannot handle complex in-table formatting or footnotes.
* Standard Version: The formatting strictly follows GB/T 9704-2012. It is not applicable to other non-standard, earlier, or newer regional or industry-specific official document formats.

Use Cases

  • Quickly format a Word-drafted notice with complete content but irregular styling into an official document compliant with GB/T 9704-2012 for distribution.
  • Draft a request report from scratch based on meeting minutes, with multiple-level headings, and directly apply standard fonts, margins, and layout.
  • Process a year-end summary document with basic formatting, using its intelligent recognition to automatically style paragraphs with markers like "一、" or "(一)" into corresponding heading levels.
  • Format a research report containing data tables and charts, ensuring the text sections meet the standard while preserving the original position and layout of all images and tables.

Best For

  • Administrative or clerical staff in government agencies or public institutions responsible for drafting, reviewing, and issuing various official documents, requiring strict compliance with national format standards.
  • Office clerks or assistants who frequently need to quickly produce a professionally formatted Word document based on draft content provided by supervisors or colleagues.
  • Project managers or meeting recorders who need to convert meeting minutes into a formally structured report or resolution document with clear hierarchies and unified formatting after compilation.