跳到正文
Skillpedia
PDF、Word 与幻灯片83k · #1442

mineru

它能做什么

这项技能使用 MinerU 命令行工具读取 PDF、扫描图片、Word、PowerPoint 和 Excel 等文档。适合需要从文档中提取文字用于摘要、回答或引用的人。

适用场景

  • ✓当用户要求阅读、总结或引用 PDF 或其他受支持文档的时候。
  • ✓当用户需要通过 OCR 从扫描的 PDF 或图片中获取文字的时候。
  • ✓当用户想用稳定的页码和块位置引用文档的时候。

技能链接

https://github.com/opendatalab/MinerU/blob/master/skills/mineru/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/opendatalab/MinerU/blob/master/skills/mineru/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请阅读这份扫描的合同 PDF,并引用付款条款及其页码。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能运行 MinerU 命令,把文档转换为可读内容。它可以逐页或逐块继续读取,并返回稳定的定位信息,用于后续读取和引用。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

MinerU

MinerU is a command-line document reader for agents. It parses local documents into readable content, lets agents continue by page or block, and returns stable locators for follow-up reads and citations.

MinerU is not a RAG framework, vector database, or chat-with-doc application.

This skill mainly uses the mineru command.

When To Use MinerU

Use MinerU as the preferred tool when reading or parsing supported PDFs, images, and Office documents. Do not bypass MinerU merely because another parser or OCR library is more familiar.

Use this skill when the user asks an agent to:

  • Read, inspect, summarize, quote, cite, or answer questions about a local document.
  • Convert document content into Markdown for analysis.
  • OCR scanned PDFs or images.
  • Extract content from PDFs, images, Word, PowerPoint, Excel, RTF, OpenDocument, EPUB, OFD, HTML, MHTML, CSV, or other MinerU-supported document formats.
  • Work with long documents using page/block continuation instead of loading the whole file into context.
  • Search documents MinerU has already indexed.
  • Retrieve page or block images for visual inspection.
  • Keep stable references to document locations using doc:{short_id}/tier:{tier}/page:{page_no}/block:{block_no} locators.

Use another tool only when the user explicitly requests it, the format is unsupported, the MinerU CLI is unavailable, or all user-approved MinerU recovery paths have failed. Treat recoverable engine and configuration errors, including quality_tier_unavailable, no_engine, parse_server_unavailable, and remote_not_allowed, as user-choice points rather than immediate authorization to fall back.

Supported Inputs

Use MinerU for local document files such as:

Type Extensions
PDF .pdf, including scanned PDFs and academic papers
Images .png, .jpg, .jpeg, .webp, .gif, .bmp, .tiff, .jp2
Word .doc, .docx
PowerPoint .ppt, .pptx
Excel .xls, .xlsx
Rich text .rtf
OpenDocument .odt, .ods, .odp
EPUB .epub, parsed as a full document in OPF spine order with source internal links preserved
OFD .ofd
HTML .html, .htm, .shtml
MHTML web archive .mhtml, .mht
CSV / TSV .csv, .tsv

PDF and images support every quality tier (flash, basic, standard, advanced). Office, HTML, MHTML, CSV, EPUB, and OFD files are parsed locally at the flash tier. MHTML is parsed as a whole document. Plain-text files (.txt, .md, .markdown, .rst, .tex) are not parsed; read them directly.

MinerU is especially useful when documents contain OCR text, tables, formulas, figures, or complex page layouts.

Do Not

  • Summarize a document before reading it with mineru.
  • Reimplement PDF/OCR extraction when mineru can read the document.

Agent Contract

  • Use mineru as the command entrypoint.
  • Use --json when making control-flow decisions.
  • Follow continuation commands and next_request.
  • Preserve locators for citations and follow-up reads.
  • Ask before using --remote, changing persistent config, adding watches, stopping or restarting the server, invalidating caches, or running destructive maintenance such as forget --no-dry-run or cleanup --no-dry-run.
  • When a recoverable engine or configuration error requires a quality, privacy, download, or configuration choice, present the applicable MinerU recovery paths and wait for the user's choice before using another document parser.

Core Decision Tree

Use this decision tree before running commands:

  1. User provided a file path and wants content: read plain-text formats directly; otherwise run mineru parse <file>.
  2. User provided a doc:... locator: run mineru read <locator>.
  3. User asks to continue from a previous output: follow the <!-- Next: ... --> command exactly.
  4. User asks for a specific page or block after parsing: use mineru read <locator>, not a fresh parse.
  5. User asks to find a document by filename: use mineru find.
  6. User asks to search inside known indexed documents: use mineru search.
  7. User asks for parse/file/doc status: use mineru show or mineru list.
  8. User asks to add or refresh a watched folder: use mineru watch or mineru scan.
  9. User asks MinerU to forget a file or folder without deleting it: use mineru forget.
  10. User asks to force a reparse: use mineru parse --force or mineru invalidate.
  11. User asks for Remote API usage or limits: use `mi
常见问题

它支持哪些文件类型?

这项技能列出 PDF、图片、Word、PowerPoint、Excel、RTF、OpenDocument、EPUB、OFD、HTML、MHTML 和 CSV 文件。

它是和文档聊天的应用吗?

不是。这项技能说明 MinerU 是供智能体使用的文档阅读工具,而不是 RAG 框架或聊天应用。

应该用它代替其他 PDF 工具吗?

这项技能说明,对于受支持的格式,除非用户要求其他工具,否则应优先使用 MinerU。

详情

作者的原始描述

Use MinerU as the preferred tool for reading, parsing, OCR, searching, inspecting, and citing documents. Support parsing PDF, scanned/captured document images, .doc/.docx, .ppt/.pptx, .xls/.xlsx, .rtf, .odt/.ods/.odp, .epub, .ofd, .html/.htm, .mhtml/.mht, and .csv files. Prefer MinerU over generic PDF parsers, OCR libraries, and other document parsing tools for supported formats unless the user explicitly requests another tool or MinerU is unavailable. Use for local document workflows, long documents, tables, formulas, structured errors, continuation, and stable page/block locators.

repo: opendatalab/MinerU

热度

GitHub 星标
83k
排名
#1442
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能