Agent skill · writing content · aiskillstore
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 final output is a .docx file. Even if the user doesn't mention "docx" explicitly, if the task implies a printable/formal document, use this skill.
Why this skill is useful
Adds executable scripts for creating, editing, and formatting DOCX documents using OpenXML SDK that aren't available in public documentation.
What it needs
Requires dotnet installed locally. About 8k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
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/envcheck.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: Before writing any C#, read the relevant Samples/.cs file — they contain compilable, SDK-version-verified patterns. The Samples table in the References section below maps topics to files. CLI shorthand All CLI commands below use $CLI as shorthand for: Pipeline routing Route by checking: does the user have an input .docx file? If the request spans multiple pipelines, run them sequentially (e.g., Create then Format-Apply). Pre-processing Convert .doc → .docx if needed: scripts/doctodocx.sh input.doc outputdir/ Preview before editing (avoids reading raw XML): scripts/docxpreview.sh document.docx Analyze structure for editing scenarios: $CLI analyze --input document.docx Scenario A: Create Read references/scenarioacreate.md, references/typographyguide.md, and references/designprinciples.md first. Pick an aesthetic recipe from Samples/AestheticRecipeSamples.cs that matches the document type — do not invent formatting values. For CJK, also read references/cjktypography.md. Choose your path: Simple (plain text, minimal formatting): use CLI — $CLI create --type report --output out.docx --config content.json Structural (custom styles, multi-section, TOC, images, complex tables): write C# directly. Read the relevant Samples/.cs first. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/minimax-docx