doc-to-markdown

doc-to-markdown is a skill for Claude Code from daymade/claude-code-skills. It costs 119 tokens per session (2,028 once invoked), scanned A, original, MIT.

A document-conversion process that turns DOCX, PDF, and PPTX files into cleaned-up Markdown. Markdown is plain text with simple symbols for headings, lists, links, and other formatting.

In plain words
What is it for?
Creating draft or final Markdown from PDFs, Word documents, and presentations, with automatic cleanup and optional media folders. It also supports spreadsheet conversion and includes tests for the conversion scripts.
Why use it?
It fixes common conversion problems such as broken tables, unwanted document noise, OCR errors, repeated headers, watermarks, and unusable image paths.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the daymade-docs plugin — 11 skills shipped together

Good fit Creating draft or final Markdown from PDFs, Word documents, and presentations, with automatic cleanup and optional media folders. It also supports spreadsheet conversion and includes tests for the conversion scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daymade/claude-code-skills/doc-to-markdown
About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,564 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add daymade/claude-code-skills --skill doc-to-markdown
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Claude Code.

Or install daymade-docs, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc-to-markdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/doc-to-markdown/github.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/doc-to-markdown)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/doc-to-markdown"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/doc-to-markdown/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doc-to-markdown

Your own site · 80×15
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/doc-to-markdown"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/doc-to-markdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,028 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 12 Nov 2026
  • Snyk pass 13 Nov 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.02028
Opus 5.5 $0.00048 $0.00811
Sonnet 5.5 $0.00024 $0.00406
Haiku 4.5 $0.00012 $0.00203

Measured 23d ago against content hash 20a6a7ab1692, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

doc-to-markdown scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

The scan reads SKILL.md. This mod also ships 15 executable files (scripts/batch_html.py, scripts/convert_path.py, scripts/convert.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

daymade-docs/doc-to-markdown/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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 select_tools 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/html_to_markdown.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.

Read the full file on GitHub · 185 lines

Files

What ships with it

36 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed · -24 lines 20a6a7ab1692
  2. 1mo ago Changed · -36 lines · -28 tokens per session 0452855cf49c
  3. 1mo ago Changed · +17 lines 33bc9fc99019
  4. 2mo ago Changed · +21 lines · +11 tokens per session d99cadd97e49
  5. 2mo ago Changed · +1 lines 73848c04a40b
  6. 3mo ago First seen · 206 lines · 136 tokens per session scan A 0e7b9a8e620f

Subscribe to this mod's changes

doc-to-markdown is a skill published in the GitHub repository daymade/claude-code-skills (1,564 stars, last pushed today), licensed MIT. It adds 119 tokens to every session and 2,028 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

doc-to-markdown compared with skills from other repositories

doc-to-markdown next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-to-markdowndaymade/claude-code-skillsSkill1.6ktodayMITA119Claude Code
apify-youtube-transcript-scrapersickn33/agentic-awesome-skillsSkill51ktodayMITA48Claude Code
report-to-pdfasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A17Claude Code, Codex
skill-doc-deliverynyldn/claude-octopusSkill4.5ktodayMITA29Claude Code
pdf-extract-create-workflowHKUDS/OpenSpaceSkill8.1k23d agoMITA22Claude Code, Codex
document-direct-pythonHKUDS/OpenSpaceSkill8.1k23d agoMITA20Claude Code, Codex
pdf-verification-cliHKUDS/OpenSpaceSkill8.1k23d agoMITA19Claude Code, Codex