extraction-pipeline-patterns

extraction-pipeline-patterns is a skill for Claude Code from xberg-io/xberg. It costs 13 tokens per session (1,854 once invoked), scanned A, original, MIT.

A guide to Xberg’s shared document-extraction pipeline, which detects file types, chooses an extractor, processes the result, and handles caching and concurrency.

In plain words
What is it for?
Use it for extraction routing, cache behavior, fallback extractors, post-processing, concurrency defaults, and quality rules shared across formats.
Why use it?
It helps developers change or diagnose behavior that affects many file formats at once, instead of treating each parser as an isolated component.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit Use it for extraction routing, cache behavior, fallback extractors, post-processing, concurrency defaults, and quality rules shared across formats.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xberg-io/xberg/extraction-pipeline-patterns
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 extraction-pipeline-patterns
Clone the repo
git clone --depth 1 https://github.com/xberg-io/xberg

Made for: Claude Code.

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 extraction-pipeline-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/xberg-io/xberg/extraction-pipeline-patterns/github.svg)](https://agentmods.dev/skills/xberg-io/xberg/extraction-pipeline-patterns)
Your own site
<a href="https://agentmods.dev/skills/xberg-io/xberg/extraction-pipeline-patterns"><img src="https://agentmods.dev/badge/skills/xberg-io/xberg/extraction-pipeline-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.

agentmods 80×15 button for extraction-pipeline-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/xberg-io/xberg/extraction-pipeline-patterns"><img src="https://agentmods.dev/badge/skills/xberg-io/xberg/extraction-pipeline-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,854 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.00013 $0.01854
Opus 5.5 $0.00005 $0.00742
Sonnet 5.5 $0.00003 $0.00371
Haiku 4.5 $0.00001 $0.00185

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

Security

Grade A, and why

extraction-pipeline-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.

.ai-rulez/skills/extraction-pipeline-patterns/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Extraction Pipeline Patterns

Format detection → extractor routing → post-processing over the FORMATS registry

The full-registry counts are verified against published claims by scripts/sync_supported_counts.py verify. Runtime SUPPORTED_FORMAT_COUNT and SUPPORTED_EXTENSION_COUNT values are derived from the full static FORMATS registry.

Layout

  • crates/xberg/src/core/pipeline/ — orchestration (mod.rs, cache.rs, execution.rs, features.rs, format.rs, initialization.rs, page_markers.rs)
  • crates/xberg/src/core/mime.rs, core/formats.rs — detection and the FORMATS registry
  • crates/xberg/src/extractors/ — one module per format, each implementing InternalDocumentExtractor
  • crates/xberg/src/extraction/ — shared parsing/rendering helpers used by those extractors
  • crates/xberg/src/core/config/, core/config_validation/ — both directories, not files

Flow

  1. Detect — MIME from extension via EXT_TO_MIME, or from bytes via detect_mime_type_from_bytes; validate against SUPPORTED_MIME_TYPES.
  2. Route — registry returns the highest-priority() extractor registered for that MIME.
  3. Extract — the extractor produces an InternalDocument.
  4. Post-process — core::pipeline::run_pipeline(doc, config) (async) or run_pipeline_sync (WASM) runs validators, quality processing, chunking and hooks, and returns ExtractedDocument. Every extraction path goes through it.

Extractor modules

  • Office: DOCX, PPTX, PPT, DOC, XLSX/XLS, ODT, ODP, iWork, HWP/HWPX, and WordPerfect under extractors/{docx,pptx,ppt,doc,excel,odt,odp,hwp,hwpx,wordperfect}.rs and extractors/iwork/.
  • Markup: Markdown, text, RST, Org, RTF, AsciiDoc, Typst, and Djot under extractors/{markdown,text,rst,orgmode,asciidoc,typst}.rs and extractors/{rtf,djot_format}/.
  • Academic: LaTeX, BibTeX, JATS, Jupyter, DocBook, EPUB, and FictionBook under extractors/{bibtex,jupyter,docbook,fictionbook}.rs and extractors/{latex,jats,epub}/.
  • PDF: text, encrypted-document, and OCR-fallback handling under extractors/pdf/.
  • Images: PNG, JPEG, TIFF, WebP, HEIC, SVG, and QR under extractors/ and extraction/.
  • Web: HTML, XHTML, XML, and MDX under extractors/ and extraction/html/.
  • Email: EML, MSG, and PST under extractors/ and extraction/email/.
  • Archives: ZIP, TAR, GZIP, and 7z under extractors/archive.rs and extraction/archive/.
  • Structured: JSON, GeoJSON, YAML, TOML, CSV, DBF, SQLite, and GeoPackage under extractors/.

Read the full file on GitHub · 135 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 · -13 tokens per session b85765c1fe2b
  2. 1mo ago Changed · -5 lines · -13 tokens per session 6ab371d717fd
  3. 1mo ago Changed · +5 lines · -3 tokens per session a750034d8e0c
  4. 1mo ago Changed · +3 lines · -7 tokens per session 4389cca5ea70
  5. 2mo ago Changed · +5 lines 954ce201fcfd
  6. 3mo ago First seen · 127 lines · 49 tokens per session scan A fb76fafa8636

Subscribe to this mod's changes

extraction-pipeline-patterns is a skill published in the GitHub repository xberg-io/xberg (9,631 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 1,854 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

extraction-pipeline-patterns compared with skills from other repositories

extraction-pipeline-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
extraction-pipeline-patternsxberg-io/xbergSkill9.6ktodayMITA13Claude Code
mcp-apps-builderShubhamsaboo/awesome-llm-appsSkill146ktodayApache-2.0A139Claude Code, Codex
mem0-statusmem0ai/mem0Skill70k2d agoApache-2.0A44Claude Code, Codex
social-physics-filterwinstonkoh87/Athena-PublicSkill6552d agoMITA34Claude Code, Codex
therapeutic-ifswinstonkoh87/Athena-PublicSkill6552d agoMITA34Claude Code
Diagnostic-First Refactoringwinstonkoh87/Athena-PublicSkill6552d agoMITA35Claude Code, Codex
core-conversion-architecturexberg-io/html-to-markdownSkill891todayMITA49Claude Code