Excel and CSV file processing

★ 8.6 · general

Работа с Excel-файлами (the Excel Files skill) connects Claude Code to openpyxl and pandas so the agent can open, edit, create, and convert spreadsheet files — .xlsx, .xlsm, .xltx, .csv, and .tsv — directly inside an agentic session. It is a Claude Code skill: a set of instructions and scripts that govern how the agent behaves whenever a spreadsheet file is the primary deliverable. Reach for it when you need to add columns or formulas to an existing xlsx, clean up messy tabular data with broken headers or junk rows, generate a new spreadsheet from raw data, or convert a csv into a formatted xlsx — and you want the agent to actually produce the file rather than just explain how to do it yourself. Under the hood: openpyxl handles cell-level edits, formula writing, and formatting; pandas covers bulk data import and export; markitdown lets the agent quickly preview sheet contents. Every formula-containing output goes through recalc.py, a mandatory verification step that runs LibreOffice under the hood and returns JSON with a status and a per-cell error summary. The agent sticks to Excel 2007-era functions — SUMIFS, INDEX, MATCH, IFERROR, SUMPRODUCT — and avoids XLOOKUP, FILTER, UNIQUE, and SEQUENCE, which LibreOffice cannot evaluate.