Xberg is a document-intelligence engine that reads files, URLs, archives, and source trees and extracts text, metadata, images, tables, and structured data, with additional code-language understanding. Developers use it through language bindings, a command-line tool, REST API, or MCP server, and the catalogue entries support those integrations.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add xberg-io/xberg --skill crate-structuregit clone --depth 1 https://github.com/xberg-io/xbergWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xberg-io/xberg/crate-structure)<a href="https://agentmods.dev/skills/xberg-io/xberg/crate-structure"><img src="https://agentmods.dev/badge/skills/xberg-io/xberg/crate-structure.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.01271 |
| Opus 5 | $0.00042 | $0.00635 |
| Sonnet 5 | $0.00017 | $0.00254 |
| Haiku 4.5 | $0.00008 | $0.00127 |
Grade A, and why
crate-structure scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Crate Structure
Version source of truth: root Cargo.toml [workspace.package] version.
Workspace members (crates/)
xberg— core library: extraction engine, MIME detection, plugin system, OCR, chunking, embeddings, API/MCP serverxberg-cli— CLI binary. Defines noclifeature of its own; itscore-clifeature is what forwards to the corexberg/clixberg-ffi— C FFI layer; opaque handles, cbindgen headers. Consumed by Go (cgo), C# (P/Invoke), Zig (C ABI), Swift (swift-bridge shim, which injects the dependency itself) and Java (Panama FFM)xberg-jni— JNI bindings backingpackages/kotlin-android. The Java package does not go through this:alef.toml [crates.java]setsffi_style = "panama", i.e. Panama FFM overxberg-ffixberg-node— NAPI-RS Node.js/TypeScript bindingsxberg-py— PyO3 Python bindingsxberg-php— ext-php-rs PHP bindingsxberg-wasm— wasm-bindgen WASM bindings;wasm-targetfeature setxberg-native-pdf— pure-Rust PDF engine, vendored into this workspace. Path dependency with nopackage =alias, so the extern crate name isxberg_native_pdf. ExportsLOG_TARGET_ROOT = module_path!(); derive log-target filters from that constant, never a string literalxberg-pdfium-render— pdfium FFI backend behind thepdf-pdfiumfeature. Aliased:pdfium-render = { package = "xberg-pdfium-render", … }, so call sites still writepdfium_render::xberg-paddle-ocr— PaddleOCR; ORT and tract engines. On WASM onlypaddle-ocr-typesis available, butpaddle-ocris inwindows-targetxberg-tesseract— Tesseract OCR bindingsxberg-candle-ocr— candle VLM OCR backends (TrOCR, PaddleOCR-VL, GLM-OCR, DeepSeek-OCR)xberg-gliner— GLiNER NER inferencexberg-libheif— libheif bindings for HEIC/HEIFxberg-libwpd— libwpd bindings for WordPerfect (.wpd)
Two members live outside crates/: packages/dart/rust and packages/swift/rust.
excluded — not members, and invisible to cargo check --workspace:
e2e/rust, packages/elixir/native/xberg_nif, packages/ruby/ext/xberg_rb.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 71 lines · 83 tokens per session scan A e9eac41ed59f
crate-structure is a skill published in the GitHub repository xberg-io/xberg (9,275 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 1,271 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
doc-reader
PDF/DOCX/XLSX/image document intelligence — text extraction, table parsing, OCR, financial statement analysis, contract clause detection, document classification, and format conversion. Use when reading, analyzing, extracting data from, or converting documents.
schema-exploration
Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.
matlab
Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
pennylane
Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…
mine
Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.
mem0-oss-to-platform
Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…