minimax-docx

Create, edit, and validate Word .docx files using OpenXML SDK and CLI tooling.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/augustscl/awesome-xiawang-skills --skill minimax-docx-augustscl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minimax-docx
Source: https://github.com/augustscl/awesome-xiawang-skills/tree/main/minimax-docx
Command: npx skills add https://github.com/augustscl/awesome-xiawang-skills --skill minimax-docx-augustscl

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Produce, modify, and reformat Word (.docx) documents reliably without manual Word editing, preventing OpenXML corruption and ensuring output complies with style and template constraints. It eliminates fragile copy-paste workflows, broken templates, and ad-hoc formatting fixes by providing structured pipelines, tested C# samples, and validation gates.

Core Features & Use Cases

  • Professional DOCX creation from structured JSON or content (custom styles, multi-section layouts, TOC, images).
  • Fill and edit existing .docx safely (placeholder substitution, table and image updates, run/paragraph-aware replacements).
  • Template application and re-styling with robust styleId mapping, relationship remapping, and a mandatory XSD/business-rules gate-check.
  • C# OpenXML SDK samples for structural edits, CLI tools for common tasks, environment checks, .doc→.docx conversion, preview and diff verification.
  • CJK and government-template support (preserve eastAsia fonts, GB/T 9704 rules, thesis-style numeric styleIds).

Quick Start

Run scripts/env_check.sh to verify your environment, then use the CLI or provided C# samples to create or edit a .docx and run the validation pipeline before delivering the file.

Frequently Asked Questions about minimax-docx

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

FAQPage Schema
How do I automate Word docx generation using C# and OpenXML without corrupting the file structure?

Automate docx generation using OpenXML SDK and C# samples to ensure element-order correctness, styleId mapping, and relationship remapping. The built-in validation pipeline applies XSD structure checks and business-rule gate-checks to prevent file corruption before delivery.

What is the best way to fill existing docx templates with dynamic data while preserving CJK typography?

Fill existing docx templates using run and paragraph-aware placeholder substitution that preserves eastAsia fonts and CJK typography. The pipeline enforces mandatory validation gates and styleId mapping to ensure the output remains a structurally valid docx file.

Do I need to install dotnet and pandoc to use this docx creation and validation pipeline?

Yes, the pipeline requires dotnet, pandoc, soffice, zip, and unzip installed in your environment. Run the provided environment check script to verify dependencies and ensure CLI tooling and C# OpenXML SDK samples function correctly for docx processing.

Can I convert legacy doc files to docx and apply government template styles automatically?

Convert legacy doc files to docx using included CLI tools, then apply government-template formatting with GB/T 9704 rules and thesis-style numeric styleIds. The validation pipeline ensures the final output meets structural and business-rule compliance.

Why does my OpenXML docx output fail validation when adding images and multi-section layouts?

OpenXML docx output fails validation due to incorrect element ordering, broken styleId mapping, or missing relationship remapping for media. The pipeline applies XSD structure validation and business-rule gate-checks to detect and fix these structural errors automatically.

Does minimax-docx support large-scale docx reformatting via command line tools?

Yes, minimax-docx supports large-scale docx reformatting through CLI tools and C# OpenXML SDK samples. It handles multi-section layouts, table and image updates, and template application with mandatory XSD validation to guarantee valid docx output.