md→docx for AI agents and scripts

Coding agents are great at writing design docs, reports, and runbooks — in Markdown. But the person the document is for usually wants a Word file. md→docx gives your agent (or your CI pipeline) that last step: high-fidelity Markdown → .docx with real tables, syntax-highlighted code, and a navigable heading outline.

The agent skill (Claude Code & friends)

The md-to-docx skill is a small, self-contained folder you drop into your agent's skills directory. It converts Markdown files to .docx locally — no network call, no account — using the same rendering engine as this site.

# install into Claude Code
git clone https://github.com/will530/md-to-docx-skill ~/.claude/skills/md-to-docx

# then just ask your agent:
#   "convert DESIGN.md to a Word doc"

The REST API

Prefer a hosted endpoint? Sign in on the converter, open the API panel to mint a Bearer token, and POST Markdown:

curl -X POST https://formatyourdesigndoc.com/api/convert \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"markdown":"# Hello\n\nWorld.","options":{"title":"Demo","toc":true}}' \
  -o demo.docx

Options: title, theme (github or mono), pageSize (Letter or A4), and toc. Free accounts get 5 exports; unlimited is $2/month.

What the output gets right

Typical uses

Also see: Claude → Word · ChatGPT → Word · Design docs & RFCs → Word