xlsx

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

1|Updated May 16, 2026
One-click install
npx skills add https://github.com/ludotype/game-adventurertown --skill xlsx-ludotype
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/ludotype/game-adventurertown/tree/main/.agent/skills/xlsx
Command: npx skills add https://github.com/ludotype/game-adventurertown --skill xlsx-ludotype

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 Excel errors like #REF! or #DIV/0! that go unnoticed until delivery. This Skill provides a complete workflow for creating, editing, and analyzing .xlsx, .xlsm, .csv, and .tsv files while guaranteeing zero formula errors in the final deliverable. ## Core Features & Use Cases - Formula-First Spreadsheet Creation: Builds Excel files with live formulas instead of hardcoded Python-calculated values, so spreadsheets stay dynamic and recalculate when source data changes. - Automated Formula Recalculation and Error Detection: The scripts/recalc.py utility uses LibreOffice to recalculate all formulas and scans every cell for errors (#REF!, #DIV/0!, #VALUE!, #NAME?, #N/A), returning JSON with exact error locations. - Financial Modeling Standards: Enforces industry conventions including color coding (blue inputs, black formulas, green cross-sheet links), number formatting (parenthesized negatives, 0.0% percentages, 0.0x multiples), and documented hardcode sources. - Use Case: A user asks to build a revenue projection model from a messy CSV export. The Skill cleans the data with pandas, constructs the model in openpyxl with assumption cells and formulas, then runs recalc.py to verify zero errors before delivery. ## Quick Start Use the xlsx skill to create a financial model spreadsheet from my sales data CSV with formulas for totals and growth rates, then verify it has no formula 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 like '=SUM(B2:B9)' directly into cells, then save the workbook. Formulas are stored but not evaluated, so run scripts/recalc.py afterward to compute values 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 with pd.read_excel and df.to_excel. Use openpyxl when you need formulas, cell formatting, multiple sheets, or edits to existing files while preserving their structure.

Why do my openpyxl formulas show no calculated values?▼

openpyxl stores formulas as strings without evaluating them. Run scripts/recalc.py on the file, which uses LibreOffice headless to recalculate all formulas and reports any Excel errors as JSON with cell locations.

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

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

Can I read Excel formula results without losing the formulas?▼

Load with load_workbook('file.xlsx', data_only=True) to read cached calculated values. Never save from a data_only workbook, because doing so permanently replaces all formulas with their static values.