DOCX Creator
Turns markdown into production-grade Word (.docx) files via OpenXML, with battle-tested formal-document typography rules and a mandatory visual verification chain.
Docs & OfficeAdvanced★ 1,323⑂ 212AI score 8/10Last updated: Aug 8, 2026
What it does
- Ships a verified C# OpenXML generator (
scripts/Program.cs) that reads markdown and writes a formatted, deliverable.docx. - Acts as a thin layer over the
minimax-skills:minimax-docxengine: no engine code here, only the correct usage patterns and field-tested workarounds the engine doesn't document. - Enforces four hard rules:
- Layered alignment — title centered, clause headings left, and any paragraph containing a line break (party info blocks, signature blocks, dates, tax IDs) left-aligned, because justification stretches every line but the last into garbage.
- Every list restarts at 1 — each list gets its own
NumIdplus aLevelOverridewithStartOverrideNumberingValue = 1. - CJK fonts need both slots — set
RunFonts { Ascii, HighAnsi, EastAsia }(body 宋体, headings 黑体, Latin Times New Roman). - Page and table basics — A4 at 11906 × 16838 twips with 1440 margins, all six table borders, centered footer
PAGEfield.
- Mandatory verification chain: generate → XSD validate →
soffice --headlessPDF →pdftoppm -png→ read every page image.qlmanagethumbnails are explicitly banned because they hide the exact bugs that matter. references/known_issues.mddocuments ISSUE-001…011 with symptom, root cause, fix and verification.
Who it's for
- Anyone producing contracts, agreements, official letters, offers, employment agreements — especially Chinese formal documents with strict layout requirements.
- Writers who draft in markdown but must deliver Word files.
- People burned by documents that looked fine in a preview and opened broken in Word.
- Environments where .NET SDK and LibreOffice can be installed.
Examples
- Employment contract: draft clauses in markdown, then
dotnet run --project _docxgen -- contract.md contract.docx— party info blocks and the signature area stay tight instead of stretching. - Markdown report to Word deliverable: convert
report.md, render to PNG pages, and visually confirm table borders, page numbering and no orphaned pagination before sending. - Brand customization: edit font sizes in
Program.cs(body 24 half-points = 12pt, H1 36 = 18pt) to turn it into your company's standard document generator.
If the deliverable is a PDF, use
daymade-docs:pdf-creatorinstead — the pipelines are intentionally separate.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the daymade-docs/docx-creator folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/docx-creator/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git && mkdir -p ~/.claude/skills && cp -r claude-code-skills/daymade-docs/docx-creator ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Check prerequisites
- .NET SDK (
dotnet --version) - LibreOffice (
soffice --version) for PDF conversion during verification - Poppler's
pdftoppm(macOS:brew install poppler) - The engine plugin
minimax-skills:minimax-docx, usually at~/.claude/plugins/marketplaces/minimax-skills/skills/minimax-docx/
- .NET SDK (
- Clone the repository
git clone https://github.com/daymade/claude-code-skills.git - Copy the skill into Claude Code
mkdir -p ~/.claude/skills cp -r claude-code-skills/daymade-docs/docx-creator ~/.claude/skills/ - Restart Claude Code, then ask something like "give me a Word file" or "draft this contract as a .docx" to trigger the skill.
- Smoke-test the generator:
The first run restores NuGet packages (~20s).mkdir -p _docxgen && cp ~/.claude/skills/docx-creator/scripts/Program.cs \ ~/.claude/skills/docx-creator/scripts/mmdocx-gen.csproj _docxgen/ dotnet run --project _docxgen -- sample.md sample.docx - Run the visual check:
soffice --headless --convert-to pdf --outdir /tmp/docxcheck sample.docx, thenpdftoppm -png -r 100 /tmp/docxcheck/sample.pdf /tmp/docxcheck/page, and review every PNG. - If anything breaks, read
references/known_issues.mdandscripts/README.mdbefore debugging.
View source on GitHub ↗License: MIT