mineru-document-parser
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "mineru-document-parser":https://skillpi.com/zh/skills/deepskill-5e180fe5168c6faa56db203fd9a81ef05824e117d0ca150cb468f2463b98fd33。安装前核对上游来源和版本:https://skillhub.cn/skills/user_70e70568/265418564851。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
通过经过身份验证的 MinerU HTTP API 或本地 MinerU CLI 将 PDF 与文档图像解析为 Markdown。适用于需要向 /parse/url 提交 PDF/图像 URL、轮询 /parse/{task_id}、下载生成的 Markdown、恢复 MinerU 任务、对扫描文档进行 OCR、保留表格或公式、使用 MinerU 处理本地文件或检查生成的识别工件的场景。
介绍来源: third_party · user_70e70568 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: mineru-document-parser
description: Parse PDFs and document images into Markdown through an authenticated MinerU HTTP API or a local MinerU CLI. Use when Codex needs to submit a PDF/image URL to `/parse/url`, poll `/parse/{task_id}`, download the resulting Markdown, resume a MinerU task, OCR scanned documents, preserve tables or formulas, process a local file with MinerU, or inspect generated recognition artifacts.MinerU Document Parser
Prefer the authenticated HTTP API workflow when the user has a MinerU API base URL and token. Keep the local CLI workflow as a fallback for private local files. Never invent, print, commit, or package real credentials.
Authenticated API workflow
-
Confirm that the PDF or image is available at a URL the MinerU service can reach. Do not upload private material to an unapproved public host merely to obtain a URL.
-
Copy
assets/mineru-api.template.jsonto a private location outside the skill, then let the user fill the API base URL and token. Read configuration.md when the server uses a non-Bearer header or different endpoint paths. -
Validate the private configuration and planned request without sending it:
python <skill-dir>/scripts/parse_by_api.py --config <private-api.json> --url <document-url> --output <result.md> --dry-run -
Submit the URL, poll the task, and download Markdown:
python <skill-dir>/scripts/parse_by_api.py --config <private-api.json> --url <document-url> --output <result.md> -
Add only options supported by the task:
--language,--page-range,--ocr,--no-table, or--no-formula. Defaults match the supplied API example: Chinese, tables enabled, OCR disabled, and formulas enabled. -
If polling times out, retain the printed task ID and resume without creating a duplicate task:
python <skill-dir>/scripts/parse_by_api.py --config <private-api.json> --task-id <task-id> --output <result.md> -
Open the downloaded Markdown and verify that it is non-empty. Spot-check headings, reading order, tables, formulas, and image references against the source when visual inspection is available.
Local CLI fallback
Use this path only when the source is local or the user explicitly chooses a local MinerU installation.
-
Run
scripts/check_environment.pyonce per session. -
Copy
assets/mineru.template.jsonto a private location if native MinerU configuration is needed. -
Run:
python <skill-dir>/scripts/run_mineru.py <input> --output <output-dir> --config <private-mineru.json> -
Open the Markdown reported by
mineru-skill-manifest.jsonand inspect the structured JSON only when required.
Credential boundary
- Treat both JSON files in
assets/as publish-safe templates, never as live configurations. - Prefer
MINERU_API_TOKENandMINERU_API_BASE_URLenvironment variables when possible. Environment variables override matching API config fields. - Default to the
Authorization: Bearer <token>header. Configureauth_headerandauth_schemefor another server convention. - Never pass the token on the command line or include it in logs, manifests, responses, or a published ZIP.
- Never forward the API token to a cross-origin Markdown download URL. The API script enforces this rule.
Reporting results
Report the output Markdown path, task ID, manifest path, and any quality limitations. Do not expose signed query strings from source or download URLs. Do not claim recognition success when the API reports failure, polling times out, or the Markdown is empty.
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供通过 MinerU API 或本地 CLI 将 PDF/图像解析为 Markdown 的能力,适用于文档处理、OCR、表格公式保留等明确场景
- 具备高频刚需价值,显著提升文档处理效率
亮点
- description 明确列出了适用场景(如提交 URL、轮询任务、OCR 等),覆盖多种变体,边界清晰
亮点
- 文档结构清晰,分 API 工作流、本地 CLI 回退、凭证边界、结果报告等章节
- 有具体步骤和命令示例,frontmatter 完整
亮点
- 工具来源明确(MinerU API/CLI),参数说明清晰
- 覆盖异常处理(如轮询超时、凭证安全),不可逆操作有确认机制(dry-run)
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 8, 49 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。