xberg-extracting-with-ocr
Skill by xberg-io
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Install xberg-extracting-with-ocr
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-extracting-with-ocr ~/.claude/skills/xberg-extracting-with-ocrRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install xberg-extracting-with-ocr in Claude Code
git clone --depth 1 https://github.com/xberg-io/xberg /tmp/xberg && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/xberg/skills/xberg-extracting-with-ocr ~/.gemini/antigravity-cli/skills/xberg-extracting-with-ocrAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install xberg-extracting-with-ocr in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill explains how to use the Xberg CLI to extract text from image-based documents. These include scanned PDFs, photographed pages, screenshots, and JPEG, PNG or TIFF images. Xberg auto-OCRs raster images and detects PDFs that lack a text layer. The skill describes when to force OCR, how to choose between Tesseract, PaddleOCR, Candle vision models and hosted VLM backends, and how to set language packs with ISO 639-2 codes.
The skill also covers useful flags, batch processing with xberg batch, caching, DPI and auto-rotate tuning, and an xberg.toml config file option. It lists common failure modes, such as missing tessdata and empty content from scanned PDFs. It suits people who run Xberg to turn scanned or image-only files into text.
Written from the project's SKILL.md and checked against it.
What it can do
- Force OCRRuns OCR on every page when a PDF text layer is unreliable or garbled.
- Backend selectionChooses between Tesseract, PaddleOCR, Candle VLM and hosted VLM OCR backends.
- Language packsCombines ISO 639-2 language codes with plus signs or uses all installed packs.
- Batch OCRRuns xberg batch with an internal worker pool across CPU cores.
- Performance tuningAdjusts target DPI, auto-rotate, caching and acceleration settings.
- Config fileSets OCR options in an xberg.toml file discovered from the working directory upward.
- Failure troubleshootingExplains fixes for missing tessdata, empty content and rotated pages.
What you need
- Xberg CLI
- Tesseract language packs for languages other than eng, installed at OS level
- liter-llm provider and API key for the hosted VLM backend
Try asking
- Run OCR on this scanned PDF and return the text.
- Extract text from this photo using English and German OCR.
- Batch OCR all PDFs in this folder with force OCR turned on.
Good to know
- PaddleOCR is not available on WASM or Windows.
- The hosted VLM backend requires a liter-llm provider and API key.
- Higher DPI makes OCR slower, so 200 is often enough for printed text.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/xberg-extracting-with-ocr/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
index.md471 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-extracting-with-ocr
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.
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.
Creates, reads, edits and converts Word .docx and .dotx files. It is for users who need Word documents as deliverables, edits, templates or tracked changes.
Compare with obsidian-clipper-template-creator, harness-creator or file-edit-in-place
xberg-extracting-with-ocr: common questions
When should I force OCR on a PDF?
Force OCR when extraction returns empty content from a file that opens visually, or when the PDF text layer is garbled. The source says --force-ocr re-rasterizes and runs OCR on every page.
Which OCR backend should I use?
Tesseract is the default and ships with the CLI. The source advises switching to another backend only when Tesseract accuracy is unacceptable.
Do I need extra files for other languages?
Tesseract's default language is eng. Other languages need their language packs installed at OS level, and Xberg fails with an error that names the missing file.
How do I install xberg-extracting-with-ocr?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is xberg-extracting-with-ocr free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is xberg-extracting-with-ocr 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-extracting-with-ocr?
Similar skills: obsidian-clipper-template-creator, harness-creator, file-edit-in-place, nature-polishing.
