Markitdown
Convert any document to Markdown with Microsoft's `markitdown` CLI — PDF, Word, Excel, PowerPoint, HTML, CSV, JSON, XML, ZIP, EPub, images (OCR/EXIF), audio (transcription), and YouTube URLs. Use whenever the user wants to extract text from a binary document, transcribe audio, OCR an image, scrape a YouTube transcript, or pre-process a file for an LLM context window — even when they just say "convert this pdf", "what's in this docx", "transcribe this mp3", or "get the text out of this".From its SKILL.md
npx -y skills add coroboros/agent-skills --skill markitdownAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- reads credentialsReads from 1 credential source: `MARKITDOWN_DOCINTEL_ENDPOINT`.
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 1 command, including `bash "$SKILL_DIR"/scripts/markitdown.sh $ARGUMENTS`.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
6.4 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
MarkItDown
Convert a document, image, audio file, or YouTube URL to Markdown using Microsoft's markitdown CLI. The skill validates the input, composes the right flags, optionally saves the result under ~/.agents/output/<project>/markitdown/<slug>/, and reports a one-line summary with the fully-expanded absolute path (no tilde, no magic).
The deterministic work — install check, validation, slug derivation, save path, command composition — happens in scripts/markitdown.sh. The skill parses $ARGUMENTS, hands them to the script, and turns the script's RESULT: lines into a human report.
Install
pip install 'markitdown[all]'
For a smaller install, pick only what you need:
| Group | Adds |
|---|---|
[pdf] | PDF parsing |
[docx] | Word documents |
[pptx] | PowerPoint |
[xlsx] [xls] | Excel |
[outlook] | Outlook .msg |
[audio-transcription] | MP3/WAV via local Whisper |
[youtube-transcription] | YouTube transcripts |
[az-doc-intel] | Azure Document Intelligence backend |
For Azure Document Intelligence, also export MARKITDOWN_DOCINTEL_ENDPOINT=https://<resource>.cognitiveservices.azure.com/ before invoking with -d.
Parameters
| Flag | Default | Effect |
|---|---|---|
-s | off | Save Markdown to ~/.agents/output/<project>/markitdown/<slug>/<stem>.md |
-S | off | Force no-save (override an ambient save mode) |
-d | off | Use Azure Document Intelligence (needs MARKITDOWN_DOCINTEL_ENDPOINT) |
-p | off | Enable installed third-party markitdown plugins |
-k | off | Keep data URIs (base64 images) inline in the output |
-l | — | List installed plugins and exit |
Output saved under ~/.agents/output/{project}/markitdown/{slug}/, where {project} is the kebab-cased basename of the git toplevel (else cwd) and {slug} is a kebab of the input basename (≤5 words). Pipeline-friendly — typical downstream: /forge -s -f <path> decomposes the extracted content into workstreams; /apex -f <path> implements from it; any skill accepting -f can consume.
Workflow
-
Empty
$ARGUMENTS→ propose the most recent non-Markdown target from session context (file or URL) and confirm. Ask only when none is detectable. -
Run the helper:
$SKILL_DIR= this skill's folder —${CLAUDE_SKILL_DIR}in Claude Code, the directory containing this SKILL.md elsewhere.bash "$SKILL_DIR"/scripts/markitdown.sh $ARGUMENTS -
The script emits
RESULT: key=valuelines — keys:bytes,slug,saved, pluspathwhen saving (order is not guaranteed; parse by key) — followed either by the converted Markdown (no-save mode, after a---separator) or nothing (save mode — the file is on disk). -
Parse the
RESULT:lines and produce the report below. -
If the script exits with
ERR: markitdown not installed(exit 127) → print the install command from## Installand stop. Never auto-install on the user's behalf. -
If the script exits with another
ERR:(file not found, missing endpoint, unknown flag) → relay the message verbatim and stop.
Output
markitdown: <input> → <bytes> bytes of Markdown
saved: <path> # only when -s
When saving, just report. When not saving, also stream the converted Markdown back to the user; if it exceeds ~80 lines, show the first 80 and tell the user to re-run with -s to capture the full output.
Examples
/markitdown ~/Downloads/report.pdf # convert, print to terminal
/markitdown -s ~/Downloads/report.pdf # convert + save under ~/.agents/output/<project>/markitdown/report/
/markitdown -s -p deck.pptx # use third-party plugins (e.g. markitdown-ocr)
/markitdown -d invoice.pdf # Azure Document Intelligence
/markitdown -k brand.html # keep base64 images inline
/markitdown https://youtu.be/dQw4w9WgXcQ # YouTube transcript
/markitdown -l # list installed plugins, then exit
Notes
- YouTube URLs are detected by the
https?://prefix and passed straight tomarkitdown. The slug is derived from the URL's last path segment, so saved paths look like~/.agents/output/<project>/markitdown/dqw4w9wgxcq/dQw4w9WgXcQ.md. - Audio transcription uses local Whisper via the
[audio-transcription]extra. It's CPU-bound — warn the user before kicking off a long podcast. - Image OCR without the
markitdown-ocrplugin only reads embedded EXIF text. For pixel-level OCR,pip install markitdown-ocrand pass-p. - No silent overwrites —
markitdownitself overwrites with-o, but the slug-namespaced save path makes collisions predictable, not surprising.
Why the wrapper
markitdown is already a great CLI; this skill exists to (a) follow the repo's -s/-S/-f convention so other skills can chain on the output, (b) translate "extract this pdf" into the right invocation without forcing the user to remember -x, -m, -d, -e, and (c) emit a uniform one-line report so terminals don't render multi-MB Markdown by accident.
What ships with it: 1 file
3.0 KB alongside SKILL.md, 1 of them executable
scripts/
- markitdown.shruns3.0 KB
Gives 0 of the 12 instructions most docs writing skills give in ~1.3k tokens
Counted across 1,951 of the 3,904 authors here whose files we hold, read 2026-09-06
- Use third-person for skill descriptionsin 54 of 1951, across 35 files
- Start descriptions with Use whenin 43 of 1951, across 29 files
- Run baseline scenarios before writing any skillin 40 of 1951, across 26 files
- Use active voicein 40 of 1951, across 36 files
- Map file responsibilities before defining tasksin 36 of 1951, across 29 files
- Use checkbox syntax for tracking stepsin 35 of 1951, across 27 files
- Ask one question at a timein 35 of 1951
- Offer execution options after saving the planin 33 of 1951, across 24 files
- Include complete code in every stepin 33 of 1951, across 27 files
- Design units with clear boundaries and interfacesin 31 of 1951, across 23 files
- Announce the skill usage at the startin 30 of 1951
- Verify agent compliance after adding the skillin 29 of 1951, across 17 files
Said here and by no other author read
- Run the markitdown script with provided arguments
- Parse RESULT lines from script output
- Stream Markdown output if not saving
- Show first 80 lines if output is long
- Propose recent non-Markdown file if arguments are empty
- Use absolute paths for saved files
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.