Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

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 & OfficeAdvanced1,323212AI 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-docx engine: no engine code here, only the correct usage patterns and field-tested workarounds the engine doesn't document.
  • Enforces four hard rules:
    1. 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.
    2. Every list restarts at 1 — each list gets its own NumId plus a LevelOverride with StartOverrideNumberingValue = 1.
    3. CJK fonts need both slots — set RunFonts { Ascii, HighAnsi, EastAsia } (body 宋体, headings 黑体, Latin Times New Roman).
    4. Page and table basics — A4 at 11906 × 16838 twips with 1440 margins, all six table borders, centered footer PAGE field.
  • Mandatory verification chain: generate → XSD validate → soffice --headless PDF → pdftoppm -png → read every page image. qlmanage thumbnails are explicitly banned because they hide the exact bugs that matter.
  • references/known_issues.md documents 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

  1. 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.
  2. 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.
  3. 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-creator instead — the pipelines are intentionally separate.

· · · Install guide · · ·

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. 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/
  2. Clone the repository
    git clone https://github.com/daymade/claude-code-skills.git
    
  3. Copy the skill into Claude Code
    mkdir -p ~/.claude/skills
    cp -r claude-code-skills/daymade-docs/docx-creator ~/.claude/skills/
    
  4. Restart Claude Code, then ask something like "give me a Word file" or "draft this contract as a .docx" to trigger the skill.
  5. Smoke-test the generator:
    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
    
    The first run restores NuGet packages (~20s).
  6. Run the visual check: soffice --headless --convert-to pdf --outdir /tmp/docxcheck sample.docx, then pdftoppm -png -r 100 /tmp/docxcheck/sample.pdf /tmp/docxcheck/page, and review every PNG.
  7. If anything breaks, read references/known_issues.md and scripts/README.md before debugging.