AI Agent Hub
Back to skills
Word Report Auto-Formatting icon

Word Report Auto-Formatting

Office Efficiency Updated 2026.08.30

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

Please follow the installation guide at https://skillhub.cn/install/skillhub.md to install @user_6113fd9f/moways-doc.

About this skill

The Problem It Solves

Word documents generated by AI or as initial drafts often suffer from inconsistent formatting and punctuation errors, undermining their professionalism. The most insidious issue affecting deliverable quality is the confusion between full-width and half-width Chinese punctuation—using visually similar half-width punctuation within Chinese text, which violates the national standard GB/T 15834—2011. Furthermore, manually adjusting page setup, fonts, line spacing, and heading hierarchies to meet the strict formatting standards of institutions like Bowei Consulting is a tedious and error-prone task.

Core Capabilities and Workflow

This skill translates formatting standards into executable, automated rules. It is built upon the Bowei Consulting Word Report Formatting Standard V2.6 and the national standard, using Python scripts to batch-correct and audit documents.

Key operational modes include:
- Auto-Formatting: Reads the document and automatically adjusts page layout, fonts, line spacing, and heading styles according to the standard, enabling Chinese punctuation correction by default. The format_word.py script safely converts the majority of half-width Chinese punctuation to full-width.
- Formatting Audit: Runs audit_word.py to perform a comprehensive check, generating a detailed issue list including punctuation errors P1–P20.
- New Report Creation: Ensures source format compliance when building a document from scratch.

The Intelligent Logic for Punctuation Correction:
1. Safe Automatic Correction: E.g., converting half-width commas, periods, brackets, and quotation marks within Chinese text to full-width.
2. Contextual Rule: If any character adjacent to a punctuation mark is Chinese, that punctuation must be full-width.
3. Whitelist Preservation: Half-width punctuation within URLs, file paths, version numbers, chemical formulas, etc., is not incorrectly altered.

The script first handles absolutely safe corrections. For ambiguous cases, such as whether a mid-sentence half-period is part of a version number or if a single em dash is a legal separator, it flags them in the audit report for manual human judgment, avoiding false positives.

Scope and Important Considerations

This is a formatting tool for a specific standard, not a universal formatter:
- Standard-Locked: The current rules are strictly tied to Bowei Consulting's V2.6 standard. To adapt to other corporate or government standards (e.g., GB/T 9704-2012 for Party/Government Official Documents), you must modify the constant values within the scripts.
- Requires Human Collaboration:
- Cover Page Layout: Complex cover designs may require manual fine-tuning.
- Table of Contents Page Numbers: After the script inserts the TOC, you must right-click it in Word and “Update Field” -> “Update entire table” to get accurate page numbers.
- Certain Punctuation: Items flagged as INFO or requiring judgment in the audit report (e.g., a single em dash) need semantic analysis.
- Table Headers on Page Breaks: Due to library limitations, repeating the header on the second page of a table that spans pages must be set manually.
- Font Dependencies: Fonts like FangSong, KaiTi, SimHei, and FangZheng XiaoBiaoSong must be correctly installed in the system environment where the script runs.
- Coordination with stop-slop-zh: This skill addresses AI-generated artifacts at the format and punctuation level. To simultaneously remove AI-style sentence structure and wording, it is recommended to process the text with the stop-slop-zh skill first, then apply this skill for formatting.

Use Cases

  • A consultant receives a messy draft from a client and needs to fully standardize fonts, margins, heading hierarchy, and Chinese punctuation within 30 minutes according to the company's internal 'Report Writing and Formatting Standard'.
  • A compliance officer must review a 50-page government project proposal before submission, quickly identifying and generating a checklist of all errors that violate the 'Standard for Official Documents of Party and Government Organs' and the national punctuation standard.
  • A project manager needs to create a new consulting report from scratch, wanting to automatically generate a cover, table of contents, and headers/footers that match the company template during writing, ensuring all subsequent content strictly adheres to the established format.
  • While writing a technical white paper, one needs to accurately distinguish and correct the numerous half-width punctuation marks mixed into Chinese sentences containing bilingual terminology and code snippets.

Best For

  • Junior analysts at consulting firms who need to quickly transform messy client drafts into formal reports that adhere to the company's strict visual and formatting standards.
  • Document writers in state-owned enterprises or government agencies where format compliance is almost mandatory and must pass rigorous review processes.
  • Project managers who regularly need to generate standardized reports for different projects based on a unified company template, seeking a standardized document creation workflow.
  • Technical documentation engineers responsible for writing extensive bilingual manuals or white papers, with extremely high demands for document format and punctuation correctness.