# /minimax-docx: Create and restyle Word documents that pass validation

Source: https://trendhub.net/skills/minimax-ai-skills/minimax-docx
Skill folder: https://github.com/MiniMax-AI/skills/tree/main/skills/minimax-docx
Pack: MiniMax Skills (https://trendhub.net/skills/minimax-ai-skills)
Works with: Claude Code, Cursor, Codex, OpenCode

minimax-docx handles Word files through OpenXML SDK on .NET with three pipelines: create a new document, fill or edit an existing one, or apply a template's formatting. It leans on tested C# samples and recipes from published style guides, and every write is followed by schema and business-rule checks, with a hard gate before template work is delivered.

## When to use it

- You need a report, memo, contract or thesis delivered as a properly structured .docx.
- You must fill placeholders or replace text in a Word file without disturbing its layout.
- You have to reformat a document to match a university or corporate template.

## How it works

1. **Check the environment**: The agent runs the setup and environment check scripts once and stops if the toolchain is not ready.
2. **Route by input**: No input file means create; an existing file goes to fill-edit or to template application, split into overlay or base-replace.
3. **Use tested patterns**: Simple jobs use the CLI, while structural ones are written in C# after reading the matching sample file and an aesthetic recipe.
4. **Validate every write**: It merges runs, validates against an XSD and business rules, auto-fixes element order if needed and diffs before and after.

## What it steers the agent away from

- Invented formatting values instead of recipes drawn from style guides such as APA, IEEE or Nature.
- Copying direct formatting from a source that overrides the template's styles.
- Rebuilding template headers and footers by hand instead of copying them exactly.

## What it can touch

Runs setup and preview shell scripts and a .NET command-line tool, may compile C# scripts, and reads and writes .docx files in your working folder.

## Pairs well with

- `/minimax-pdf`
- `/minimax-xlsx`

## Questions

### Does it work on Windows?

Yes. Setup has a PowerShell script for Windows alongside the Bash one.

### Can it handle Chinese documents?

Yes. It has references for CJK typography, the GB/T 9704 official document standard and Chinese university thesis templates.
