overview

A Python library that extracts the structure and meaning of Excel workbooks. Excel workbooks are spreadsheet files that can contain cells, tables, charts, drawings, formatting, and print settings.

In plain words
What is it for?
Use it to extract cells, links, tables, shapes, arrows, SmartArt, charts, colors, print areas, and page breaks. It can process individual files or directories and output JSON, YAML, or TOON when supported.
Why use it?
It turns complex spreadsheet contents into structured data that other software, including language models, can process more easily. It also makes extraction fallbacks visible through logging.

Agent

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.

agentmods
npx agentmods add agents/harumiweb/exstruct/overview
Clone the repo
git clone --depth 1 https://github.com/harumiWeb/exstruct
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 384 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00384
Opus 5 $0.00000 $0.00192
Sonnet 5 $0.00000 $0.00077
Haiku 4.5 $0.00000 $0.00038

Measured yesterday against content hash 2ce278c81458, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

overview 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 yesterday.

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.

dev-docs/agents/overview.md · 45 lines

What it actually says

ExStruct - Excel structure extraction engine overview

ExStruct is a Python library that extracts semantic structure from Excel workbooks. It combines openpyxl, Excel COM (xlwings), and a LibreOffice backend to generate structured data that LLMs can work with easily.

Features

  • Unifies the extraction flow with a pipeline-oriented design
  • Switches extraction granularity by mode (light / libreoffice / standard / verbose)
  • Abstracts openpyxl / COM / LibreOffice backends
  • Supports JSON / YAML / TOON output when dependencies are installed
  • Supports print_areas and auto_page_breaks export
  • Makes fallback reasons visible through unified logging

Extraction targets

  • Cells (values / links / coordinates)
  • Tables (candidate ranges)
  • Shapes / Arrows / SmartArt (position / text / arrows / layout)
  • Charts (series / axes / type / title)
  • Print Areas / Auto Page Breaks
  • Colors Map (including conditional formatting)

Usage examples at a glance

  • Use extract(path, mode="standard") to obtain WorkbookData
  • Use process_excel for file output or directory output
  • Use the CLI as exstruct file.xlsx --format json

Directory layout at a glance

docs/                 public documentation
dev-docs/             internal documentation
src/exstruct/
  core/               extraction pipeline and backends
  models/             Pydantic models
  io/                 JSON/YAML/TOON output
  render/             PDF/PNG output
  cli/                CLI
tests/                tests

AI agents should read docs/ as the public contract and use dev-docs/specs/ and dev-docs/adr/ to fill in internal behavior.

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. yesterday First seen · 45 lines · 0 tokens per session scan A 2ce278c81458

Subscribe to this mod's changes

overview is an agent published in the GitHub repository harumiWeb/exstruct (195 stars, last pushed 2mo ago), licensed BSD-3-Clause. It costs nothing until one of its globs matches a file; then it loads 384 tokens. 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 agents, from other repositories

ai-chat

AI 对话编排领域。任务涉及编排器 AgentOrchestrator、ToolRegistry、SSE 事件流、上下文组装、记忆系统、MCP、子 Agent、模型路由、回放评测时,先读本文档再动代码。.

zeweihan/aiworkdeck · 62 tokens

ai-doc-bridge

AI↔文档编辑桥接领域。任务涉及 doc/sheet/slide 编辑原语、EditorBridgeService、editorcommand 契约、修订(redline)、文档检查点、EDITORACTIONS/uicommand 白名单时,先读本文档再动代码。.

zeweihan/aiworkdeck · 67 tokens

licensing-billing

授权与计费领域。任务涉及解锁门(试用码/账户 Key)、与官网账户的连接、entitlement 权益判定、免费额度与付费解锁、平台 AI 通道计费、广场付费项闸门、本机免登身份解析时,先读本文档再动代码。.

zeweihan/aiworkdeck · 76 tokens

version-control

项目级版本记录领域。任务涉及版本记录/工作段(work session)、时间线、退回版本、丢弃工作、另起一稿/多稿并行/采纳-放弃-冲突三选一、项目 Git 仓库(com.checkba.version 包)、文件树清单 .awd/tree.json 时,先读本文档再动代码。.

zeweihan/aiworkdeck · 84 tokens

office-addin

Microsoft Office 与 WPS 插件领域。任务涉及 Word/Excel/PPT 任务窗格插件(office-addin/)、manifest、Office.js、WPS 加载项(wps/ 壳、wpsExecutor、publish 安装页)、插件与后端的对话/上下文契约、sideload 调试时,先读本文档再动代码。.

zeweihan/aiworkdeck · 83 tokens

sidebar-shell

侧边栏与工作台外壳领域。任务涉及左侧 rail/左栏、工作台四列布局、面板切换、页面路由与页面栈、设置入口、project-overview.vue 结构、CSS 体系时,先读本文档再动代码。.

zeweihan/aiworkdeck · 65 tokens