AI Agent Hub
Back to skills
📁

Chinese Word/DOCX Processing Assistant

Office Efficiency Updated 2026.08.30

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

Please install @kunlungrowth/cn-docx-editor according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

When building Chinese Word documents with python-docx, the hard part is not merely file generation, but unstable styling: default Western fonts can make Chinese text inconsistent, and structured elements like headings, tables, page breaks, and TOCs often lack a consistent layout. This skill turns those engineering requirements into runnable scripts rather than isolated snippets.

How It Works

The main output is a complete .py script plus usage notes. It first clarifies document type, outline, fonts, and whether a TOC or header/footer is needed, then generates code: it explicitly sets Chinese fonts such as SimSun or Microsoft YaHei via doc.styles['Normal'].font.name, builds heading hierarchy with add_heading(), writes contract clauses or information tables with add_table(), and handles common layout through List Number, page breaks, and Word automatic TOCs. For existing files, it can locate and replace specific content by iterating over paragraph and text.

Boundaries

It fits structured documents such as official documents, contracts, reports, resumes, and manuals, especially when complete code and explicit Chinese fonts reduce the risk of garbled text. Complex revision, text boxes, floating images, and fine layout work are still better handled in desktop Word. If a final file is needed, run the generated script locally or in an available execution environment.

Use Cases

  • Legal drafts a residential lease with parties, term, rent, and breach table in Word.
  • Ops turns an outline, spec table, and notes into a Chinese Word manual in SimSun.
  • HR builds a Chinese resume template with headings, bullet list, and page breaks.
  • Docs updates a specific paragraph in an existing docx using python-docx.

Best For

  • Legal assistants who convert contract clauses into Word drafts
  • Product ops or documentation engineers who format spec manuals
  • HR specialists who generate Chinese resume templates
  • Engineering docs owners who maintain fixed paragraphs in existing .docx files