Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

ade-mineru-api-skillsADE mineru API skills 文档

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

8,472

周安装

353

GitHub Stars

公开资料未说明

下载量

2,824
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ade-mineru-api-skills(ADE mineru API skills 文档)
来源仓库:https://github.com/decrystal/ade-mineru-api-skills
安装命令:
openclaw skills install ade-mineru-api-skills
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ade-mineru-api-skills

简介

通过 MinerU API 将 PDF、图像和网页转为多种文档格式。

  • 适合文档数字化、知识库构建和内容归档场景。
  • 支持单次或批量提取,输出 Markdown、HTML 等格式。
  • 需配置 API 密钥并遵守调用频率限制。ade-mineru-api-skills 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 建议先测试小样本以确保解析质量符合预期。

SKILL.md

name
mineru-cli
description
MinerU document extraction CLI that converts PDFs, images, and web pages into Markdown, HTML, LaTeX, or DOCX via the MinerU API. Supports single/batch extraction, web crawling, async tasks, and piped workflows.
read_when
metadata
{"openclaw":{"emoji":"📄","requires":{"bins":["mineru"]},"install":[{"id":"install-unix","kind":"download","os":["darwin","linux"],"bins":["mineru"],"url":"https://cdn-mineru.openxlab.org.cn/open-api-cli/install.sh","label":"Install mineru (Linux/macOS)"},{"id":"install-windows","kind":"download","os":["win32"],"bins":["mineru"],"url":"https://cdn-mineru.openxlab.org.cn/open-api-cli/install.ps1","label":"Install mineru (Windows)"}]}}
allowed-tools
Bash(mineru:*)

Document Extraction with mineru

Installation

Linux / macOS

curl -fsSL https://cdn-mineru.openxlab.org.cn/open-api-cli/install.sh | sh

Windows (PowerShell)

irm https://cdn-mineru.openxlab.org.cn/open-api-cli/install.ps1 | iex

Verify installation

mineru version

Authentication

