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 plugin-architecture-patternsgit 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/plugin-architecture-patterns)<a href="https://agentmods.dev/skills/xberg-io/xberg/plugin-architecture-patterns"><img src="https://agentmods.dev/badge/skills/xberg-io/xberg/plugin-architecture-patterns/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/plugin-architecture-patterns"><img src="https://agentmods.dev/badge/skills/xberg-io/xberg/plugin-architecture-patterns.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.00015 | $0.01733 |
| Opus 5.5 | $0.00006 | $0.00693 |
| Sonnet 5.5 | $0.00003 | $0.00347 |
| Haiku 4.5 | $0.00002 | $0.00173 |
Grade A, and why
plugin-architecture-patterns 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 — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Plugin Architecture & Registration
Plugin Types
| Type | Trait | Location |
|---|---|---|
| Document extractor (binding-facing) | DocumentExtractor: Plugin |
plugins/extractor/trait.rs |
| Document extractor (in-crate) | InternalDocumentExtractor: Plugin |
plugins/extractor/trait.rs |
| OCR backend | OcrBackend: Plugin |
plugins/ocr.rs (a file, not a directory) |
| Post processor | PostProcessor: Plugin |
plugins/processor/trait.rs |
| Validator | Validator: Plugin |
plugins/validator/trait.rs |
| Embedding backend | EmbeddingBackend: Plugin |
plugins/embedding.rs |
| Reranker backend | RerankerBackend: Plugin |
plugins/reranker.rs |
| Tokenizer backend | TokenizerBackend: Plugin |
plugins/tokenizer.rs |
| Renderer | Renderer: Plugin |
plugins/renderer.rs |
Plugin (plugins/traits.rs) is Send + Sync and requires name(); version(),
initialize(), shutdown(), description(), and author() have defaults. There is no
'static trait bound; registry-owned Arc<dyn Trait> supplies the necessary lifetime.
Native Rust extractors implement InternalDocumentExtractor
DocumentExtractor is the binding-facing surface. In-crate extractors implement
InternalDocumentExtractor and get DocumentExtractor from a blanket impl. Implementing
DocumentExtractor directly in this crate is the wrong layer.
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
impl InternalDocumentExtractor for MyExtractor {
async fn extract_content(&self, content: &[u8], mime_type: &str, config: &ExtractionConfig)
-> Result<InternalDocument> { /* ... */ }
fn supported_mime_types(&self) -> &[&str] { &["application/x-custom"] }
fn priority(&self) -> i32 { 50 }
}
extract_path has a default that reads the file and delegates to extract_content (and
errors without tokio-runtime).
Always use the two-arm cfg_attr form for async_trait. A bare #[async_trait] does not
match the trait declaration on wasm32.
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 9ebce34ea296
- 1mo ago Changed · -11 tokens per session b7b3bf97c0a0
- 1mo ago Changed · +3 lines · -3 tokens per session c3b5b2a3b25e
- 1mo ago Changed · +3 lines · -6 tokens per session bb54288bcc79
- 3mo ago First seen · 156 lines · 49 tokens per session scan A 071a1f84b43e
plugin-architecture-patterns is a skill published in the GitHub repository xberg-io/xberg (9,652 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 1,733 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.
plugin-architecture-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| plugin-architecture-patternsxberg-io/xberg | Skill | 9.7k | today | MIT | A | 15 | Claude Code |
| mcp-apps-builderShubhamsaboo/awesome-llm-apps | Skill | 147k | today | Apache-2.0 | A | 139 | Claude Code, Codex |
| idapythonmrexodia/ida-pro-mcp | Skill | 14k | yesterday | MIT | A | 77 | Claude Code |
| stack-trace-python-probeopensquilla/opensquilla | Skill | 7.2k | 6d ago | Apache-2.0 | A | 40 | Claude Code |
| python-debug-execution-911f17HKUDS/OpenSpace | Skill | 8.1k | 20d ago | MIT | A | 23 | Claude Code, Codex |
| memory-optimizationbenchflow-ai/skillsbench | Skill | 1.9k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| scenario-3dsmax-scriptingscenario-labs/skills | Skill | 4.5k | 2d ago | MIT | A | 188 | Claude Code |