Official Document Formatting
Paste the following prompt into your AI chat to install this skill:
Please install @user_49227058/gov-doc-format according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Formal document formatting is easy to get wrong at the detail level: A4 page margins, text area, font family, font size, line spacing, page number placement, red header placement, hierarchical heading fonts, and preserving image-containing paragraphs. Manual Word adjustments are slow and can miss GB/T 9704-2012 and GB/T 33476.2-2016 requirements. Reformatting an existing .docx file can also accidentally alter tables, images, embedded objects, or page number fields.
How It Works
The skill turns official document formatting into explicit, checkable rules instead of relying only on a style template:
- Mode selection:
whiteproduces plain text documents,redheadproduces complete documents with a red issuing-authority mark, andredhead_spacereserves the red header area for printing on preprinted letterhead paper. - Page setup: fixed
A4size,37mmtop margin,35mmbottom margin,28mmleft margin,26mmright margin,156mm × 225mmtext area, and0point spacing before and after paragraphs. - Typography: titles use FZXiaoBiaoSong-B05S, first-level headings use Hei, second-level headings use Kai, third-level headings and body text use FangSong, page numbers use Song, and Arabic numerals plus Latin letters use
Times New Roman. - Existing document reformatting: read the
.docx, apply body and hierarchy rules paragraph by paragraph, skip paragraphs containing images, charts, or embedded objects, validate compliance, then save a new file named “(formatted) + original filename”.
Boundaries and Notes
It is suitable for formatting official documents, notices, letters, and internal files, but it does not replace content review, approval workflows, or visual design of red headers. Check the local font environment, refresh page number fields, configure even and odd pages correctly, and avoid replacing character-based indents such as w:firstLineChars="200" with fixed centimeter values. The output creates a new file and does not overwrite the original.
Use Cases
- Before issuing a formal notice, format the body in red-header mode and verify page numbers and font sizes.
- Reformat an existing Word draft into white-document mode while preserving image placement and saving a new file.
- Prepare an empty-red-header layout before printing on letterhead, reserving the issuing-authority mark area.
- Identify multi-level headings such as one, (one), and 1, then apply the specified Hei, Kai, and FangSong formats.
Best For
- Office drafting staff who need to produce formal red-header documents and check page numbering, font size, and heading fonts.
- Document reviewers who need to verify existing Word files for text area, line spacing, and first-line indent rules.
- Print and layout operators who need to reserve the red header area with empty-red-header mode before printing on letterhead.
- Administrative staff who need consistent formatting for notices and letters while reducing manual Word style errors.
Related Skills
Generate and edit .pptx decks with python-pptx, applying structured layouts, design rules, native charts, and visual QA to reduce template-like output.
Tencent Cloud Table Recognition V3 is an OCR skill for detecting and recognizing tables in images or PDFs, supporting various table types like linear and borderless tables, with Excel export.
The complete set of online document operation tools provided by Tencent Docs MCP, supporting creation, querying, and editing of smart docs, Excel, PPT, mind maps, and more.
Generate structured Chinese patent disclosure drafts in Word from existing documents or brief technical inputs, following Part A/B/C templates.