minimax-docx
하는 일
이 스킬은 OpenXML 도구로 Word 문서를 만들고 편집합니다. 보고서, 제안서, 서식이 갖춰진 템플릿처럼 전문적인 문서가 필요한 사람을 위한 스킬입니다.
사용하는 경우
- ✓Word 파일로 보고서, 제안서, 편지를 요청할 때.
- ✓기존 Word 문서의 내용을 채우거나 바꾸고 싶을 때.
- ✓문서에 템플릿의 서식을 적용하고 싶은 경우.
스킬 링크
https://github.com/MiniMax-AI/skills/blob/main/skills/minimax-docx/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“분기 실적에 관한 Word 보고서를 제목, 표, 깔끔한 레이아웃을 넣어 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 도구를 설정한 뒤 명령줄 도구나 맞춤 C# 스크립트로 문서를 쓰거나 편집합니다. 끝내기 전에 Word 형식 규칙에 맞는지 파일을 점검합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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:
// 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:
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/*.csfirst.
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.mdand the relevantSamples/*.cs.
Available CLI edit subcommands:
replace-text --find "X" --replace "Y"fill-placeholders --data '{"key":"value"}'fill-table --data table.jsoninsert-section,remove-section,update-header-footer
$CLI edit replace-text --in
자주 묻는 질문
특별한 프로그램이 필요한가요?
스킬에는 OpenXML 스크립트를 위한 .NET을 포함해 도구를 설치하는 단계가 있습니다.
이미 가지고 있는 문서를 편집할 수 있나요?
네. 기존 Word 파일의 내용을 채우고 편집하는 과정이 있습니다.
파일이 유효한지 어떻게 확인하나요?
성공을 보고하기 전에 Word 파일 형식 규칙에 따라 검증 단계를 실행합니다.
상세 정보
작성자의 원본 설명
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
repo: MiniMax-AI/skills
인기도
- GitHub 스타
- 14k
- 순위
- #11293
- 라이선스
- MIT
- 업데이트
- 2026. 4. 18.
댓글
- …
이 저장소의 다른 스킬
design-style-skill
14k에이전트가 날카롭고 간결한 스타일부터 부드럽고 둥근 스타일까지 슬라이드 시각 스타일을 하나로 정해 모서리와 여백을 맞추도록 돕습니다.
ppt-editing-skill
14k에이전트가 기존 PowerPoint 파일이나 템플릿의 텍스트를 바꾸고, 슬라이드 순서를 옮기거나 지우고, 올바른 파일로 다시 묶어 안전하게 편집하도록 돕습니다.
ppt-orchestra-skill
14k에이전트가 PowerPoint 덱 전체를 만들기 전에 계획하도록 돕습니다. 각 슬라이드를 표준 페이지 유형으로 나누고 구성의 다양성과 텍스트 품질을 점검합니다.
slide-making-skill
14k에이전트가 PptxGenJS로 레이아웃, 텍스트, 이미지, 차트, 글꼴을 다루는 네이티브 .pptx 슬라이드를 JavaScript로 작성하도록 돕습니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.