xlsx

Create and edit Excel spreadsheets with formulas using openpyxl and pandas.

6|1|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/LEEI1337/phantom-neural-cortex --skill xlsx-leei1337
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/LEEI1337/phantom-neural-cortex/tree/main/.claude/skills/xlsx
Command: npx skills add https://github.com/LEEI1337/phantom-neural-cortex --skill xlsx-leei1337

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates complex spreadsheet tasks, from creation and data analysis to precise formatting and formula management. It ensures accuracy, preserves existing structures, and eliminates manual errors, allowing for dynamic, updateable Excel models without manual intervention.

Core Features & Use Cases

  • Formula-First Creation: Always uses Excel formulas for calculations, ensuring dynamic and updateable spreadsheets.
  • Data Analysis with Pandas: Leverages pandas for powerful data manipulation, reading, and writing Excel/CSV files.
  • Advanced Formatting: Applies industry-standard color coding, number formatting, and formula construction rules for financial models.
  • Formula Recalculation & Verification: Uses LibreOffice to recalculate formulas and provides detailed error reporting for quick fixes.
  • Use Case: Generate a quarterly financial report in Excel, complete with revenue projections, margin calculations, and currency formatting, ensuring all values are driven by formulas and automatically recalculated.

Quick Start

Use the xlsx skill to create a new Excel file named 'quarterly_sales.xlsx'. Add a sheet named 'Sales Data' and populate it with columns for 'Month', 'Product', and 'Revenue'.

Frequently Asked Questions about xlsx

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

FAQPage Schema
How do I automate creating and updating Excel spreadsheets with formulas?

Automate spreadsheet creation using openpyxl and pandas to build dynamic Excel files where calculations use formulas rather than static values. This ensures spreadsheets update automatically when source data changes, eliminating manual recalculation and formula errors in financial models and data analysis workflows.

Can I use pandas and openpyxl together to read, modify, and write Excel files?

Yes. pandas reads and writes .xlsx, .xlsm, .csv, and .tsv files for data manipulation, while openpyxl handles formula creation, formatting, and template preservation. Together they enable data analysis pipelines that maintain Excel structure, color coding, and number formatting standards without losing formulas.

How do I ensure formulas in Excel spreadsheets recalculate correctly after updates?

Use LibreOffice via the recalc.py script to recalculate all formulas and verify correctness after modifying spreadsheets. This catches formula errors immediately, ensures financial models stay accurate, and prevents calculation drift when data or formula logic changes.

What's the best way to preserve Excel templates while adding new data and formulas?

Preserve templates by using openpyxl to read existing spreadsheet structure, apply new formulas in designated cells, maintain color and number formatting rules, and keep assumptions in separate cells. This approach keeps template integrity intact while enabling dynamic updates for financial modeling and analysis.

Can I automate financial reports in Excel with formulas for revenue, margins, and currency formatting?

Yes. Build financial reports by using pandas to source data, openpyxl to construct formula-driven calculations for revenue projections and margins, apply industry-standard formatting, and recalculate via LibreOffice. The result is a fully automated, updateable model with zero manual errors.

What file formats does this approach support for financial data analysis and reporting?

Supports .xlsx, .xlsm, .csv, and .tsv formats. pandas reads and writes all four; openpyxl and LibreOffice recalculation work with Excel files, enabling unified pipelines that ingest data from multiple sources, transform it with formulas, and output formatted financial models.