Agent skill

DOCX Creator

by daymade in daymade/claude-code-skills

Produces Word (.docx) and exports existing Word/WPS manuscripts to PDF, preserving revisions, tables and images, especially Chinese formal documents via a verified OpenXML generator with mandatory…

MITAuto-check passedDocuments & Office

Install DOCX Creator

skills CLI
$ npx skills add daymade/claude-code-skills --skill docx-creator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install daymade/claude-code-skills docx-creator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/daymade/claude-code-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/daymade-docs/docx-creator .claude/skills/docx-creator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docx-creator
GitHub stars
1.4k
Token cost
~2.9k tokens
SKILL.md length
1,350 words
Files
9 (incl. scripts, references)
Skills in repo
103
Repo updated
First seen
Licence
MIT

At a glance

Produces Word (.docx) and exports existing Word/WPS manuscripts to PDF, preserving revisions, tables and images, especially Chinese formal documents via a verified OpenXML generator with mandatory…

  • Works in 4 steps: Alignment is layered — this is the… → Independent lists restart; continuations… → CJK fonts need both slots → …
  • 生成 Word 文档 / 写合同 docx / 把 markdown 转成 Word / 中文排版
  • SKILL.md covers Division of labor, Routing: which path for this…, Quick start and Hard rules (violating these…, plus 3 more sections
  • Runs C# and AppleScript scripts from its folder; calls dotnet, soffice and pdftoppm

What it does

DOCX Creator is an agent skill from daymade/claude-code-skills. Produces Word (.docx) and exports existing Word/WPS manuscripts to PDF, preserving revisions, tables and images, especially Chinese formal documents via a verified OpenXML generator with mandatory visual verification. Use for 生成 Word 文档 / 写合同 docx / 把 markdown 转成 Word / 中文排版. Not for Markdown → PDF (use daymade-docs:pdf-creator).

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts and reference files (for example `references/known_issues.md`, `references/verification_protocol.md` and `references/word-to-pdf.md`).

It sits in Documents & Office, covering Word documents. It works with Microsoft Word and MiniMax. The repository describes itself as: Professional Claude Code skills marketplace featuring production-ready skills for enhanced development workflows. The licence is MIT.

When your agent uses it

  • 生成 Word 文档 / 写合同 docx / 把 markdown 转成 Word / 中文排版
  • Tasks that involve Word documents

Example prompts

  • “Use the docx-creator skill to produce Word (.docx) and exports existing Word/WPS manuscripts to PDF, preserving revisions, tables and images…”
  • “/docx-creator”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Alignment is layered — this is the expensive one
  2. Independent lists restart; continuations retain numbering
  3. CJK fonts need both slots
  4. Page and table basics

What it can do on your machine

Read from SKILL.md and the folder at commit 91bed2b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 5 files in scripts/ (C# and AppleScript), which the agent can run.

    Shell commands in SKILL.md call:

    • dotnet
    • soffice
    • pdftoppm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

DOCX Creator loads about 2.9k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 86 tokens; SKILL.md has 1,350 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~86
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from daymade/claude-code-skills at commit 91bed2b, republished under its MIT licence (© daymade). 1,350 words, ~2,925 tokens.

Download SKILL.mdSave it as .claude/skills/docx-creator/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
docx-creator
description
Produces Word (.docx) and exports existing Word/WPS manuscripts to PDF, preserving revisions, tables and images, especially Chinese formal documents via a verified OpenXML generator with mandatory visual verification. Use for 生成 Word 文档 / 写合同 docx / 把 markdown 转成 Word / 中文排版. Not for Markdown → PDF (use daymade-docs:pdf-creator).
disable-model-invocation
true

DOCX Creator

Thin incremental layer over minimax-skills:minimax-docx. Not a document engine.

Read this first. The OpenXML SDK capability lives in minimax-docx. This skill contains zero engine code. What it contains is the part that took a full debugging session to learn: where that engine's CLI stops being usable, how to drive its SDK correctly for Chinese formal documents, and how to verify the output so you don't ship a file that looks fine to you and broken in Word.

Division of labor

LayerOwnerWhat lives there
OpenXML SDK (DocumentFormat.OpenXml), WordprocessingDocument API, XSD validator, style templates, OpenXML encyclopediaminimax-skills:minimax-docxEngine + reference docs. Never duplicated here.
Where the CLI's expressiveness ceiling is, and when to abandon it for C#this skillISSUE-001, ISSUE-002
A verified markdown-to-docx generator for Chinese formal documentsthis skillscripts/Program.cs
Chinese formal-document typography rules that OpenXML lets you get wrongthis skillHard rules below + ISSUE-004…007
Real end-to-end visual verification chainthis skillreferences/verification_protocol.md

Locate the engine at the marketplace install path, typically ~/.claude/plugins/marketplaces/minimax-skills/skills/minimax-docx/.

Go read minimax-docx directly for anything structural this skill does not cover — images, track changes, comments, TOC, multi-section layouts, template application. Its minimax-docx/references/ folder (cjk_typography.md, openxml_element_order.md, openxml_units.md, troubleshooting.md) and its Samples/*.cs are the authority for SDK patterns. Do not reinvent them here.

Routing: which path for this document?

SituationPath
Chinese contract / agreement / 公文 / any doc with 甲乙方 info blocks, numbered clauses, signature block, tablesC# OpenXML via scripts/Program.cs (this skill)
Plain prose, headings and paragraphs only, no bold / lists / tablesminimax-docx CLI create --content-json is enough
Fill or edit an existing .docxminimax-docx pipeline B (edit-content), plus this skill's layout and verification guidance
Match an existing .docx's formattingminimax-docx pipeline C (apply-template)
Existing Word/WPS → repaired layout / selected excerpt → PDFKeep the Word source; follow references/word-to-pdf.md and references/verification_protocol.md
Markdown → PDFdaymade-docs:pdf-creator

Rule of thumb: the CLI's --content-json understands exactly three block types (heading, paragraph, pagebreak). Bold, lists, tables, borders, footers, fonts, alignment — none of it is expressible. A Chinese contract needs all of them. See ISSUE-001.

Quick start

The generator reads markdown and writes a formatted .docx. Copy it next to your document so build artifacts stay out of the skill directory:

bash
# 1. Stage the generator beside your markdown
mkdir -p _docxgen && cp <skill-dir>/scripts/Program.cs <skill-dir>/scripts/mmdocx-gen.csproj \
   <skill-dir>/scripts/.gitignore _docxgen/

# 2. Generate (first run restores DocumentFormat.OpenXml + Markdig, ~20s)
dotnet run --project _docxgen -- your-doc.md your-doc.docx

# 3. Structural validation via the engine's XSD validator (note the roll-forward env — ISSUE-003)
DOTNET_ROLL_FORWARD=Major dotnet run \
  --project ~/.claude/plugins/marketplaces/minimax-skills/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Cli \
  -- validate --input your-doc.docx

# 4. MANDATORY visual verification — never skip, never substitute qlmanage
soffice --headless --convert-to pdf --outdir /tmp/docxcheck your-doc.docx
pdftoppm -png -r 100 /tmp/docxcheck/your-doc.pdf /tmp/docxcheck/page
# then Read every /tmp/docxcheck/page-NN.png

# 5. MANDATORY if Microsoft Word.app is installed — LibreOffice cannot see ISSUE-012
open -a "Microsoft Word" your-doc.docx   # check the title bar for "兼容性模式", check every page

Full command details and troubleshooting: scripts/README.md. Full verification steps and pass/fail criteria: references/verification_protocol.md.

Hard rules (violating these means rework)

1. Alignment is layered — this is the expensive one

Never justify the whole document. Three layers, three alignments:

ContentAlignmentWhy
Document title (H1)CenterConvention
Clause headings (H2+)LeftConvention
Info blocks and signature blocks — 甲方/乙方/统一社会信用代码/法定代表人/日期, i.e. any paragraph whose lines are joined by markdown soft or hard line breaksLeftJustification stretches every line except the paragraph's last. A multi-line info block is one paragraph, so all but its final line get blown out into huge inter-character gaps.
Ordinary body proseJustified (Both)Clean right edge

The rule is machine-checkable, so do not eyeball it: if the markdown paragraph's inline tree contains a LineBreakInline, left-align that paragraph; otherwise justify it. Implemented in the case ParagraphBlock p: arm of Main's block-dispatch switch, with the break detection in InlineRuns. (Line numbers are deliberately not given here — they drift every time the file grows; see scripts/README.md's function-name lookup table instead.) Full write-up: ISSUE-004.

2. Independent lists restart; continuations retain numbering

Each independent markdown list must get its own NumId plus a LevelOverride carrying StartOverrideNumberingValue = 1. Reuse one NumId across clauses and clause 3's list silently continues from 4. Implemented across the case ListBlock lb: arm and the NumberingDefinitionsPart setup — see scripts/README.md's lookup table for both. Two SDK traps come with it (wrong class name, wrong element order) — ISSUE-005, ISSUE-006. For existing Word lists, preserve intentional continuations. Resolve numId and its level before changing geometry; numId=0 disables numbering. Typed ordinals are text, not an automatic list. See ISSUE-016.

3. CJK fonts need both slots

A run must set RunFonts { Ascii, HighAnsi, EastAsia }. Setting only the Latin slots leaves Chinese characters to Word's fallback, and the document renders in whatever the reader's machine picks. Shipped defaults: Latin Times New Roman; East Asian 宋体 for body, 黑体 for headings. Chinese bold runs switch family to 黑体 — 宋体 has no true bold weight and renderer-synthesized bold smears multi-stroke characters (ISSUE-014). Sizes are OpenXML half-points — body 21 (10.5pt, the common Chinese manuscript size), H1 36 (18pt), clause heading 28 (14pt). Body paragraphs also get a 2-character first-line indent (420 twips at 10.5pt — change it in lockstep with the body size). ISSUE-007.

4. Page and table basics

A4 is 11906 × 16838 twips with 1440 twip margins; page number goes in a centered footer PAGE field. Tables need all six borders (top/bottom/left/right/insideH/insideV, in that ECMA-376 order — ISSUE-013) and a tblGrid (ISSUE-012) — set fewer borders and cells look unruled in print; omit tblGrid and the file fails strict validation even though LibreOffice hides it. Implemented in BuildTable and the SectionProperties/FooterPart setup in Main — see scripts/README.md's lookup table.

Show full SKILL.md (544 more words)Show less

Verification is not optional

Banned: qlmanage thumbnails as visual proof. macOS Quick Look renders with a different engine than Word and will happily show a clean-looking page for a document whose info blocks are stretched apart. A document was declared "verified perfect" on qlmanage evidence and opened broken in Word — that is the origin of this rule. ISSUE-008.

Required chain: generate → XSD validate → soffice --headless --convert-to pdf → pdftoppm -png → Read every page image → check the five failure modes (info blocks not stretched / each list restarting at 1 / table borders present / signature block intact / no orphaned pagination) → if Microsoft Word.app is installed, open the actual file in it and check the title bar for "兼容性模式" plus every page. Details, prerequisites and the "what counts as failure" list: references/verification_protocol.md.

LibreOffice rendering clean is not the same claim as "Word renders this correctly." ISSUE-012 is a real, reproduced case where a file passed every LibreOffice-based check in this chain — clean info blocks, correct numbering, intact tables — and still opened in real Word with "兼容性模式" in the title bar and phantom bullet markers on paragraphs that were never given any numbering. LibreOffice has no equivalent fallback path and is structurally unable to surface that class of defect. This is ISSUE-008's own lesson (a lenient renderer hides what Word does) recurring one layer up; treat LibreOffice-only verification as incomplete whenever Word is available to check against directly.

Before overwriting a delivered .docx, check for a sibling ~$<name>.docx — that is Word's owner lock, meaning the recipient has the old version open. Overwriting works, but they will keep seeing the stale document until they close and reopen it. Tell them. ISSUE-011.

Customizing

scripts/Program.cs is ~260 lines of straightforward OpenXML. Edit it directly for fonts, sizes, spacing, borders, or new block types — that is the intended workflow. Before adding a structural feature (images, TOC, headers, track changes), read the corresponding Samples/*.cs in minimax-docx first; those patterns are SDK-version-verified and will save you a compile-error loop.

If you append a new property to RunProperties, ParagraphProperties, TableProperties, TableCellProperties, or TableBorders: it must go in ECMA-376's child-element order for that parent, not wherever .Append() reads naturally in the C#. This is not a style preference — get it wrong and you reproduce ISSUE-012/ISSUE-013: minimax-docx validate still reports PASSED, LibreOffice still renders the file cleanly, and real Word still opens it in Compatibility Mode with unrequested formatting scattered across the document. The current code already carries a schema-order comment at each construction site (RunProps, Para, BuildTable) — extend the existing property list in place rather than appending after it, and if you add a genuinely new element, look up its position in openxml_element_order.md (minimax-docx) before deciding where the .Append() call goes. Re-run Step 3a of the verification protocol (real Word, not just LibreOffice) after any such change — that is the only check in the whole chain that would have caught this class of bug.

References

  • references/word-to-pdf.md — existing Word source, excerpt selection, accepted revisions, layout repair and PDF delivery; no Markdown round-trip.
  • references/known_issues.md — symptom / root cause / fix / verification for every trap hit while building this pipeline. Read before debugging anything.
  • references/verification_protocol.md — the full end-to-end verification chain, its prerequisites, its pass criteria, and the substitutions that are forbidden.
  • scripts/README.md — how to run the generator, what markdown it supports, environment requirements.

© daymade, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts, references) in daymade-docs/docx-creator of daymade/claude-code-skills.

  • SKILL.md
  • references/known_issues.md
  • references/verification_protocol.md
  • references/word-to-pdf.md
  • scripts/.gitignore
  • scripts/Program.cs
  • scripts/README.md
  • scripts/mmdocx-gen.csproj
  • scripts/word_export_pdf.applescript

Open the folder on GitHubat commit 91bed2b

Compare with similar skills

DOCX Creator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

DOCX Creator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
DOCX Creator this skilldaymade/claude-code-skills1.4k—~2.9kAutomated safety check: PassMIT
Minimax DOCXnexu-io/open-design100k—~302Automated safety check: PassApache-2.0
Minimax DOCXpoco-ai/poco-claw1.4k7 repos~3.9kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0

Similar skills

  • Minimax DOCX

    nexu-io/open-design

    Professional DOCX document creation and editing using OpenXML SDK.

    100k GitHub stars~302 tokensUpdated today
    Documents & OfficeAuto-check passed
  • Minimax DOCX

    poco-ai/poco-claw

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

    1.4k GitHub starsUsed in 7 repos~3.9k tokens
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    Documents & OfficeAuto-check passed
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated today
    Documents & OfficeAuto-check passed

More from daymade/claude-code-skills

All 103 skills in this repo
  • Video Comparer

    daymade/claude-code-skills

    This skill should be used when comparing two videos to analyze compression results or quality differences.

    1.4k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check: notes
  • CLI Demo Generator

    daymade/claude-code-skills

    Generates professional animated CLI demos as GIFs using VHS terminal recordings.

    1.4k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Doc To Markdown

    daymade/claude-code-skills

    Converts DOCX/PDF/PPTX and saved HTML/HTM to high-quality Markdown with automatic post-processing.

    1.4k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Interaction Design Board

    daymade/claude-code-skills

    Generates several distinct, clickable HTML interaction prototypes for one product surface into a Design Board and collects selection/remix feedback before implementation.

    1.4k GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Auto Repo Setup

    daymade/claude-code-skills

    Diagnoses and repairs repository setup and guarded Git workflows for Claude Code or Codex — environment repair, startup sync, hook auditing, collaborator handoff.

    1.4k GitHub stars~2.6k tokensUpdated today
    Auto-check: notes
  • Bigdata Skill

    daymade/claude-code-skills

    Pulls Bigdata.com (RavenPack) financial and news data via the official bigdata-client SDK and /v1/ REST endpoints — structured financials, prices, analyst estimates, entity-sentiment series…

    1.4k GitHub stars~3.7k tokensUpdated today
    Auto-check passed

Questions about DOCX Creator

What does DOCX Creator do?

Produces Word (.docx) and exports existing Word/WPS manuscripts to PDF, preserving revisions, tables and images, especially Chinese formal documents via a verified OpenXML generator with mandatory…. DOCX Creator is an agent skill from daymade/claude-code-skills.docx) and exports existing Word/WPS manuscripts to PDF, preserving revisions, tables and images, especially Chinese formal documents via a verified OpenXML generator with mandatory visual verification.

When should I use DOCX Creator?

DOCX Creator fits situations like: 生成 Word 文档 / 写合同 docx / 把 markdown 转成 Word / 中文排版; tasks that involve Word documents.

How do I install DOCX Creator in Claude Code?

Run `npx skills add daymade/claude-code-skills --skill docx-creator -a claude-code`. Or copy the skill folder (daymade-docs/docx-creator in daymade/claude-code-skills) into .claude/skills/docx-creator in your project. Claude Code loads it when a task matches its description.

How do I install DOCX Creator in Codex?

Run `npx skills add daymade/claude-code-skills --skill docx-creator -a codex`. Or copy the skill folder (daymade-docs/docx-creator in daymade/claude-code-skills) into .agents/skills/docx-creator in your project. Codex loads it when a task matches its description.

Can I use DOCX Creator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add daymade/claude-code-skills --skill docx-creator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docx-creator, .gemini/skills/docx-creator, .github/skills/docx-creator and .opencode/skills/docx-creator in your project.

What does DOCX Creator need to run?

Going by SKILL.md and its folder, DOCX Creator needs C# and AppleScript for the scripts in its folder and the command-line tools its instructions call (dotnet, soffice and pdftoppm).

Does DOCX Creator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is DOCX Creator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does DOCX Creator use?

DOCX Creator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does DOCX Creator use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to DOCX Creator?

Skills that share tags, products or a category with DOCX Creator: Minimax DOCX (nexu-io/open-design, 100k stars), Minimax DOCX (poco-ai/poco-claw, 1.4k stars), Markitdown (ImCa0/just-laws, 781 stars) and DOCX (rvdbreemen/OTGW-firmware, 207 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains DOCX Creator?

daymade (a GitHub user) maintains it in daymade/claude-code-skills, which has 1,444 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 8, 2026.

Source: daymade/claude-code-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.