Introduction¶
The trouble with official document formatting lies in fragmented rules: headings are divided into four levels—“I.”, “(I)”, “1.”, and “(1)”; titles and subtitles have different font sizes; attachments require separate formatting; and page numbers, line spacing, and margins each have fixed conventions. Manually adjusting these in Word can take half an hour for a single document, making batch processing of dozens of files practically impossible.
The Skill introduced below is designed to solve this: it takes doc/docx/wps/txt/md documents as input, automatically formats them according to official document conventions, and outputs standard docx files.
What is this¶
An official document formatting tool named “Official Document Format Conversion” on SkillHub.
Coordinates: @user_60300dde/doc-format
Version: 1.0.5
Source: Community
Category: Office Efficiency
Publisher: user_60300dde
This Skill does not require an API Key (requires_api_key=false).
The problem it solves is: upon receiving a document with messy formatting, you can directly reformat it into a docx that complies with official document habits without setting styles paragraph by paragraph. It can also perform batch processing on documents within an entire directory.
Core Functions¶
The following capabilities are derived from the official page description.
- Heading Hierarchy Recognition: Automatically identifies four levels of headings: “I.”, “(I)”, “1.”, and “(1)”.
- Title and Subtitle: Distinguishes between the main title and subtitle, applying specific formatting to each.
- Attachment Formatting: Formats attachment sections separately.
- Figure/Table Title Recognition: Identifies titles of figures and tables and applies corresponding formatting.
- Page Setup: Handles page margins, page numbers, and line spacing.
- Font and Size: Sets fonts and sizes according to official document conventions.
- TXT/MD Blank Line Mode: Handles blank line issues originating from plain text and Markdown sources.
- Custom Configuration: Allows adjustments based on personal formatting requirements.
- Directory Batch Processing: Performs unified formatting on multiple documents within a single directory.
Installation and Activation¶
The official page retrieved this time (https://api.skillhub.cn/org-b6kzcl68/doc-format) did not provide installation commands, nor was the page itself successfully accessible. Therefore, please refer to the official page for installation methods. The Skill’s trigger keywords include: official document formatting, document formatting, font settings, heading hierarchy, format unification, formatting tools, wfp_cli, line spacing, indentation, and batch formatting. It can be enabled by name or keyword in the caller’s Skill configuration.
Typical Usage¶
The official materials do not provide complete reproducible command examples. The usage methods are described below based on verified capabilities:
- Single Document Formatting: Provide a doc/docx/wps/txt/md document to the Skill. It will first identify heading hierarchies and titles/subtitles, then set page margins, page numbers, line spacing, and font sizes, finally outputting a standard docx.
- Batch Formatting: Point to a directory, and documents within that directory will be processed uniformly using the same set of configurations.
- TXT/MD Input: Since these sources lack Word styles, the Skill uses a blank line mode to identify paragraph boundaries before applying official document formatting.
For specific parameters (margin values, font names, font sizes), please refer to the Skill’s custom configuration items, as the official materials do not list default values.
Applicable Scenarios and Notes¶
Suitable for scenarios where you have a batch of official documents with inconsistent formatting that need to be reformatted according to official conventions, especially when converting from txt/md to standardized docx, or when batch unification of formatting is required.
Points to note:
- This Skill outputs docx. If subsequent distribution via wps or pdf is required, separate conversion is needed.
- Heading hierarchy recognition relies on the numbering style in the text. Manual inputs like “1.” in the body text may be misidentified; it is recommended to adjust recognition rules in the configuration.
- Custom configuration is key for this type of formatting tool. Default values may not meet your organization’s specific official document requirements. Before use, check font sizes, line spacing, and margins with a sample document first.
- The installation count marked on the official page is 0, indicating there are currently few users. If you encounter issues, you can provide feedback on the SkillHub page.
Summary¶
The value of this Skill lies in transforming official document formatting from manual style adjustments into a single call. It offers capabilities for heading hierarchy, titles/subtitles, attachments, figure/table titles, page setup, font sizes, and batch processing, covering input formats such as doc/docx/wps/txt/md. If your document volume is large and formatting is inconsistent, it is worth testing with a sample document first to confirm the default configuration before running it in batch.
Official Address: https://api.skillhub.cn/org-b6kzcl68/doc-format
SkillHub Page: https://www.skillhub.cn/skills/user_60300dde/doc-format