Agent skill · writing content · daymade
doc-to-markdown
Converts DOCX/PDF/PPTX and saved HTML/HTM to high-quality Markdown with automatic post-processing. Fixes pandoc grid tables, simple tables, image paths, CJK bold spacing, attribute noise, and code blocks; for PDFs also strips OCR garbage blocks, repeated headers/footers/watermarks, and absolute image paths from pymupdf4llm output. Trigger on "convert document", "docx to markdown", "parse word", "doc to markdown", "解析word", "转换文档", "HTML to Markdown".
Why this skill is useful
Adds specific commands and post-processing techniques for converting documents to Markdown that the AI wouldn't reliably generate on its own.
What it needs
Requires uv installed locally. About 5k tokens when loaded. Last updated 2026-08-07. 1,320 stars on the source repository.
What this skill does
Doc to Markdown Convert documents to high-quality markdown with intelligent multi-tool orchestration and automatic DOCX post-processing. Quick Start Conversion Modes Mode Speed Selection Use Case ------ ------- --------- ---------- Quick (default) Fast Single converter Drafts, simple documents Heavy Slower Compares converter candidates Complex layouts needing source review Tool Selection Read selecttools for format preferences and availability filtering. HTML/HTM follows the saved HTML procedure. For Heavy Mode selection and failure handling, read its procedure. PDF Manuals And Question Banks Before delivering a PDF conversion or changing its structure, follow the PDF acceptance procedure. It owns source comparison, structural review, actual-reader checks and original-file handoff. Saved HTML And Website Manuals For HTML/HTM, read references/html-conversion.md before converting. Use scripts/convert.py; the default converts the whole body and does not trim navigation. An explicit --html-selector selects exactly one tag, #id or .class. --html-heading-offset shifts parsed headings for assembly and rejects overflow beyond H6. Relative assets are not downloaded or copied. Verify source href occurrences against the emitted Markdown AST, then rerun scripts/htmltomarkdown.py after cleanup or merging. For manuals, map the book, chapters, lessons and internal headings before assembly; preserve code fences and reconcile rewritten anchors. Conversion success does not certify that figures are readable inside the recipient's actual Markdown reader. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills daymade/doc-to-markdown