format-specific-extraction

Installation
SKILL.md

Format-Specific Extraction Workflows

Office XML (DOCX/PPTX/ODT)

ZIP archive → SecurityBudget → XML parsing → Text + tables + metadata
  1. let budget = SecurityBudget::from_config(config); (extractors/security.rs), plus config.security_limits…max_files_in_archive as the member cap. The Office path does not use ZipBombValidator — that is the archive/iWork/HWPX path.
  2. Open with zip::ZipArchive::new(cursor) and read the parts (word/document.xml, ppt/slides/*.xml, content.xml).
  3. Parse with quick-xml::Reader (streaming), threading &mut budget through the recursive walkers so a hostile document exhausts a budget instead of memory.
  4. Metadata via crate::extraction::office_metadata — see the helper table below. There is no extract_metadata().
  5. See extractors/docx.rs, extractors/pptx.rs, extractors/odt.rs.
Installs
12
Repository
xberg-io/xberg
GitHub Stars
9.5K
First Seen
Jun 9, 2026