# Create and Format DOCX Documents

Reliable Word document automation requires careful OpenXML structure and formatting. This skill provides CLI workflows, C# examples, previews, template application, and validation.

## Install

```bash
npx skillstore add minimax-ai/minimax-docx
```

## Metadata

- Status: approved
- Slug: minimax-ai-minimax-docx
- Version: 1.0.0
- Author version: 1.0.0
- Skillstore revision: r2
- Version status: not\_bumped
- Tree hash: 0a521cc3349d77e40df9fa6476f15e722b238c2955bbdcbd357b42f841fe6ec6
- Author: MiniMax-AI
- GitHub username: MiniMax-AI
- License: MIT
- Repository: https://github.com/MiniMax-AI/skills/tree/main/skills/minimax-docx
- Ref: 02be9409c79ca1183f7844009c14d9df684d0cf9
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: network, external\_commands, filesystem
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/minimax-ai-minimax-docx
- Manifest: https://skillstore.pages.dev/api/skills/minimax-ai-minimax-docx/manifest

## Capabilities

- Creates report, letter, memo, and academic DOCX files with configurable page layout, headings, headers, footers, page numbers, and TOC fields.
- Replaces text, inserts paragraphs, updates document properties, and fills named placeholders while preserving basic document formatting.
- Fills existing tables from CSV data and can append or replace table rows.
- Applies template styles, themes, numbering, headers, footers, and section properties to an existing DOCX file.
- Analyzes, compares, validates, repairs element order, and merges compatible text runs in DOCX files.
- Previews document text with Pandoc or extracts raw document XML when Pandoc is unavailable.

## Use Cases

- Prepare recurring business documents: Create consistent reports, letters, and memos with approved page settings, headings, headers, footers, and reusable content.
- Standardize existing Word files: Apply a reference template, preserve content, compare changes, and validate the resulting DOCX package.
- Build structured academic manuscripts: Use documented OpenXML patterns for headings, citations, tables, sections, numbering, and multilingual typography.

## Prompt Templates

### Create a simple memo

```
Create a DOCX memo titled [TITLE] for [AUDIENCE]. Include [SECTIONS], a date, an author, and page numbers. Save it as [OUTPUT].
```

### Update an existing document

```
Edit [INPUT DOCX]. Replace [OLD TEXT] with [NEW TEXT], fill [PLACEHOLDERS], preserve formatting, validate the result, and save it as [OUTPUT].
```

### Apply a reference template

```
Format [SOURCE DOCX] with [TEMPLATE DOCX]. Preserve all source content, apply template styles and sections, run validation, compare both files, and save [OUTPUT].
```

### Build a complex structured document

```
Create [DOCUMENT TYPE] from [CONTENT]. Use the relevant OpenXML samples for sections, tables, images, headings, and headers. Validate every write and deliver [OUTPUT].
```

## Limitations

- The CLI requires .NET 8, and the full setup can download packages or request administrator privileges.
- Legacy DOC conversion requires LibreOffice, while readable plain-text previews work best with Pandoc.
- Advanced layouts and structural edits require custom C\# based on the included samples.
- Word may need to refresh generated fields, including the table of contents and page numbers.

## Best Practices

- Keep the original DOCX unchanged and write edits to a separate output file.
- Preview and analyze input files before editing, then validate and compare every generated result.
- Use the included samples for advanced OpenXML structures and test the final file in Microsoft Word.

## Anti Patterns

- Do not run the full installer without reviewing its network, package-manager, and shell-configuration changes.
- Do not copy direct formatting blindly when applying a template because it can override template styles.
- Do not deliver complex DOCX output without validation, comparison, and a visual review.

## Security Audit

- Audited at: 2026-08-09T08:48:14.963\+00:00
- Summary: No malicious payload, prompt injection, or data-exfiltration intent was found in the reviewed files. Most static matches are OOXML syntax, documentation, or normal shell redirection. Setup still performs privileged installs, unverified remote-script execution, persistent configuration changes, and dependency builds. Static review was capped at 400/806 representative findings; omitted static matches are unconfirmed, so automatic publishing stays disabled until manual review.

## Stats

- Views: 405
- Downloads: 127
- Favorites: 1
- Popularity score: 0
