xberg-batch-extraction
Skill by xberg-io
Guides an AI assistant through batch document extraction with the xberg CLI. It covers shared config, bounded parallelism, per-file overrides and error recovery for large document sets.
Install xberg-batch-extraction
Built from the published package, never by AI.
git clone --depth 1 https://github.com/xberg-io/xberg /tmp/xberg && mkdir -p ~/.claude/skills && cp -r /tmp/xberg/plugin/.ai-rulez/skills/xberg-batch-extraction ~/.claude/skills/xberg-batch-extractionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/xberg-io/xberg /tmp/xberg && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/xberg/plugin/.ai-rulez/skills/xberg-batch-extraction ~/.gemini/antigravity-cli/skills/xberg-batch-extractionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install xberg-batch-extraction in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill explains how to use the xberg batch command to extract many documents in one pass. It shares one extraction config across every file, runs extractions concurrently, and returns a JSON envelope by default. Failures on individual files do not stop the run, and errors are listed separately.
The skill covers bounded parallelism with --max-concurrent and --max-threads, per-file overrides through --file-configs, and the output layout for extracted image files. It also shows the Python extract_batch call and the equivalent Node.js and Rust functions. It is written for developers and data teams who process directories or globs of PDFs, DOCX, XLSX and PPTX files, and for users of the xberg MCP server.
Written from the project's SKILL.md and checked against it.
What it can do
- Batch extractionRuns xberg batch over a glob or list of files with one shared extraction config.
- Concurrency limitsCaps simultaneous extractions with --max-concurrent and total threads with --max-threads.
- Per-file overridesApplies individual config objects to specific files through a --file-configs JSON file.
- Output layoutWrites referenced image files to a chosen directory for text or toon output.
- Error recoveryKeeps processing other files when one file is unreadable or corrupt, and reports errors.
- Programmatic accessCalls extract_batch from Python, extractBatch from Node.js, or extract_batch from Rust.
- extract_batch toolUses the extract_batch MCP tool when the xberg MCP server is registered.
What you need
- xberg command-line tool
- Python, for the extract_batch example
- Node.js, for the extractBatch example
- Rust, for the extract_batch example
Try asking
- Extract all PDFs in this folder to markdown using xberg batch.
- Run batch extraction on these files with a cap of 4 concurrent extractions.
- Use per-file overrides to force OCR on scan.pdf but not on report.pdf.
Good to know
- batch defaults to JSON output, while extract defaults to text.
- The --output-dir directory must already exist; the CLI does not create it.
- Large batches with OCR or layout enabled may need an explicit --max-concurrent limit.
- --file-configs keys must match the paths as passed on the command line.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugin/.ai-rulez/skills/xberg-batch-extraction/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
index.md255 B
Alternatives to xberg-batch-extraction
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
xberg-batch-extraction: common questions
How do I process many documents at once with xberg?
Use the xberg batch command with a glob or a list of files. It applies one shared config and runs extractions concurrently.
What happens if one file in a batch fails?
The batch keeps going. Per-file failures are listed in the errors field of the JSON envelope, so check results and errors rather than only the exit code.
How do I set different options for some files in a batch?
Pass a JSON file with --file-configs that maps each file path to its own override object. Those options merge on top of the shared config for that file only.
How do I install xberg-batch-extraction?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is xberg-batch-extraction free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is xberg-batch-extraction safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to xberg-batch-extraction?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
