Tooluck logoTooluck
SKILL.md

minimax-docx

Agent skill fromMiniMax-AI/skills

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.

How to install minimax-docx

install minimax-docx
# install the skills pack with the skills CLI
npx skills add MiniMax-AI/skills

# or add only this skill to Claude Code: copy the folder

skills/minimax-docx/

# into

~/.claude/skills/minimax-docx/ (all projects)

.claude/skills/minimax-docx/ (one project)

skills/minimax-docx/SKILL.md

MITFull file
1# minimax-docx
2
3Create, edit, and format DOCX documents via CLI tools or direct C# scripts built on OpenXML SDK (.NET).
4
5## Setup
6
7**First time:** `bash scripts/setup.sh` (or `powershell scripts/setup.ps1` on Windows, `--minimal` to skip optional deps).
8
9**First operation in session:** `scripts/env_check.sh` — do not proceed if `NOT READY`. (Skip on subsequent operations within the same session.)
10
11## Quick Start: Direct C# Path
12
13When 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:
14
15```csharp
16// File: scripts/dotnet/task.csx (or a new .cs in a Console project)
17// dotnet run --project scripts/dotnet/MiniMaxAIDocx.Cli -- run-script task.csx
18#r "nuget: DocumentFormat.OpenXml, 3.2.0"
19
20using DocumentFormat.OpenXml;
21using DocumentFormat.OpenXml.Packaging;
22using DocumentFormat.OpenXml.Wordprocessing;
23
24using var doc = WordprocessingDocument.Create("output.docx", WordprocessingDocumentType.Document);
25var mainPart = doc.AddMainDocumentPart();
26mainPart.Document = new Document(new Body());
27
28// --- Your logic here ---
29// Read the relevant Samples/*.cs file FIRST for tested patterns.
30// See Samples/ table in References section below.
31```
32…

Excerpt shown under the repository's MIT license.

More skills in skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates