agentsclimarketplace

Convert docx

Skill greenstevester/word-doc-to-md-skill/skills/convert-docx

Convert Word documents (.docx) into clean, agent-readable Markdown. Use when someone asks to convert, export, or transform a Word doc into Markdown for AI agents, LLM pipelines, Claude Code tools, or MCP context. Also triggers when someone wants to make a Word document "agent-readable" or "LLM-friendly", or asks to "clean up" Markdown exported from Word.From its SKILL.md

Install
npx -y skills add greenstevester/word-doc-to-md-skill --skill convert-docx

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.1 KB, as published. Nobody here has run it

Convert Word Document to Agent-Readable Markdown

┌─────────────────────────────────────────────────────────────────┐
│  DOCX → AGENT MARKDOWN                                         │
│  ═════════════════════                                          │
│                                                                 │
│  .docx ──▶ pandoc ──▶ 5 transforms ──▶ clean .md               │
│                                                                 │
│  Tracked changes ✓   Heading hierarchy ✓   Tables ✓             │
│  Image refs ✓        Blank lines ✓                              │
│                                                                 │
│  Everything lazy-loads on first use. Nothing to install.        │
└─────────────────────────────────────────────────────────────────┘

How this skill works

  • Lazy loading: Nothing is downloaded at install time. The docx-to-md binary (~2.5 MB) downloads on first use, and pandoc (~30 MB) downloads on first conversion.
  • Stored in the plugin directory: Both binaries live next to install.sh inside this plugin's directory — nothing is added to PATH or the user's project.
  • Auto-upgrades pandoc: When a newer pandoc version is expected, the tool detects and upgrades it automatically.

Target: ${ARGUMENTS:-current directory}


Step 1: Locate or Install the Binary

Use the Glob tool to find docx-to-md in the plugin cache:

Glob pattern: ~/.claude/**/docx-to-md

If found, use that path as DOCX_TO_MD. If not found, search for install.sh:

Glob pattern: ~/.claude/**/word-doc-to-md-skill/install.sh

Then run the installer:

bash /path/to/install.sh

The installer auto-detects the platform and downloads the correct binary into the same directory.


Step 2: Convert

# Basic conversion (output goes next to the input file)
/path/to/docx-to-md document.docx

# Explicit output path
/path/to/docx-to-md document.docx output/clean.md

# Pipe to another tool
/path/to/docx-to-md document.docx --stdout | your-ingestion-tool

On the first conversion, pandoc (~30 MB) downloads automatically into the plugin directory. If a newer pandoc version is expected, it upgrades automatically with a message like: Pandoc update available: 3.9.0.2 -> 3.x.x — Upgrading...


What Gets Cleaned

#TransformBeforeAfter
1Tracked changes[new text]{.insertion}new text
2Heading hierarchyH3 → H5 (gap)H1 → H3 (no gap)
3Tables+----+----+ grid dividersRemoved
4Images![alt](media/image1.png)[IMAGE: alt]
5Blank lines3+ blank linesSingle blank line

Standalone Post-Processing

Already have markdown from another source? Clean it without pandoc:

/path/to/docx-to-md postprocess existing.md cleaned.md
/path/to/docx-to-md postprocess existing.md --stdout

Troubleshooting

IssueFix
pandoc binary not foundRun /path/to/docx-to-md bootstrap to force re-download
Want a specific pandoc versionRun /path/to/docx-to-md bootstrap 3.x.x
Proxy/firewall blocks downloadSet HTTPS_PROXY env var before running
Legacy .doc file (not .docx)Pre-convert: libreoffice --headless --convert-to docx file.doc
Multi-column layout garbledFlag for human review — pandoc limitation
Missing alt text on imagesOutputs [IMAGE: no description] — add alt text in Word

Where Things Are Stored

Everything lives in the skill plugin directory — nothing is added to PATH or the user's project:

<plugin-dir>/
  install.sh           # platform-aware installer
  docx-to-md           # converter binary (lazy-loaded on first use)
  bin/
    pandoc             # pandoc binary (lazy-loaded on first conversion)
    .pandoc-version    # tracks installed version for auto-upgrade

Next Steps

  • Batch convert? for f in *.docx; do /path/to/docx-to-md "$f"; done
  • Reinstall binary? Delete docx-to-md and re-run install.sh
  • Force pandoc upgrade? Delete the bin/ directory next to docx-to-md, then run any conversion
  • Integrate into pipeline? Use --stdout to pipe directly into your ingestion tool

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.