minimax-docx

Create and modify editable DOCX files using the OpenXML SDK.

2|Updated May 3, 2026
One-click install
npx skills add https://github.com/Rosetears520/aili-workflows --skill minimax-docx-rosetears520
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minimax-docx
Source: https://github.com/Rosetears520/aili-workflows/tree/main/skills/minimax-docx
Command: npx skills add https://github.com/Rosetears520/aili-workflows --skill minimax-docx-rosetears520

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the trial-and-error of creating, filling, and template-applying editable Word/DOCX files by providing OpenXML-aware workflows, validation gates, and corruption-prevention rules.

Core Features & Use Cases

  • Create DOCX documents from structured inputs, using CLI for simple layouts or C# + OpenXML SDK for complex structures (styles, TOC, images, multi-section).
  • Edit and fill existing DOCX with placeholder replacement, targeted text/table updates, and run-safe strategies that preserve formatting.
  • Apply DOCX templates with two safe routing modes (style-overlay vs base-replace) to retain headers/footers/section structure when needed.
  • Validate before delivery using mandatory XSD and a business rules gate-check, plus diff and preview evidence to prevent accidental content loss/corruption.

Quick Start

Use this skill when your task explicitly requires an editable Word/DOCX output (such as updating a Word template while keeping it editable).

Frequently Asked Questions about minimax-docx

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

FAQPage Schema
How do I generate editable DOCX files using the OpenXML SDK without corrupting the document structure?

Applying DOCX templates safely requires choosing between style-overlay and base-replace routing modes to retain headers, footers, and section structure during placeholder content filling and formatting merges.

How do I fill placeholders in a Word template while preserving its original formatting?

Filling placeholders in a Word template requires run-safe editing strategies that perform targeted text and table updates, preserving the original formatting while replacing content within the DOCX structure.

Do I need LibreOffice and pandoc installed to automate Word document creation?

You need dotnet, nuget, pandoc, soffice, LibreOffice, zip, and unzip installed to support the full CLI routing, C# script execution, and validation workflows required for automated DOCX creation and modification.

What is the best way to validate DOCX structure before delivery to prevent content loss?

The best way to validate DOCX structure before delivery is running a mandatory XSD structure check combined with a business-rules gate-check, producing diff and preview evidence to prevent accidental content loss.

Why does my Word automation script break when adding complex structures like TOC and images?

Word automation scripts break when adding complex structures like TOC and images if strict OpenXML ordering is not maintained, requiring OpenXML SDK workflows with validation gates to enforce correct element sequencing.