Skip to content

Converts DOCX, PDF, PPTX, and saved HTML to Markdown with post-processing for tables, images, and OCR noise.

CCM score
66 of 100
skills.sh installs
952
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers DOCX, PDF, PPTX, and saved HTML/HTM conversion with Quick and Heavy modes that compare converter candidates
  • Fixes pandoc grid and simple tables, image path nesting, CJK bold spacing, attribute noise, and code blocks
  • Strips OCR garbage blocks, repeated headers, footers, and watermarks, and rewrites absolute image paths for PDFs
  • Designed for document-to-Markdown workflows using scripts/convert.py, with PDF acceptance and validation procedures

Install

$ npx -y skills add daymade/claude-code-skills --skill doc-to-markdown -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Doc to Markdown

Convert documents to high-quality markdown with intelligent multi-tool orchestration and automatic DOCX post-processing.

Quick Start

# DOCX → Markdown
uv run --with pymupdf --with pymupdf4llm --with "markitdown[pdf]" scripts/convert.py document.docx -o output.md --assets-dir ./media

# PDF → Markdown
uv run --with pymupdf --with pymupdf4llm --with "markitdown[pdf]" scripts/convert.py document.pdf -o output.md

# Saved HTML → Markdown (Pandoc required; no remote fetching)
uv run scripts/convert.py page.html -o page.md

# Run tests
uv run --with pytest pytest scripts/test_convert.py -v

Conversion Modes

ModeSpeedSelectionUse Case
Quick (default)FastSingle converterDrafts, simple documents
HeavySlowerCompares converter candidatesComplex layouts needing source review

Tool Selection

Details

Repository
github.com/daymade/claude-code-skills
Categories
Office Files & Slides, Technical Documentation
First seen
Jun 3, 2026

Questions

What does the doc-to-markdown skill convert, and what does it fix?

The doc-to-markdown skill converts DOCX, PDF, PPTX and saved HTML files into Markdown. It cleans up pandoc grid and simple tables, image paths, CJK bold spacing, attribute noise and code blocks, and for PDFs it removes OCR garbage and repeated headers, footers and watermarks.

How do I install the doc-to-markdown skill?

Run npx -y skills add daymade/claude-code-skills --skill doc-to-markdown -y in a project. Once installed, it lets the agent turn Word, PDF and PowerPoint documents into clean Markdown files.

Does doc-to-markdown work with Word files and PDFs?

Yes, it converts DOCX and PDF files, and also PPTX and saved HTML. DOCX conversion runs automatic post-processing that fixes tables and image paths, and PDF conversion removes repeated headers, footers and watermarks.

Which skills lead the Office Files & Slides category, and where does doc-to-markdown stand?

Within Office Files & Slides, doc-to-markdown is listed alongside slideshow and several lark skills such as lark-doc, lark-drive and lark-sheets. It focuses on turning existing Word, PDF and PowerPoint files into Markdown rather than creating slides or sheets.

More from daymade/claude-code-skills

All 50

Similar to Doc To Markdown

More Office Files & Slides