/convert-to-md:convert-word-to-mdfrom convert-to-md
Converts Word .docx documents to Markdown with extracted images using a bundled Python script. Useful for reading, summarizing, reviewing, comparing, analyzing, or batch-processing Word files.
Ships in convert-to-md. 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; scripts run unread.
Convert .docx files into Markdown and image folders with the bundled script, then read the generated .md output to perform the user's requested analysis.
.docx only. For legacy .doc, tell the user to re-save as .docx with Word: File > Save As > Word Document (.docx).scripts/convert_word_to_md.py; do not parse .docx XML directly and do not write ad-hoc conversion code.references/setup.md to ensure Python, pip, and markitdown are installed.ModuleNotFoundError: No module named 'markitdown' appears, follow references/setup.md.ask_user-style confirmation instead of guessing..pdf, .docx, and .xlsx, invoke convert-pdf-to-md, convert-word-to-md, and convert-excel-to-md so no supported file type is silently skipped.scripts/convert_word_to_md.py on the .docx file or folder.| Task | Command |
|---|---|
| Single file on Windows | python scripts\convert_word_to_md.py "C:\path\to\document.docx" |
| Single file on macOS / Linux | python scripts/convert_word_to_md.py "/path/to/document.docx" |
| Explicit output folder | python scripts\convert_word_to_md.py "C:\path\to\document.docx" -o "C:\path\to\output_folder" |
| Folder batch mode | python scripts\convert_word_to_md.py "C:\path\to\folder" |
| Recursive folder batch mode | python scripts\convert_word_to_md.py "C:\path\to\folder" --recursive |
| Collect outputs under a parent | python scripts\convert_word_to_md.py "C:\path\to\folder" --recursive -o "C:\path\to\output_parent" |
MarkItDown emits truncated data:image/png;base64... placeholders, so the script extracts real images from the .docx and creates one folder per document:
<name>/
img/
img001.<ext>
img002.<ext>
...
<name>.md
On Windows this corresponds to <name>\, document\, document.md, and document\img\. The folder is self-contained.
Image references in Markdown are relative, for example img/imgNNN.ext. If no embedded images exist, no img/ folder is created.
<name>/ folder next to the source .docx.-o only when the user explicitly provides an output path such as "save the output to C:\output" or "put the results in D:\work".--recursive and -o "C:\path\to\output_parent" keep their original meanings.| Symptom | Likely cause | Fix |
|---|---|---|
ModuleNotFoundError: No module named 'markitdown' / exit code 2 | MarkItDown not installed | Follow references/setup.md. |
ERROR: Unsupported file type '.doc' / exit code 3 | Legacy .doc, not .docx | Ask the user to re-save as .docx. |
ERROR: Input path not found / exit code 3 | Wrong path, or file moved | Confirm the correct path with the user. |
FAILED <file> -> ... in batch output | File is corrupt, password-protected, or unreadable | Report failed file names; other batch files still succeed. |
NOTE: skipped N non-.docx file(s) | Folder contains non-Word files | Expected for unsupported types; invoke sibling skills for supported PDF and Excel files. |
WARNING: found N image placeholder(s) ... but extracted M image file(s) | Placeholder count differs from word/media/ images in an unusual/malformed document | Leave placeholders unreplaced and inspect media manually if images are needed. |
references/setup.md: environment setup for Python, pip, and MarkItDown.scripts/convert_word_to_md.py: required converter for single-file and batch conversion.scripts/requirements.txt: Python package requirements for the converter.| Name | Type | Use it when |
|---|---|---|
convert-pdf-to-md | skill | The input set includes .pdf files. |
convert-excel-to-md | skill | The input set includes .xlsx files. |
## Word conversion result
**Status:** converted | partially converted | blocked
**Input:** `<file or folder>`
**Output:** `<generated Markdown path or folder>`
| Source | Markdown | Images | Notes |
| --- | --- | --- | --- |
| `<document.docx>` | `<name>/<name>.md` | `<count or none>` | `<success, skipped, or failure reason>` |
### Requested analysis
<summary, extraction, comparison, or next result based on the generated Markdown>
.docx was converted with scripts/convert_word_to_md.py before analysis..doc files were rejected with re-save guidance..pdf, .docx, and .xlsx sets invoked the sibling conversion skills.-o..md files were read before summarizing, reviewing, comparing, or extracting.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin convert-to-md3 skills in this plugin
/convert-excel-to-mdConvert Excel .xlsx workbooks to Markdown with the bundled script so spreadsheet contents can be read, summarized, searched, extracted, compared, charted, or analyzed. Use whenever the user references a spreadsheet, workbook, budget, export, tracker, .xlsx file, or a folder of workbooks; invoke sibling converters for mixed .pdf, .docx, and .xlsx sets./convert-pdf-to-mdConvert PDF .pdf documents to Markdown with the bundled script so reports, papers, invoices, forms, contracts, scanned documents, and folders of PDFs can be read, summarized, searched, extracted, compared, or analyzed. Use whenever a user references a PDF; invoke sibling converters for mixed .pdf, .docx, and .xlsx sets.Other plugins' skills for the same job