Skip to content
Agentmart
Submit a tool
This entry duplicates minimax-docx, which is the one we list in search.

minimax-docx

Professional DOCX document creation, editing, and formatting using OpenXML SDK (.NET).

Skill by MiniMaxAI

IndexedMIT★ 540
Write a review

Chalk Labs

Need help deploying minimax-docx?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/vibeeval-minimax-docx

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: documents, writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
minimax-docx
Description
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.
License
MIT
Metadata
author: MiniMaxAI · version: 1.0.0 · category: document-processing
Instructions
242 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (74)

  • LICENSE
  • SKILL.md
  • academic_styles.xml · assets/styles/
  • corporate_styles.xml · assets/styles/
  • default_styles.xml · assets/styles/
  • aesthetic-rules.xsd · assets/xsd/
  • business-rules.xsd · assets/xsd/
  • common-types.xsd · assets/xsd/
  • wml-subset.xsd · assets/xsd/
  • cjk_typography.md · references/
  • cjk_university_template_guide.md · references/
  • comments_guide.md · references/
  • design_good_bad_examples.md · references/
  • design_principles.md · references/
  • openxml_element_order.md · references/
  • openxml_encyclopedia_part1.md · references/
  • openxml_encyclopedia_part2.md · references/
  • openxml_encyclopedia_part3.md · references/
  • openxml_namespaces.md · references/
  • openxml_units.md · references/
  • scenario_a_create.md · references/
  • scenario_b_edit_content.md · references/
  • scenario_c_apply_template.md · references/
  • track_changes_guide.md · references/
  • troubleshooting.md · references/
  • typography_guide.md · references/
  • xsd_validation_guide.md · references/
  • doc_to_docx.sh · scripts/
  • docx_preview.sh · scripts/
  • MiniMaxAIDocx.Cli.csproj · scripts/dotnet/MiniMaxAIDocx.Cli/
  • Program.cs · scripts/dotnet/MiniMaxAIDocx.Cli/
  • AnalyzeCommand.cs · scripts/dotnet/MiniMaxAIDocx.Core/Commands/
  • ApplyTemplateCommand.cs · scripts/dotnet/MiniMaxAIDocx.Core/Commands/
  • CreateCommand.cs · scripts/dotnet/MiniMaxAIDocx.Core/Commands/
  • DiffCommand.cs · scripts/dotnet/MiniMaxAIDocx.Core/Commands/
  • EditContentCommand.cs · scripts/dotnet/MiniMaxAIDocx.Core/Commands/
  • FixOrderCommand.cs · scripts/dotnet/MiniMaxAIDocx.Core/Commands/
  • MergeRunsCommand.cs · scripts/dotnet/MiniMaxAIDocx.Core/Commands/
  • ValidateCommand.cs · scripts/dotnet/MiniMaxAIDocx.Core/Commands/
  • MiniMaxAIDocx.Core.csproj · scripts/dotnet/MiniMaxAIDocx.Core/
  • CommentSynchronizer.cs · scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/
  • ElementOrder.cs · scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/
  • NamespaceConstants.cs · scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/
  • RunMerger.cs · scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/
  • StyleAnalyzer.cs · scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/
  • TrackChangesHelper.cs · scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/
  • UnitConverter.cs · scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/
  • AestheticRecipeSamples.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • AestheticRecipeSamples_Batch1.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • AestheticRecipeSamples_Batch2.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • AestheticRecipeSamples_Batch3.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • AestheticRecipeSamples_Batch4.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • CharacterFormattingSamples.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • DocumentCreationSamples.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • FieldAndTocSamples.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • FootnoteAndCommentSamples.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • HeaderFooterSamples.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • ImageSamples.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • ListAndNumberingSamples.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • ParagraphFormattingSamples.cs · scripts/dotnet/MiniMaxAIDocx.Core/Samples/
  • …and 14 more

SKILL.md (first lines)

# 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:

```csharp
// 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());

// --- Your logic here ---
// Read the relevant Samples/*.cs file FIRST for tested patterns.
// See Samples/ table in References section below.
```

**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:
```bash
dotnet run --project scripts/dotnet/MiniMaxAIDocx.Cli --
```

## Pipeline routing

Route by checking: does the user have an input .docx file?

```
User task
├─ No input file → Pipeline A: CREATE
│   signals: "write", "create", "draft", "generate", "new", "make a report/proposal/memo"
│   → Read references/scenario_a_create.md
│
└─ Has input .docx
    ├─ Replace/fill/modify content → Pipeline B: FILL-EDIT
    │   signals: "fill in", "replace", "update", "change text", "add section", "edit"
    │   → Read references/scenario_b_edit_content.md
    │
    └─ Reformat/apply style/template → Pipeline C: FORMAT-APPLY
        signals: "reformat", "apply template", "restyle", "match this format", "套模板", "排版"
        ├─ Template is pure style (no content) → C-1: OVERLAY (apply styles to source)
        └─ Template has structure (cover/TOC/example sections) → C-2: BASE-REPLACE
            (use template as base, replace example content with user content)
        → Read references/scenario_c_apply_template.md
```

If the request spans multiple pipelines, run them sequentially (e.g., Create then Format-Apply).

## Pre-processing

Convert `.doc` → `.docx` if needed: `scripts/doc_to_docx.sh input.doc output_dir/`

Preview before editing (avoids reading raw XML): `scripts/docx_preview.sh document.docx`

Analyze structure for editing scenarios: `$CLI analyze --input document.docx`

## Scenario A: Create

Read `references/scenario_a_create.md`, `references/typography_guide.md`, and `references/design_principles.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/cjk_typography.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.

CLI options: `--type` (report|letter|memo|academic), `--title`, `--author`, `--page-size` (letter|a4|legal|a3), `--margins` (standard|narrow|wide), `--header`, `--footer`, `--page-numbers`, `--toc`, `--content-json`.

Then run the **validation pipeline** (below).

## Scenario B: Edit / Fill

Read `references/scenario_b_edit_content.md` first. Preview → analyze → edit → validate.

**Choose your path:**
- **Simple** (text replacement, placeholder fill): use CLI subcommands.
- **Structural** (add/reorganize sections, modify styles, manipulate tables, insert images): write C# directly. Read `references/openxml_element_order.md` and the relevant `Samples/*.cs`.

Available CLI edit subcommands:
- `replace-text --find "X" --replace "Y"`
- `fill-placeholders --data '{"key":"value"}'`
- `fill-table --data table.json`
- `insert-section`, `remove-section`, `update-header-footer`

```bash
$CLI edit replace-text --input in.docx --output out.docx --find "OLD" --replace "NEW"
$CLI edit fill-placeholders --input in.docx --output out.docx --data '{"name":"John"}'
```

Then run the **validation pipeline**. Also run diff to verify minimal changes:
```bash
$CLI diff --before in.docx --after out.docx
```

## Scenario C: Apply Template

Read `references/scenario_c_apply_template.md` first. Preview and analyze both source and template.

```bash
$CLI apply-template --input source.docx --template template.docx --output out.docx
```

For complex template operations (multi-template merge, per-section headers/footers, style merging), write C# directly — see Critical Rules below for required patterns.

From vibeeval/vibecosystem, MIT.

More from vibeeval/vibecosystem

Signals

Stars
540
Forks
44
Open issues
5
Last commit (this folder)
Apr 3, 2026 (7 months ago)
Last release
Apr 12, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from MiniMaxAI

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get minimax-docx running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying minimax-docx?

CallGet help
Cite this page

minimax-docx skill. Agent Mart. https://agentmart.dev/skills/vibeeval-minimax-docx (last updated 2026-10-24)