aashutosh396/mindpalace/doc-to-markdown

Claude Code and agent skill by aashutosh396/mindpalace

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when converting DOCX/PDF/PPTX/XLSX to high-quality Markdown — orchestrates pandoc/pymupdf/markitdown plus automatic DOCX post-processing (tables, image paths, CJK bold spacing, code blocks).

Install

npx vskill@latest install aashutosh396/mindpalace/doc-to-markdown

SKILL.md

The same SKILL.md was published earlier as aashutosh396/mindpalace/doc-to-markdown.

Convert documents to high-quality Markdown via multi-tool orchestration. Architecture: pandoc (best-in-class extraction) + 8 post-processing fixes.

Quick start

bash
# DOCX → Markdown (zero manual fixes)
uv run --with pymupdf4llm --with markitdown scripts/convert.py document.docx -o output.md --assets-dir ./media
# PDF → Markdown
uv run --with pymupdf4llm --with markitdown scripts/convert.py document.pdf -o output.md

Modes & tool selection

  • Quick (default): fast, good for drafts/simple docs.
  • Heavy: slower, best for final/complex — runs multiple tools in parallel, parses each output into segments, scores them, merges the best per segment.
FormatQuickHeavy
PDFpymupdf4llmpymupdf4llm + markitdown
DOCXpandoc + post-processingpandoc + markitdown
PPTXmarkitdownmarkitdown + pandoc
XLSXmarkitdownmarkitdown

Merge criteria: tables (more rows/cols, proper header sep), images (alt text + local paths), headings (proper hierarchy), lists (more items, nested preserved), paragraphs (completeness).

DOCX post-processing (automatic, 8 fixes)

Grid tables → blockquote/pipe table; simple tables → pipe table w/ captions; nested image paths (media/media/) → flattened relative; pandoc attributes ({width=...}) removed; CJK bold spacing (add space around ** for CJK spans so renderers recognize bold); indented dashed code → fenced + language detect; escaped brackets \[...\] → [...]; double-bracket links → single.

Image extraction

bash
uv run --with pymupdf scripts/extract_pdf_images.py document.pdf -o ./extracted-images
uv run --with pymupdf scripts/extract_pdf_images.py document.pdf --markdown refs.md

Quality validation

bash
uv run --with pymupdf scripts/validate_output.py document.pdf output.md --report report.html

Thresholds: text retention >95% pass / <85% fail; table & image retention 100% pass.

Common issues

  • "No conversion tools available" → pip install pymupdf4llm; uv tool install "markitdown[pdf]"; brew install pandoc.
  • FontBBox warnings → harmless.
  • Images missing / tables broken → use Heavy Mode (selects most complete version) or extract/validate separately.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aashutosh396/mindpalace/doc-to-markdown/badge)](https://verified-skill.com/skills/aashutosh396/mindpalace/doc-to-markdown)

Something wrong with this skill or its page? Tell us.