minimax-docx
Fungsinya
Skill ini membuat dan mengedit dokumen Word dengan alat OpenXML. Skill ini ditujukan untuk orang yang membutuhkan dokumen profesional, seperti laporan, proposal, atau templat yang diformat.
Kapan dipakai
- โSaat Anda meminta laporan, proposal, atau surat tertulis dalam bentuk file Word.
- โSaat Anda ingin mengisi atau mengubah konten dalam dokumen Word yang sudah ada.
- โSaat Anda ingin format sebuah templat diterapkan pada dokumen.
Link skill
https://github.com/MiniMax-AI/skills/blob/main/skills/minimax-docx/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin laporan Word tentang hasil kuartal kami, dengan judul, tabel, dan tata letak yang rapi.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menyiapkan alat, lalu menulis atau mengedit dokumen lewat alat baris perintah atau skrip C# khusus. Agent memeriksa file terhadap aturan format Word sebelum menyelesaikan pekerjaan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah perlu perangkat lunak khusus?
Skill ini memiliki langkah penyiapan untuk alatnya, termasuk .NET untuk skrip OpenXML.
Bisakah saya mengedit dokumen yang sudah saya miliki?
Bisa. Skill ini memiliki alur untuk mengisi dan mengedit konten dalam file Word yang ada.
Bagaimana skill ini memastikan file valid?
Skill ini menjalankan langkah validasi terhadap aturan format file Word sebelum melaporkan keberhasilan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 14k
- Peringkat
- #11293
- Lisensi
- MIT
- Diperbarui
- 18/4/2026
Komentar
- โฆ
Skill lain dari repositori ini
design-style-skill
14kMembantu agent Anda memilih satu gaya visual yang konsisten untuk slide, dari yang tajam dan padat hingga yang lembut, membulat atau lapang, dengan sudut dan spasi yang selaras.
ppt-editing-skill
14kMembantu agent Anda mengedit file atau templat PowerPoint yang sudah ada dengan aman, dengan mengubah teks, mengatur ulang atau menghapus slide, dan mengemas ulang presentasi yang valid.
ppt-orchestra-skill
14kMembantu agent Anda merencanakan seluruh presentasi PowerPoint sebelum dibuat, dengan mengelompokkan setiap slide ke dalam jenis halaman standar serta memeriksa variasi dan kualitas teks.
slide-making-skill
14kMembantu agent Anda menulis slide PowerPoint tunggal dengan JavaScript memakai PptxGenJS, mencakup tata letak, teks, gambar, bagan dan font untuk file .pptx asli.
Skill serupa
feishu-doc
394kMembantu agent Anda membaca, membuat, dan mengedit dokumen cloud Feishu, termasuk teks, gambar, dan tabel, dengan memakai alat dokumen.
feishu-drive
394kMemungkinkan agent Anda menelusuri, mengatur, dan memberi komentar pada file di folder cloud Feishu yang sudah dibagikan kepada bot.
feishu-perm
394kMembantu agent Anda memeriksa dan mengubah siapa yang dapat mengakses file Feishu, dengan memilih izin terkecil yang memenuhi permintaan Anda.