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

Teaches an AI assistant to run xberg batch extraction across many documents at once, with shared config, bounded parallelism and per-file overrides. Built for developers processing document corpora.

  • Score 92
  • 9.7k 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/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

The xberg-batch-extraction skill teaches an AI assistant how to extract content from many files in one pass with the xberg batch command. A single shared config applies to every file, and extractions run concurrently. Failures on individual files do not stop the run, and the command returns a JSON envelope with results, timing and errors.

The skill covers the --max-concurrent cap for memory-limited hosts, --file-configs for per-file overrides, and --output-dir for image output. It also describes the extract_batch call in the Python, Node.js and Rust APIs. It is aimed at developers and teams processing directories or globs of documents such as PDF, DOCX and XLSX files. The skill also lists common pitfalls, such as default output format differences and output directories that must already exist.

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 documents and returns a JSON envelope.
  • Shared configApplies one extraction config to every file, including a config file such as xberg.toml.
  • Parallelism controlCaps concurrent extractions with --max-concurrent and total threads with --max-threads.
  • Per-file overridesMerges per-file config objects from a JSON file passed to --file-configs.
  • Error recoveryKeeps processing other files when one input fails and reports failures in errors.
  • Output layoutWrites referenced images to a directory set with --output-dir for text or toon output.
  • Programmatic batch callsShows extract_batch usage in the Python API, with Node.js and Rust equivalents named.
  • MCP extract_batch toolDescribes using the extract_batch tool when the xberg MCP server is registered.

What you need

  • xberg CLI
  • Python, Node.js or Rust for programmatic use
  • xberg MCP server for the extract_batch tool

Try asking

  • Extract all PDFs in ./reports to markdown using xberg batch
  • Run batch extraction on my invoices folder with max concurrency 4
  • Batch extract these files with per-file overrides from overrides.json

Good to know

  • JSON output embeds images inline and ignores --output-dir
  • The output directory must already exist; the CLI does not create it
  • Results are not paired with inputs by position; use the errors field
  • --file-configs keys must match 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: 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.md498 B
  • references/advanced-features.md18 KB
  • references/cli-reference.md12 KB
  • references/configuration.md33 KB
Show all 10 files
  • references/nodejs-api.md13 KB
  • references/other-bindings.md9 KB
  • references/python-api.md31 KB
  • references/rust-api.md12 KB
  • references/supported-formats.md21 KB

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 does xberg batch handle a file that fails?

Batch extraction is fault-tolerant per file, so one unreadable or corrupt document does not stop the rest. Check the errors field and partial content in results.

How do I limit memory use when batching many PDFs?

Set --max-concurrent to cap how many files extract at once. The source notes that OCR or layout models hold buffers for each in-flight extraction.

Does batch output differ from single extract output?

Yes. batch defaults to JSON output, while extract defaults to text. Set --format explicitly if a script depends on one shape.

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 92 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.