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.
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-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/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
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
ANo 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 →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 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.
