minimax-docx

Create, edit, and validate DOCX files with OpenXML SDK and CLI tools.

641|104|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/eastreams/loong --skill minimax-docx-eastreams
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minimax-docx
Source: https://github.com/eastreams/loong/tree/main/skills/minimax-office/minimax-docx
Command: npx skills add https://github.com/eastreams/loong --skill minimax-docx-eastreams

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dotnet, soffice, pandoc, zip, unzip, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Provides a robust, production-ready pipeline to create, modify, and reformat .docx files without corrupting OpenXML structure, preventing common failures like invalid element ordering, lost images/relationships, broken styles, and incorrect CJK rendering.

Core Features & Use Cases

  • Create new DOCX documents from structured JSON or C# OpenXML scripts, with templates, styles, TOC, headers/footers, images, and numbering.
  • Edit and fill existing DOCX files safely (placeholder filling, table updates, tracked-change-aware edits) while preserving layout and relationships.
  • Apply templates or rebrand documents via style/numbering mapping, multi-template merge, XSD/business-rule gate-checks, and asset/relationship remapping for images and hyperlinks. Ideal for reports, contracts, academic theses (including Chinese templates), and batch document processing.

Quick Start

Run the environment check, then use the CLI to create, edit, or apply a template and always run the validation pipeline before delivering the final .docx file.

Frequently Asked Questions about minimax-docx

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

FAQPage Schema
How do I generate DOCX documents from structured JSON without breaking OpenXML structure?

To generate DOCX documents from structured JSON safely, this Skill uses OpenXML SDK scripts to enforce correct element ordering and XSD validation, preventing structural corruption while mapping styles, numbering, and relationships.

Why does my DOCX file lose images and CJK fonts when I apply a new template?

Applying a DOCX template loses images and CJK fonts when relationships and eastAsia font properties are not remapped. This Skill preserves header/footer structures, media, and eastAsia fonts during style mapping and multi-template merges.

What is the best way to batch fill existing DOCX templates while preserving tracked changes?

The best way to batch fill existing DOCX templates while preserving tracked changes is using a pipeline that performs placeholder filling and table updates with tracked-change-aware edits, ensuring layout and relationship integrity.

Does the OpenXML SDK validation pipeline check business rules and XSD compliance for DOCX files?

Yes, the OpenXML SDK validation pipeline checks both XSD compliance and business rules for DOCX files, verifying element-order correctness, style and numbering mapping, and relationship remapping before delivering the final output.

Can I use pandoc and soffice to reformat DOCX files for Chinese academic theses?

Yes, you can use pandoc and soffice alongside OpenXML SDK to reformat DOCX files for Chinese academic theses, ensuring CJK-aware formatting and eastAsia font preservation during template application and multi-template merges.

What are the limitations of using dotnet for DOCX creation when handling complex headers and footers?

Using dotnet for DOCX creation can struggle with complex headers and footers if relationship remapping fails, but this Skill mitigates limitations by preserving header/footer structures and applying XSD and business-rule gate-checks.