md2docx
Skill8 starsChanged 3 months agoMITView on GitHub
Fill an existing Word `.docx` template using data and images from a Markdown file. Use when the user mentions `md2docx`, wants to write Markdown content back into a Word document, populate Word tables, preserve merged cells, or insert images into a `.docx` template.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- chinhsi/claude-skillstheir own version, first seen Oct 13, 2026
- Yorick-Ryu/deep-sharetheir own version, first seen Oct 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Yorick-Ryu/deep-share★ 146same name
- chinhsi/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 repository32 other files it gives its agents.
- ai-genSkill
- any2mdSkill
- assignment-wordSkill
- cheatsheatSkill
- claude2antiSkill
- claude2codexSkill
- codex2claudeSkill
- fincomp-deckSkill
- github-trendingSkill
- git-pushSkill
- html2mdSkill
- html2pdfSkill
- html2texSkill
- html-slidesSkill
- img-readerSkill
- latex-beamerSkill
- markitdownSkill
- md2texSkill
- mergeSkill
- notesSkill
- paper-html-onepageSkill
- paper-reproSkill
- pdf2wordSkill
- pdf-readerSkill
- posterSkill
- repo-docsSkill
- repo-docs-zhSkill
- resume-builderSkill
- web-search-fallbackSkill
- word2htmlSkill
- word2mdSkill
- word2pdfSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
If the output path is omitted, let the script create the default filled output file.
- Distinctive: line 32
Use the script for:
- Distinctive: line 44
If image paths are relative, resolve them relative to the Markdown file location first.
- Distinctive: line 50
If it is missing, install it with:
- Distinctive: line 58
Do not rebuild the document from scratch when the task is to fill an existing template.
- Distinctive: line 59
Prefer the script over manual XML edits unless the script itself needs patching.
- Distinctive: line 60
If headers in Markdown and Word do not match well enough for filling, explain which columns failed to align.
- Very specific: line 61
If the user asks for a change in mapping behavior, inspect and patch md2docx.py rather than hand-editing the .docx.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
md2docx
Fill an existing Word document from a Markdown source with the bundled md2docx.py script.
Run
From this skill directory, run:
python md2docx.py "<input.md>" "<template.docx>" ["<output.docx>"]Inputs
Require:
- a Markdown file containing table data and optional image references
- an existing
.docxtemplate to modify
If the output path is omitted, let the script create the default filled output file.
What the Script Handles
Use the script for:
- matching Markdown table data into Word tables
- merged cells, including horizontal and vertical merges
- inserting images referenced from Markdown
- mixed numeric and text values
Workflow
- Confirm the Markdown file exists.
- Confirm the template
.docxexists. - Run
md2docx.py. - Report the output document path.
- If image paths are relative, resolve them relative to the Markdown file location first.
Dependencies
Require python-docx.
If it is missing, install it with:
python -m pip install python-docxOperating Notes
- Do not rebuild the document from scratch when the task is to fill an existing template.
- Prefer the script over manual XML edits unless the script itself needs patching.
- If headers in Markdown and Word do not match well enough for filling, explain which columns failed to align.
- If the user asks for a change in mapping behavior, inspect and patch
md2docx.pyrather than hand-editing the.docx.
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.

