docx-editor-cn

Create and edit .docx documents with Chinese academic formatting standards.

355|13|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/Gostyan/docx-skill-4-cn-paper --skill docx-editor-cn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-editor-cn
Source: https://github.com/Gostyan/docx-skill-4-cn-paper/tree/main/docx-editor-cn
Command: npx skills add https://github.com/Gostyan/docx-skill-4-cn-paper --skill docx-editor-cn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, temml, fast-xml-parser, defusedxml, lxml, pandoc, and includes scripts (resource) components.

What problem does it solve?

The Skill automates the creation, editing, and formatting of Word documents (.docx) for Chinese academic writing, enabling templates and workflows that produce publication-ready outputs aligned with university standards.

Core Features & Use Cases

  • Markdown → DOCX transformation with academic formatting, including table of contents, headings, and references.
  • Editing existing DOCX: unpack, modify XML, and repackage while preserving styles, fonts, and structural integrity.
  • Highly configurable templates: page setup, fonts, numbering, three-line tables, LaTeX formulas, and GB/T 7714 references.

Quick Start

Edit the CONTENT SECTION in scripts/new_doc.js, then run node scripts/new_doc.js to generate output.docx.

Frequently Asked Questions about docx-editor-cn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to a DOCX file with Chinese academic formatting?

To convert Markdown to a DOCX file with Chinese academic formatting, you edit the CONTENT SECTION in the script and run it to generate the output. This process automatically applies university standards, including auto-numbered headings and GB/T 7714 references.

Can I edit an existing DOCX file and preserve its original styles and fonts?

Yes, you can edit an existing DOCX file by unpacking it, modifying the underlying XML, and repackaging it. This workflow ensures the structural integrity, original styles, and fonts of the document are fully preserved during modification.

Does this workflow support LaTeX equations and three-line tables for academic writing?

Yes, the academic writing workflow supports LaTeX equations and three-line tables by relying on the temml and docx libraries. It configures these highly customizable templates to produce publication-ready outputs aligned with university standards.

What do I need to generate a Word document with GB/T 7714 references?

To generate a Word document with GB/T 7714 references, you need a Node.js environment with the docx and temml libraries installed. Optional integrations with pandoc and LibreOffice are also supported for broader document processing capabilities.

What is the best way to apply university standards to a Chinese academic paper?

The best way to apply university standards to a Chinese academic paper is using a templated workflow that automates page setup, font numbering, and reference formatting. This ensures the final Word document meets strict publication requirements without manual formatting.

Are there limitations when using pandoc for DOCX transformation?

Pandoc is an optional integration for broader capabilities in DOCX transformation, meaning the core Markdown conversion and XML editing do not strictly depend on it. Relying primarily on Node.js libraries ensures direct control over specific Chinese academic formatting standards.