md-to-docx
Skill1 starsChanged 24 days agoMITView on GitHub
Converts AI-generated Markdown to professional Word DOCX. Use --preset technical for formal reports; other presets: professional, editorial, academic, business, report. Supports callouts (:::warning/info/note), Mermaid (optional mmdc), reverse, and diff.
- Installs packages
5 other projects use a version of this.
Adopted by
Most recently taken up by
- StevenZhao666/hermes-kitstheir own version, first seen Nov 8, 2026
- github/awesome-copilottheir own version, first seen Oct 25, 2026
- richyuh/claude-skillstheir own version, first seen Oct 8, 2026
- biomystery/claude-skillstheir own version, first seen Jun 18, 2026
- pickle-an/md-to-docx-skilltheir own version, first seen Mar 11, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- github/awesome-copilot★ 41ksame name
- pickle-an/md-to-docx-skill★ 65same name
- StevenZhao666/hermes-kits★ 2same name
- biomystery/claude-skills★ 1same name
- richyuh/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- references/agents.mdAGENTS.md
- md-to-docxSkill
- md-to-docxSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Do not: run pip install first when using a local skill checkout — use bin/convert or PYTHONPATH.
- Very specific: line 42
Run conversion; do not edit source .md.
- Very specific: line 44
If markdown contains `mermaid blocks, ensure mmdc on PATH or warn (optional.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
md-to-docx
Turn AI-generated Markdown into professional Word documents. Native Document AST engine (no external converters). MCP and Web Playground available for agent workflows.
Quick start (Cursor skill — no pip install)
Skill root = directory containing this SKILL.md (e.g. ~/.cursor/skills/md-to-docx).
# Formal technical report
"<skill-root>/bin/convert" report.md --preset technical --toc --numbering
# General document
"<skill-root>/bin/convert" report.md --preset professional
# Editorial layout
"<skill-root>/bin/convert" report.md --preset editorial
# Fallback
PYTHONPATH="<skill-root>/scripts" python3 -m md_to_docx report.md --preset technicalDo not run pip install first when using a local skill checkout — use bin/convert or PYTHONPATH.
Agent workflow
- Resolve skill-root (parent of
bin/convert). - Choose preset by user intent:
- Formal technical / design doc →
--preset technical --toc --numbering - Academic paper →
--preset academic - Editorial / long-form →
--preset editorial - Business summary →
--preset business - General document →
--preset professional
- Formal technical / design doc →
- Run conversion; do not edit source
.md. - Report output
.docxpath to the user. - If markdown contains
```mermaidblocks, ensuremmdcon PATH or warn (optional; CI does not require it). - For MCP clients: see references/mcp.md (
pip install .[mcp],md-to-docx mcp). - Reverse (user gives DOCX, wants Markdown source):
md-to-docx reverse file.docx -o file.md— see references/roundtrip.md. - Diff two report versions:
md-to-docx diff v1.md v2.md --format md.
Behavior
- Original
.mdfiles are never modified - Output
.docxbeside source (foo.md→foo.docx) unless--output-dir - Mermaid → PNG under native
{stem}-media/whenmmdcis available - Callouts:
:::warning,:::info,:::note - Per-file failures reported; exit non-zero if any failed
Troubleshooting
| Error | Fix |
No module named md_to_docx | Use bin/convert or PYTHONPATH=<skill-root>/scripts |
`mmdc` not found | npm i -g @mermaid-js/mermaid-cli or remove mermaid blocks |
| Template missing | PYTHONPATH=scripts python -m md_to_docx.presets_build |
Resources
- Roundtrip / reverse / diff
- Plugin API
- MCP setup
- Use with ChatGPT
- Presets
- Web Playground
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

