AI Coding Assistants
Get your AI coding assistant writing correct Xberg code on the first try — right function signatures, right config field names, right per-language conventions — instead of hallucinated APIs you have to fix.
The Xberg plugin teaches your assistant how to use the library, covering extraction, configuration, OCR, chunking, embeddings, batch processing, error handling, and plugins across Python, Node.js/TypeScript, Rust, and CLI.
Installing
Section titled “Installing”Install the Xberg plugin from the xberg-io/xberg marketplace. It ships the Xberg agent skills (extraction APIs, OCR backends, configuration, language conventions) and works with every major coding agent — expand your harness below.
Claude Code
/plugin marketplace add xberg-io/xberg/plugin install xberg@xbergCodex CLI
/plugins add https://github.com/xberg-io/xbergThen search for xberg and select Install Plugin.
Cursor
Settings → Plugins → Add from URL → https://github.com/xberg-io/xberg, then select Xberg.
Gemini CLI
gemini extensions install https://github.com/xberg-io/xbergFactory Droid
droid plugin marketplace add https://github.com/xberg-io/xbergdroid plugin install xberg@xbergGitHub Copilot CLI
copilot plugin marketplace add https://github.com/xberg-io/xbergcopilot plugin install xberg@xbergopencode
Add the package to opencode.json:
{ "$schema": "https://opencode.ai/config.json", "plugin": ["@xberg-io/opencode-xberg"]}What the Skill Provides
Section titled “What the Skill Provides”When your AI coding assistant discovers the skill, it knows:
- All extraction functions and their correct signatures across languages
- Configuration field names (for example,
max_charsnotmax_charactersin Python) - Rust feature gates (for example,
tokio-runtimefor sync functions) - Language-specific conventions (snake_case in Python/Rust, camelCase in Node.js)
- Error handling patterns for each language
Quick Examples
Section titled “Quick Examples”from xberg import ExtractInput, ExtractionConfig, OcrConfig, extract
output = await extract(ExtractInput(kind="uri", uri="document.pdf"))print(output.results[0].content)
config = ExtractionConfig( ocr=OcrConfig(backend="tesseract", language="eng"), output_format="markdown",)output = await extract(ExtractInput(kind="uri", uri="document.pdf"), config=config)import { ExtractInputKind, extract } from '@xberg-io/xberg';
const output = await extract({ kind: ExtractInputKind.Uri, uri: 'document.pdf',});console.log(output.results[0].content);use xberg::{extract, ExtractInput, ExtractionConfig};
let config = ExtractionConfig::default();let output = extract(ExtractInput::from_uri("document.pdf"), &config).await?;xberg extract document.pdfxberg extract document.pdf --format json --output-format markdownFurther Reading
Section titled “Further Reading”- Plugin marketplace — install the plugin in every supported harness
- Extraction Basics — core extraction API
- Configuration — all configuration options
- Chunking — split text for RAG
- Embeddings — semantic vectors for search
- Language Detection — multilingual document analysis
- Plugin System — custom plugins