opendatalab/omnidocbench/skills
Claude Code and agent skill by opendatalab/omnidocbench
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Help users deploy, validate, run, and parse OmniDocBench evaluations. Use this skill whenever the user mentions OmniDocBench, document parsing/OCR benchmark scoring, MinerU or other model evaluation on OmniDocBench, CDM formula metrics, end2end/md2md configs, Docker/conda deployment, remote SSH/H-cluster execution, result JSON parsing, or troubleshooting TeX Live/ImageMagick/Ghostscript/Docker/worker/OOM issues. Prefer Docker first, generate concrete commands from the user's paths, validate inputs before running, and report final Overall/Text/Formula/Table/Reading-order scores with result file paths.
Install
npx vskill@latest install opendatalab/omnidocbench/skillsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as opendatalab/omnidocbench/skills.
OmniDocBench evaluation helper
Help community users run OmniDocBench reproducibly. Prefer a practical, path-specific workflow over generic setup advice:
- Validate GT/prediction paths and runtime access.
- Generate an isolated config using stable container paths.
- Run
python pdf_validation.py --config ...in Docker when possible. - Parse
*_metric_result.json,*_run_summary.json,*_stage_execution.json, and*_runtime_environment.json. - Report scores, output paths, and any warnings that affect score credibility.
Be concise for simple questions, but include copy-paste commands when the user gives paths.
What to ask for
Ask only for missing details that affect commands or config:
- Deployment mode: Docker, conda/source, or remote SSH. Recommend Docker when CDM is needed.
- Evaluation type: default to
end2endfor OmniDocBench JSON + page markdown predictions. - Paths:
- ground-truth JSON, commonly
OmniDocBench.jsonwith exact capitalization on Linux - prediction markdown directory, often a nested
markdown/folder such as.../mineru/markdown - output directory, or permission to create a timestamped output directory
- Whether CDM is required.
- CPU/RAM or node size if the user mentions slowness, OOM, or cluster execution.
If the user explicitly asks you to run a job on a remote host and provides an SSH command, treat that as authorization for that host/path scope. Avoid destructive operations: do not delete, overwrite, or chmod shared data/results.
Key facts
- Entrypoint:
python pdf_validation.py --config <config_path>. - Default config:
configs/end2end.yaml. - Package:
omnidocbench-eval, Python>=3.10,<3.12. - Recommended Docker image:
ghcr.io/zeng-weijun/omnidocbench-eval:repro-ubuntu2204. - CDM depends on TeX Live/CJK, ImageMagick PDF read/write, and Ghostscript. Docker avoids most CDM dependency failures.
- Worker keys:
dataset.match_workers: page matchingmetrics.display_formula.cdm_workers: CDM rendering/comparison, memory-heavymetrics.table.teds_workers: table TEDS- Worker rule: on 4 CPU / 8 GB, use
2for match/CDM/TEDS; if unstable, use1. Do not keep README default13on small nodes.
Input validation before running
Always validate before launching a long Docker evaluation. For remote runs, execute this on the remote host via SSH.
Interpretation:
- Full OmniDocBench v1.6 has 1651 pages.
md_countshould usually be close to 1651 for a full run. md_count=0usually means the user passed a parent directory instead of the actualmarkdown/directory.empty_md > 0is not fatal, but report it because empty predictions lower scores.- Linux paths are case-sensitive:
OmniDocBench.jsonandomnidocbench.jsondiffer. If GT is missing, check nearby JSON filenames before concluding the data is absent.
Docker workflow
Use Docker when possible, especially for CDM.
Check Docker access
Use sudo -n docker only when the user is authorized on that host. Do not try interactive sudo in an automated workflow.
Local end2end command
Use stable container paths and write a custom config inside the container. This avoids editing the repository and keeps host paths out of YAML.
If CDM is not needed, remove CDM from display_formula.metric and remove cdm_workers. This avoids TeX/ImageMagick/Ghostscript dependency failures, but the final report will not include Formula CDM.
Remote SSH / H-cluster workflow
When the user provides an SSH command, run the same validation and Docker workflow on the remote host. Use a heredoc remote script to avoid nested quoting bugs.
Practical H-cluster lessons from a real MinerU v1.6 run:
ssh -CAXYmay print X11 warnings such asNo xauth data; they are harmless for CLI evaluation.- Docker may be installed but inaccessible through the daemon socket. Check
docker ps; if it fails andsudo -n docker psworks, usesudo -n dockerfor the run. - Record the output directory in
/tmp/omnidocbench_latest_out.txtor a user-specific variant so it can be recovered after disconnection. - GT capitalization matters:
/.../OmniDocBench.jsonworked where lowercaseomnidocbench.jsondid not. - MinerU predictions may live in a nested
markdown/directory. Passing the parent directory can produce zero or inflated markdown counts. - For 4CPU/8G with CDM, start with workers
2; use1if unstable.
Bundled helper scripts
This skill includes scripts that can be copied into the repo or run from the skill directory:
scripts/generate_end2end_config.py: generate an end2end YAML.scripts/parse_results.py: parse a result directory and print a compact score/validation report.
Example:
Use --no-cdm with generate_end2end_config.py to omit CDM and cdm_workers.
Conda/source workflow
Use only when Docker is unavailable or the user needs to modify OmniDocBench code.
For CDM in source installs, verify:
If ImageMagick blocks PDF read/write, adjust the ImageMagick 7 policy.xml. Prefer Docker instead when possible.
Config guidance
End2end
Use dataset_name: end2end_dataset, OmniDocBench JSON as ground_truth.data_path, and page-level markdown files as prediction.data_path. Use match_method: quick_match unless the user has a specific reason not to.
Prediction filenames should correspond to page image names with .jpg/.png replaced by .md. Some code paths also accept .mmd, but .md is the community-standard expectation.
md2md
Use md2md when both ground truth and prediction are markdown directories:
page_info enables page-level attributes and filtering.
Single-module recognition and detection
For formula/text/table recognition, the JSON usually contains both ground-truth and prediction fields; set prediction.data_key to the model field such as pred.
For layout/formula detection, ask for prediction JSON box schema and category names before writing pred_cat_mapping.
Result parsing and validation
After a successful run, list result files. Key files usually include:
*_metric_result.json: raw metric data and attribute breakdowns*_run_summary.json: notebook-style summary andoverall_notebook*_stage_execution.json: page count, worker counts, timeout/error/exception counts*_runtime_environment.json: Python/system/TeX/ImageMagick/Ghostscript detailseval.log: full console log
Extract and report these fields:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/SKILL.md
Popularity
- Repository stars
- 1,901
- Repository forks
- 187
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Jul 2026, 4 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opendatalab/omnidocbench/skills)