minimax-ai avatar

Minimax Docx

If you need to generate Word documents programmatically, this wraps the OpenXML SDK with three clear pipelines: create from scratch, edit existing content, or apply template formatting. The C# path is the real strength here for anything structural (tables, multi-section layouts, TOC). CLI shortcuts exist for simple text replacement and placeholder filling. What's notable is the mandatory XSD validation gate-check for template operations, which catches ordering violations before Word chokes on the file. Includes tested samples for common patterns and specific typography guides for CJK documents. The diff tooling helps verify you only changed what you meant to change. Opinionated about element ordering because OpenXML will silently corrupt otherwise.

skills.sh installs
4.6K
GitHub stars
13.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add minimax-ai/skills --skill minimax-docx --agent claude-code

Installs into .claude/skills of the current project.

Files

minimax-docx

Create, edit, and format DOCX documents via CLI tools or direct C# scripts built on OpenXML SDK (.NET).

Setup

First time: bash scripts/setup.sh (or powershell scripts/setup.ps1 on Windows, --minimal to skip optional deps).

First operation in session: scripts/env_check.sh — do not proceed if NOT READY. (Skip on subsequent operations within the same session.)

Quick Start: Direct C# Path

When the task requires structural document manipulation (custom styles, complex tables, multi-section layouts, headers/footers, TOC, images), write C# directly instead of wrestling with CLI limitations. Use this scaffold:

// File: scripts/dotnet/task.csx  (or a new .cs in a Console project)
// dotnet run --project scripts/dotnet/MiniMaxAIDocx.Cli -- run-script task.csx
#r "nuget: DocumentFormat.OpenXml, 3.2.0"

using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;

using var doc = WordprocessingDocument.Create("output.docx", WordprocessingDocumentType.Document);
var mainPart = doc.AddMainDocumentPart();
mainPart.Document = new Document(new Body());

Sponsors

Details

Repository
github.com/minimax-ai/skills
Categories
Code Review & Quality, Office & Documents, .NET & C#
First seen
Apr 16, 2026

More from minimax-ai/skills

All 19
1dotnet avatarcsharp-scriptsdotnet/skillsRun file-based C# apps with the .NET CLI when the user explicitly wants C#/.NET code without creating a project. Use for C# language/API experiments, one-file C4.5Kskills.sh installs
2cursor avatarreflectcursor/pluginsSpawn three parallel review subagents over the active transcript, surface learnings, and route each to a concrete edit on an existing skill.4.5Kskills.sh installs
3grafana avataradaptive-metricsgrafana/skillsCut Grafana Cloud Metrics cost by shrinking active-series count with Adaptive Metrics aggregation rules — auto-recommendations from query history, custom exact/4.5Kskills.sh installs
4grafana avatarapp-sdk-conceptsgrafana/skillsUse when starting any grafana-app-sdk work — scaffolding a Grafana app, initializing a Grafana App Platform app, picking a deployment mode (standalone operator 4.5Kskills.sh installs
5klerith avatarspec-implklerith/fernando-skillsImplements an approved spec. Validates that the state means "Approved" (in any language), creates a git branch named after the spec, switches to it, and starts 4.5Kskills.sh installs
6grafana avatarreconciler-logicgrafana/skillsImplement reconcilers and watchers for grafana-app-sdk apps — write `TypedReconciler[*MyKind]` reconcile functions, apply generation-based skip patterns, do con4.5Kskills.sh installs