format-specific-extraction

format-specific-extraction is a skill for Claude Code, Codex from kreuzberg-dev/kreuzberg-lts. It costs 3 tokens per session (642 once invoked), scanned A, original, MIT.

A set of implementation instructions for extracting content from specific file formats, such as Office documents, PDFs, and compressed archives.

In plain words
What is it for?
Use it when building Rust-based extractors that read document text, tables, metadata, or plaintext files from ZIP, TAR, 7z, and GZIP archives.
Why use it?
It provides a defined sequence for safely opening files, parsing their contents, and handling scanned PDFs or archive risks.

Skill for Claude CodeCodex

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

Good fit Use it when building Rust-based extractors that read document text, tables, metadata, or plaintext files from ZIP, TAR, 7z, and GZIP archives.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kreuzberg-dev/kreuzberg-lts/format-specific-extraction
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 kreuzberg-dev/kreuzberg-lts --skill format-specific-extraction
Clone the repo
git clone --depth 1 https://github.com/kreuzberg-dev/kreuzberg-lts

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 format-specific-extraction

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kreuzberg-dev/kreuzberg-lts/format-specific-extraction"><img src="https://agentmods.dev/badge/skills/kreuzberg-dev/kreuzberg-lts/format-specific-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 642 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.00003 $0.00642
Opus 5 $0.00002 $0.00321
Sonnet 5 $0.00001 $0.00128
Haiku 4.5 $0.00000 $0.00064

Measured 10d ago against content hash 6ce311362f02, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

format-specific-extraction 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 10d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.ai-rulez/skills/format-specific-extraction/SKILL.md · 80 lines

How it starts

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

priority: high

Format-Specific Extraction Workflows

Office XML (DOCX/PPTX/ODT)

ZIP archive → Security validation → XML parsing → Text + tables + metadata
  1. ZipBombValidator::new(limits).validate(&mut archive)?
  2. Extract XML files from archive (word/document.xml, ppt/slides/*.xml, content.xml)
  3. Parse with quick-xml::Reader (streaming) + DepthValidator + StringGrowthValidator
  4. Extract metadata via crate::extraction::office_metadata::extract_metadata()
  5. See: extractors/docx.rs, extractors/pptx.rs, extractors/odt.rs

PDF

Bytes → pdfium-render → Per-page text + OCR fallback → Tables → Metadata
  1. pdfium.create_document_from_bytes(content, None)?
  2. Check if needs OCR: config.force_ocr || !has_searchable_text()
  3. Extract text per page, tables if config.pages enabled
  4. Feature-gated: #[cfg(feature = "pdf")]
  5. See: extractors/pdf/mod.rs

Archives (ZIP/TAR/7z/GZIP)

Validate → Extract metadata → Extract plaintext files only
  1. ZipBombValidator BEFORE any extraction
  2. Extract metadata (file list, sizes)
  3. Extract text content from plaintext files
  4. Use build_archive_result() helper
  5. See: extractors/archive.rs, extraction/archive/*.rs

Structured Text (JSON/YAML/TOML/XML)

Detect format from MIME → Parse → Pretty-print → Metadata

Single StructuredExtractor handles multiple MIME types. Parse with format-specific library, pretty-print to text. See: extractors/structured.rs

Email (EML/MSG)

Parse headers → Extract body (text/html) → Process attachments

See: extraction/email.rs, extractors/email.rs

Common Helpers

Helper Location Purpose
office_metadata::extract_metadata() extraction/office.rs Office XML metadata
cells_to_markdown() extraction/mod.rs Convert cell grid to GFM table
build_archive_result() extraction/archive/mod.rs Standard archive result

Read the full file on GitHub · 80 lines

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. 10d ago First seen · 80 lines · 3 tokens per session scan A 6ce311362f02

Subscribe to this mod's changes

format-specific-extraction is a skill published in the GitHub repository kreuzberg-dev/kreuzberg-lts (14 stars, last pushed 3d ago), licensed MIT. It adds 3 tokens to every session and 642 once invoked, about $0.0000 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.

Related

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.

JansenAnalytics/claudex · 51 tokens

paddleocr-doc-parsing

A document-parsing tool configuration for extracting structured Markdown or JSON from complex PDFs and document images, including tables, formulas, charts, and multi-column pages.

PaddlePaddle/PaddleOCR · 140 tokens

paddleocr-text-recognition

An optical character recognition tool configuration for extracting text from images, photos, scans, screenshots, and scanned PDFs. OCR means converting text visible in an image into machine-readable text.

PaddlePaddle/PaddleOCR · 125 tokens

document-processing

Use when the deliverable is a document's bytes or its literal content — text/tables out of PDFs, AcroForm fill and flatten, page merge/split, PDF/DOCX from templates, OCR of image-only scans. NOT schema-typed fields pulled from text (that is structured-extraction), NOT signature routing (e-signature) or spreadsheet…

ericrisco/rsc-harness · 84 tokens

document-processing-expert

Read, generate and modify office documents and PDFs from code: PDF extraction and forms, Word documents, Excel workbooks and PowerPoint decks. Use when the user mentions PDF, DOCX, XLSX, PPTX, Word, Excel, PowerPoint or spreadsheets, wants data extracted from documents, needs a report or invoice generated as a file…

personamanagmentlayer/pcl · 102 tokens

paddleocr-doc-parsing

A document-reading skill that turns complex PDFs and document images into structured Markdown or JSON. It can preserve tables, formulas, figures, and reading order.

Aidenwu0209/PaddleOCR-Skills · 140 tokens