minimax-docx
Professional DOCX document creation, editing, and formatting using OpenXML SDK (.NET). Three pipelines: (A) create new documents from scratch, (B) fill/edit content in existing documents, (C) apply template formatting with XSD validation gate-check. MUST use this skill whenever the user wants to produce, modify, or format a Word document — including when they say "write a report", "draft a proposal", "make a contract", "fill in this form", "reformat to match this template", or any task whose fin
Security Assessment
About minimax-docx
The minimax-docx skill is designed to handle professional DOCX document creation, editing, and formatting using the OpenXML SDK for .NET. It provides a structured approach for working with Word documents, enabling users to generate new documents from scratch, modify existing content, or apply template-based formatting with validation. This skill solves the common challenge of producing formally structured, standards-compliant Word documents efficiently, whether for reports, proposals, contracts, or other printable materials, without the user needing to manually handle raw XML or Word-specific styling details.
The skill features three main pipelines: creating new documents, filling or editing existing documents, and applying templates or style formatting. Each pipeline is guided by explicit signals derived from the user task, ensuring the correct processing path is selected. Users can work through a command-line interface or write direct C# scripts for advanced structural manipulations, such as multi-section layouts, custom styles, tables, headers, footers, tables of contents, and embedded images. Additionally, the skill includes setup scripts, environment checks, and pre-processing tools to convert older `.doc` files to `.docx` format and preview documents before editing.
Target users include professionals and developers who need to automate or standardize Word document generation in line with industry standards, such as ECMA-376 and GB/T 9704-2012, or following widely recognized style guides like IEEE, APA, or MLA. Common use cases include drafting business reports, formal proposals, legal contracts, structured forms, or any scenario requiring precise formatting and template consistency. This skill ensures that users can produce high-quality documents quickly, maintain compliance with formatting standards, and reduce manual editing errors.
FAQ
How do I start using minimax-docx for the first time?
Run the setup script `scripts/setup.sh` on Linux/macOS or `scripts/setup.ps1` on Windows. Use the `--minimal` option to skip optional dependencies. Then perform an initial environment check with `scripts/env_check.sh`.
Can I work with existing Word documents?
Yes, the skill supports filling, editing, and reformatting existing `.docx` files through Pipeline B (FILL-EDIT) and Pipeline C (FORMAT-APPLY).
Do I need to write C# code for all tasks?
Not always. CLI commands can handle many tasks, but for complex document structures like custom styles, multi-section layouts, tables, or headers/footers, direct C# scripting is recommended.
Is this skill compatible with `.doc` files?
Pre-processing is available to convert `.doc` to `.docx` using the provided script `scripts/doc_to_docx.sh` before performing edits or formatting.
Are there limitations or prerequisites?
Yes, you need a .NET environment and the OpenXML SDK. Users should read the provided `Samples/*.cs` files before writing scripts to ensure compatibility with tested patterns and SDK versions.
All Files
75 filesInstall minimax-docx
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
minimax-ai/skills