xlsx

Create, edit, and recalculate Excel spreadsheets using openpyxl, pandas, and LibreOffice.

1|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/ankur3-101106/dotfiles-hypr --skill xlsx-ankur3-101106
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/ankur3-101106/dotfiles-hypr/tree/main/Claude/local-agent-mode-sessions/skills-plugin/ab436dd0-752a-4b9b-8503-dc6695d483cb/cedd2988-3bab-48aa-884f-cc7b3bfb8e81/skills/xlsx
Command: npx skills add https://github.com/ankur3-101106/dotfiles-hypr --skill xlsx-ankur3-101106

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, pandas, markitdown, lxml, defusedxml, and includes scripts (resource) components.

What problem does it solve? Spreadsheet tasks often fail silently: formulas written by openpyxl have no cached values, unsupported functions become #NAME? errors, and external workbook links get destroyed on save. This Skill provides a verified workflow for producing spreadsheet files with zero formula errors and correct, recalculated values. ## Core Features & Use Cases - Spreadsheet creation and editing: Build or modify .xlsx, .xlsm, .xltx, .csv, and .tsv files with openpyxl and pandas, following financial-modeling conventions for colors, number formats, and structure. - Mandatory formula recalculation: The recalc.py script runs LibreOffice headless to compute every formula, rewrites the file in place, and reports JSON error summaries naming exact cells with #VALUE!, #REF!, #NAME?, and other errors. - External-link protection: Detects formulas referencing other workbooks whose cached values would be lost on recalculation and refuses to run unless forced. - Use Case: A user asks to add a revenue projection tab to an existing financial model. The Skill writes formulas with openpyxl, runs recalc.py to verify zero errors, and delivers a workbook whose values are correct and recalculate when inputs change. ## Quick Start Use the xlsx skill to add a SUM formula column to my sales-data.xlsx file and verify it recalculates without errors.

Frequently Asked Questions about xlsx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an Excel file with formulas in Python?▼

Use openpyxl to write formula strings directly into cells, such as sheet['B10'] = '=SUM(B2:B9)'. Because openpyxl stores no cached values, run the recalc.py script afterward so LibreOffice computes every formula and rewrites the file in place.

openpyxl vs pandas for Excel files: which should I use?▼

Use openpyxl when creating or editing files with formulas and formatting, and pandas read_excel/to_excel for bulk data movement. For a quick look at sheet contents, the markitdown command renders each sheet without cell coordinates.

Why do my openpyxl formulas show as None when read back?▼

openpyxl writes formulas as strings with no cached values, so data_only=True reads return None until the file is recalculated. Run recalc.py, which uses LibreOffice to compute all formulas and save the results into the file.

Which Excel functions work with LibreOffice recalculation?▼

Excel-2007-era functions like SUMIFS, INDEX, MATCH, IFERROR, and SUMPRODUCT work directly. Six newer functions need an _xlfn. prefix (TEXTJOIN, CONCAT, IFS, SWITCH, MAXIFS, MINIFS). XLOOKUP, XMATCH, SORT, FILTER, UNIQUE, and SEQUENCE must be avoided entirely.

Why does recalculation fail on workbooks with external links?▼

openpyxl strips cached values from cells referencing other workbooks, so LibreOffice cannot resolve them and would write #NAME? while deleting the links. recalc.py detects these at-risk cells and refuses to run unless you pass --force.

Does openpyxl preserve macros in .xlsm files?▼

Macros are lost unless you pass keep_vba=True to load_workbook. Without that flag, saving an .xlsm file through openpyxl permanently removes its VBA modules.