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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.00016 | $0.01246 |
| Opus 5.5 | $0.00006 | $0.00498 |
| Sonnet 5.5 | $0.00003 | $0.00249 |
| Haiku 4.5 | $0.00002 | $0.00125 |
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 1mo 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 — 77 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 only the PaddleOCR config types are available (they compile in every build), 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.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed · -14 tokens per session 215afdeefbf5
- 1mo ago Changed dc306d87a856
- 1mo ago Changed · -15 tokens per session fb3131ed5eff
- 1mo ago Changed · -34 tokens per session d2c66b8de23f
- 1mo ago Changed · +6 lines · -4 tokens per session dae23f950ef9
- 1mo ago Changed 5b47e934b11d
- 3mo 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,631 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 1,246 once invoked, about $0.0001 per session on Opus 5.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.
crate-structure compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| crate-structurexberg-io/xberg | Skill | 9.6k | today | MIT | A | 16 | Claude Code, Codex |
| first-readerShubhamsaboo/awesome-llm-apps | Skill | 146k | today | Apache-2.0 | A | 174 | Claude Code, Codex |
| mcp-apps-builderShubhamsaboo/awesome-llm-apps | Skill | 146k | today | Apache-2.0 | A | 139 | Claude Code, Codex |
| project-graveyardShubhamsaboo/awesome-llm-apps | Skill | 146k | today | Apache-2.0 | A | 127 | Claude Code, Codex |
| commit-archaeologistShubhamsaboo/awesome-llm-apps | Skill | 146k | today | Apache-2.0 | A | 82 | Claude Code, Codex |
| dependency-doctorShubhamsaboo/awesome-llm-apps | Skill | 146k | today | Apache-2.0 | A | 115 | Claude Code, Codex |
| scope-creep-detectorShubhamsaboo/awesome-llm-apps | Skill | 146k | today | Apache-2.0 | A | 98 | Claude Code, Codex |