/ouroboros-skills:word-docsfrom ouroboros-skills
Convert markdown drafts into shareable Word documents. Uses pypandoc for full-fidelity conversion (tables, lists, code blocks, links) with python-docx post-processing for styling. Supports mermaid diagrams via mmdc pre-rendering.
Ships in ouroboros-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when someone wants a .docx version of an existing draft, especially when the markdown should remain the source of truth.
pypandoc-binary — pandoc wrapper with bundled binary (handles tables, lists, code blocks, links natively)python-docx — post-processing for styling (table borders, code block backgrounds, margins)@mermaid-js/mermaid-cli (optional) — pre-renders mermaid blocks to PNG for embeddingPreflight check:
python3 -c "import pypandoc; print('pypandoc OK')" && python3 -c "import docx; print('python-docx OK')"
If pypandoc-binary is not installed:
pip3 install pypandoc-binary python-docx
If mermaid diagrams are needed:
npm install -g @mermaid-js/mermaid-cli
Preserve the source in markdown first
.md file as the canonical source.Convert with pypandoc
import pypandoc
pypandoc.convert_file('source.md', 'docx', outputfile='output.docx')
This handles tables, lists, code blocks, headings, links, bold, italic — everything pandoc supports.
Post-process for styling Pandoc's default Word output is plain. Use the bundled post-processing script:
python3 /path/to/installed/skills/word-docs/style_docx.py output.docx
Options:
python3 style_docx.py output.docx --margins 0.5
This adds:
--margins)Handle mermaid diagrams (if present in markdown) Pandoc doesn't render mermaid natively. The workflow:
```mermaid blocks in the markdown source (renderable in ADO/GitHub/etc.)mmdc, create a temp markdown with image refs swapped in, convert thatmmdc -i diagram.mmd -o diagram.png -w 1200 -b white
Pre-rendered PNGs live alongside the markdown source.
Verify the artifact exists
ls -lh.docx generated, output file exists.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (ourostack/ouroboros-skills) — no native marketplace selected
npx claudepluginhub p/ourostack-ouroboros-skills11 skills in this plugin
/book-fetchSearch for ebooks on libgen, download EPUBs, and optionally deliver them to an e-reader or Calibre library. Infrastructure-agnostic — discovers the user's setup at runtime./cswapKeep several Claude Code accounts working unattended with claude-swap (cswap) — install it, turn on automatic switching, read its account labels, re-log a lapsed account, and watch it so a dead login is caught days early. Use when setting up cswap, when an account shows "token expired" or "re-login needed", when auto-switch did not switch, or when the user asks why an account stopped working./designDesign and build production-grade frontend interfaces from scratch. Covers the full workflow from context gathering through visual direction, implementation, and polish. Use when creating new pages, components, or design systems — not just auditing existing UI.