xberg
Skill by xberg-io
Guides writing code that extracts text, tables, metadata, and images from 107 document formats using Xberg. Built for developers working 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/plugin/.ai-rulez/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/plugin/.ai-rulez/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
Xberg is a document extraction library with a Rust core and bindings for Python, TypeScript/Node.js, Ruby, PHP, Go, Java, C#, Elixir, WebAssembly, Dart, Kotlin Android, Swift, Zig, and C. It extracts text, tables, metadata, and images from 107 document formats, including PDF, Office documents, images, HTML, email, archives, and academic formats. This skill covers installation, extraction, configuration, batch processing, error handling, and plugins.
The skill helps an assistant write code that calls Xberg APIs in Python, Node.js/TypeScript, Rust, or the CLI. Extraction uses extract and extract_batch functions that return a result envelope with per-document fields. OCR runs automatically for images and scanned PDFs, with Tesseract as the default backend. It is aimed at developers who need structured content from mixed document collections.
Written from the project's SKILL.md and checked against it.
What it can do
- Document extractionExtracts text, tables, metadata, and images from 107 document formats.
- OCRRuns OCR on images and scanned PDFs, with Tesseract as the default backend.
- Batch processingProcesses multiple files with extract_batch and reports per-input errors.
- ConfigurationSets OCR, chunking, output format, and PDF password options.
- 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
- Tesseract is built in as the default OCR backend
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 extract_batch
- Configure Xberg OCR with English and German for scanned PDFs
Good to know
- Python and Node.js bindings are async-only
- The Node binding throws plain Error objects, not typed error subclasses
- The single-string language shorthand is not accepted in the OcrConfig constructor
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugin/.ai-rulez/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.md399 B
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 file 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 OCR backends are available?
Tesseract is the default native backend. The source also lists PaddleOCR, an ONNX-based option, and a Vision-Language-Model backend configured through vlm_config.
How does Xberg report errors in batch jobs?
Per-input failures in extract_batch are reported in result.errors with an input index, so one failed file does not stop the rest.
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 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?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
