minimax-docx

Automate DOCX creation, editing, and templating via OpenXML CLI workflows.

13.3k|1.1k|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/MiniMax-AI/skills --skill minimax-docx-minimax-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minimax-docx
Source: https://github.com/MiniMax-AI/skills/tree/main/skills/minimax-docx
Command: npx skills add https://github.com/MiniMax-AI/skills --skill minimax-docx-minimax-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The minimax-docx skill automates end-to-end DOCX document creation, editing, and template application using OpenXML, reducing manual formatting errors and speeding up production workflows.

Core Features & Use Cases

  • Create new Word documents from scratch with structured content (title, sections, tables) using the OpenXML SDK.
  • Edit existing documents while preserving styles and structure, enabling placeholder filling and content replacement.
  • Apply template formatting using overlay (C-1) or base-replace (C-2) strategies, with style mapping and XSD/gate validation.
  • Validate and repair documents against OpenXML rules, headers/footers, and TOC, including multi-section templates.

Quick Start

Create a sample DOCX from scratch with a title, sections, and a simple table using the CLI.

Frequently Asked Questions about minimax-docx

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

FAQPage Schema
How do I automate DOCX document creation and template formatting?

You can automate DOCX document creation and template formatting by using a CLI-driven pipeline that leverages the OpenXML SDK to generate structured content and apply style mappings with validation gates.

What is the best way to fill placeholders in existing Word documents without breaking styles?

To fill placeholders in Word documents while preserving styles, you need an editing workflow that supports content replacement and enforces OpenXML element-order rules to maintain structural integrity.

How does OpenXML validation work for multi-section Word templates?

OpenXML validation for multi-section templates works by checking documents against strict XSD rules, verifying element ordering, and repairing headers, footers, and tables of contents to prevent formatting corruption.

Do I need pandoc and soffice to process OpenXML workflows in a CLI?

Yes, processing OpenXML workflows in a CLI requires dependencies like pandoc, soffice, dotnet, zip, and unzip to handle document conversion, rendering, and underlying archive manipulation.

What are the limitations of using OpenXML for Word processing automation?

Limitations of OpenXML automation include strict element-order rules and complex multi-section handling, meaning you must enforce validation gates and style mappings to avoid breaking headers, footers, and TOCs.

Can I apply template formatting to a DOCX file using an overlay strategy?

Yes, you can apply template formatting to a DOCX file using an overlay (C-1) or base-replace (C-2) strategy, which maps styles and validates content against OpenXML rules to ensure consistent output.