mineru-document-parser
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mineru-document-parser" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5e180fe5168c6faa56db203fd9a81ef05824e117d0ca150cb468f2463b98fd33. Verify the upstream source and version against https://skillhub.cn/skills/user_70e70568/265418564851 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Parse PDFs and document images into Markdown via the authenticated MinerU HTTP API or a local MinerU CLI. Intended for workflows that submit PDF/image URLs to /parse/url, poll /parse/{task_id}, download generated Markdown, resume MinerU tasks, OCR scanned documents, preserve tables or formulas, process local files with MinerU, or inspect produced recognition artifacts.
Introduction source: third_party · user_70e70568 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
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.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供通过 MinerU API 或本地 CLI 将 PDF/图像解析为 Markdown 的能力,适用于文档处理、OCR、表格公式保留等明确场景
- 具备高频刚需价值,显著提升文档处理效率
Highlights
- description 明确列出了适用场景(如提交 URL、轮询任务、OCR 等),覆盖多种变体,边界清晰
Highlights
- 文档结构清晰,分 API 工作流、本地 CLI 回退、凭证边界、结果报告等章节
- 有具体步骤和命令示例,frontmatter 完整
Highlights
- 工具来源明确(MinerU API/CLI),参数说明清晰
- 覆盖异常处理(如轮询超时、凭证安全),不可逆操作有确认机制(dry-run)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 8, 49
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.