Converts PDF documents to Markdown via API.

Install

mkdir -p .claude/skills/pdf-to-md && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11558" && unzip -o skill.zip -d .claude/skills/pdf-to-md && rm skill.zip

Installs to .claude/skills/pdf-to-md

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Convert a PDF into high-quality Markdown through the MinerU API VLM pipeline. Use this skill whenever the user wants PDF-to-Markdown conversion, OCR-like extraction, paper text extraction, or Markdown plus extracted images from a PDF. This skill supports the API backend only and always uses the high-quality VLM model configuration.
333 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Convert PDF files to Markdown format
  • Extract text and images from academic PDFs
  • Generate Markdown output with associated image directories
  • Support language hints for conversion (en or ch)
  • Utilize the MinerU API VLM pipeline for high-quality parsing

How it works

The skill uses a Python script to call the MinerU API, which processes the PDF through its VLM pipeline to extract content and convert it into Markdown format, including images.

Inputs & outputs

You give it
A local PDF file path and an optional language hint.
You get back
A Markdown file (`<pdf_stem>.md`) and an image directory (`<pdf_stem>_images/`) next to the original PDF.

When to use pdf-to-md

  • Converting papers to Markdown
  • Extracting images and text from PDFs
  • Digitizing academic documents

About this skill

PDF to Markdown

Converts a PDF to:

<pdf_stem>.md
<pdf_stem>_images/

Prerequisite

Set the MinerU API token:

export MINERU_API_TOKEN="your_token_here"

Usage

python3 "${SKILL_DIR}/scripts/mineru-api.py" <pdf_path> [-l lang]
  • pdf_path: local PDF path
  • -l lang: language hint, en or ch

Backend contract

  • Supported backend: MinerU API only
  • Model: VLM
  • Goal: highest available parsing quality for formulas, tables, and mixed-layout academic PDFs

Output behavior

  • Output files are written next to the PDF
  • Existing Markdown and image directories for the same stem may be overwritten
  • Example: paper.pdf -> paper.md and paper_images/

When not to use it

  • When the MinerU API token is not set
  • When a backend other than MinerU API is required
  • When the goal is not high-quality parsing for academic layouts

Prerequisites

MINERU_API_TOKEN environment variable set

Limitations

  • Requires the `MINERU_API_TOKEN` environment variable to be set.
  • Supports only the MinerU API backend.
  • Output files are written next to the PDF and may overwrite existing Markdown and image directories.

How it compares

This skill provides a specialized PDF to Markdown conversion using the MinerU API's VLM pipeline, optimized for academic layouts and structured content, unlike generic PDF converters.

Compared to similar skills

pdf-to-md side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
pdf-to-md (this skill)04moReviewBeginner
biorxiv-database79moReviewBeginner
lecture-transcript-slide-matcher69moReviewAdvanced
arxiv-to-md47moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry