xiaojing-docx-typesetting: Automatic Word Document Typesetting based on Chinese Official Document Standards

Introduction

In government agencies, enterprises, and public institutions, Word documents often need to conform to official document formats such as GB/T 9704. This involves adjusting page margins, body text font sizes, line spacing, and page number positions item by item. Manually clicking through the “Paragraph” and “Page Setup” dialogs is prone to overlooking items in long documents, and the results may not be consistent even after finishing. By delegating “formatting according to specifications” to an Agent Skill, users can express their requirements in natural language within a conversation. The skill will then process the docx file according to predefined rules, reducing repetitive labor.

Below is an introduction to xiaojing-docx-typesetting on SkillHub (Coordinate @user_eff99d18/joyful-tree-9026), designed for formatting Chinese official documents and reports in Word.

What is this

xiaojing-docx-typesetting is a community-sourced (community) Agent Skill. The current version is 1.0.2, categorized under office-efficiency, and maintained by the publisher user_eff99d18. The SkillHub page notes that it is autonomously maintained by Xiao Jing. The skill is positioned to be triggered when users need to format Chinese articles, official documents, reports, and other Word (docx) files. It claims to follow Chinese official document formatting standards and automatically handles formatting items such as page margins, fonts and sizes, line spacing, and page numbers. The tag is requires_api_key=false, meaning installation and usage do not depend on any additional API Key.

Official Access:

Core Features

Based on the official description, the verified capabilities are as follows (specific implementation details are subject to the SKILL.md and documentation within the skill package):

  1. Trigger Scenarios: Enabled when users express intentions such as formatting, formatting articles, formatting official documents, setting fonts, adjusting margins, document formatting, or formatting according to standards.
  2. Formatting Items: Following the direction of Chinese official document formatting standards, it handles common formal document requirements such as page margins, fonts and sizes, line spacing, and page numbers.
  3. Goal: To bring docx files closer to formal formatting standards and avoid omissions and inconsistencies caused by manual, item-by-item settings.

On SkillHub, this skill has a rating of 100000, with 982 cumulative downloads and 45 installations (data is taken from the SkillHub page display and may vary over time).

Installation and Activation

The installation process follows the general instructions for SkillHub: first, ensure the skillhub CLI is available, then install the skill to the skills directory recognized by the current Agent. If installed in the wrong directory, the Agent may fail to load it, requiring a restart or redirection to the correct path.

1. Check or Install skillhub CLI

command -v skillhub && skillhub --version

If not installed, you can use the official installation script (full installation includes CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install this Skill

The installation prompt provided on the official page is: According to https://skillhub.cn/install/skillhub.md, install the coordinate @user_eff99d18/joyful-tree-9026.

In the terminal, point --dir to the skills directory of the current environment, for example:

skillhub install @user_eff99d18/joyful-tree-9026 --dir <skills directory>

Common client skills paths (excerpted from SkillHub installation documentation):

Environment skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Windsurf ~/.codeium/windsurf/skills/ or .windsurf/skills/ under the project

In Cursor, you can set --dir to ~/.cursor/skills/. After installation, restart or refresh as required by your client to ensure the skill is loaded.

Alternatively, you can send the official prompt to the AI in the conversation, allowing it to complete the installation according to the documentation above, using the coordinate @user_eff99d18/joyful-tree-9026.

Typical Usage

The official documentation does not provide a separate long example script; usage primarily relies on natural language triggers + providing the docx to be formatted. Typical trigger phrases include:

  • Format, format article, format official document
  • Set font, adjust margins, document formatting, format according to standards

Operation Suggestions:

  1. Confirm the skill is installed in the current Agent’s skills directory and has been loaded.
  2. Explain in the conversation that you want to perform official/formal formatting on a Word document, and attach the file or specify the path to the docx in the workspace.
  3. If you need to deviate from default specifications, specify exceptions in the conversation (e.g., font size for a certain heading level, whether to print double-sided, etc.). If not specified, the skill will process the document according to the Chinese official document formatting standards it follows.

Following these steps, the Agent will invoke corresponding capabilities based on the rules within the skill to process the document. Specific steps and dependencies (such as whether python-docx is used) are subject to the skill package contents; you can view SKILL.md in the skill directory after installation.

Use Cases and Notes

Who is it for

  • Users who need to repeatedly produce docx files such as notices, reports, and requests, and require formatting to align with domestic official document habits.
  • People who want to use conversation to achieve “unified changes to margins, fonts, line spacing, and page numbers” instead of manually opening the Word style library every time.

Notes

  • The skill declares adherence to Chinese official document formatting standards, but different units may have internal detailed rules (red headers, colophons, specific font licensing, etc.). Complex layouts still require manual verification or alignment with unit templates.
  • The formatting target is Word (docx); scanned PDFs, plain Markdown, etc., need to be converted first or other tools should be selected.
  • The version is subject to SkillHub (currently 1.0.2); for upgrades, use skillhub to perform an update on the same coordinate, continuing to specify the correct --dir.
  • The functional boundaries of community skills are subject to the documentation maintained by the publisher; it is recommended to open the document locally for a visual check before formally distributing it externally.

Conclusion

xiaojing-docx-typesetting encapsulates “organizing docx according to Chinese official document habits” into a triggerable Agent Skill. It is suitable for environments supporting skills (like Cursor) to drive batch settings for margins, fonts, line spacing, and page numbers via keywords. The installation coordinate is @user_eff99d18/joyful-tree-9026. For details and installation prompts, see SkillHub: https://www.skillhub.cn/skills/user_eff99d18/joyful-tree-9026.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye