xlsx

Create, edit, and analyze Excel spreadsheets with formulas, formatting, and recalculation.

1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/qfwc258/trae-skills --skill xlsx-qfwc258
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/qfwc258/trae-skills/tree/main/xlsx
Command: npx skills add https://github.com/qfwc258/trae-skills --skill xlsx-qfwc258

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with spreadsheet files programmatically often leads to hardcoded values, broken formulas, and inconsistent formatting. This Skill provides a structured workflow for creating, editing, and analyzing .xlsx, .xlsm, .csv, and .tsv files so the output remains dynamic, error-free, and professionally formatted. ## Core Features & Use Cases - Formula-Driven Spreadsheets: Writes native Excel formulas instead of hardcoded Python-calculated values, keeping workbooks dynamic and updateable. - Mandatory Recalculation & Error Detection: Uses the bundled recalc.py script with LibreOffice to recalculate all formulas and report #REF!, #DIV/0!, #VALUE!, and other errors with exact cell locations. - Financial Modeling Standards: Enforces industry color conventions (blue inputs, black formulas, green cross-sheet links), number formatting rules, and source documentation for hardcoded values. - Use Case: A user asks to build a revenue projection model from a messy CSV export. The Skill cleans the data with pandas, builds the model with openpyxl using live formulas and assumption cells, recalculates with LibreOffice, and delivers a workbook with zero formula errors. ## Quick Start Use the xlsx skill to clean up the messy sales data in report.csv and turn it into a formatted Excel workbook with a summary sheet 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 the recalc.py script afterward so LibreOffice calculates the formula values and reports any errors.

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 workbooks.

Why do my openpyxl formulas show no calculated values?

openpyxl stores formulas as strings but never evaluates them, so saved files lack computed values. Recalculate with LibreOffice using the recalc.py script, which updates values and scans all cells for errors.

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

Run recalc.py and inspect the JSON error_summary, which lists each error type with exact cell locations. Fix invalid references, guard divisions against zero denominators, then recalculate again until the status is success.

Can openpyxl read calculated values from an existing workbook?

Yes, load the file with data_only=True to read cached calculated values instead of formula strings. Do not save in that mode, because saving replaces all formulas with static values permanently.