mineru

mineru is a skill for Claude Code from Nebutra/MinerU-Skill. It costs 96 tokens per session (533 once invoked), scanned A, original, MIT.

A document parser that converts PDFs, Office files, images, and other supported documents into structured Markdown using MinerU. Markdown is plain text formatted with simple symbols for headings, lists, and other structure.

In plain words
What is it for?
Use it to parse PDFs, Word, PowerPoint, Excel, HTML, or images; run OCR; recognize tables and formulas; export supported formats; and process batches with resume support.
Why use it?
It saves developers from extracting text, tables, formulas, and scanned content by hand before giving documents to an AI agent.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the mineru plugin — 2 skills shipped together

Good fit Use it to parse PDFs, Word, PowerPoint, Excel, HTML, or images; run OCR; recognize tables and formulas; export supported formats; and process batches with resume support.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Nebutra/MinerU-Skill
Claude Code
/plugin install mineru

Made for: Claude Code.

Or install mineru, the plugin that ships this one along with the rest of its 2 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 mineru

README.md
[![agentmods](https://agentmods.dev/badge/skills/nebutra/mineru-skill/mineru/github.svg)](https://agentmods.dev/skills/nebutra/mineru-skill/mineru)
Your own site
<a href="https://agentmods.dev/skills/nebutra/mineru-skill/mineru"><img src="https://agentmods.dev/badge/skills/nebutra/mineru-skill/mineru/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 mineru

Your own site · 80×15
<a href="https://agentmods.dev/skills/nebutra/mineru-skill/mineru"><img src="https://agentmods.dev/badge/skills/nebutra/mineru-skill/mineru.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 533 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 2 Jun 2026
  • Snyk warn 2 Jun 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.00096 $0.00533
Opus 5 $0.00048 $0.00267
Sonnet 5 $0.00019 $0.00107
Haiku 4.5 $0.00010 $0.00053

Measured 11d ago against content hash 0b4b837659cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

mineru 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 11d ago.

The scan reads SKILL.md. This mod also ships 26 executable files (scripts/__init__.py, scripts/chunking.py, scripts/local_engine.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.

skills/mineru/SKILL.md · 49 lines

What it actually says

MinerU PDF Parser

Parse PDF, Office, and image documents into structured Markdown via the MinerU API.

Quick Start

# Zero-config: no token, no install (free Agent API)
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/mineru.py" ./document.pdf --output ./output/

# Pipe Markdown back to an agent
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/mineru.py" ./document.pdf --stdout

# Power mode: token unlocks large files / batch / extra formats
export MINERU_TOKEN="..."   # https://mineru.net/apiManage/token
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/mineru.py" ./pdfs/ --output ./output/ --workers 8 --resume

Features

  • Auto-routing: free Agent API by default, auto-upgrades to the Standard API (token) for large/batch/extra-format jobs
  • Multi-modal: PDF, images, Word, PPT, Excel, HTML
  • High-performance OCR: --ocr with language selection (--lang)
  • Formula & table recognition: LaTeX formulas, structured tables
  • Multi-format export: Markdown (default), plus DOCX / HTML / LaTeX
  • AI-Native output: --stdout (Markdown) and --json (machine status)
  • Batch + resume: parallel workers with --resume
  • Zero dependencies: standard library only

Authentication

A token is optional — the Agent API works without one. Set a token to unlock the Standard API (≤ 200 MB / ≤ 200 pages, batch, DOCX/HTML/LaTeX):

export MINERU_TOKEN="your-token-here"   # https://mineru.net/apiManage/token

Official API docs: https://mineru.net/apiManage/docs

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. 11d ago First seen · 49 lines · 96 tokens per session scan A 0b4b837659cc

Subscribe to this mod's changes

mineru is a skill published in the GitHub repository Nebutra/MinerU-Skill (113 stars, last pushed 1mo ago), licensed MIT. It adds 96 tokens to every session and 533 once invoked, about $0.0005 per session on Opus 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

Other skills, from other repositories

mineru-pdf

High-accuracy PDF content extraction using MinerU (Shanghai AI Lab). Use this whenever the user needs to extract text, formulas, tables, or images from a complex PDF — especially academic papers, multi-column layouts, scanned documents, or any PDF where pypdf produces garbled /Cxx formula output. Trigger on: "MinerU"…

hawkongz/mineru-pdf · 154 tokens

mineru-pdf

Instructions for extracting text, formulas, tables, and images from difficult PDF files with MinerU, a document-reading tool. It is intended for papers, multi-column layouts, and scanned documents where basic PDF readers may produce poor results.

hawkongz/mineru-pdf · 180 tokens

Генерация PDF из Markdown с точным академическим форматированием через Pandoc и LaTeX

A document workflow that turns Markdown text into PDF files using Pandoc and a custom LaTeX template. It applies specified academic page settings such as 14-point text, 1.5 line spacing, and A4 paper.

ECNU-ICALK/AutoSkill · 87 tokens

pdf-parsing

A PDF-processing guide for converting PDF documents into local Markdown files and extracting their images with structai.readpdf. It also covers MinerU parsing caches and proxy retries.

black-yt/skills · 39 tokens

markdown-to-pdf

A Markdown-to-PDF skill that uses Python to convert Markdown documents into PDF files.

black-yt/skills · 34 tokens

latex-compiling

A workflow for compiling LaTeX documents into PDF files with latexmk and pdflatex, while keeping source code, temporary files, caches, and output separate.

black-yt/skills · 40 tokens