xlsx-official

Create, edit, and analyze Excel spreadsheets with formulas, formatting, and financial modeling conventions.

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/nperepichka/Antigravity --skill xlsx-official-nperepichka
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx-official
Source: https://github.com/nperepichka/Antigravity/tree/main/config/skills/xlsx-official
Command: npx skills add https://github.com/nperepichka/Antigravity --skill xlsx-official-nperepichka

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Building and editing Excel workbooks programmatically often produces broken formulas, inconsistent formatting, and hardcoded values that break when data changes. This Skill enforces correct formula usage, industry-standard financial formatting, and automated error detection so spreadsheets remain dynamic and error-free. ## Core Features & Use Cases - Formula-First Spreadsheet Creation: Generates .xlsx files using openpyxl with live Excel formulas instead of hardcoded Python-computed values, keeping models updateable. - Automated Recalculation & Error Detection: The recalc.py script uses LibreOffice to recalculate all formulas and reports every #REF!, #DIV/0!, #VALUE!, and #N/A error with exact cell locations. - Financial Modeling Standards: Applies industry color conventions (blue inputs, black formulas, green cross-sheet links), number formatting rules, and source documentation requirements for hardcoded values. - Use Case: Build a three-statement financial model from company 10-K data with assumption cells, projection formulas, and proper formatting, then verify zero formula errors before delivery. ## Quick Start Ask the agent to create an Excel financial model from your data with formulas and formatting, then recalculate and verify it contains zero formula errors.

Frequently Asked Questions about xlsx-official

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 via read_excel and to_excel. Use openpyxl when you need formulas, cell formatting, multiple sheets, or editing existing workbooks while preserving their structure.

Why do my openpyxl formulas show no calculated values?▼

openpyxl stores formulas as strings but never evaluates them, so cells appear empty when read with data_only=True. Run recalc.py, which drives LibreOffice headlessly to recalculate all formulas and save the computed values.

How do I find #REF! or #DIV/0! errors in an Excel file?▼

Run python recalc.py yourfile.xlsx, which scans every cell and returns JSON listing each error type with exact sheet and cell locations. Fix the referenced cells and recalculate until the status is success.

What are the standard color conventions for financial models in Excel?▼

Use blue text for hardcoded inputs, black for formulas, green for links to other sheets in the same workbook, and red for external file links. Format zeros as dashes, negatives in parentheses, and percentages with one decimal.

Can I read Excel files without losing formulas when saving?▼

Load workbooks with openpyxl's default mode to preserve formulas. Avoid saving a workbook opened with data_only=True, because that permanently replaces all formulas with their cached values.