AI Agent Hub
Back to skills
Word Document Formatting Master icon

Word Document Formatting Master

Office Efficiency Updated 2026.08.30

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

Please follow https://skillhub.cn/install/skillhub.md and install @user_fd0346f8/word-format-master.

About this skill

Problem

Word formatting issues are usually not about missing content, but about inconsistent page setup, typography, heading hierarchy, TOC fields, table width, and manual numbering. Manual adjustments can easily conflict across margins, line spacing, paragraph spacing, repeated table headers, and numbering restart rules.

How it works

The skill targets local WPS editing. It expects tencent-local-office-edit to be loaded, then checks the editor_sdk service and port 39099 before opening the target document. The workflow follows analyze, plan, execute: first inspect paragraphs, headings, tables, and sections; then define A4 size, 2.54cm top and bottom margins, 3.17cm left and right margins, fonts, line spacing, and heading styles; finally apply page setup, text properties, paragraph properties, heading levels, headers, footers, page numbers, table formatting, and doc_insert_markdown operations. It saves after each category to reduce style interference and coordinate drift.
A built-in three-part layout separates the cover, TOC, and body with section breaks. The TOC uses a TOC \o "1-3" \h \z \u field that must be updated in WPS/Word. The body uses FangSong_GB2312, 14 pt, 1.5 line spacing, and justified alignment. Headings use manual numbering: H1 “一、”, H2 “(一)”, H3 “1.”, H4 “(1)”, H5 “①”, with lower levels restarting after higher levels. Tables should fill the 14.66cm content width, repeat headers across pages, align numbers to the right, and center Chinese text cells.

Boundaries

Run edsdk.py schema before doc_* calls; back up large documents and confirm the plan with the user. It depends on a local WPS service, so it is suitable for stable Word output such as reports, audit plans, and office documents, but it is not a template engine and may not work in a purely online environment without local editing.

Use Cases

  • Standardize audit report margins, heading levels, manual numbering, and page numbers before final delivery.
  • Reformat a business report into cover, TOC, and body sections, then insert an updatable Word TOC field.
  • Set project document body to FangSong 14 pt with 1.5 line spacing, repeating table headers and full content width.
  • Batch-fix heading fonts, paragraph spacing, and first-line indents to make the Word outline hierarchy clearer.

Best For

  • Administrative staff preparing official or audit reports need A4, FangSong, manual numbering, and page-number rules.
  • Operations staff writing business reports need consistent cover, TOC, body, and table formatting.
  • Engineering staff maintaining project docs need batch heading levels, paragraph spacing, and clearer outlines.
  • Consultants handling multiple Word materials need reusable office-document standards and table width checks.