mineru

mineru is a skill for Claude Code from woodfishhhh/EZ_math_model. It costs 86 tokens per session (816 once invoked), scanned A, original, MIT.

A tool workflow for converting PDFs, images, and web pages into Markdown text, with support for Chinese documents, tables, formulas, and OCR (reading text from images).

In plain words
What is it for?
Use it to extract academic PDFs, convert DOCX or PPTX files, and prepare structured source material for later work.
Why use it?
It helps when ordinary PDF extraction produces scrambled text or loses tables and mathematical formulas.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to extract academic PDFs, convert DOCX or PPTX files, and prepare structured source material for later work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/woodfishhhh/ez_math_model/mineru
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 woodfishhhh/EZ_math_model --skill mineru
Clone the repo
git clone --depth 1 https://github.com/woodfishhhh/EZ_math_model

Made for: Claude Code.

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/woodfishhhh/ez_math_model/mineru/github.svg)](https://agentmods.dev/skills/woodfishhhh/ez_math_model/mineru)
Your own site
<a href="https://agentmods.dev/skills/woodfishhhh/ez_math_model/mineru"><img src="https://agentmods.dev/badge/skills/woodfishhhh/ez_math_model/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/woodfishhhh/ez_math_model/mineru"><img src="https://agentmods.dev/badge/skills/woodfishhhh/ez_math_model/mineru.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 816 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
  • 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.00086 $0.00816
Opus 5 $0.00043 $0.00408
Sonnet 5 $0.00017 $0.00163
Haiku 4.5 $0.00009 $0.00082

Measured 9d ago against content hash 682a5ebc90c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d ago.

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/ez-math-model/tools/mineru/SKILL.md · 78 lines

What it actually says

mineru — PDF 高质量解析

何时使用

  • 题目 PDF 含中文 + 表格 + 公式(pdfplumber 输出乱序时)
  • 阅读 external/zhanwen-mathmodel/ 下的优秀论文
  • 转换 docx / pptx 为 markdown

入口

本子 skill 自带 Python 实现;调用宿主已安装的 mineru-open-api CLI 或 mineru Python 包。详细 CLI 文档见 mineru 官方 skill

模式选择决策树

文件 ≤ 10MB 且 ≤ 20页 且 不需表格识别
  → flash-extract(零配置、最快)

文件 > 10MB 或 > 20页 或 需要表格 / 公式 / OCR
  → extract(要 token,注册免费领)
  → 备用:本地 CLI mineru(开源,自动下载模型)

命令模板

# Flash 模式(推荐起手)
mineru-open-api flash-extract problem.pdf -o workdir/.../out --language ch

# 限页(>20 页时)
mineru-open-api flash-extract problem.pdf -o workdir/.../out --language ch --pages 1-20

# Extract 精确模式(需 token;写入 EZMM_MINERU_TOKEN)
mineru-open-api auth                         # 一次性配置
mineru-open-api extract problem.pdf -o workdir/.../out --language ch --table --formula

# 本地 CLI(无 token,开源版)
pip install -U mineru
mineru -p problem.pdf -o workdir/.../out

入参约定

参数 默认 说明
--language ch 中文文档;英文用 en;混合 ch_server
--pages 全部 flash 模式下题目 > 20 页时按 1-20 分批
-o stdout 写入指定目录(推荐);不写参数则 markdown 走 stdout

配置

Env Var 必需 用途
EZMM_MINERU_TOKEN extract 模式必需 注册免费领,flash 不需要

失败诊断

错误 原因 处理
file page count exceeds API limit flash 限 20 页 --pages 1-20;或换 extract(要 token)
TLS handshake timeout 网络抖动 重试 1 次;仍失败降级 pdfplumber
no API token found extract 缺 token mineru-open-api auth 或 fallback flash
输出 Markdown 含大量 <!-- image --> 论文图片占位 正常;只对文字部分有效
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. 9d ago First seen · 78 lines · 86 tokens per session scan A 682a5ebc90c6

Subscribe to this mod's changes

mineru is a skill published in the GitHub repository woodfishhhh/EZ_math_model (41 stars, last pushed 1mo ago), licensed MIT. It adds 86 tokens to every session and 816 once invoked, about $0.0004 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.