xlsx

Create, edit, and recalculate Excel spreadsheets with formulas using openpyxl and LibreOffice.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/jjchambers80/judgesdirectory --skill xlsx-jjchambers80
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/jjchambers80/judgesdirectory/tree/main/.github/skills/xlsx
Command: npx skills add https://github.com/jjchambers80/judgesdirectory --skill xlsx-jjchambers80

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with spreadsheet files programmatically often leads to broken formulas, hardcoded values that cannot update, and formatting inconsistencies. This Skill provides a complete workflow for creating, editing, and analyzing .xlsx, .xlsm, .csv, and .tsv files while guaranteeing zero formula errors and professional financial-model formatting standards. ## Core Features & Use Cases - Formula-first spreadsheet generation: Builds Excel files with live formulas (never hardcoded Python-calculated values) so workbooks stay dynamic and recalculable. - Automated recalculation and error detection: The scripts/recalc.py tool uses LibreOffice to recalculate all formulas and reports #REF!, #DIV/0!, #VALUE!, and other errors with exact cell locations. - Financial modeling conventions: Enforces industry-standard color coding (blue inputs, black formulas, green cross-sheet links), number formatting, and assumption documentation. - Use Case: A user asks to build a revenue projection model from raw sales data. The Skill creates the workbook with openpyxl, writes growth formulas referencing assumption cells, applies currency formatting, runs recalc.py to verify zero errors, and delivers a finished .xlsx file. ## Quick Start Use the xlsx skill to create a spreadsheet from my sales data with a summary sheet that calculates totals and growth rates using formulas.

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 like '=SUM(B2:B9)' directly into cells, then save the workbook. Run scripts/recalc.py afterward to recalculate all formulas with LibreOffice and verify no errors exist.

Should I use pandas or openpyxl for Excel files?▼

Use pandas for data analysis, bulk operations, and simple exports via read_excel and to_excel. Use openpyxl when you need formulas, cell formatting, multiple sheets, or editing existing workbooks while preserving structure.

Why do my openpyxl formulas show no calculated values?▼

openpyxl stores formulas as strings but never evaluates them, so saved files lack cached values. Run scripts/recalc.py, which uses LibreOffice headless mode to recalculate every formula and report any errors found.

How do I fix #REF! and #DIV/0! errors in generated Excel files?▼

Run scripts/recalc.py on the file to get JSON output listing each error type with exact cell locations like Sheet1!B5. Fix invalid references, guard divisions against zero denominators, then recalculate again until status is success.

Can openpyxl read calculated values from an Excel file?▼

Yes, load the workbook with data_only=True to read cached calculated values instead of formula strings. Never save a workbook opened this way, because doing so permanently replaces all formulas with their static values.