Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 90
  • 9.6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-extraction

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install xberg-batch-extraction in Claude Code

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

A

No 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 →

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.

xberg-batch-extraction Install

Add to stack

Loading.