minimax-docx

Generate, edit, and restyle DOCX documents via OpenXML pipelines.

641|104|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/loongclaw-ai/loongclaw --skill minimax-docx-loongclaw-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minimax-docx
Source: https://github.com/loongclaw-ai/loongclaw/tree/main/skills/minimax-office/minimax-docx
Command: npx skills add https://github.com/loongclaw-ai/loongclaw --skill minimax-docx-loongclaw-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dotnet, pandoc, soffice, zip, unzip, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill replaces the manual struggle of creating, editing, and formatting professional Word documents by orchestrating annotated guidance, CLI tooling, and direct C# recipes powered by the OpenXML SDK so that any request implying a printable/formal DOCX output immediately follows the right pipeline.

Core Features & Use Cases

  • Pipeline routing: Detects whether to create from scratch, fill or edit existing content, or apply a template, and points to the relevant scenario reference guide for each case.
  • Tooling discipline: Covers setup checks, CLI shortcuts, script scaffolds, validation gates, and C# sample reviews to keep OpenXML element order, fonts, numbering, and styles compliant.
  • Template-aware operations: Provides rules for style mapping, numbering remapping, header/footer preservation, and multi-section handling so long-form reports, government documents, or theses render correctly.

Quick Start

Run scripts/env_check.sh, then invoke the appropriate CLI pipeline or direct C# path from this skill to create, edit, or format your DOCX in the current session.

Frequently Asked Questions about minimax-docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate structured DOCX reports using OpenXML and C#?

You can generate structured DOCX reports using OpenXML and C# by orchestrating CLI pipelines, direct C# scripting, and validation gates to enforce element ordering, style mapping, and schema compliance for formal documentation.

What is the best way to edit existing Word files while preserving headers and styles?

The best way to edit existing Word files while preserving headers and styles is through template-aware operations that handle style mapping, numbering remapping, and multi-section handling to ensure long-form documents render correctly.

Do I need dotnet and pandoc installed to create Word documents from templates?

Yes, you need dotnet, pandoc, soffice, zip, and unzip installed to create Word documents from templates. Running an environment check script validates these dependencies before routing to the appropriate DOCX creation or editing pipeline.

How does OpenXML validation handle schema compliance for formal documentation?

OpenXML validation handles schema compliance by applying tooling discipline through validation gates and C# sample reviews. This enforces correct OpenXML element order, fonts, numbering, and styles so formal documents like theses and government reports render correctly.

Can I use this approach to fill existing DOCX files with new content?

Yes, you can fill existing DOCX files with new content. Pipeline routing detects whether to create from scratch, fill existing content, or apply a template, directing you to the relevant scenario reference guide for each case.

Why does my DOCX formatting break when applying templates for multi-section reports?

Your DOCX formatting may break due to incorrect OpenXML element ordering or style mapping. Applying template-aware operations with proper numbering remapping and header preservation ensures multi-section reports and long-form documents render correctly without formatting issues.