skills/markdown-to-docx/SKILL.md
Use when the user wants to convert Markdown to DOCX, make a Microsoft Word version of a Markdown file, style Word output with a reference template, fix DOCX callouts, or customize the bundled Word template for notes, reports, and review docs.
npx skillsauth add ourarash/markdown-docx-tool markdown-to-docxInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Converts Markdown files into Microsoft Word documents with Pandoc, a bundled Word reference template, and one post-processing fix that makes wide tables auto-fit more naturally in Word.
When the source Markdown contains Mermaid fenced code blocks, the bundled wrappers also render them to images with Mermaid CLI before Pandoc writes the DOCX.
This skill supports two kinds of work:
custom-style callouts in the bundled reference.docxUse the bundled launcher from this skill directory so installation does not depend on shell execute bits:
macOS/Linux:
python3 scripts/markdown_to_docx.py path/to/file.md
python3 scripts/markdown_to_docx.py path/to/file.md path/to/output.docx
Windows:
py -3 .\scripts\markdown_to_docx.py .\path\to\file.md
py -3 .\scripts\markdown_to_docx.py .\path\to\file.md .\path\to\output.docx
Fallback on macOS/Linux if needed:
bash scripts/pandoc_md_to_docx.sh path/to/file.md
scripts/markdown_to_docx.py as the preferred launcherscripts/pandoc_md_to_docx.sh on macOS/Linux when direct script invocation is neededscripts/pandoc_md_to_docx.ps1 on Windows when direct PowerShell invocation is neededpandoc is installed before attempting conversion.<input>.docx next to the source Markdown file.scripts/reference.docx as the Word template.scripts/reference.docx rather than trying to fake the styling in Markdown.mmdc from @mermaid-js/mermaid-cli is installed or available through MERMAID_MMDC.Pandoc custom-style blocks only render with special Word styling when the style exists in scripts/reference.docx.
Current bundled callout styles include:
NoteTipImportantWarningRiskCautionInfoBoxDecisionOpen QuestionWhen the user asks to add or fix callouts:
::: {custom-style="Style Name"}reference.docx if the style is missing or needs different colors, borders, or spacingpandoc is required on every platformperl, zip, and unzipmmdc from @mermaid-js/mermaid-cliOpen only what you need:
references/quick-usage.md for direct conversion commands and expected behaviorreferences/callout-styles.md for style names and Markdown examplesreferences/troubleshooting.md for missing-tool and template issuesdocumentation
Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
documentation
Maintain the OpenClaw memory wiki vault with deterministic pages, managed blocks, and source-backed updates.
documentation
Feishu knowledge base navigation. Activate when user mentions knowledge base, wiki, or wiki links.
documentation
Feishu permission management for documents and files. Activate when user mentions sharing, permissions, collaborators.