# XLSX Smart Extractor

> Use this skill to extract and analyze large Excel workbooks (1MB-50MB+) with minimal token usage. Losslessly extracts formulas, cell formatting, and complex tables while achieving 20-100x token reduction through local extraction, semantic chunking, and intelligent caching. Use when an .xlsx is too large for the context window (compliance matrices, financial models, audit logs).

- Skill: `diegocconsolini/xlsx-smart-extractor` (Agent Skill, multi-file: 14 files)
- Install (CLI): `npx skillmds@latest add diegocconsolini/xlsx-smart-extractor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/diegocconsolini/xlsx-smart-extractor/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- License: MIT
- Author: diegocconsolini (https://skillmd.com/u/diegocconsolini)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/diegocconsolini/xlsx-smart-extractor

---


# Excel Smart Extractor Skill

Extract once locally, query forever. Reduces token cost by loading only the relevant
sheets/columns instead of an entire workbook.

## Usage

```bash
# 1. Extract (one-time, local — caches to ~/.claude-cache/xlsx/)
python scripts/extract_xlsx.py workbook.xlsx

# 2. Chunk the extracted content
python scripts/chunk_sheets.py {cache_key}

# 3. Query / list
python scripts/query_xlsx.py search {cache_key} "your query"
python scripts/query_xlsx.py list
```

Requires `openpyxl`. Cache lives in `~/.claude-cache/xlsx/`; extract, chunk, and query all
resolve to that same location via the shared `smart_cache` library.

