minimax-docx

仓库创建 2026年2月2日最近提交 3 天前SkillHot 收录 20 天前
▸ 精选理由

适合需严格格式与验证门控的企业级文档生成流程。

▸ 风险提示

需运行安装脚本并安装 .NET 环境与外部依赖。

这个 Skill 做什么

用 OpenXML SDK 在 CLI 或 C# 脚本中生成、填充与格式化 DOCX 文档。

用 OpenXML SDK 在 CLI 或 C# 脚本里生成、填充和格式化 Word 文档,能从空白建档、把内容填进模板或把现有 .docx 批量套样式。适合写报告、合同、表单填充或把文档统一成公司模版时用。特点是走 .docx 原生路线、支持 XSD 验证,能保证输出可打印且格式一致。

▸ 展开 SKILL.md 英文原文

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.

办公文档DOCX生成.NET OpenXML模板化通用
456
Stars
41
Forks
34
仓库内 Skill
+8
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/mxyhi/ok-skills/main/minimax-docx/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/mxyhi/ok-skills/main/minimax-docx/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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  
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有