What problem does it solve?
docx-toolkit removes the trial-and-error required to generate or modify Word DOCX files safely with OpenXML, ensuring correct element ordering and applying robust validation to prevent corruption.
Core Features & Use Cases
- DOCX creation, editing, and reformatting pipelines: create new documents, fill/edit existing DOCX content, and apply template-based formatting.
- Three execution modes for structural needs: use CLI for simple edits and C# via OpenXML SDK for complex styles, tables, sections, TOC, and headers/footers.
- Template formatting with hard gate-checking: apply style/template changes and enforce an XSD + business-rules validation gate before delivery.
- CJK-aware typography support: preserves EastAsia font configuration and includes guidance for Chinese government standards and CJK layout behavior.
Quick Start
Use the docx-toolkit skill when your output needs a valid Word .docx file, then run the environment check and follow the scenario pipeline (create, fill/edit, or apply template) and validate the result before delivering it.