Markitdown: An Agent Skill for Converting Office Documents to Markdown Using uvx

Introduction

In environments such as Cursor and Claude Code, Agents can only directly read plain text by default. When users hand over a PDF, PPTX, or multiple materials inside a compressed archive, the common approaches are to write throwaway scripts, temporarily install parsing libraries, or upload files to other services and then paste the results. These steps are cumbersome, formatting is easily lost, and they are not conducive to later summarization or retrieval by the model.

The following introduces markitdown on SkillHub (coordinate @user_a7465146/markitdown-uvx). It writes the Microsoft MarkItDown invocation method into a standard SKILL.md, allowing the Agent to run conversions via uvx at appropriate times and output Markdown that preserves headings, lists, tables, links, and other structure—making it easier for LLMs to consume or for text analysis.

What This Is

markitdown is a community-published (community) Agent Skill, version 1.0.0, categorized under office-efficiency, and published by user_a7465146. The Skill itself does not host conversion logic; instead, it guides the Agent on when to convert, which commands to use, common parameters, and pitfalls.

The underlying tool is Microsoft’s MarkItDown; the uvx in the Skill name indicates that running it via uv’s uvx to pull Python packages on demand is recommended, without needing a full environment installed on the local machine long-term. SkillHub metadata shows requires_api_key=false—regular local conversions do not depend on additional API keys (though enabling capabilities such as Azure Document Intelligence requires configuring endpoints separately).

Core Features

The following capabilities are consistent with the SKILL.md inside the installed Skill package.

Trigger Conditions

The Agent should enable this Skill when users need to convert files to Markdown, extract text from documents, read binary or Office content, or mention terms such as “markitdown”, “convert to markdown”, or “extract text from document”.

Supported Inputs

Type Description
PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx / .xls) Requires markitdown[...] extra dependencies or [all]
HTML, CSV, JSON, XML Built-in support
Images EXIF + OCR
Audio EXIF + speech-to-text (requires [audio-transcription]; system needs ffmpeg)
EPUB, ZIP (traverses internal files), YouTube URL ZIP/YouTube etc. require the corresponding extra or [all]
Outlook .msg Requires [outlook] or [all]

Output focuses on structured text; image content within PDFs is not guaranteed to be extracted. For complex layouts, you can combine it with the OCR plugin path mentioned in the Skill documentation.

CLI Essentials

  • Recommended full dependencies: uvx --from "markitdown[all]" markitdown <file>
  • Output file: -o output.md
  • When reading from standard input, you can add extension hints such as -x pdf
  • Optional -d / -e to integrate with Azure Document Intelligence to improve extraction results for some PDFs

Installation and Setup

1. Install the SkillHub CLI (if not yet installed)

First, check whether the CLI is already present:

command -v skillhub && skillhub --version

If it is not installed, you can follow SkillHub’s official instructions (full installation or CLI only):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

CLI only:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install the Skill into the current Agent’s skills directory

When installing, you must use --dir to point to the skills directory recognized by the current client; otherwise, by default it lands in ./skills/ and may not be loaded. Refer to the SkillHub installation documentation:

skillhub install markitdown-uvx --namespace user_a7465146 --dir <your skills directory>

Common path examples (subject to official documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

You can also let the Agent install the coordinate @user_a7465146/markitdown-uvx according to https://skillhub.cn/install/skillhub.md.

3. Runtime Environment

The machine executing the conversion must have uv installed (providing the uvx command). The first run will pull the markitdown package and the selected extras’ dependencies, taking longer than subsequent calls.

Typical Usage

The following commands come from the Quick Reference inside the Skill package and can be reproduced directly in the terminal.

Output to standard output:

uvx --from "markitdown[all]" markitdown report.pdf

Write to a Markdown file:

uvx --from "markitdown[all]" markitdown report.pdf -o report.md

Pipe input:

cat input.pdf | uvx --from "markitdown[all]" markitdown

Install only dependencies for some formats (to reduce size):

uvx --from "markitdown[pdf,docx,pptx]" markitdown input.pdf

In a conversation, the user only needs to specify the source file path and the goal (for example, “convert this docx to md for the model to read”). After reading the installed SKILL.md, the Agent should choose one of the above forms and avoid omitting --from "markitdown[all]", which would cause missing dependencies for PDF/Office files.

Use Cases and Notes

Who It’s For

  • Developers or knowledge workers who frequently let Agents read PDFs, Office documents, EPUBs, and documents inside ZIPs
  • Teams that need to organize non-text materials into Markdown and then perform RAG, summarization, or comparative analysis

Limitations and Common Errors (Common Mistakes in the Skill documentation)

  1. Using uvx markitdown without --from "markitdown[all]" (or the corresponding format extra) causes missing dependencies for PDF/DOCX etc.
  2. Mistakenly writing uvx markitdown[all]; the correct form is uvx --from "markitdown[all]" markitdown.
  3. Audio transcription depends on system ffmpeg.
  4. For purely scanned PDFs or documents with complex layouts, text extraction quality is limited; you can use Document Intelligence or OCR-related plugins as needed.

SkillHub page statistics (at the time of capture): rating 100000, downloads 6224, installs 21; data changes as the community updates, so refer to SkillHub for the latest information.

Conclusion

markitdown converges “multiple formats → structured Markdown” into an Agent-executable uvx workflow, reducing temporary scripts and manual copying. If your workflow frequently involves Office documents, PDFs, or compressed archives, it is worth installing into the skills directory of your current environment.

  • SkillHub page: https://www.skillhub.cn/skills/user_a7465146/markitdown-uvx
  • Official coordinate / API: https://api.skillhub.cn/user_a7465146/markitdown-uvx
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye