crate-structure

crate-structure is a skill for Claude Code, Codex from xberg-io/xberg. It costs 16 tokens per session (1,246 once invoked), scanned A, original, MIT.

A map of the Xberg Rust workspace, where related packages such as the core library, command-line tool, language bindings, and WebAssembly package are developed together.

In plain words
What is it for?
Use it when navigating the repository, adding a workspace member, changing package structure, checking versions, or working across Xberg’s language bindings.
Why use it?
It identifies the source of truth for versions, workspace members, excluded crates, distribution packages, and required ignore-file updates.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when navigating the repository, adding a workspace member, changing package structure, checking versions, or working across Xberg’s language bindings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xberg-io/xberg/crate-structure
About the project

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.

xberg-io/xberg · 9,631 stars · on GitHub · docs.xberg.io

Install

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.

Any agent
npx skills add xberg-io/xberg --skill crate-structure
Clone the repo
git clone --depth 1 https://github.com/xberg-io/xberg

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for crate-structure

README.md
[![agentmods](https://agentmods.dev/badge/skills/xberg-io/xberg/crate-structure/github.svg)](https://agentmods.dev/skills/xberg-io/xberg/crate-structure)
Your own site
<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.

agentmods 80×15 button for crate-structure

Your own site · 80×15
<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>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 215afdeefbf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.ai-rulez/skills/crate-structure/SKILL.md · 77 lines

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 server
  • xberg-cli — CLI binary. Defines no cli feature of its own; its core-cli feature is what forwards to the core xberg/cli
  • xberg-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 backing packages/kotlin-android. The Java package does not go through this: alef.toml [crates.java] sets ffi_style = "panama", i.e. Panama FFM over xberg-ffi
  • xberg-node — NAPI-RS Node.js/TypeScript bindings
  • xberg-py — PyO3 Python bindings
  • xberg-php — ext-php-rs PHP bindings
  • xberg-wasm — wasm-bindgen WASM bindings; wasm-target feature set
  • xberg-native-pdf — pure-Rust PDF engine, vendored into this workspace. Path dependency with no package = alias, so the extern crate name is xberg_native_pdf. Exports LOG_TARGET_ROOT = module_path!(); derive log-target filters from that constant, never a string literal
  • xberg-pdfium-render — pdfium FFI backend behind the pdf-pdfium feature. Aliased: pdfium-render = { package = "xberg-pdfium-render", … }, so call sites still write pdfium_render::
  • xberg-paddle-ocr — PaddleOCR; ORT and tract engines. On WASM only the PaddleOCR config types are available (they compile in every build), but paddle-ocr is in windows-target
  • xberg-tesseract — Tesseract OCR bindings
  • xberg-candle-ocr — candle VLM OCR backends (TrOCR, PaddleOCR-VL, GLM-OCR, DeepSeek-OCR)
  • xberg-gliner — GLiNER NER inference
  • xberg-libheif — libheif bindings for HEIC/HEIF
  • xberg-libwpd — libwpd bindings for WordPerfect (.wpd)

Two members live outside crates/: packages/dart/rust and packages/swift/rust.

Read the full file on GitHub · 77 lines

Files

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.

Changes

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.

  1. 1mo ago Changed · -14 tokens per session 215afdeefbf5
  2. 1mo ago Changed dc306d87a856
  3. 1mo ago Changed · -15 tokens per session fb3131ed5eff
  4. 1mo ago Changed · -34 tokens per session d2c66b8de23f
  5. 1mo ago Changed · +6 lines · -4 tokens per session dae23f950ef9
  6. 1mo ago Changed 5b47e934b11d
  7. 3mo ago First seen · 71 lines · 83 tokens per session scan A e9eac41ed59f

Subscribe to this mod's changes

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.

Related

crate-structure compared with skills from other repositories

crate-structure next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
crate-structurexberg-io/xbergSkill9.6ktodayMITA16Claude Code, Codex
first-readerShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A174Claude Code, Codex
mcp-apps-builderShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A139Claude Code, Codex
project-graveyardShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A127Claude Code, Codex
commit-archaeologistShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A82Claude Code, Codex
dependency-doctorShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A115Claude Code, Codex
scope-creep-detectorShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A98Claude Code, Codex