Before using, configure your API token (get one from https://mineru.net):

mineru auth                    # Interactive token setup
export MINERU_TOKEN="your-token"  # Or set via environment variable

Token resolution order: --token flag > MINERU_TOKEN env > ~/.mineru/config.yaml.

Supported input formats

The extract command accepts the following input types:

  • PDF (.pdf) — primary use case, supports scanned and digital PDFs
  • Images (.png, .jpg, .jpeg, .webp, .gif,.bmp) — use --ocr for best results on scanned content
  • DOCX (.docx) — Microsoft Word documents
  • URLs — remote files are downloaded automatically

The crawl command accepts any HTTP/HTTPS URL and extracts web page content.

Default behavior

  • Table recognition: ON by default. Tables in documents are extracted and converted to Markdown tables. Use --no-table to disable.
  • Formula recognition: ON by default. Mathematical formulas are extracted as LaTeX. Use --no-formula to disable.
  • Language: defaults to ch (Chinese). Use --language en for English documents.
  • Model: auto-selected. Use --model vlm for complex layouts, --model pipeline for speed.

Quick start

mineru extract report.pdf                    # PDF → Markdown to stdout
mineru extract report.pdf -o ./out/          # Save to file
mineru extract report.pdf -f md,docx         # Multiple formats
mineru crawl https://example.com/article     # Web page → Markdown

Core workflow

  1. Authenticate: mineru auth or set MINERU_TOKEN
  2. Extract: mineru extract <file-or-url> for documents
  3. Crawl: mineru crawl <url> for web pages
  4. Check results: output goes to stdout (default) or -o directory

Commands

extract — Document extraction

Convert PDFs, images, and other documents to Markdown or other formats.

mineru extract report.pdf                         # Markdown to stdout
mineru extract report.pdf -f html                 # HTML to stdout
mineru extract report.pdf -o ./out/               # Save to directory
mineru extract report.pdf -o ./out/ -f md,docx    # Multiple formats
mineru extract *.pdf -o ./results/                # Batch extract
mineru extract --list files.txt -o ./results/     # Batch from file list
mineru extract https://example.com/doc.pdf        # Extract from URL
cat doc.pdf | mineru extract --stdin -o ./out/    # From stdin

extract flags

FlagShortDefaultDescription
--output-o_(stdout)_Output path (file or directory)
--format-fmdOutput formats: md, json, html, latex, docx (comma-separated)
--model_(auto)_Model: vlm, pipeline, html
--ocrfalseEnable OCR for scanned documents
--no-formulafalseDisable formula recognition
--no-tablefalseDisable table recognition
--languagechDocument language
--pages_(all)_Page range, e.g. 1-10,15
--timeout300/1800Timeout in seconds (single/batch)
--listRead input list from file (one path per line)
--stdin-listfalseRead input list from stdin
--stdinfalseRead file content from stdin
--stdin-namestdin.pdfFilename hint for stdin mode
--concurrency0Batch concurrency (0 = server default)

crawl — Web page extraction

Fetch web pages and convert to Markdown.

mineru crawl https://example.com/article              # Markdown to stdout
mineru crawl https://example.com/article -f html      # HTML to stdout
mineru crawl https://example.com/article -o ./out/     # Save to file
mineru crawl url1 url2 -o ./pages/                     # Batch crawl
mineru crawl --list urls.txt -o ./pages/               # Batch from file list

crawl flags

FlagShortDefaultDescription
--output-o_(stdout)_Output path
--format-fmdOutput formats: md, json, html (comma-separated)
--timeout300/1800Timeout in seconds (single/batch)
--listRead URL list from file (one per line)
--stdin-listfalseRead URL list from stdin
--concurrency0Batch concurrency

auth — Authentication management

mineru auth              # Interactive token setup
mineru auth --verify     # Verify current token is valid
mineru auth --show       # Show current token source and masked value

status — Async task status

Query the status of a previously submitted extraction task.

mineru status <task-id>                      # Check status once
mineru status <task-id> --wait               # Wait for completion
mineru status <task-id> --wait -o ./out/     # Wait and download results
mineru status <task-id> --wait --timeout 600 # Custom timeout

status flags

FlagShortDefaultDescription
--waitfalseWait for task completion
--output-oDownload results to directory when done
--timeout300Max wait time in seconds

version — Version info

mineru version    # Show version, commit, build date, Go version, OS/arch

Global flags

These flags apply to all commands:

FlagShortDescription
--tokenAPI token (overrides env and config)
--base-urlAPI base URL (for private deployments)
--verbose-vVerbose mode, print HTTP details

Output behavior

  • No -o flag: result goes to stdout; status/progress messages go to stderr
  • With -o flag: result saved to file/directory; progress messages on stderr
  • Batch mode: requires -o to specify output directory
  • Binary formats (docx): cannot output to stdout, must use -o
  • Markdown output includes extracted images saved alongside the .md file

Examples

Single PDF extraction

mineru extract report.pdf -o ./output/
# Output: ./output/report.md + ./output/images/

Extract with OCR and specific pages

mineru extract scanned.pdf --ocr --pages "1-5" -o ./out/

Multi-format output

mineru extract paper.pdf -f md,html,docx -o ./out/
# Output: ./out/paper.md, ./out/paper.html, ./out/paper.docx

Batch processing from file list

# files.txt contains one path per line
mineru extract --list files.txt -o ./results/

Extract to LaTeX

mineru extract paper.pdf -f latex -o ./out/
# Output: ./out/paper.tex

English document with specific language

mineru extract english-report.pdf --language en -o ./out/

Extract Word document to Markdown

mineru extract resume.docx -o ./out/
# Output: ./out/resume.md

Pipe workflow

# Download and extract in one pipeline
curl -sL https://example.com/doc.pdf | mineru extract --stdin --stdin-name doc.pdf

Web crawling

mineru crawl https://example.com/docs/guide -o ./docs/

Batch crawl with URL list

echo -e "https://example.com/page1\
https://example.com/page2" | mineru crawl --stdin-list -o ./pages/

Use with other tools

# Extract and pipe to another tool
mineru extract report.pdf | wc -w              # Word count
mineru extract report.pdf | grep "keyword"     # Search content
mineru extract report.pdf -f json | jq '.[]'   # Parse structured output

Agent guidelines

When using this skill on behalf of the user:

  • Always ask for the file path if the user didn't specify one. Never guess or fabricate a filename.
  • Quote file paths that contain spaces or special characters with double quotes in commands. Example: mineru extract "report 01.pdf", NOT mineru extract report 01.pdf.
  • Don't run commands blindly on errors — if the user asks "提取失败了怎么办", explain the exit code and troubleshooting steps instead of re-running the command.
  • Installation questions ("mineru 怎么安装") should be answered with the install instructions, not by running mineru extract.
  • DOCX as input is supported — if the user asks "这个 Word 文档能转 Markdown 吗", use mineru extract file.docx.
  • Table extraction — tables are extracted by default as part of the Markdown output. There is no "tables only" mode; the full document is always extracted.
  • For stdout mode (no -o), only one text format can be output at a time. If the user wants multiple formats, suggest adding -o.

Default output directory

When the user does NOT specify an output path (-o), the agent MUST generate a default output directory to prevent file overwrites. Use:

~/MinerU-Skill/<name>_<hash>/

Naming rules:

  • <name>: derived from the source, then sanitized for safe directory names.

- For URLs: last path segment (e.g. https://arxiv.org/pdf/2509.221862509.22186) - For local files: filename without extension (e.g. report.pdfreport) - Sanitization: replace spaces and shell-unsafe characters (space, (, ), [, ], &, ', ", !, #, $, ` `) with _. Collapse consecutive _ into one. Keep alphanumeric, -, _, .`, and CJK characters.

  • <hash>: first 6 characters of the MD5 hash of the full original source path or URL (before sanitization). This ensures:

- Different URLs with similar basenames get unique directories - Re-running the same source reuses the same directory (idempotent)

Examples:

Source<name>Output directory
https://arxiv.org/pdf/2509.221862509.22186~/MinerU-Skill/2509.22186_a3f2b1/
https://arxiv.org/pdf/2509.2002509.200~/MinerU-Skill/2509.200_c7e9d4/
./report.pdfreport~/MinerU-Skill/report_8b1a3f/
./report 01.pdfreport_01~/MinerU-Skill/report_01_f4a1c2/
./My Doc (final).pdfMy_Doc_final~/MinerU-Skill/My_Doc_final_b9e3d7/
./个人简介.docx个人简介~/MinerU-Skill/个人简介_d2a8f5/

How the agent should generate the hash:

echo -n "https://arxiv.org/pdf/2509.22186" | md5sum | cut -c1-6

Or on macOS:

echo -n "https://arxiv.org/pdf/2509.22186" | md5 | cut -c1-6

When the user specifies -o: use the user's path as-is, do NOT override with the default directory.

Exit codes

CodeMeaningRecovery
0Success
1General API or unknown errorCheck network connectivity; retry; use --verbose for details
2Invalid parameters / usage errorCheck command syntax and flag values
3Authentication errorRun mineru auth to reconfigure token, or check token expiration
4File too large or page limit exceededSplit the file or use --pages to extract a subset
5Extraction failedThe document may be corrupted or unsupported; try a different --model
6TimeoutIncrease with --timeout; large files may need 600+ seconds
7Quota exceededCheck API quota at https://mineru.net; wait or upgrade plan

Troubleshooting

  • "no API token found": Run mineru auth or set MINERU_TOKEN env variable
  • Timeout on large files: Increase with --timeout 600 (seconds)
  • Batch fails partially: Check stderr for per-file status; succeeded files are still saved
  • Binary format to stdout: Use -o flag; docx cannot stream to stdout
  • Private deployment: Use --base-url https://your-server.com/api
  • Extraction quality is poor: Try --model vlm for complex layouts, or --ocr for scanned documents
  • Formula not recognized: Ensure --no-formula is NOT set; try --model vlm for better formula support

Notes

  • All status/progress messages go to stderr; only document content goes to stdout
  • Batch mode automatically polls the API with exponential backoff
  • Token is stored in ~/.mineru/config.yaml after mineru auth
  • The CLI wraps the MinerU Open SDK (github.com/OpenDataLab/mineru-open-sdk)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.8%
按下载量换算2,282

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills