Exam Ingest
ZeKaiNie/universal-examprep-skill
从学生上传的课件/大纲/老师勾的重点/真题,一键初始化并验证备考工作区:解析 PDF、DOCX、PPTX、 XLSX、常见独立图片与 txt/md,建立分章节 LLM Wiki、标准题库、结构化接管队列与进度状态;仅在 Python 确实无法运行时 明确降级为手动写盘。当工作区尚未建立、资料发生变化、或建库 readiness 被阻断时使用。
MinerU Document Explorer — Agent-native knowledge engine. An agent skill from opendatalab/MinerU-Document-Explorer.
$ npx skills add opendatalab/MinerU-Document-Explorer --skill mineru-document-explorer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install opendatalab/MinerU-Document-Explorer mineru-document-explorer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/opendatalab/MinerU-Document-Explorer.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mineru-document-explorer .claude/skills/mineru-document-explorer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mineru-document-explorer" agent skill from https://github.com/opendatalab/MinerU-Document-Explorer/tree/main/skills/mineru-document-explorer into .claude/skills/mineru-document-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mineru-document-explorer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/opendatalab/MinerU-Document-Explorer/tree/main/skills/mineru-document-explorerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add opendatalab/MinerU-Document-Explorer --skill mineru-document-explorer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install opendatalab/MinerU-Document-Explorer mineru-document-explorer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opendatalab/MinerU-Document-Explorer.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/mineru-document-explorer .agents/skills/mineru-document-explorer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mineru-document-explorer" agent skill from https://github.com/opendatalab/MinerU-Document-Explorer/tree/main/skills/mineru-document-explorer into .agents/skills/mineru-document-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mineru-document-explorer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add opendatalab/MinerU-Document-Explorer --skill mineru-document-explorer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install opendatalab/MinerU-Document-Explorer mineru-document-explorer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opendatalab/MinerU-Document-Explorer.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/mineru-document-explorer .cursor/skills/mineru-document-explorer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mineru-document-explorer" agent skill from https://github.com/opendatalab/MinerU-Document-Explorer/tree/main/skills/mineru-document-explorer into .cursor/skills/mineru-document-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mineru-document-explorer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/opendatalab/MinerU-Document-Explorer.git --path skills/mineru-document-explorer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add opendatalab/MinerU-Document-Explorer --skill mineru-document-explorer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install opendatalab/MinerU-Document-Explorer mineru-document-explorer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opendatalab/MinerU-Document-Explorer.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/mineru-document-explorer .gemini/skills/mineru-document-explorer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mineru-document-explorer" agent skill from https://github.com/opendatalab/MinerU-Document-Explorer/tree/main/skills/mineru-document-explorer into .gemini/skills/mineru-document-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mineru-document-explorer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install opendatalab/MinerU-Document-Explorer mineru-document-explorerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add opendatalab/MinerU-Document-Explorer --skill mineru-document-explorer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/opendatalab/MinerU-Document-Explorer.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/mineru-document-explorer .github/skills/mineru-document-explorer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mineru-document-explorer" agent skill from https://github.com/opendatalab/MinerU-Document-Explorer/tree/main/skills/mineru-document-explorer into .github/skills/mineru-document-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mineru-document-explorer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add opendatalab/MinerU-Document-Explorer --skill mineru-document-explorer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install opendatalab/MinerU-Document-Explorer mineru-document-explorer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/opendatalab/MinerU-Document-Explorer.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/mineru-document-explorer .opencode/skills/mineru-document-explorer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mineru-document-explorer" agent skill from https://github.com/opendatalab/MinerU-Document-Explorer/tree/main/skills/mineru-document-explorer into .opencode/skills/mineru-document-explorer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mineru-document-explorer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mineru-document-explorerMinerU Document Explorer — Agent-native knowledge engine. An agent skill from opendatalab/MinerU-Document-Explorer.
Mineru Document Explorer is an agent skill from opendatalab/MinerU-Document-Explorer. MinerU Document Explorer — Agent-native knowledge engine. Use when users ask to search their documents, look up information in PDFs/DOCX/PPTX/Markdown, navigate inside large documents, extract tables/figures, or build wiki knowledge bases. Provides three tool groups: information retrieval (query, get, multiget, status), document deep reading (doctoc, docread, docgrep, docquery, docelements, doclinks), and knowledge ingestion (wikiingest, docwrite, wikilint, wikilog, wikiindex).
Its SKILL.md is about 6.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/mcp-setup.md`). Compatibility notes: Requires qmd CLI or MCP server. Install via npm (npm install -g mineru-document-explorer) or from source…
It sits in Documents & Office, covering LLM wikis, Word documents and PowerPoint presentations. It works with Microsoft PowerPoint and Microsoft Word. The repository describes itself as: Agent-native knowledge engine with MCP tools for document indexing, wiki organization, fast retrieval and deep reading across PDF/DOCX/PPTX/Markdown. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit a7e9c6c. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
Bash(qmd:*)mcp__qmd__*mcp__mineru-document-explorer__*From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pippython3npmbungitbrewaptFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
mineru.netapi.openai.comAlso links to:
python.orgFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
MINERU_API_KEYOPENAI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires qmd CLI or MCP server. Install via npm (npm install -g mineru-document-explorer) or from source (https://github.com/opendatalab/MinerU-Document-Explorer). PDF/DOCX/PPTX support requires Python 3.10+ with pymupdf, python-docx, python-pptx.
From compatibility in the SKILL.md frontmatter.
Mineru Document Explorer loads about 6.2k tokens when it runs, and up to ~7.2k if it reads all its reference files. Until then it costs about 130 tokens; SKILL.md has 2,008 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
- **Ubuntu/Debian**: `sudo apt install python3 python3-pip`Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from opendatalab/MinerU-Document-Explorer at commit a7e9c6c, republished under its MIT licence (© opendatalab). 2,008 words, ~6,228 tokens.
.claude/skills/mineru-document-explorer/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Agent-native knowledge engine — hybrid search and deep reading over Markdown, PDF, DOCX, PPTX. Designed for AI agents to organize knowledge and retrieve information autonomously.
| I want to... | Tool | Example |
|---|---|---|
| Search across all docs | query | { "query": "authentication flow" } |
| Get a specific file | get | { "file": "#abc123" } or { "file": "docs/readme.md" } |
| Get multiple files | multi_get | { "pattern": "docs/*.md" } |
| See document structure | doc_toc | { "file": "paper.pdf" } |
| Read specific sections | doc_read | { "file": "paper.pdf", "addresses": ["page:3"] } |
| Find keyword in a doc | doc_grep | { "file": "report.md", "pattern": "revenue" } |
| Semantic search in doc | doc_query | { "file": "paper.pdf", "query": "methodology" } |
| Extract tables/figures | doc_elements | { "file": "report.pdf", "element_types": ["table"] } |
| Write a wiki page | doc_write | { "collection": "wiki", "path": "topic.md", "content": "..." } |
| Check wiki health | wiki_lint | {} |
Follow these rules to use the tools effectively:
Collection-relative paths only. All file paths are prefixed by collection
name: mydocs/readme.md, papers/survey.pdf. Never use absolute filesystem
paths like /Users/.../file.md. You can also use qmd://mydocs/readme.md.
Navigate before reading large documents. For PDFs, DOCX, PPTX, or
Markdown files >100 lines, always use doc_toc → doc_read instead of
get. The get tool dumps the entire document — wasteful for large files.
Addresses bridge navigation and reading. doc_toc, doc_grep, and
doc_query return address strings like line:45-120. Pass these directly
to doc_read. Never call doc_read without addresses from one of these.
Use simple query first. Start with { "query": "your terms" }. Only
switch to advanced searches mode when simple mode misses. The system
auto-expands into BM25 + semantic + reranking.
Always pass source when writing wiki pages. This enables provenance
tracking and staleness detection via wiki_lint.
Prefer MCP over CLI. The MCP server keeps models loaded in memory
(~3GB). CLI reloads on every invocation (~5-15s overhead). If MCP is not
available, qmd search (BM25 only) is instant and needs no model loading.
Documents live in collections — named groups with a filesystem path and glob mask. Collections have two types:
doc_writeFile paths in all results are collection-relative: mydocs/readme.md,
papers/survey.pdf. Use these exact paths when calling tools.
Every document has a short hash ID like #abc123 shown in search results.
Use docids anywhere a file path is accepted: get("#abc123"),
doc_toc("#abc123"). The # prefix is optional.
Addresses identify locations within a document. They are the bridge between
navigation tools (doc_toc, doc_grep, doc_query) and the reading tool
(doc_read).
| Format | Meaning | Used by |
|---|---|---|
line:N or line:N-M | Line or line range | Markdown |
page:N | PDF page | |
slide:N | PPTX slide | PPTX |
section:N | DOCX section | DOCX |
| Group | Purpose | Tools |
|---|---|---|
| Retrieval | Find and fetch documents | query, get, multi_get, status |
| Deep Reading | Navigate within a document | doc_toc, doc_read, doc_grep, doc_query, doc_elements, doc_links |
| Knowledge Ingestion | Build wiki knowledge base | wiki_ingest, doc_write, wiki_lint, wiki_log, wiki_index |
Use when a user first connects MinerU Document Explorer, gives you the project link, or when PDF/DOCX/PPTX operations fail. Walk the user through setup interactively — check each prerequisite and guide them step by step.
which qmd && qmd statusIf not installed:
# Option A: npm (recommended)
npm install -g mineru-document-explorer
# Option B: from source
git clone https://github.com/opendatalab/MinerU-Document-Explorer.git
cd MinerU-Document-Explorer && bun install && bun linkPDF, DOCX, and PPTX processing requires Python 3.10+:
python3 --versionIf Python is missing, guide the user to install it for their platform:
brew install python@3.12sudo apt install python3 python3-pipThree packages are required for binary document processing:
python3 -c "import pymupdf; import docx; import pptx; print('All dependencies OK')"If any import fails, install the missing packages:
pip install pymupdf python-docx python-pptx| Package | Format | What it does |
|---|---|---|
pymupdf | Text extraction, bookmarks, page-level reading | |
python-docx | DOCX | Section extraction, table extraction |
python-pptx | PPTX | Slide text, table extraction |
Ask the user: "Do you need high-quality PDF extraction for scanned documents or complex layouts? MinerU Cloud provides significantly better results than basic PyMuPDF."
If yes, guide them to set up MinerU Cloud:
# Method A: Environment variable
export MINERU_API_KEY="your-key-here"
# Method B: Config file (~/.config/qmd/doc-reading.json)
mkdir -p ~/.config/qmd
cat > ~/.config/qmd/doc-reading.json << 'EOF'
{
"docReading": {
"providers": {
"fullText": { "pdf": ["mineru_cloud", "pymupdf"] }
},
"credentials": {
"mineru": { "api_key": "YOUR_API_KEY_HERE" }
}
}
}
EOFWhen MINERU_API_KEY is set, MinerU Cloud is automatically used as the primary
PDF provider with PyMuPDF as fallback — no config file needed.
Additional Python package for MinerU Cloud:
pip install mineru-open-sdk# Index a folder (adjust path to user's documents)
qmd collection add ~/Documents --name mydocs --mask '**/*.{md,pdf,docx,pptx}'
# Verify indexing worked
qmd status
# Test search (instant, no model downloads)
qmd search "test"Ask the user which AI client they use and provide the matching config:
Claude Code (~/.claude/settings.json):
{ "mcpServers": { "qmd": { "command": "qmd", "args": ["mcp"] } } }Cursor (.cursor/mcp.json) — HTTP mode recommended:
qmd mcp --http --daemon # start the server first{ "mcpServers": { "qmd": { "url": "http://localhost:8181/mcp" } } }Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{ "mcpServers": { "qmd": { "command": "qmd", "args": ["mcp"] } } }Config file locations (later overrides earlier):
~/.config/qmd/doc-reading.json — global settings./qmd.config.json — project-level overridesFull config example (~/.config/qmd/doc-reading.json):
{
"docReading": {
"providers": {
"fullText": { "pdf": ["mineru_cloud", "pymupdf"] },
"toc": { "pdf": ["native_bookmarks"] },
"elements": { "docx": ["python_docx_local"], "pptx": ["python_pptx_local"] }
},
"credentials": {
"mineru": {
"api_key": "your-mineru-api-key",
"api_url": "https://mineru.net/api/v4"
},
"openai": {
"api_key": "your-openai-api-key",
"base_url": "https://api.openai.com/v1"
}
}
}
}Environment variables:
| Variable | Purpose |
|---|---|
MINERU_API_KEY | MinerU Cloud PDF (auto-enables mineru_cloud provider) |
OPENAI_API_KEY | GPT PageIndex (LLM-inferred TOC for PDFs) |
OPENAI_BASE_URL | Custom OpenAI-compatible endpoint |
Provider options:
| Capability | Provider | Requires |
|---|---|---|
| PDF full text | pymupdf (default) | pip install pymupdf |
| PDF full text | mineru_cloud | pip install mineru-open-sdk + API key |
| PDF full text | mineru_local | pip install mineru-vl-utils[transformers] + model |
| PDF TOC | native_bookmarks (default) | pip install pymupdf |
| PDF TOC | gpt_pageindex | pip install tiktoken openai pyyaml + API key |
| DOCX tables | python_docx_local (default) | pip install python-docx |
| PPTX tables | python_pptx_local (default) | pip install python-pptx |
Use when the user asks a question and you need to find information.
Step 1 — Search:
query({ "query": "how does authentication work" })Results include docid, file, score, snippet. Use these to decide
what to read.
Step 2 — Read the top result:
If the document is short (snippet suggests it's a small file):
get({ "file": "#abc123" })If the document is large or structured (PDF, long Markdown):
doc_toc({ "file": "#abc123" })
doc_read({ "file": "#abc123", "addresses": ["line:11-20", "line:31-49"] })Step 3 — Synthesize and answer using the content you read.
Tips:
intent to disambiguate: { "query": "performance", "intent": "web page load times" }collections to narrow scope: { "query": "...", "collections": ["papers"] }get response header includes Total lines: — if >100, switch to doc_toc + doc_readUse when the user points to a specific large document (PDF, DOCX, PPTX, or long Markdown) and wants to understand it.
Step 1 — Get the table of contents:
doc_toc({ "file": "papers/survey.pdf" })Returns a nested tree of sections with addresses. This is your map.
Step 2 — Read relevant sections:
Pick addresses from the TOC and read them:
doc_read({ "file": "papers/survey.pdf", "addresses": ["line:11-20", "line:45-60"] })Step 3 — Search within the document (if you need to find something specific):
For keywords:
doc_grep({ "file": "papers/survey.pdf", "pattern": "attention mechanism" })For concepts (semantic, requires embeddings):
doc_query({ "file": "papers/survey.pdf", "query": "what evaluation metrics were used" })Both return addresses — pass them to doc_read.
Step 4 — Extract structured elements (tables, figures):
doc_elements({ "file": "report.pdf", "element_types": ["table"], "query": "revenue" })Example flow:
doc_toc("papers/survey.pdf")
→ sees section "3. Methodology" at line:45-80
doc_read("papers/survey.pdf", ["line:45-80"])
→ reads methodology section
doc_grep("papers/survey.pdf", "dataset")
→ finds mentions at line:62, line:78
doc_read("papers/survey.pdf", ["line:60-65", "line:76-80"])
→ reads specific paragraphs around dataset mentionsUse when the user wants to build a persistent knowledge base from their documents. Requires a wiki-type collection.
Step 1 — Ingest a source document:
wiki_ingest({ "source": "mydocs/distributed-systems.md", "wiki_collection": "mywiki" })Returns: source content, TOC, related existing wiki pages, and suggestions
for what pages to create. Incremental — skips unchanged sources unless
force: true.
Step 2 — Deep-read key sections (for large sources):
doc_toc({ "file": "mydocs/distributed-systems.md" })
doc_read({ "file": "mydocs/distributed-systems.md", "addresses": ["line:11-30"] })Step 3 — Write wiki pages:
doc_write({
"collection": "mywiki",
"path": "concepts/cap-theorem.md",
"content": "# CAP Theorem\n\n**Source:** [[sources/distributed-systems]]\n\n## Overview\n\nThe CAP theorem states that...\n\n## Connections\n- Related to [[concepts/consistency-models]]\n- See also [[concepts/consensus-algorithms]]",
"title": "CAP Theorem",
"source": "mydocs/distributed-systems.md"
})Use [[wikilinks]] to create cross-references. Always pass source for
provenance tracking.
Step 4 — Health-check:
wiki_lint({ "collection": "mywiki", "stale_days": 30 })Detects orphan pages, broken links, missing pages, stale content.
Wiki page template:
# Page Title
**Source:** [[sources/paper-name]]
## Key Points
- ...
## Connections
- Related to [[concepts/topic-a]]
- Extends [[concepts/topic-b]]Use periodically to keep the wiki knowledge base healthy.
wiki_lint({ "collection": "mywiki" })Act on the results:
[[wikilinks]] from related pagesdoc_writedoc_read, update with doc_writeView activity history:
wiki_log({ "since": "2025-01-01", "limit": 20 })Generate or update the wiki index:
wiki_index({ "collection": "mywiki", "write": true })query — Search the knowledge base (primary search tool)
| Param | Type | Default | Description |
|---|---|---|---|
query | string | — | Simple search (mutually exclusive with searches) |
searches | array | — | Advanced: `[{type: "lex" |
intent | string | — | Disambiguation context (steers ranking, not searched) |
collections | string[] | all | Filter to specific collections |
limit | number | 10 | Max results |
minScore | number | 0 | Min relevance 0-1 |
Simple mode auto-expands into BM25 + semantic + reranking. For advanced mode, first sub-query gets 2x weight.
| Sub-query type | Method | Best for |
|---|---|---|
lex | BM25 keywords | Exact terms, names, "quoted phrases", -negation |
vec | Vector semantic | Natural language questions |
hyde | Hypothetical answer | Write 50-100 words resembling the answer |
get — Retrieve a single document
| Param | Type | Default | Description |
|---|---|---|---|
file | string | — | Path, docid (#abc123), or path:line |
fromLine | number | — | Start line (1-indexed) |
maxLines | number | — | Max lines to return |
lineNumbers | boolean | false | Add line numbers |
Response header includes Total lines: — if >100, prefer doc_toc + doc_read.
On "not found" errors, check "Did you mean?" suggestions.
multi_get — Batch retrieve
| Param | Type | Default | Description |
|---|---|---|---|
pattern | string | — | Glob, comma-separated paths, or comma-separated globs |
maxLines | number | — | Max lines per file |
maxBytes | number | 10240 | Skip files larger than this |
lineNumbers | boolean | false | Add line numbers |
Pattern examples: journals/2025-05*.md, readme.md, config.md,
docs/api*.md, docs/config*.md, #abc123, #def456.
status — Index health (no parameters)
Returns document counts, embedding status, collection list. When connected via MCP, this info is already in the system prompt.
doc_toc — Table of contents
| Param | Type | Description |
|---|---|---|
file | string | File path or docid |
Returns a nested tree of sections with address fields. Start here for
any large document.
doc_read — Read at addresses
| Param | Type | Default | Description |
|---|---|---|---|
file | string | — | File path or docid |
addresses | string[] | — | Addresses from doc_toc / doc_grep / doc_query |
max_tokens | number | 2000 | Max tokens per section |
doc_grep — Keyword search within a document
| Param | Type | Default | Description |
|---|---|---|---|
file | string | — | File path or docid |
pattern | string | — | Regex or keyword (e.g. "revenue|profit") |
flags | string | "gi" | Regex flags |
Returns matches with address fields for doc_read.
doc_query — Semantic search within a document
| Param | Type | Default | Description |
|---|---|---|---|
file | string | — | File path or docid |
query | string | — | Natural language query |
top_k | number | 5 | Max ranked chunks to return |
Returns ranked chunks with address fields. Requires embeddings.
doc_elements — Extract tables, figures, equations
| Param | Type | Description |
|---|---|---|
file | string | File path or docid |
addresses | string[] | Optional: restrict extraction scope |
query | string | Optional: filter by relevance |
element_types | string[] | Filter: "table", "figure", "equation" |
doc_links — Forward/backward link graph
| Param | Type | Default | Description |
|---|---|---|---|
file | string | — | File path or docid |
direction | string | "both" | "forward", "backward", or "both" |
link_type | string | "all" | "wikilink", "markdown", "url", or "all" |
wiki_ingest — Prepare source for wiki processing
| Param | Type | Default | Description |
|---|---|---|---|
source | string | — | Source file path or docid |
wiki_collection | string | auto | Target wiki collection |
force | boolean | false | Force re-ingest even if unchanged |
Returns source content, TOC, related pages, suggestions. Large docs (>50k
chars) are truncated — use doc_read for details.
doc_write — Write a document
| Param | Type | Description |
|---|---|---|
collection | string | Target collection name |
path | string | Relative path (e.g. "concepts/topic.md") |
content | string | Full markdown content |
title | string | Optional: document title |
source | string | Optional: source path for provenance |
Writes to disk and immediately re-indexes. Wiki collections auto-log.
wiki_lint — Health check
| Param | Type | Default | Description |
|---|---|---|---|
collection | string | — | Optional: limit to collection |
stale_days | number | 30 | Days threshold for staleness |
wiki_log — Activity timeline
| Param | Type | Default | Description |
|---|---|---|---|
since | string | — | ISO date filter (e.g. "2025-01-01") |
operation | string | — | Filter: "ingest", "update", "lint", "query", "index" |
limit | number | 20 | Max entries |
format | string | "markdown" | "markdown" or "json" |
wiki_index — Generate index page
| Param | Type | Default | Description |
|---|---|---|---|
collection | string | — | Wiki collection to index |
write | boolean | false | Write index.md to disk |
START
│
├─ "What's indexed?" → status
│
├─ "Find documents about X" → query
│ Next: get (small docs) or doc_toc → doc_read (large docs)
│
├─ "Get this specific file" → get (path or #docid)
│ ⚠ For large docs: use doc_toc + doc_read instead
│
├─ "Get several files" → multi_get (glob or comma-list)
│
├─ "Read section of a large doc" → doc_toc → doc_read
│
├─ "Find keyword in one doc" → doc_grep → doc_read
│
├─ "Conceptual search in one doc" → doc_query → doc_read
│
├─ "Extract tables/figures" → doc_elements
│
├─ "What links to this page?" → doc_links
│
├─ "Build wiki from source" → wiki_ingest → doc_read → doc_write
│
└─ "Check wiki health" → wiki_lint| Problem | Cause | Fix |
|---|---|---|
| "Document not found" | Wrong path or missing collection prefix | Check "Did you mean?" suggestions in error; use status to see collections |
| "No results found" | Query too specific or wrong collection | Try simpler keywords; omit collections to search all; check status |
| "No vector embeddings" warning | Embeddings not generated | Tell the user to run qmd embed (one-time, downloads ~2GB models) |
get returns too much text | Document is large | Use doc_toc → doc_read for targeted sections |
doc_read returns empty | No addresses provided or wrong format | Get addresses from doc_toc, doc_grep, or doc_query first |
| Slow first query (~5-15s) | LLM models loading | Normal for MCP startup; subsequent queries are fast. CLI always reloads. |
| PDF/DOCX/PPTX not working | Missing Python dependencies | Follow Playbook 0 to check and install: python3 -c "import pymupdf; import docx; import pptx", then pip install pymupdf python-docx python-pptx |
| Wiki page has broken links | Target page doesn't exist | Create the missing page with doc_write, or fix the [[wikilink]] |
| Stale wiki pages | Source document updated after wiki page written | Run wiki_lint to detect; re-read source with doc_read and update |
multi_get returns no files | Pattern doesn't match any indexed files | Check exact collection names via status; try broader glob |
qmd status # Index health
qmd query "question" # Hybrid search (recommended)
qmd search "keywords" # BM25 only (fast, no LLM)
qmd get "#abc123" # Get by docid
qmd get "docs/readme.md:100" -l 50 # Line slice
qmd multi-get "journals/2026-*.md" -l 40 # Glob batch
qmd multi-get "a.md, b.md, c.md" # Comma-separated
qmd doc-toc "paper.pdf" # Document TOC
qmd doc-read "paper.pdf" "line:45-120" # Read section
qmd doc-grep "report.md" "revenue" # Search in document
qmd mcp # MCP server (stdio)
qmd mcp --http --daemon # MCP server (HTTP, background)For first-time users, use Playbook 0 above — it walks through the full setup interactively, including dependency checks and configuration.
# Install
npm install -g mineru-document-explorer
# Python dependencies for PDF/DOCX/PPTX (required for binary formats)
pip install pymupdf python-docx python-pptx
# Optional: MinerU Cloud for high-quality PDF (scanned docs, complex layouts)
pip install mineru-open-sdk
export MINERU_API_KEY="your-key" # get from https://mineru.net
# Index documents
qmd collection add ~/notes --name notes
qmd collection add ~/papers --name papers --mask '**/*.{md,pdf,docx,pptx}'
# Verify
qmd status
qmd search "test query" # instant, no model download
# Optional: enable semantic search (downloads ~2GB models on first run)
qmd embedClaude Code (~/.claude/settings.json):
{ "mcpServers": { "qmd": { "command": "qmd", "args": ["mcp"] } } }Cursor (.cursor/mcp.json) — stdio:
{ "mcpServers": { "qmd": { "command": "qmd", "args": ["mcp"] } } }Cursor (.cursor/mcp.json) — HTTP (recommended):
{ "mcpServers": { "qmd": { "url": "http://localhost:8181/mcp" } } }Start daemon first: qmd mcp --http --daemon
qmd skill install # install to current project
qmd skill install --global # install globally© opendatalab, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/mineru-document-explorer of opendatalab/MinerU-Document-Explorer.
Open the folder on GitHubat commit a7e9c6c
Mineru Document Explorer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mineru Document Explorer this skillopendatalab/MinerU-Document-Explorer | 638 | — | ~6.2k | Automated safety check: Notes | MIT | |
| Exam IngestZeKaiNie/universal-examprep-skill | 303 | — | ~5.6k | Automated safety check: Pass | MIT | |
| Knowledge Ingestevolution-foundation/evo-nexus | 545 | — | ~922 | Automated safety check: Pass | Custom licence | |
| MarkitdownImCa0/just-laws | 781 | 14 repos | ~3.2k | Automated safety check: Notes | MIT | |
| GenOffice Document CLIgenspark-ai/genoffice | 8.9k | — | ~19k | Automated safety check: Pass | Apache-2.0 | |
| Docsagentdocsagent/docsagent | 625 | — | ~834 | Automated safety check: Pass | None |
ZeKaiNie/universal-examprep-skill
从学生上传的课件/大纲/老师勾的重点/真题,一键初始化并验证备考工作区:解析 PDF、DOCX、PPTX、 XLSX、常见独立图片与 txt/md,建立分章节 LLM Wiki、标准题库、结构化接管队列与进度状态;仅在 Python 确实无法运行时 明确降级为手动写盘。当工作区尚未建立、资料发生变化、或建库 readiness 被阻断时使用。
evolution-foundation/evo-nexus
Upload a file (PDF, DOCX, PPTX, XLSX, HTML, EPUB, image) or URL to the Knowledge base.
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
genspark-ai/genoffice
Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.
docsagent/docsagent
Search and manage private, local document collections (PDF, PPTX, DOCX) offline.
jimmc414/Kosmos
Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing.
Works with
Categories
MinerU Document Explorer — Agent-native knowledge engine. An agent skill from opendatalab/MinerU-Document-Explorer. Mineru Document Explorer is an agent skill from opendatalab/MinerU-Document-Explorer. MinerU Document Explorer — Agent-native knowledge engine.
Mineru Document Explorer fits situations like: users ask to search their documents; look up information in PDFs/DOCX/PPTX/Markdown; navigate inside large documents; extract tables/figures.
Run `npx skills add opendatalab/MinerU-Document-Explorer --skill mineru-document-explorer -a claude-code`. Or copy the skill folder (skills/mineru-document-explorer in opendatalab/MinerU-Document-Explorer) into .claude/skills/mineru-document-explorer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add opendatalab/MinerU-Document-Explorer --skill mineru-document-explorer -a codex`. Or copy the skill folder (skills/mineru-document-explorer in opendatalab/MinerU-Document-Explorer) into .agents/skills/mineru-document-explorer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add opendatalab/MinerU-Document-Explorer --skill mineru-document-explorer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mineru-document-explorer, .gemini/skills/mineru-document-explorer, .github/skills/mineru-document-explorer and .opencode/skills/mineru-document-explorer in your project.
Going by SKILL.md and its folder, Mineru Document Explorer needs the command-line tools its instructions call (pip, python3, npm, bun, git and brew) and credentials named MINERU_API_KEY and OPENAI_API_KEY. Our summary lists: Python 3; Node.js; A credential in MINERU_API_KEY; A credential in OPENAI_API_KEY. Its frontmatter pre-approves these tools: Bash(qmd:*), mcp__qmd__*, mcp__mineru-document-explorer__*. Compatibility (from SKILL.md): Requires qmd CLI or MCP server. Install via npm (npm install -g mineru-document-explorer) or from source (https://github.com/opendatalab/MinerU-Document-Explorer). PDF/DOCX/PPTX support requires Python 3.10+ with pymupdf, python-docx, python-pptx. .
SKILL.md names 3 domains. In commands or code: mineru.net and api.openai.com; the agent is likely to contact these when it follows the instructions. As links in the text: python.org. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Mineru Document Explorer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 6.2k tokens (SKILL.md is roughly 25k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 954 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Mineru Document Explorer: Exam Ingest (ZeKaiNie/universal-examprep-skill, 303 stars), Knowledge Ingest (evolution-foundation/evo-nexus, 545 stars), Markitdown (ImCa0/just-laws, 781 stars) and GenOffice Document CLI (genspark-ai/genoffice, 8.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
opendatalab (a GitHub organization) maintains it in opendatalab/MinerU-Document-Explorer, which has 638 GitHub stars. The repository was last updated on April 26, 2026.
Source: opendatalab/MinerU-Document-Explorer on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.