xberg
Skill by xberg-io
Xberg extracts text, tables, metadata, and images from 107 document formats. It is a guide for developers writing code that calls Xberg APIs in Python, Node.js/TypeScript, Rust, or the CLI.
Install xberg
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 ~/.claude/skills/xbergRun 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 ~/.gemini/antigravity-cli/skills/xbergAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant the reference it needs to write code with Xberg, a document intelligence library with a Rust core and bindings for several languages. It covers extraction from 107 formats, including PDF, Office documents, images, HTML, email, archives, and academic files. It explains the extract and extract_batch entry points and the result envelope that holds each document's content, tables, and metadata.
The skill also covers installation with pip, npm, cargo, and Homebrew, plus configuration for OCR, chunking, and output format. It describes OCR backends, batch processing, error handling, and plugins. It is intended for developers who want their code or assistant to call Xberg APIs correctly.
Written from the project's SKILL.md and checked against it.
What it can do
- Text and metadata extractionExtracts text, tables, metadata, and images from 107 document formats.
- Batch processingRuns extract_batch on a list of inputs and reports per-input errors.
- OCR configurationRuns OCR on images and scanned PDFs, with Tesseract as the default backend.
- Extraction configurationSets output format, chunking, OCR, and PDF password options in code or TOML.
- Error handlingShows how to catch extraction errors in Python, Node.js, and Rust.
- PluginsExplains how to implement custom post-processors, validators, and OCR backends.
What you need
- Python, Node.js, Rust, or the Xberg CLI, depending on the binding used
- pip, npm, or cargo to install the library
- Homebrew or a prebuilt binary to install the CLI
Try asking
- Write Python code that extracts text and tables from a PDF with Xberg
- Show me how to batch process a folder of DOCX files with Xberg in Node.js
- Configure Xberg OCR with English and German for a scanned PDF
Good to know
- Python and Node.js bindings are async-only.
- The Node.js binding throws plain Error objects and does not export typed error subclasses.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/xberg/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md18 KB -
index.md642 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
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: common questions
Which document formats does Xberg support?
The source says Xberg extracts from 107 formats across 140 file extensions, including PDF, Office documents, images, HTML, email, archives, and academic formats.
Which languages can I use with Xberg?
The source lists bindings for Python, TypeScript/Node.js, Rust, and the CLI in its usage guidance, plus other languages such as Ruby, Go, Java, and WebAssembly in its overview.
Does Xberg need an external OCR install?
The source says Tesseract is the default OCR backend and is a native binding that requires no external install.
How do I install xberg?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is xberg free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is xberg safe to use?
It scores 94 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?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
